Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-08

Using 64 bit ActiveX (Volume Shadow Service)

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Tobias Giesen

Hello,

I am trying to use the VSS API in a 64-bit application. I am attaching the files translated from the Microsoft headers with which I am trying to access the API. This works fine in 32-bit Delphi but it crashes in 64-bit Lazarus. Apparently the interface declarations are not quite correct for 64-bit mode.

Any ideas what I could do? Can I debug this in a CPU view, maybe with Visual Studio?

Cheers,
Tobias

-------------- next part --------------
A non-text attachment was scrubbed...
Name: VssAPI_2003.pas
Type: application/octet-stream
Size: 11418 bytes
Desc: not available
Url : http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080819/c6fa1f93/attachment-0002.obj -------------- next part --------------
A non-text attachment was scrubbed...
Name: VssAPI_Common.pas
Type: application/octet-stream
Size: 6733 bytes
Desc: not available
Url : http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080819/c6fa1f93/attachment-0003.obj

Reply by email

Luk Vandelaer
to Tobias Giesen
Tobias Giesen wrote 8 lines
Hello, I am trying to use the VSS API in a 64-bit application. I am attaching the files translated from the Microsoft headers with which I am trying to access the API. This works fine in 32-bit Delphi but it crashes in 64-bit Lazarus. Apparently the interface declarations are not quite correct for 64-bit mode.

The problem is the pointers: on 64-bit platforms, they will have a size of 8, on 32-bit platforms the size will be 4.

Luk

Reply by email