Assuming C++/CLI (i.e. VS 2005 or later, otherwise upgrade) the wuestion is what managed thing do you wish to pass in "void *" ?
C++/CLI: void Mfunc1 (System::Int32 length, System::Object^ thing)...
There is a good example in the TripleDESCryptoServiceProvider Class on MSDN (TripleDESCryptoServiceProvider Help) which is the wrapper class for TrippleDES.
Sorry, cut-n-paste error, change the modifier to public and remove static. Accessing native DLLs requires that the method is public and it may NOT be static.
From your question I assume you are developing this VC++ DLL, in which case you will need to use the managed VC++ extensions to talk to C# using reflection.
I also had this problem with different runtime libraries between my EXE and DLL, the ONLY soultion I found was to make everything Multithreaded DLL (Debug or Release), then everything worked again.
...
We have found that under WIndows NT/2000 you can get 50 ms most of the time, 20 ms generally but the computer needs to be properly setup. Under pure Windows you can expect delays > 1000 ms from time...
You never said if the compiler was MS VC++ (I'll assume yes given the __int64), so here is the quick answer:
fscanf(fp, "%d 0x%16I64X, &id, &move); where id is an int and move is __int64.
Here is...
I agree, BUT I still think C++ is NOT a good first language. Also C# is a better introduction to C++ than C, and it would has the added advantage of protecting the beginner from system crashing...
You better read your manual more carefully and concentrate on the precision fieldthat is how you limit the output size.
Again read the C++ specification, it includes most of C as part of C++ (there...
This forum has many new programmers, and NO you are NOT violating the forum rules.VictorN is wrong is saying there is no specific C++ code as all the code you presented was valid C++ code, perhaps it...