摘要:
VC中的DLL代码: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include #include #include extern "C" _declspec(dllexport) char* GetChar(HWND handle,in... 阅读全文
摘要:
C#导入DLL时,参数怎么定义是一个比较头痛的问题。特别是指针类型的参数,关于此问题本人有点不成熟的经验。 以 GetComputerName这个函数为例。 函数原型如下 BOOL GetComputerName( LPTSTR lpBuffer, LPDWORD lpnSize ); 这个lpBuffer就是下个string型的指针,其实无论是什么类型的指针,对于... 阅读全文