Global Commands Problems - Unresolved externals

Global Commands Problems - Unresolved externals

Anonymous
Not applicable
332 Views
3 Replies
Message 1 of 4

Global Commands Problems - Unresolved externals

Anonymous
Not applicable
Hi Friends,

Help please...

I am using AutoCad 2000. And latest Object arx, in VC++6.

I think I am missing something because I cannot seem to make use
of most of the global commands like acedGetVar(), acedGetEnv()
INSIDE my class implementation (cpp).

Any tips is very much appreciated.

Thanks in advance,
Efren
0 Likes
333 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
struct resbuf rb;
struct resbuf* cmdecho = NULL;
acedGetVar( "CMDECHO", &rb );
int oldEcho = rb.resval.rint;

I hope it help's

Georg

"Efren" schrieb im Newsbeitrag
news:67315B7F926EC6642588AB9C904915D9@in.WebX.maYIadrTaRb...
> Hi Friends,
>
> Help please...
>
> I am using AutoCad 2000. And latest Object arx, in VC++6.
>
> I think I am missing something because I cannot seem to make use
> of most of the global commands like acedGetVar(), acedGetEnv()
> INSIDE my class implementation (cpp).
>
> Any tips is very much appreciated.
>
> Thanks in advance,
> Efren
>
>
0 Likes
Message 3 of 4

Anonymous
Not applicable
Thanks but I have already tried this before.
It still doesn't work, I still get Unresolved externals...

I am beginning to suspect - could it be because I am trying this in my DBX?
That dbx cannot invoke document-level global functions?
This actually works well in my arx but not in my dbx, called "inside"
classes.

Pls comment...


"Georg Erlenhoff" wrote in message
news:546721C6BE2E1096310246776C5536E4@in.WebX.maYIadrTaRb...
> struct resbuf rb;
> struct resbuf* cmdecho = NULL;
> acedGetVar( "CMDECHO", &rb );
> int oldEcho = rb.resval.rint;
>
> I hope it help's
>
> Georg
>
> "Efren" schrieb im Newsbeitrag
> news:67315B7F926EC6642588AB9C904915D9@in.WebX.maYIadrTaRb...
> > Hi Friends,
> >
> > Help please...
> >
> > I am using AutoCad 2000. And latest Object arx, in VC++6.
> >
> > I think I am missing something because I cannot seem to make use
> > of most of the global commands like acedGetVar(), acedGetEnv()
> > INSIDE my class implementation (cpp).
> >
> > Any tips is very much appreciated.
> >
> > Thanks in advance,
> > Efren
> >
> >
>
>
0 Likes
Message 4 of 4

Anonymous
Not applicable
.dbx files are supposed to be able to work in a non-Acad environment (such
as Volo View or LT). As such, they should not use any functionality that is
AutoCAD specific. This includes all of the acedXXX functions and anything
else that is exported via acad.lib.

If you only expect your application to run in an AutoCAD environment, then
you might as well just make your program a .arx rather than a .dbx and then
use all of the Acad specific functionality that you want.

"Efren" wrote in message
news:D70B8304FC123CE7DB2B3738EB87A888@in.WebX.maYIadrTaRb...
> Thanks but I have already tried this before.
> It still doesn't work, I still get Unresolved externals...
>
> I am beginning to suspect - could it be because I am trying this in my
DBX?
> That dbx cannot invoke document-level global functions?
> This actually works well in my arx but not in my dbx, called "inside"
> classes.
>
> Pls comment...
>
>
> "Georg Erlenhoff" wrote in message
> news:546721C6BE2E1096310246776C5536E4@in.WebX.maYIadrTaRb...
> > struct resbuf rb;
> > struct resbuf* cmdecho = NULL;
> > acedGetVar( "CMDECHO", &rb );
> > int oldEcho = rb.resval.rint;
> >
> > I hope it help's
> >
> > Georg
> >
> > "Efren" schrieb im Newsbeitrag
> > news:67315B7F926EC6642588AB9C904915D9@in.WebX.maYIadrTaRb...
> > > Hi Friends,
> > >
> > > Help please...
> > >
> > > I am using AutoCad 2000. And latest Object arx, in VC++6.
> > >
> > > I think I am missing something because I cannot seem to make use
> > > of most of the global commands like acedGetVar(), acedGetEnv()
> > > INSIDE my class implementation (cpp).
> > >
> > > Any tips is very much appreciated.
> > >
> > > Thanks in advance,
> > > Efren
> > >
> > >
> >
> >
>
>
0 Likes