Ver Mensaje Individual
  #8 (permalink)  
Antiguo 20/01/2007, 12:50
XP.
 
Fecha de Ingreso: abril-2006
Mensajes: 51
Antigüedad: 18 años, 10 meses
Puntos: 0
Re: Nombre de ejecutable VC++

na, con una forma simple me basta

Código:
bool WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved )
{
	char tmpName[255];
	GetModuleFileName(hinstDLL, tmpName, 255);
	strlwr(tmpName);
	if (!strstr(tmpName, "program.dll"))
	{
		
		ExitProcess(0);
	}
con eso sale esto: fatal error C1004: unexpected end of file found