DLL Wrong Number of Parameters

Just starting out? Need help? Post your questions and find answers here.
bcgreen
User
User
Posts: 33
Joined: Sun Nov 02, 2003 7:33 am
Location: Pullman, WA

DLL Wrong Number of Parameters

Post 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
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Post 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.
cya,
...Danilo
...:-=< http://codedan.net/work >=-:...
-= FaceBook.com/DaniloKrahn =-
Post Reply