DesignCAD User Forum
September 09, 2010, 11:13:38 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: DesignCAD 3D Max 20 now available for purchase. See News and Announcements for more details.
Home
Help
Search
Login
Register
DesignCAD User Forum
>
DesignCAD SDK
>
COM, OLE Automation, .NET
>
CLSID DCAD15 DCAD18
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: CLSID DCAD15 DCAD18 (Read 636 times)
DAvidcfres
Newbie
Posts: 2
CLSID DCAD15 DCAD18
«
on:
February 02, 2010, 06:35:15 AM »
Hi,
I use 2 frenchs versions of DesignCad.
I got a problem with the CLSID of DesignCAD.Application.15 and DesignCAD.Application.18...
There are eguals
:
CLSIDFromProgID('DesignCAD.Application.15') = CLSIDFromProgID('DesignCAD.Application.18') =
{C342DA76-F80F-40EC-9851-E3683E27CB17}
Is someone could tell me what are the CLSID of US versions ?
HKEY_CLASSES_ROOT\DesignCAD.Application.15\CLSID
HKEY_CLASSES_ROOT\DesignCAD.Application.18\CLSID
Thanks .
David.
Logged
DrollTroll
Elusive Lurker Under Bridges
Administrator
Posts: 1039
Re: CLSID DCAD15 DCAD18
«
Reply #1 on:
February 02, 2010, 08:33:16 AM »
They are the same as the French versions. We have used the same CLSID for the last several versions of DesignCAD, going back at least as far as V15.
Logged
DAvidcfres
Newbie
Posts: 2
Re: CLSID DCAD15 DCAD18
«
Reply #2 on:
February 03, 2010, 05:32:47 AM »
Thanks Droll,
then i got an important problem :
To create an Ole Object i use
CreateOleObject('DesignCAD.Application.15') as IDcadApp
or
CreateOleObject('DesignCAD.Application.18') as IDcadApp
CreateOleObject
use
CoCreateInstance
(
http://msdn.microsoft.com/en-us/library/ms686615(VS.85).aspx
)
and
CoCreateInstance
needs the
CLSID
of the object.
To get the CLSID, i use
CLSIDFromProgID
(
http://msdn.microsoft.com/en-us/library/ms688386(VS.85).aspx
)
but
CLSIDFromProgID('DesignCAD.Application.15', Result) and CLSIDFromProgID('DesignCAD.Application.18', Result)
return '{C342DA76-F80F-40EC-9851-E3683E27CB17}'
....
then, my question is :
How can i create an OleObject for DCAD15 on a computer who has both versions 15 & 18 ?
David
«
Last Edit: February 03, 2010, 05:49:01 AM by DAvidcfres
»
Logged
DrollTroll
Elusive Lurker Under Bridges
Administrator
Posts: 1039
Re: CLSID DCAD15 DCAD18
«
Reply #3 on:
February 03, 2010, 10:10:37 AM »
If present on the system,
HKEY_CLASSES_ROOT\DesignCAD.DCD-Document.15\shell\open\command
will give the path to the DesignCAD 15 exe file. With that information, you can use CreateProcess or ShellExecute to launch that version.
Or create a DesignCAD 15 document, then obtain the Application object from the document.
Something like
DcDoc := CreateOleObject('DesignCAD.DCD-Document.15') as IDcadDoc;
DcApp := DcDoc.Application;
Sorry, that last bit won't work -- same problem.
«
Last Edit: February 03, 2010, 10:18:34 AM by DrollTroll
»
Logged
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General DesignCAD Topics
-----------------------------
=> News and Announcements
=> General Discussion
=> Looking For Help?
=> Tips and Tricks
=> Feature Requests
=> Totally Off-Topic
-----------------------------
DesignCAD SDK
-----------------------------
=> SDK General Discussion
=> COM, OLE Automation, .NET
=> BasicCAD
=> SDK Errata
=> User Contributions
=> SDK Feature Requests
Loading...