AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Problem importing a type library

Ein Thema von Mr.Sade · begonnen am 24. Jun 2003 · letzter Beitrag vom 25. Jun 2003
Antwort Antwort
Seite 2 von 2     12   
Mr.Sade

Registriert seit: 25. Feb 2003
17 Beiträge
 
Delphi 6 Enterprise
 
#11
  Alt 24. Jun 2003, 22:08
S - tefano:
Yes it is msmsgr.exe + '\3'
I am attaching a picture so you can see the path.
When I try to import the exe, "Messenger Type Library" appears on Delphi list, but as you can see, I need the one with the "\3" which is "Messenger API Type Library" at the end.
Cool, I will try to extract the library as tlb with resource hacker, good idea man :)

sakura:
I have the update 2 for Delphi6, but I also own Delphi 7 Enterprise, and the same problem occurs.

Thank you guys
Miniaturansicht angehängter Grafiken
vbreference.jpg  
Mr.Sade
  Mit Zitat antworten Zitat
Benutzerbild von S - tefano
S - tefano

Registriert seit: 16. Dez 2002
Ort: Dülmen
477 Beiträge
 
Delphi 2009 Professional
 
#12
  Alt 24. Jun 2003, 22:40
Hope you can solve the problem by going that resource way, unfortunately there are no furhter ideas on my side....
Maybe its also just a little too late for thinking on that level.

Goodnight,

S - tefano
"Sir, we are surrounded!" - "Excellent, we can attack in every direction!"
  Mit Zitat antworten Zitat
Mr.Sade

Registriert seit: 25. Feb 2003
17 Beiträge
 
Delphi 6 Enterprise
 
#13
  Alt 24. Jun 2003, 23:48
Cool
It worked!!!
I extracted the third typelib file from the msmsgs.exe and then I save it as MessengerAPI.tlb then I imported the tlb and it worked.
The only problem now is that I can not create a component from it, so I think I have to edit this pas file manually to create a class and then create the component.

The problem I think was that delphi looks for the first .tbl file inside the exe, and ignores the other ones.

I am attaching the pas file, it is to control msn messenger 6
Thank You S - tefano
Angehängte Dateien
Dateityp: pas messengerapi_tlb.pas (44,6 KB, 12x aufgerufen)
Mr.Sade
  Mit Zitat antworten Zitat
Benutzerbild von S - tefano
S - tefano

Registriert seit: 16. Dez 2002
Ort: Dülmen
477 Beiträge
 
Delphi 2009 Professional
 
#14
  Alt 25. Jun 2003, 14:02
Hello,

I didn't read that code quite carefully, but it does not seem to be a visual component.
So, is it really necessary to build one of it?
Before you try to do that, maybe you could try just to get the .pas file without the extension into the uses-list of the unit that has to use this control.
Then you can call functions like create, createnative, or access properties and methods of the class IMessenger3.

Good luck,

S - tefano
"Sir, we are surrounded!" - "Excellent, we can attack in every direction!"
  Mit Zitat antworten Zitat
Mr.Sade

Registriert seit: 25. Feb 2003
17 Beiträge
 
Delphi 6 Enterprise
 
#15
  Alt 25. Jun 2003, 16:15
It is not necessary to build one.
I am just gonna use the pas file.
Mr.Sade
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 2 von 2     12   


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 13:04 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz