Hi all,
I have a c++ dll I have to call from c# using dll import but have no clue how to accomplish it. the c++ entry point is __declspec( dllexport ) UInt8 Update(unsigned char bForceUpdate). I am using this as a dll import
[DllImport("XbeeFW.dll", EntryPoint = "Update")]
public static extern bool fw(string c);
and call it as fw("TRUE") but get this error "A call to PInvoke function 'Puck Programmer!Puck.Main::fw' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature."
Can some one please help a newbie get this to work?
TIA,
ric32br.

