I am trying to talk to a simple dll from Smalltalk. I use the following for the call
|aPlat rc|
aPlat := PlatformFunction
callingConvention: 'C'
function: 'getURL'
library: 'c:\benr\TaxURL2.dll'
parameterTypes: #()
returnType: #char.
rc := aPlat call.
^rc
The function in C++ is defined as
char* getURL(void)
when executing the smalltalk I get
Primitive failed in: PlatformFunction>> #call due to OS error14001
Obtaing the error by executing PlatformFunction getErrorStringArray I get
Error opening library C:\BENR\TAXURL2: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
Is there some sort loading I must perform or is am I forgetting to set a vairaible properly?