C++ DLL problem

mastaray

New Member
Hello,

i made a dll for simple mapi controll.
It was done in c++.

Now if i do a new c++ Project and use this dll everyting works just fine.

But when now my college wants to use the dll in progress 9,
the dll chrashes in some of the exported functions.

2 of 5 are not working.

I never developt anything before for progress,
is there anything special to dll creation if it is meant to be used in progress??

I am glad about every info.
 

Cringer

ProgressTalk.com Moderator
Staff member
If 2 of them are working and 3 are not, you will need to let us know what the difference is between the 2 of them. That should give us some idea as to what is failing.
 

Marian EDU

Member
might be related to the calling convention used (aka, who clean-up the stack)... the default in C++ is CDECL while in ABL is STDCALL, you can try to use 'CDECL' in ABL when defining the procedures as external.
 

mastaray

New Member
Hi thx,
te thing wit the nae cnventin i resolved by declre the export function with extern "C"

Problem solved,

the function parameter was used wth a pointer but there was no static variable which saved the string after the call.
Funny that under C it was still able to rememberit somehow....

thx a lot bye bye
 
Top