Du bist nicht angemeldet.

Stilllegung des Forums
Das Forum wurde am 05.06.2023 nach über 20 Jahren stillgelegt (weitere Informationen und ein kleiner Rückblick).
Registrierungen, Anmeldungen und Postings sind nicht mehr möglich. Öffentliche Inhalte sind weiterhin zugänglich.
Das Team von spieleprogrammierer.de bedankt sich bei der Community für die vielen schönen Jahre.
Wenn du eine deutschsprachige Spieleentwickler-Community suchst, schau doch mal im Discord und auf ZFX vorbei!

Werbeanzeige

1

09.12.2009, 15:25

Probleme bei Allgemeines.rc

Hallo ich habe wie im Buch beschrieben die Datei Allgemeines.rc in mein Projekt eingebunden. Beim Compilieren bekomme ich nun den folgenden Fehler :

Quellcode

1
error RC2104 : undefined keyword or key name: DS_SETFONT

2

10.12.2009, 08:38

Weiß keiner eine Antwort oder jemad eine Idee.

3

10.12.2009, 09:31

Steht in der RC was von afxres.h?

Je nach SDK:

Ersetze afxres.h durch windows.h

und/oder füge in den Projekteinstellungen unter Ressourcen - Zusätzliche Includeverzeichnisse den Pfad zum Ordner include und zum Ordner include\mfc hinzu.

4

10.12.2009, 10:22

Aber er sagt mir doch das er ein Smybol nicht kennt. Ubn die windows.h habe ich doch schon in der main funktion eingebunden.

Du uhast von Include Verzeichnissen gesprochen . Meinst du das von der SdK - das habe ich ja schon drin.
Ansonstzen verwende ich das aus dem Buch .

5

10.12.2009, 17:01

Leider hat das nichts gebracht.
hier mla die datei allgemeins.rc :

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
// Microsoft Visual C++ generated resource script.
//
#include "Allgemeines.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
//#include "mfc/afxres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// Deutsch (Deutschland) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU)
#ifdef _WIN32
//LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
#pragma code_page(1252)
#endif //_WIN32

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE 
BEGIN
    "Allgemeines.h\0"
END

2 TEXTINCLUDE 
BEGIN
    "#include ""windows.h""\r\n"
    "\0"
END

3 TEXTINCLUDE 
BEGIN
    "\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_DIRECT3D_SETTINGS DIALOGEX 0, 0, 364, 236
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | 
    WS_CAPTION | WS_SYSMENU
CAPTION "Direct3D-Einstellungen"
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
    LTEXT           "Wählen Sie einen &Adapter:",IDC_STATIC,6,6,86,8
    COMBOBOX        IDC_D3DS_ADAPTERS,96,6,126,60,CBS_DROPDOWNLIST | 
                    WS_VSCROLL | WS_TABSTOP
    LTEXT           "&Gerätetyp:",IDC_STATIC,6,24,36,8
    COMBOBOX        IDC_D3DS_DEVICE_TYPES,96,24,126,60,CBS_DROPDOWNLIST | 
                    WS_VSCROLL | WS_TABSTOP
    LTEXT           "Fenstermodus oder Vollbildmodus?",IDC_STATIC,6,48,78,18
    CONTROL         "&Fenstermodus",IDC_D3DS_WINDOWED_MODE,"Button",
                    BS_AUTORADIOBUTTON,96,48,61,10
    CONTROL         "&Vollbildmodus",IDC_D3DS_FULLSCREEN_MODE,"Button",
                    BS_AUTORADIOBUTTON,96,60,58,10
    LTEXT           "Vi&deomodus:",IDC_STATIC,6,78,42,8
    COMBOBOX        IDC_D3DS_VIDEO_MODES,96,78,126,120,CBS_DROPDOWNLIST |
                    WS_VSCROLL | WS_TABSTOP
    LTEXT           "Bild&pufferformat:",IDC_STATIC,6,96,56,8
    COMBOBOX        IDC_D3DS_BACK_BUFFER_FORMATS,96,96,126,60,
                    CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
    LTEXT           "&Z-Stencil-Buffer-Format:",IDC_STATIC,6,114,79,8
    COMBOBOX        IDC_D3DS_Z_STENCIL_BUFFER_FORMATS,96,114,126,60,
                    CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
    LTEXT           "Multi-Sampling-&Typ:",IDC_STATIC,6,132,64,8
    COMBOBOX        IDC_D3DS_MULTI_SAMPLING_TYPES,96,132,126,60,
                    CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
    LTEXT           "Multi-Sampling-&Qualität:",IDC_STATIC,6,150,77,8
    COMBOBOX        IDC_D3DS_MULTI_SAMPLING_QUALITIES,96,150,126,60,
                    CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
    LTEXT           "Ha&rdware oder Softwaretransformation und -Beleuchtung?",
                    IDC_STATIC,6,174,78,24
    CONTROL         "&Hardware",IDC_D3DS_HARDWARE_TNL,"Button",
                    BS_AUTORADIOBUTTON,95,175,47,10
    CONTROL         "&Software",IDC_D3DS_SOFTWARE_TNL,"Button",
                    BS_AUTORADIOBUTTON,95,185,44,10
    DEFPUSHBUTTON   "&OK",IDC_D3DS_OK,305,210,50,18
    PUSHBUTTON      "A&bbrechen",IDC_D3DS_CANCEL,251,210,50,18
    LTEXT           "Beschreibung und Hinweise:",IDC_STATIC,234,6,90,8
    EDITTEXT        IDC_D3DS_DESCRIPTION,234,18,120,187,ES_MULTILINE | 
                    ES_AUTOVSCROLL | ES_READONLY | ES_WANTRETURN
    PUSHBUTTON      "Spe&ichern...",IDC_D3DS_SAVE,5,210,50,18
    PUSHBUTTON      "&Laden...",IDC_D3DS_LOAD,59,210,50,18
END


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO 
BEGIN
    IDD_DIRECT3D_SETTINGS, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 357
        TOPMARGIN, 7
        BOTTOMMARGIN, 229
    END
END
#endif    // APSTUDIO_INVOKED

#endif    // Deutsch (Deutschland) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//


/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

6

10.12.2009, 19:49

//#include "mfc/afxres.h"

Auskommentiert?

7

10.12.2009, 19:52

Ja aber das habe ich nicht gemacht.
Soll ich das wieder hineinkommentieren ?

Danke

8

10.12.2009, 19:59

Sei ruhig etwas experimentierfreudiger ! ;)

9

10.12.2009, 19:59

Was meinst du damit ?

10

10.12.2009, 20:01

Wenn ich es hineinnehme kommt :

Quellcode

1
cannot open include file 'mfc/afxres.h'.

Werbeanzeige