MastaEda
08.06.2002, 01:15
Hallo!
Ich hab ein kleines Problem mit Dialogen:
Wenn ich compiliere bringt er 0 Fehler und 0 Warnungen aber wenn ich linke bringt er folgendes:
Loaded 'C:\WINDOWS\SYSTEM\ADVAPI32.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM\GDI32.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM\KERNEL32.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM\USER32.DLL', no matching symbolic information found.
The thread 0xFFE72CED has exited with code 0 (0x0).
The program 'C:\Windows\Desktop\windows directx mfc\dialog\dialog2\Debug\dialog2.exe' has exited with code 0 (0x0).
Das ganze mit diesem Code:
#include <windows.h>
#include "resource.h"
#define BUFFER_SIZE 256
BOOL CALLBACK EditDlgProc(HWND hwnd,UINT Message, WPARAM wParam, LPARAM lParam)
{
char szText[BUFFER_SIZE];
switch(Message)
{
case WM_INITDIALOG:
SendDlgItemMessage(hwnd, IDC_EDIT1, EM_SETLIMITTEXT,
(WPARAM)BUFFER_SIZE - 1, (LPARAM)0);
return TRUE;
case WM_COMMAND:
switch(LOWORD(wParam))
{
case IDOK:
GetDlgItemText(hwnd, IDC_EDIT1, szText, BUFFER_SIZE);
SetWindowText(hwnd, szText);
return TRUE;
case IDCANCEL:
EndDialog(hwnd, IDCANCEL);
return TRUE;
}
break;
}
return FALSE;
}
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
DialogBox(hInstance, "EDITDLG", 0, EditDlgProc);
return 0;
}
Ich hab ein kleines Problem mit Dialogen:
Wenn ich compiliere bringt er 0 Fehler und 0 Warnungen aber wenn ich linke bringt er folgendes:
Loaded 'C:\WINDOWS\SYSTEM\ADVAPI32.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM\GDI32.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM\KERNEL32.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\SYSTEM\USER32.DLL', no matching symbolic information found.
The thread 0xFFE72CED has exited with code 0 (0x0).
The program 'C:\Windows\Desktop\windows directx mfc\dialog\dialog2\Debug\dialog2.exe' has exited with code 0 (0x0).
Das ganze mit diesem Code:
#include <windows.h>
#include "resource.h"
#define BUFFER_SIZE 256
BOOL CALLBACK EditDlgProc(HWND hwnd,UINT Message, WPARAM wParam, LPARAM lParam)
{
char szText[BUFFER_SIZE];
switch(Message)
{
case WM_INITDIALOG:
SendDlgItemMessage(hwnd, IDC_EDIT1, EM_SETLIMITTEXT,
(WPARAM)BUFFER_SIZE - 1, (LPARAM)0);
return TRUE;
case WM_COMMAND:
switch(LOWORD(wParam))
{
case IDOK:
GetDlgItemText(hwnd, IDC_EDIT1, szText, BUFFER_SIZE);
SetWindowText(hwnd, szText);
return TRUE;
case IDCANCEL:
EndDialog(hwnd, IDCANCEL);
return TRUE;
}
break;
}
return FALSE;
}
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
DialogBox(hInstance, "EDITDLG", 0, EditDlgProc);
return 0;
}