Setting up an ATL Project questions ?

Setting up an ATL Project questions ?

Anonymous
Not applicable
423 Views
2 Replies
Message 1 of 3

Setting up an ATL Project questions ?

Anonymous
Not applicable
Hi to all
as you will understand i am a newbie at objectARX and C++ too!
Propably most of you will laugh with my question but as i said i dont know
anything about ObjextARX or C++ either.....but i am trying!!! 🙂
I am trying to set up an ATL project, follwing the directions from ObjectARX
help but i have a few questions.

1.First of all it says to start a new ATL project, which i have done.But
also says to configure my project to build a DLL server (i can not find such
an option)

2.Afterwards says to add a new simple ATL object. Does that means that i
must add a new class and choose a simple ATL object?

3.After that it says to add code in the "generated COM class header file".
this file is located in the headers and the name is based on the added class
"new simple ATL object" ?

4.I dont have a clue what to do when it says "Change the derivation of your
COM class by adding the follwing code to the end of its derivation list" and
"add the follwing entry to the COM_MAP". Where are those?

5.finally it says to add some code to the IDL file which i can not find.

Thanks a lot in advance
Bill
0 Likes
424 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
The instructions you're quoting from the ObjectARX Help
files are for creating a COM wrapper for a custom object.

Are you sure that is what you want to do?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"BS" wrote in message news:[email protected]...
> Hi to all
> as you will understand i am a newbie at objectARX and C++ too!
> Propably most of you will laugh with my question but as i said i dont know
> anything about ObjextARX or C++ either.....but i am trying!!! 🙂
> I am trying to set up an ATL project, follwing the directions from ObjectARX
> help but i have a few questions.
>
> 1.First of all it says to start a new ATL project, which i have done.But
> also says to configure my project to build a DLL server (i can not find such
> an option)
>
> 2.Afterwards says to add a new simple ATL object. Does that means that i
> must add a new class and choose a simple ATL object?
>
> 3.After that it says to add code in the "generated COM class header file".
> this file is located in the headers and the name is based on the added class
> "new simple ATL object" ?
>
> 4.I dont have a clue what to do when it says "Change the derivation of your
> COM class by adding the follwing code to the end of its derivation list" and
> "add the follwing entry to the COM_MAP". Where are those?
>
> 5.finally it says to add some code to the IDL file which i can not find.
>
> Thanks a lot in advance
> Bill
0 Likes
Message 3 of 3

Anonymous
Not applicable
I dont know for sure but this is what i've been told to do in order to be
able to use some functions in VBA.

Here is what i want to do:
1.Create an arx project that will divide a spline into segments.
2.Be able to use it only in VBA as a function (i have compiled and used
fortran dlls in the past in some VBA projects, is there anything like that?)

for the first one they told me to:
Get the endParam (AcDbCurve::getEndParam) of the curve, and then get the
dist at the endParam (AcDbCurve::getDistAtParam). Divide this distance (the
curve length) as you need (by the number of segments, or by a given sample
distance) and use AcDbCurve::getPointAtDist to obtain the points.

Could you help me? I am in a dead end!!!
Thanks


"Tony Tanzillo" wrote in message
news:[email protected]...
> The instructions you're quoting from the ObjectARX Help
> files are for creating a COM wrapper for a custom object.
>
> Are you sure that is what you want to do?
>
> --
> http://www.caddzone.com
>
> AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
> http://www.acadxtabs.com
>
> "BS" wrote in message
news:[email protected]...
> > Hi to all
> > as you will understand i am a newbie at objectARX and C++ too!
> > Propably most of you will laugh with my question but as i said i dont
know
> > anything about ObjextARX or C++ either.....but i am trying!!! 🙂
> > I am trying to set up an ATL project, follwing the directions from
ObjectARX
> > help but i have a few questions.
> >
> > 1.First of all it says to start a new ATL project, which i have done.But
> > also says to configure my project to build a DLL server (i can not find
such
> > an option)
> >
> > 2.Afterwards says to add a new simple ATL object. Does that means that i
> > must add a new class and choose a simple ATL object?
> >
> > 3.After that it says to add code in the "generated COM class header
file".
> > this file is located in the headers and the name is based on the added
class
> > "new simple ATL object" ?
> >
> > 4.I dont have a clue what to do when it says "Change the derivation of
your
> > COM class by adding the follwing code to the end of its derivation list"
and
> > "add the follwing entry to the COM_MAP". Where are those?
> >
> > 5.finally it says to add some code to the IDL file which i can not find.
> >
> > Thanks a lot in advance
> > Bill
0 Likes