in reply to Re^2: Win32::API - How to call an Imported function with Win32::API::Types ?
in thread Win32::API - How to call an Imported function with Win32::API::Types ?
I suspect that the problem is that TCHAR is not a type that Win32::API::Type knows about. You can find the list of those that it does know about at the bottom of the Type.pm source file.
You probably need to change
Win32::API::Type->typedef( 'OMDTEXTZ', 'TCHAR');
to something like
Win32::API::Type->typedef( 'OMDTEXTZ', 'unsigned char') or die $^E;
However, if you were to add some error checking to your calls (as above and in my original snippet. E.g. ...or die $^E;), then the module would be telling you what is wrong and where.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Win32::API - How to call an Imported function with Win32::API::Types ?
by fx (Pilgrim) on Jul 02, 2004 at 11:24 UTC | |
by fx (Pilgrim) on Jul 02, 2004 at 11:29 UTC | |
by BrowserUk (Patriarch) on Jul 02, 2004 at 13:11 UTC |