Einzelnen Beitrag anzeigen

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