Page 1 of 1

DLL Wrong Number of Parameters

Posted: Wed Dec 17, 2003 3:55 am
by bcgreen
OK...I've made a simple DLL with PureBasic, per the manual...here's the meat of it:

Code: Select all

ProcedureDLL EasyRequester(Message$)
  
  MessageRequester("EasyRequester!", Message$, #MB_ICONINFORMATION)
  
EndProcedure
Now....as you can see, the procedure has ONE argument, a string called "Message$"...call the DLL from PB, and it works just fine, BUT--

Tried calling the DLL from C++ (Dev-C++ and GCC compiler), and keep getting a message about too many arguments, when I am only passing ONE argument-- the message I want to pop up!

Any DLL gurus out there with any info for me?

Thanks, as always!
Bryan

Posted: Wed Dec 17, 2003 8:05 am
by Danilo
You get the message from your C/C++ compiler, so it has
nothing to do with PureBasic.

Without seeing your wrong C/C++ code, we cant help you
anyway.