vc生成dll

#include "stdafx.h"
#include <process.h>
BOOL APIENTRY DllMain( HANDLE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
      )
{
    return TRUE;
}

extern "C" void __declspec(dllexport)rundos(char cmd[])
{
 system(cmd);
}

posted @ 2007-03-09 20:23  ahuo  阅读(1299)  评论(0编辑  收藏  举报