The code I am trying to essentially re-implement in C# is:

   FlxActError            error;

           if(flxActAppActivationSend(client, &error))
           {
               DEBUG("ACTIVATION REQUEST SUCCESSFULLY PROCESSED\n");
           }
           else
           {
               flxActCommonHandleGetError(handle, &error);
               if(LM_TS_OPERATIONS == error.majorErrorNo)
               {
                   pszOpsError =
flxActCommonHandleGetLastOpsErrorString(handle);
                   if(pszOpsError)
                   {
                       printf("Operations error: %d %s\n",
flxActCommonHandleGetLastOpsError(handle), pszOpsError);
                   }
               }
               else
               {
                   DEBUG("ERROR: flxActAppActivationSend - (%d,%d,%d)\n",
error.majorErrorNo, error.minorErrorNo, error.sysErrorNo);
               }
           }

Where FlexActError is a struct with three uints.

I must not have understood Steve's question, or not explained things well
enough.

The DLL has a handful of functions, which I am not yet using, written in a
.c file.  There are no exports directly on the functions.  The DLL also has
a .def which declares all of the exports with: "functionName   @number"
statements.  This .def includes both the functions in the .c file and many
that are not in the .c.

In the .h files that declare the various C functions there is:

#ifdef __cplusplus
extern "C" {
#endif

around everything in the file.

Hopefully that explains the setup better.

-Mont



On 4/26/07, Mattias Sjögren <[EMAIL PROTECTED]> wrote:

Mont,

>Good to know that out goes with **.  I'll switch back to using ref and
>allocing the struct while I continue to look for the source of the
problem.

It doesn't. There's no difference in the indirection level between ref and
out, they only differ in the direction data is being copied. So if it
truly
is an output parameter you can keep using out.

Do you have calling code that works in some other language that we can
compare with?

Also, you didn't answer Steve's question about which calling convention is
being used.


Mattias

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com


===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to