NO

Author Topic: Pelles C 2.50  (Read 323 times)

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2131
Pelles C 2.50
« on: November 29, 2024, 08:58:34 PM »
Perhaps a first installer version of Pelles C

code for testing many Pelles C versions and remove registry setting:
Code: [Select]
#define WIN32_LEAN_AND_MEAN
#include <windows.h>

#define NOCRT

#ifdef NOCRT
#pragma nodefaultlib

void __cdecl WinMainCRTStartup(void)
#else
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow)
#endif
{
HKEY hKey;
DWORD dwRC;

dwRC = MessageBox(0, "Remove PellesC reg settings ?", "POCDelRegKey", MB_OKCANCEL);
if (dwRC == MB_OK)
{
hKey = 0;
if (!RegOpenKey(HKEY_CURRENT_USER, "Software\\Pelle Orinius", &hKey))
{
RegDeleteKey(hKey, "PellesC");
RegCloseKey(hKey);
}
}
#ifdef NOCRT
ExitProcess(0); //return;
#else
return 0;
#endif
}
« Last Edit: December 01, 2024, 02:14:42 PM by TimoVJL »
May the source be with you