L
Hallo,
ich hätte nochmal eine Frage zu diesem Thema, allerdings speziell zu Visual C++ 2005 und ActiveX Controls. Wie ich oben schon geschrieben habe, möchte ich jetzt die "2D Graph ActiveX Control" Klasse von CodeProject nutzen. Die Beispiele laufen auch schon toll und ich kann eigentlich alles steuern. Jetzt wollte ich ein eigenes Projekt starten und mal damit rum probieren. Auf der Seite http://www.codeproject.com/KB/miscctrl/ntgraph_activex.aspx steht beschrieben wie man das ActiveX Control einbaut und man es dann nutzt.
You can include the control in your project by following the standard steps for ActiveX controls:
1. Create MFC Dialog project or MDI/SDI project with View class derived from CFormView
2. Choose menu Project|Add To Project|Components and Controls...
3. Open the Registered ActiveX Control gallery
4. Choose the NTGraph Control and click Insert
5. Visual C++ will generate the class CNTGraph
6. Then you can define variable of the type as CNTGraph.
Problem hierbei ist, dass dies für Visual C++ 6.0 beschrieben ist, denn den "Project|Add To Project|Components and Controls..."-Button gibt es nicht mehr. Ich habe nun herusgefunden wie man in Visual C++ 2005 ein ActiveX Control in die ToolBox einfügt und das hat auch geklappt. Allerdings wird mir jetzt nicht wie in VC++ 6.0 automatisch die Klasse NTGraph erstellt. Ich habs in VC++ 6.0 getestet, da funktioniert das einwandfrei, aber ich möchte mein Projekt auf jeden Fall mit VC++ 2005 realisieren.
Kann mir jemand erklären wie ich aus dieser .ocx Datei automatisch die NTGraph Klasse erstellen kann? Wenn das in VC++ 6.0 geht muss es in der 2005er Version doch auch so einfach klappen. Ich weis eben nur nicht wie. Wäre sehr dankbar über eure Hilfe.
VG
Laura