Ignore string parameter type for external functions
Posted: Wed Nov 19, 2014 7:09 pm
Default included Win32 API accept both variable types pointers or PB's strings variables.
But it's not possible to declare imports of prototypes that way.
This restriction doesn't make any sense and PB should really handle this.
But it's not possible to declare imports of prototypes that way.
Code: Select all
MessageBox_(0, @"Text", @"Caption" , 0) ; works
MessageBox_(0, "Text", "Caption" , 0) ; works
Import ""
MessageBoxW(a,b,c,d)
EndImport
MessageBoxW(0, @"Text", @"Caption" , 0) ; works
MessageBoxW(0, "Text", "Caption" , 0) ; seriously?