随笔分类 -  C++

PInvoke .NET ~ C++
摘要:http://www.codeproject.com/KB/dotnet/PInvoke.aspx PInvoke is the mechanism by which .NET languages can call unmanaged functions in DLLs. This is especially useful for calling Windows API functions tha... 阅读全文
posted @ 2010-02-26 14:08 jerry data 阅读(606) 评论(0) 推荐(0)
how to call the member function?( C++ ) . or ->
摘要:// Declare a new object of type Point. Point ptOrigin; // Member function calls use the . member-selection operator. ptOrigin.SetX( 0 ); ptOrigin.SetY( 0 ); // Declare a pointer to an object of... 阅读全文
posted @ 2010-02-05 14:30 jerry data 阅读(150) 评论(0) 推荐(0)
关于导出函数
摘要:在函数前面加上 __declspec(dllexport) 即可。例如:__declspec(dllexport) int mySum(int a, int b){……} dumpbin.exedepends.exe (http://www.dependencywalker.com/)真是两个好工具,检测dll导出的函数的名称。 阅读全文
posted @ 2008-10-22 23:24 jerry data 阅读(201) 评论(0) 推荐(0)