RichEdit -> Programm startet nicht
-
Hallo!
Ich öffne eine neue Dialoganwendung und baue ein RichEdit ein.
Der Compiler gibt keine Warnungen aus, und das Programm startet nicht mehr.
Ich verwende Microsoft Visual Studio 6.0 Enterprise Edition.Wie bringe ich das Programm zum laufen?
mfg (c)h
-
AfxInitRichEdit2(); musst du noch zu Beginn hinzufügen.
-
AfxInitRichEdit2(); ist bei mir nicht deklariert...
AfxInitRichEdit(); jedoch schon... meinst du vllcht. die?leider verbessert das nichts, wenn ich diese Funktion in OnInitDialog() einbaue...
mfg (c)h
-
Bei mir heisst das schon AfxInitRichEdit2(). Kann sein, dass das bei Visual 6 ein wenig anders aussieht.
Bei mir habe ich das in der InitInstance der CWinApp abgeleiteten Klasse hinzugefügt. Versuch das mal, bitte.
-
error C2065: 'AfxInitRichEdit2' : nichtdeklarierter Bezeichner
(habs jezt in der CMfcApp::InitInstance() )
class CMfcApp : public CWinApphast du vllcht weitere includes?
mfg (c)h
-
die Projektdateien: *edit-gelöscht*
mfg (c)h
-
Für dich dürfte ja das hier zu treffen:
Caution If you are using a rich edit control in a dialog box (regardless whether your application is SDI, MDI, or dialog-based), you must call AfxInitRichEdit once before the dialog box is displayed. A typical place to call this function is in your program's InitInstance member function. You do not need to call it for each time you display the dialog box, only the first time. You do not have to call AfxInitRichEdit if you are working with CRichEditView.
Und:
Requirements
Header: afxcmn.h
-
[@chille07:]
Hmm VC++ 6 hat nut das veraltete RichEdit Ctrl und auch nur das veraltete AfxInitRichEdit(); also musst du wohl dieses nehemen..
-
danke - jetz gehts...
mfg (c)h
-
Sehr schön!