ResEdit 1.5.11 - X64 macht Quatsch beim Speichern als C++ Code



  • Wenn ich mit ResEdit einen Dialog als C++ Code abspeicher, dann generiert mir das Programm lauter \001 in der Ausgabedatei. Ist das ein bekannter Bug? Kann man ihn umgehen?
    Die Datei lässt sich natürlich auch nicht kompilieren, wenn man sie in ein WinApi Rahmenprogramm einbindet.

    Unten ein Ausschnitt aus dem generierten C++ Code (Das was als Kästchen erscheint sind die \001 ASCII Zeichen):

    HWND hCtrl0_0 = CreateWindowEx(0, WC_BUTTON, ("OK"), WS_VISIBLE | WS_CHILD | WS_TABSTOP | 0x00000001, 45, 244, 75, 23, hwnd, (HMENU)IDB_CHECKSETTINGS_OK, hInst, 0);
    SendMessage(hCtrl0_0, WM_SETFONT, (WPARAM), FALSE);
    HWND hCtrl0_1 = CreateWindowEx(0, WC_BUTTON, ("Abbrechen"), WS_VISIBLE | WS_CHILD | WS_TABSTOP, 188, 244, 75, 23, hwnd, (HMENU)IDB_CHECKSETTINGS_CANCEL, hInst, 0);
    SendMessage(hCtrl0_1, WM_SETFONT, (WPARAM), FALSE);
    HWND hCtrl0_2 = CreateWindowEx(0, WC_LISTBOX, 0, WS_VISIBLE | WS_CHILD | WS_TABSTOP | WS_VSCROLL | WS_BORDER | LBS_NOINTEGRALHEIGHT | LBS_NOTIFY, 8, 8, 143, 229, hwnd, (HMENU)IDL_CHECKSETTINGS_NAMES, hInst, 0);
    SendMessage(hCtrl0_2, WM_SETFONT, (WPARAM), FALSE);
    HWND hCtrl0_3 = CreateWindowEx(0, WC_LISTBOX, 0, WS_VISIBLE | WS_CHILD | WS_TABSTOP | WS_VSCROLL | WS_BORDER | LBS_NOINTEGRALHEIGHT | LBS_NOTIFY, 150, 8, 143, 229, hwnd, (HMENU)IDL_CHECKSETTINGS_VALUES, hInst, 0);
    SendMessage(hCtrl0_3, WM_SETFONT, (WPARAM), FALSE);
    wcex.style = CS_HREDRAW | CS_VREDRAW;
    wcex.lpfnWndProc = DefWindowProc;
    wcex.hInstance = hInst;
    wcex.hIcon = LoadIcon(0, (LPCTSTR)IDI_APPLICATION);
    wcex.hCursor = LoadCursor(NULL, IDC_ARROW);



  • MC schrieb:

    Das was als Kästchen erscheint sind die \001 ASCII Zeichen

    Wo? Welche Kästchen?

    Ach, meinst du das:

    
    

    ?
    Nein, das ist nicht normal. K.a. wo das herkommt.
    An der Stelle sollte ein Font-Handle oder 0 stehen.

    Vielleicht einfach ein Bug in ResEdit?


Anmelden zum Antworten