Re: An old C function problem revisited
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Feb 24, 2006
- 513 views
Jonas Temple wrote: > > I guess I really failed to mention that the prompt dialog IS presented when > the function is called. The dialog works normally and the "CRTPGM" string I > pass in is received as well. > > The problem happens when I click "Okay" or "Cancel" on the dialog. The other > thing I faile to mention is the dialog that is displayed is a Java app. Mabye > that has something to do with it? Mabye not because this routine is supposed > to be a C/C++ interface to the Java app. I also know this dialog works as > it's > called from other apps provided by the vendor. Sounds like a calling convention mixup to me. Have you tried using cdecl? Matt Lewis