OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-12-2013, 06:17
Plixo Plixo is offline
Junior Member
 
Join Date: Oct 2011
Location: Singapore
Posts: 18
Smile Debugging C++, C# etc add-on to CorelDraw X6 64 bits

I faced this issue for long time so I'm sharing the solution I finally found

Problem: CorelDraw include some protection probably to avoid reverse engineering and thus will crash if he detects a debugger is present.

This makes it almost impossible to write C++ DLL or C# WPF.

Solution: Use API Monitor v2 to launch CorelDRAW, ignore Unhandled exception dialogs and attach VisualStudio to CorelDraw ;-)

Full process with picture below:
1) launch CorelDraw with API Monitor using RemoteThread (Extended):


2) Ignore the Exception dialogs, i.e. leave them open, don't click on any buttons, CorelDRAW will continue to launch normally ;-)


3) Attach VisualStudio to CorelDRAW process:


4) You can now fully debug your DLL/WPF, including seen variables, invoking Coreldraw object in watch window etc...


Comment: this is for CorelDRAW X6 64 bits but I would guess similar trick should work with other versions

Last edited by Plixo; 12-12-2013 at 06:19. Reason: highlight important points
Reply With Quote
Reply

Tags
coreldrawx6, debug, dll, wpf


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BeginCommandGroup while debugging macro vjCorel CorelDRAW/Corel DESIGNER VBA 2 23-04-2009 15:17
multiple Debugging Errors KriZa General 2 15-01-2008 15:27
Workspace X3 + Script Debugging? Sunny General 1 09-06-2006 14:13
Debugging help required Peter Clifton CorelDRAW/Corel DESIGNER VBA 2 03-03-2004 18:28


All times are GMT -5. The time now is 12:44.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com