das hier in der BetaPatchClient.cpp
Code:
BOOL CBetaPatchClientApp::InitInstance()
{
AfxEnableControlContainer();
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
BOOL bSkipPatch = FALSE;
CHECK_TYPE type = CheckSingleInstance();
switch( type )
{
case CHECK_FALSE:
return FALSE;
case CHECK_SKIP:
RunClient();
return FALSE;
}
Code:
BOOL CBetaPatchClientApp::InitInstance()
{
AfxEnableControlContainer();
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
BOOL bSkipPatch = FALSE;
[COLOR="SeaGreen"]//CHECK_TYPE type = CheckSingleInstance();[/COLOR]
[COLOR="SeaGreen"]//switch( type )[/COLOR]
[COLOR="SeaGreen"]//{[/COLOR]
[COLOR="SeaGreen"]//case CHECK_FALSE:[/COLOR]
[COLOR="SeaGreen"]// return FALSE;[/COLOR]
[COLOR="SeaGreen"]//case CHECK_SKIP:[/COLOR]
RunClient();
[COLOR="SeaGreen"]// return FALSE;[/COLOR]
[COLOR="SeaGreen"]//}[/COLOR]
nun sollte der Patcher sich mehrfach starten lassen und nicht mehr schreiben: Das Pach Programm wird geladen.
MfG
hanns.g






