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 07-02-2008, 09:50
lebaron lebaron is offline
Junior Member
 
Join Date: Nov 2007
Posts: 20
Default Get Shape.Copy() pointer in memory (c#) !

Hi,

It's possible to find the "Memory Pointer" of result of "Shape.Copy()" action ?
If not, how can convert "Shape" to "Byte" and push the copy in memory ?

I try to use the classical method in C# with "Unsafe" and "*" symbol but only basic type is managed(char,byte,int,...).

thank,
Reply With Quote
  #2  
Old 07-02-2008, 11:40
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default

No you can't do that. Well, you can get the contents of the clipboard into a memory if you write some code using Windows APIs such as OpenClipboard, EnumClipboardFormats, GetClipboardData, and so on... (see MSDN documentation on those methods and how to use them). Or you can use .NET's Clipboard and DataObject classes to get the data from the clipboard...

However what you can do much more easily is to save the shape only into a file (.cdr) and then load the file into the memory. When you need to put the shape back into a document, save your memory to a file and then import it into CorelDRAW...
Reply With Quote
Reply


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
Export Memory Leak in X3 jerryfeil CorelDRAW/Corel DESIGNER VBA 1 29-11-2006 13:01
Has anybody has this message ever? A problem occurred accessing memory. mecanomaniaco Corel Photo-Paint VBA 0 18-05-2006 12:06
Memory leak in PP11 Horst Corel Photo-Paint VBA 0 16-04-2004 10:13
CorelDraw eating up memory dcsquare CorelDRAW/Corel DESIGNER VBA 1 06-06-2003 10:47
Condition #1002 -Listman- 0737 (Wierd memory leaks issues) wbochar CorelDRAW/Corel DESIGNER VBA 6 15-05-2003 17:48


All times are GMT -5. The time now is 10:01.


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