程序代码:
#include <windows.h>
int i=0;
extern "C" _declspec(dllexport) void dec2yyy(int yyy,int source,char* bin)
{
if(source==0) return;
dec2yyy(yyy,source/yyy,bin);
if((source%yyy)<10) bin[i]=(char)(source%yyy+0x30);
else bin[i]=(char)(source%yyy+0x37);
i++;
}
BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call,LPVOID lpReserved)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
{
//
}
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
我就是这么调用的 这是dll中的