dgdg Posted July 17, 2006 Share Posted July 17, 2006 Because I can not believe that there is nobody here with C++ Builder experience, I start a new topic with a suitable title: I switched to Borland C++ Builder 4 because from VBS I can not use the Windows API (and I do not want to start MS Access each time to execute mit VBA scripts ) I managed to include the DVBViewer type library in my C++ project and now I see all the types like IDVBOSDDispT etc. in die class tree. But now I have the same problem as in VBA and VBS. I do not know how to access the COM object. What's the C++ Builder equivalent for this VBS code: Set myDVBViewer = GetObject(, "DVBViewerServer.DVBViewer") Set OSD = myDVBViewer.OSD call OSD.ShowInfoinTVPic("Hello DVBViewer", 3000) Who can give ma a short example ? Thx, dgdg Quote Link to comment
dgdg Posted July 17, 2006 Author Share Posted July 17, 2006 (edited) Ich hab's rausgefunden: Variant myDVB; myDVB = GetOleObject("DVBViewerServer.DVBViewer"); myDVB.OlePropertyGet("OSD").OleProcedure("ShowInfoinTVPic", "Hello DVBViewer", 3000); Ist aber ganz schön mühsam, weil so richtig beschrieben ist das nirgends. Ich habe dann irgendwann ein Beispiel für das Eintragen von Daten in eine Excel-Tabelle gefunden. Jetzt versuche ich rauszukriegen, wie man ohne die Borland VCL an die Winodws-Bildschirmkonfiguration rankommt - genauer Anzahl und Koordinaten der Monitore. Mal schauen, ob das auch wieder zwei Tage dauert Ist halt mühsam, wenn man von Windows-Programmierung und der Windows-API keine Ahnung hat. Gruß, dgdg Edited July 17, 2006 by dgdg Quote Link to comment
Benson Posted July 17, 2006 Share Posted July 17, 2006 C# ist IMHO eventuell etwas einfacher, da gibt es auch einen relativ ausführlichen Thread hier zu, der schon fast Tutorial-Charakter hat (ging um EPG-Suche und ist ungefähr ein Jahr alt). Für C# gibt es mit SharpDevelop auch eine freie Entwicklungsumgebung, die ganz brauchbar ist. In der aktuellen Version ist auch endlich ein Debugger dabei. Quote Link to comment
dgdg Posted July 18, 2006 Author Share Posted July 18, 2006 (edited) Für C# gibt es mit SharpDevelop auch eine freie Entwicklungsumgebung, die ganz brauchbar ist. In der aktuellen Version ist auch endlich ein Debugger dabei. Damit wurde vorher ohne Debugger entwickelt ? Da kann man ja gleich VBS machen Nee, ein professionelles Programmiertool muss es schon sein. Deswegen geht der C++ Builder schon in Ordnung. Die Sprache ist auch nicht das Problem (mache seit 15 Jahren C, aber eben nicht unter Windows). Die Windows-API ist das Problem. Gruß, dgdg Edited July 18, 2006 by dgdg Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.