In Visual Basic, i can do that:
Dim A as string
Declare Function MyFavoriteWinApi (x as long, y as string)
A = "hello winapi"
call MyFavoriteWinApi (1, A)
in wb, i need to try
Call .... @A
Call .... *A
Call .... strptr(a)
and
dim x as ptr
*x = A
x = *A
x = **A
**x = A
and wait when that works
now i try to use
dim myfn as string
SystemParametersInfo SPI_SETDESKWALLPAPER, 0, ???? , SPIF_UPDATEINIFILE
maybe somewhere has wrapper (don't know how to say it in english) VB <-> FB, when i can write
vbSystemParametersInfo SPI_SETDESKWALLPAPER, 0, i , SPIF_UPDATEINIFILE
and
what is PVOID? how to use SystemParametersInfo with filename?
Easy WinAPI declaration (like Visual Basic)
-
- Posts: 1706
- Joined: May 27, 2005 6:34
- Location: Cambodia, Thailand, Lao, Ireland etc.
- Contact:
Does an example help? Interesting function, I did not know how to do this until you showed me.
Garvan
Garvan
Code: Select all
#include "windows.bi"
SystemParametersInfo( SPI_SETDESKWALLPAPER, 0, _
strptr("C:\WINDOWS\FluxMetal_1400x1050.bmp"), _
SPIF_SENDCHANGE )
-
- Posts: 1706
- Joined: May 27, 2005 6:34
- Location: Cambodia, Thailand, Lao, Ireland etc.
- Contact:
-
- Posts: 775
- Joined: Jul 01, 2005 18:45
-
- Posts: 1706
- Joined: May 27, 2005 6:34
- Location: Cambodia, Thailand, Lao, Ireland etc.
- Contact: