realbasic-nug
[Top] [All Lists]

Re: Setting Wallpaper on Windows

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Setting Wallpaper on Windows
From: Aaron Ballman <aaron at realsoftware dot com>
Date: Fri, 30 Aug 2002 10:23:08 -0500
on 8/30/02 10:18 AM, Carnivore devoured H.M. van Staveren at
hmvs at xs4all dot nl's message:

> Op 30-08-2002 17:08 schreef Aaron Ballman <aaron at realsoftware dot com> het
> volgende:
> 
>>> Declare Function Lib "user32.lib" SetSystemParametersInfo(action as
>>> integer, param1 as integer, param2 as Ptr, updateUserProfile as integer)
>>> as boolean
>>> 
>>> What am i doing wrong here?
>> 
>> Try saying "user32" instead of "user32.lib"
> 
> Doesn't work either :-( And you were right about the syntax of the
> function - i just 'googled' to be sure
> 

Oi!  Feeling dense.  :-P  Switch the name of the function we're importing to
be before Lib "user32"

#if targetWin32
Declare Function SetSystemParametersInfo Lib "user32" (action as integer,
param1 as integer, param2 as Ptr, updateUserProfile as integer) as boolean
#endif

~Aaron

-- 
The face of a child can say it all, especially the mouth part of the face.



<Prev in Thread] Current Thread [Next in Thread>