AGB  ·  Datenschutz  ·  Impressum  







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

VarPtr in Delphi ?

Ein Thema von goose33 · begonnen am 17. Sep 2005 · letzter Beitrag vom 17. Sep 2005
 
goose33

Registriert seit: 26. Okt 2004
Ort: Merseburg
49 Beiträge
 
#1

VarPtr in Delphi ?

  Alt 17. Sep 2005, 02:30
Hallo,

eine Frage:
Ich hab wiedermal ein Stück c++ die ich nicht nach Delphi
übersetzen kann. Vielleicht kann jemand helfen ?

Hier der Code :

Delphi-Quellcode:
Here is the modified code that will do the job

Dim dwResult as Long
Dim dwString as string
Dim b(23) as byte 'defined a byte array (24 values)
Dim result as string
'will contain the final string
Dim i as integer

FSUIPC_Initialization

If FSUIPC_Open(SIM_ANY, dwResult) Then
If FSUIPC_Read (&H3160,24,VarPtr (b(0)), dwResult) Then 'read all bytes at offset &H3160 in byte array
If FSUIPC_Process(dwResult) Then
For i=0 to 255
If b(i)=0 then exit for
'leave at 0 terminator
result=result+Chr(b(i)) 'otherwise adds to result (don't forget the Chr)
Next
End If
End If
FSUIPC_Close
EndIf
Das müsste ich irgendwie in Delphi zustande bekommen

Wie mach ich das ? Die frage ist dieses "VarPtr (b(0))" hauptsächlich und wie ich die Variable b definieren muss ?

Dank Euch
Matthias
  Mit Zitat antworten Zitat
 


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:27 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz