User Profile
Collapse
-
The dll is regularly compiled -
Great Difficulty calling c++ dll from c#
I am using c# 2010 and need to call a method in an old c++ dll
It keeps giving me the following error:
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
The function I am trying to call in the dll is
void handle_str_ni(L PCSTR lpcstrCommandLi ne);
So far this is my code :
Code:[DllImport((@"c:\Mydll.dll"),
No activity results to display
Show More
Leave a comment: