C# Calling C++ dll

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xjlian
    New Member
    • Jan 2012
    • 1

    C# Calling C++ dll

    C++ calls:

    hData = LoadLibrary("da ta.dll");
    pMemDec=(MyFunc )GetProcAddress (hData,(char*) 11);

    In C# how calls ?
    [DllImport("kern el32.dll", SetLastError = true, CallingConventi on = CallingConventi on.StdCall)]
    public extern static IntPtr GetProcAddress( IntPtr hModule, [MarshalAs(Unman agedType.LPStr)] string lpProcName);
Working...