The-Drag-and-Drop-Component-Suite-for-Delphi icon indicating copy to clipboard operation
The-Drag-and-Drop-Component-Suite-for-Delphi copied to clipboard

Outlook demo not working on win64

Open markwilliams1234 opened this issue 4 years ago • 6 comments

I am running outlook in 64 bit and I have compiled the outlook demo in 64 bit (Delphi 10.4). When I try and drag an email into the app it is not accepted and the cursor icon never changes from the barred icon.

markwilliams1234 avatar Nov 04 '20 13:11 markwilliams1234

which demo?

Outlook or OutlookSource ?

landrix avatar Nov 04 '20 13:11 landrix

Didn’t realise (until now) there were two.

I am having a problem with the Outlook demo, but have also tried the Outlook Source just now and same problem. However, I don’t think Outlook Source is set up to handle drag & drop direct from outlook.

__

From: Sven Harazim [email protected] Sent: 04 November 2020 13:46 To: landrix/The-Drag-and-Drop-Component-Suite-for-Delphi [email protected] Cc: markwilliams1234 [email protected]; Author [email protected] Subject: Re: [landrix/The-Drag-and-Drop-Component-Suite-for-Delphi] Outlook demo not working (#45)

which demo?

Outlook or OutlookSource ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/landrix/The-Drag-and-Drop-Component-Suite-for-Delphi/issues/45#issuecomment-721740286 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AIQTYJOHALUWXJJB7YMJKG3SOFLH5ANCNFSM4TKBTQJQ .

markwilliams1234 avatar Nov 04 '20 14:11 markwilliams1234

you are right, mapi don't works currently under win64. i don't have any solution for this. It has nothing directly to do with drag and drop. for me, the application crash at MAPIInitialize

landrix avatar Nov 04 '20 15:11 landrix

OK. Thanks.

__

From: Sven Harazim [email protected] Sent: 04 November 2020 15:33 To: landrix/The-Drag-and-Drop-Component-Suite-for-Delphi [email protected] Cc: markwilliams1234 [email protected]; Author [email protected] Subject: Re: [landrix/The-Drag-and-Drop-Component-Suite-for-Delphi] Outlook demo not working (#45)

you are right, mapi don't works currently under win64. i don't have any solution for this. It has nothing directly to do with drag and drop.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/landrix/The-Drag-and-Drop-Component-Suite-for-Delphi/issues/45#issuecomment-721801945 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AIQTYJIN6CSNNTFTBEXH4HDSOFXY7ANCNFSM4TKBTQJQ .

markwilliams1234 avatar Nov 04 '20 18:11 markwilliams1234

Hi, The problem is in the MAPIUtil.pas unit. the headers are different if accessing with Win64bits application. you have to remove the 'Historic Stack correction' example : HrGetOneProp:=GetProcAddress(MAPIDLLHandle,'HrGetOneProp@12'); must be replaced by HrGetOneProp:=GetProcAddress(MAPIDLLHandle,'HrGetOneProp');

see this documentation : https://social.msdn.microsoft.com/Forums/vstudio/en-US/8d283d08-00fa-4e84-a96a-61b226f526e2/outlook-2010-mapi-headers?forum=vsto

See attached correction. [MAPIUtil.pas](url MAPIUtil.pas.txt )

Ben-Silicon avatar May 24 '21 13:05 Ben-Silicon

Hi,

Thanks for posting this fix and apologies for delay in responding. Will give this a try and report back if any issues.

Mark

__

From: Ben-Silicon @.> Sent: 24 May 2021 14:15 To: landrix/The-Drag-and-Drop-Component-Suite-for-Delphi @.> Cc: markwilliams1234 @.>; Author @.> Subject: Re: [landrix/The-Drag-and-Drop-Component-Suite-for-Delphi] Outlook demo not working on win64 (#45)

Hi, The problem is in the MAPIUtil.pas unit. the headers are different if accessing with Win64bits application. you have to remove the 'Historic Stack correction' example : @.***'); must be replaced by HrGetOneProp:=GetProcAddress(MAPIDLLHandle,'HrGetOneProp');

see this documentation : https://social.msdn.microsoft.com/Forums/vstudio/en-US/8d283d08-00fa-4e84-a96a-61b226f526e2/outlook-2010-mapi-headers?forum=vsto

See attached correction. [MAPIUtil.pas](url MAPIUtil.pas.txt https://github.com/landrix/The-Drag-and-Drop-Component-Suite-for-Delphi/files/6532545/MAPIUtil.pas.txt )

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/landrix/The-Drag-and-Drop-Component-Suite-for-Delphi/issues/45#issuecomment-847034894 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AIQTYJKGFML2QKFEXXUK7ITTPJGOVANCNFSM4TKBTQJQ .

markwilliams1234 avatar Dec 28 '21 16:12 markwilliams1234