AGB  ·  Datenschutz  ·  Impressum  







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

dll als Ressource in Delphi7

Ein Thema von schmidtf.bz · begonnen am 14. Mai 2006 · letzter Beitrag vom 15. Mai 2006
Antwort Antwort
schmidtf.bz

Registriert seit: 11. Mai 2006
2 Beiträge
 
#1

dll als Ressource in Delphi7

  Alt 14. Mai 2006, 17:42
Hi,

ich habe folgendes Problem:
möchte eine dll als Resource nutzen, aber ich habe noch
keine Ahnung wie ich diese unter Delphi7 in mein Programm
einbinden kann, um die dll wie in Visual Basic (siehe Code-
Beispiel) anzusprechen. In VB füge ich die dll als Resource
dem Projekt hinzu (ist ein Objektmodell eines Visualisierungs-
systems) und kann sie dann über RSView32.xxx ansprechen.



VB-Beispiel:

Code:
Option Explicit

Public gMyAppl As RSView32.Application
Public gMyProj As RSView32.Project
Public gAllNodes As Nodes


Private Sub Form_Load()

On Error GoTo ErrHandler

' RSView32 must be running with a project open
Set gMyAppl = New RSView32.Application
' The project object is global, and used to access the tagdb object later
Set gMyProj = gMyAppl.ActiveProject
' the nodes object is used to create / verify the node for the tags
Set gAllNodes = gMyProj.Nodes
'select a listbox item as default
lstDataTyp.ListIndex = 0
lstStrArray.ListIndex = 0
ErrHandler:
   If Err Then
       'Display the error to the user
       MsgBox Err.Description
   End If
End Sub
...
...
Bin für jede Hilfe dankbar.
Gruß
Frank
  Mit Zitat antworten Zitat
Benutzerbild von DGL-luke
DGL-luke

Registriert seit: 1. Apr 2005
Ort: Bad Tölz
4.149 Beiträge
 
Delphi 2006 Professional
 
#2

Re: dll als Ressource in Delphi7

  Alt 14. Mai 2006, 17:57
Ich nehme mal an, das wird über Hier im Forum suchenCOM eingebunden. Das geht auch in Delphi, glaube ich.
Lukas Erlacher
Suche Grafiktablett. Spenden/Gebrauchtangebote willkommen.
Gotteskrieger gesucht!
For it is the chief characteristic of the religion of science that it works. - Isaac Asimov, Foundation I, Buch 1
  Mit Zitat antworten Zitat
schmidtf.bz

Registriert seit: 11. Mai 2006
2 Beiträge
 
#3

Re: dll als Ressource in Delphi7

  Alt 14. Mai 2006, 21:09
Ich denke auch das über COM gehen muss, die
Frage ist aber wie...? Habe einfach keinen
Ansatz zur Lösung des Problems.
  Mit Zitat antworten Zitat
Benutzerbild von DGL-luke
DGL-luke

Registriert seit: 1. Apr 2005
Ort: Bad Tölz
4.149 Beiträge
 
Delphi 2006 Professional
 
#4

Re: dll als Ressource in Delphi7

  Alt 15. Mai 2006, 14:40
Ich glaube, du musst da eine typenbibliothek (Hier im Forum suchentypelib) einbinden. Dann kannst du auf das entsprechende Interface zugreifen.
Lukas Erlacher
Suche Grafiktablett. Spenden/Gebrauchtangebote willkommen.
Gotteskrieger gesucht!
For it is the chief characteristic of the religion of science that it works. - Isaac Asimov, Foundation I, Buch 1
  Mit Zitat antworten Zitat
Antwort Antwort


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 09:30 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