level 1
#include "stdafx.h" BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { MessageBox(NULL, "This is in test DLL", "OK", MB_OK); return TRUE; } __dec
lsp
ec(dllexport) int TestExport( ) { return 1; } int Testln( ) { return 2; } int TestDef( ) { return 3; } 这是个Win32 DLL程序... 请问有错么? 为什么用Visual Studio编译的时候提示: error C2664: “MessageBoxW”: 不能将参数 2 从“const char [20]”转换为“LPCWSTR”与指向的类型无关;转换要求 reinterpret_cast、C 样式转换或函数样式转换 高手们帮帮我!
2006年09月16日 09点09分
1
lsp
ec(dllexport) int TestExport( ) { return 1; } int Testln( ) { return 2; } int TestDef( ) { return 3; } 这是个Win32 DLL程序... 请问有错么? 为什么用Visual Studio编译的时候提示: error C2664: “MessageBoxW”: 不能将参数 2 从“const char [20]”转换为“LPCWSTR”与指向的类型无关;转换要求 reinterpret_cast、C 样式转换或函数样式转换 高手们帮帮我!