Page 1 of 1

DLL for C++

Posted: Tue Jan 05, 2010 5:54 pm
by zapadepowday
HI,
I am having a problem creating a PB DLL that I can include in a Microsoft Visual C++ application,
I am compiling the PB code as a DLL with only one Procedure..ie ProcedureC mydll()
I have also tried the variation... ProcedureCDLL, but the C++ application will not compile either the DLL
or the Lib File as an include, but just throws lots of null character/and character not recognized errors.
Can anyone advise what I am doing wrong.....Thanks.

Re: DLL for C++

Posted: Tue Jan 05, 2010 6:35 pm
by tinman
How did you include the lib file in your application? Usually you either have to specify it as a linker option rather than include it.

Re: DLL for C++

Posted: Tue Jan 05, 2010 7:13 pm
by USCode
I haven't created a Windows DLL with PB yet but don't you also HAVE to include in your DLL the procedures AttachProcess(Instance), DetachProcess(Instance), AttachThread(Instance) and DetachThread(Instance) ? Even if they're empty procedures?

Re: DLL for C++

Posted: Tue Jan 05, 2010 8:21 pm
by zapadepowday
That was the problem...I had to tell the Linker where it was and what it was called, so thanks for that