Hi,
I'm just starting to learn GDI+ and if possible I would like to know how to pass the name of a bitmap file to the functions GdipLoadImageFromFile() and GdipDrawImageRectI()
(I do not understand how to use the variable of type pointer for the file name ???)
thanks
Sergio
Sergio,
If I understand things right, any STRING or ISTRING is a pointer.
So...
STRING Filename
Filename="myfile.bmp"
func(Filename) 'will pass the pointer to "myfile.bmp"
Clint
STRINGS/ISTRINGS/UDT's are all passed by reference
The rest are passed by value unless the BYREF keyword is used.
STRINGS/ISTRINGS/UDT's can be passed by value if the BYVAL keyword is used.
A POINTER contains the memory address of a variable, regardless of the type.
LarryMc
Ok, problem solved.
It was an issue with using the name of the file, which must be passed in Unicode format.
Now all works fine :)
Cheers
Sergio