OK, it's fucking stopped working. You may not get a later version, because this bullshit is pissing me off. It won't create the window anymore, even though I DIDN'T FUCKING CHANGE ANY OF THE WINDOW CREATION CODE.
Fucking microsoft.
This is what I have:
ndsconvert.c:
Code:
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hprevinstance, LPSTR lpcmdline, int ncmdshow)
{
   MSG msg;
   ghInstance = hInstance;
   hWindow = CreateDialog(ghInstance, MAKEINTRESOURCE(IDD_DIALOG), NULL, MainCallB);
   if (!hWindow) 
    {
      MessageBox(NULL, "Could not create main dialog", "Error", MB_ICONERROR | MB_OK);
      return 0;
   }
   ShowWindow(hWindow,ncmdshow);
   UpdateWindow(hWindow);
   while(hWindow)
    {
      if (GetMessage(&msg, NULL, 0, 0))
        {
         TranslateMessage(&msg);
         DispatchMessage(&msg);
      }
   }
   return msg.wParam;
}
resource.rc
Code:
#include "Resource.h"
#include <windows.h>
IDD_DIALOG DIALOG DISCARDABLE  0, 0, 240, 104
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "NDS Code Converter v0.5"
FONT 8, "Arial"
BEGIN
    EDITTEXT        IDC_INPUT, 0, 0, 85, 95, ES_AUTOHSCROLL | ES_MULTILINE | ES_AUTOVSCROLL | WS_VSCROLL
    EDITTEXT        IDC_OUTPUT, 155, 0, 85, 95, ES_AUTOHSCROLL | ES_MULTILINE | ES_AUTOVSCROLL | WS_VSCROLL
    COMBOBOX        IDC_COMBO1, 85, 0, 70, 30, CBS_DROPDOWN | CBS_SORT | WS_VSCROLL | WS_TABSTOP
    DEFPUSHBUTTON   "&Convert", ID_CONVERT, 85, 40, 70, 15
    PUSHBUTTON      "Clear", CLEAR_IN, 0, 95, 30, 10
    PUSHBUTTON      "Clear", CLEAR_OUT, 210, 95, 30, 10
    PUSHBUTTON      "About", ABOUT, 155, 95, 30, 10
    PUSHBUTTON      "Version History", VERSION, 30, 95, 54, 10
    CONTROL         "Enable Error", IDC_ERROR, "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 85, 70, 60, 10
    CONTROL         "Enable Warnings", IDC_WARNING, "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 85, 90, 65, 10
    LTEXT           "Messages", IDC_STATIC, 98, 80, 50, 10
END
So what the fuck is going on?
Also:
Solving Y > ~Z & X for X
Would that give me Y | ~Z > X?