Jump to content

DVBViewer COM with Borland C++ Builder


Recommended Posts

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 :bye:)

 

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

Link to comment

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 :bye:

 

Ist halt mühsam, wenn man von Windows-Programmierung und der Windows-API keine Ahnung hat. :)

 

Gruß, dgdg

Edited by dgdg
Link to comment

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.

Link to comment
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 ? :bye:

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 by dgdg
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...