![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I tried declaring the parameter as int as well as long . Why not the actual enum type? I am getting exception saying parameters are not matching. Can you please post the exact exception type and error message, as well as the signatures (both in C++ and C#) of the function you're caling. Mattias -- Mattias Sjögren [C# MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com Please reply only to the newsgroup. |
#3
| |||
| |||
|
|
kris wrote: public static extern long Connect(string pServer, long port, XMode mode); C# "long" ist 64-bit, so you should use int for port and return value. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |