Home > database >  Pb9 call loadimagew failure, returns 0
Pb9 call loadimagew failure, returns 0

Time:09-21

Function declaration:
The Function long LoadImageW (long hInst, string lpszName, uint uType, int cxDesired, int cyDesired, uint fuLoad) Library "user32. DLL" alias for "LoadImageW
"
Call:
Ll_handle=LoadImageW (llnull, as_imagename IMAGE_ICON, 0, 0, LR_LOADFROMFILE)

Return to get ll_handle 0
Search on the net a lot, but didn't find a solution,

This method is available in the pb11.5, but not pb9 anyway, solving!!!!!!

CodePudding user response:

The Function long LoadImage (long hInst, string lpszName, uint uType, int cxDesired, int cyDesired, uint fuLoad) Library "user32. DLL" alias for "LoadImage
"
Call:
Ll_handle=LoadImage (llnull, as_imagename IMAGE_ICON, 0, 0, LR_LOADFROMFILE)

CodePudding user response:

Thank you for your reply!
LoadImage seems don't have the function, or stated incorrect,
After I changed to LoadImage, direct program termination, prompt call fails

CodePudding user response:

PB call WINAPI too much trouble, sigh ~ ~ ~

CodePudding user response:

What's wrong? Stick the wrong, perhaps is not function issue.
11.5 and 9, that is, different character set.

CodePudding user response:

Magic, in order to cut the wrong figure, as a result, not an error,
But the return value is 0

Is user32. DLL issue?

CodePudding user response:

PB9:
The Function ulong LoadImage (ulong hInst, ref string LPSZ, ulong un1, ulong n1, ulong n2, ulong un2) LIBRARY "user32. DLL" ALIAS FOR "LoadImageA
"PB10 + :
The Function ulong LoadImage (ulong hInst, ref string LPSZ, ulong un1, ulong n1, ulong n2, ulong un2) LIBRARY "user32. DLL" ALIAS FOR "LoadImageW"

CodePudding user response:

Thank upstairs to reply, but after tried, as usual, or 0.
A return value to determine invocation API is really depressed, if only a ERRNO,
I can not know what is ico file, or no parameters,

CodePudding user response:

Api's, there is such a statement: getlasterror () to obtain an execution on Api error value

CodePudding user response:

Are you using the file name of absolute path or relative path?

CodePudding user response:

Absolute and relative paths are tried and still won't do
Aside temporarily and wait for a period of time to study,
Now what do you want to be a FTP functions, depressed, how all don't open around the external function,
External function is not visible, alas...

CodePudding user response:

FTP that if MSINET. OCX
This thing don't have to call the API... But the function to be called OLE,

CodePudding user response:

Thank you advice upstairs, I look for method of using
Have not used this, was going to use seinweb. DLL
But didn't find upload function
  • Related