AcDbAppSystemVariables

AcDbAppSystemVariables

Anonymous
Not applicable
1,311 Views
11 Replies
Message 1 of 12

AcDbAppSystemVariables

Anonymous
Not applicable
Hi,

i'm using AcDbAppSystemVariables::setOsmode() method
when build, compiler complains that AcDbAppSystemVariables::setOsmode() is
unresolved

in which lib file this class hide?

thanks,

moshe
0 Likes
1,312 Views
11 Replies
Replies (11)
Message 2 of 12

Anonymous
Not applicable
It's in acdb17.lib

"Moshe" wrote in message
news:[email protected]...
Hi,

i'm using AcDbAppSystemVariables::setOsmode() method
when build, compiler complains that AcDbAppSystemVariables::setOsmode() is
unresolved

in which lib file this class hide?

thanks,

moshe
0 Likes
Message 3 of 12

Anonymous
Not applicable

Art,

 

well i do have the acdb17.lib include as additional
dependencies

 

here is my linker error:


1>: error LNK2001: unresolved external symbol
"public: enum Acad::ErrorStatus __thiscall
AcDbAppSystemVariables::setOsmode(short,bool)" (
href="mailto:?setOsmode@AcDbAppSystemVariables@@QAE?AW4ErrorStatus@Acad@@F_N@Z">?setOsmode@AcDbAppS...
)


any other idea?


thanks for your help


Moshe


 


 


========== Build: 0 succeeded, 1 failed, 0
up-to-date, 0 skipped ==========


 

It's in acdb17.lib

"Moshe"
<

size=2>[email protected]
> wrote in
message

face=Arial size=2>news:[email protected]

face=Arial size=2>...
Hi,

i'm using 
AcDbAppSystemVariables::setOsmode()  method
when build, compiler
complains that  AcDbAppSystemVariables::setOsmode()
is
unresolved

in which lib file this class
hide?

thanks,

moshe
0 Likes
Message 4 of 12

Anonymous
Not applicable
#include



"Moshe" wrote in message
news:[email protected]...
Hi,

i'm using AcDbAppSystemVariables::setOsmode() method
when build, compiler complains that AcDbAppSystemVariables::setOsmode() is
unresolved

in which lib file this class hide?

thanks,

moshe
0 Likes
Message 5 of 12

Anonymous
Not applicable
YES did include it

"LES" wrote in message
news:[email protected]...
#include



"Moshe" wrote in message
news:[email protected]...
Hi,

i'm using AcDbAppSystemVariables::setOsmode() method
when build, compiler complains that AcDbAppSystemVariables::setOsmode() is
unresolved

in which lib file this class hide?

thanks,

moshe
0 Likes
Message 6 of 12

Anonymous
Not applicable
>YES did include it
?


go here: http://msdn2.microsoft.com/en-us/library/aa234493(VS.60).aspx
0 Likes
Message 7 of 12

Anonymous
Not applicable
The class definitely appears to be in acdb17.lib. I can define a variable
as this class and access any of the inlines (osmode() for instance) and it
compiles and links fine. Once I try ANY of the setxxx methods, it compiles
fine but gives that linker error. I think maybe AutoCAD needs to look into
this one.

Joe

"Moshe" wrote in message
news:[email protected]...
Hi,

i'm using AcDbAppSystemVariables::setOsmode() method
when build, compiler complains that AcDbAppSystemVariables::setOsmode() is
unresolved

in which lib file this class hide?

thanks,

moshe
0 Likes
Message 8 of 12

Anonymous
Not applicable

Are you working with ObjectARX for AutoCAD 2007 or
for AutoCAD 2008?  I'm asking because this function was not in the lib file
for AutoCAD 2007, but is in the lib for AutoCAD 2008.

 

This method is actually exported in both versions
of AutoCAD, it (and the other non-inline methods of AcDbAppSystemVariables) was
just mistakenly not included in the acdb17.lib file for AutoCAD
2007.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">


Art,

 

well i do have the acdb17.lib include as
additional dependencies

 

here is my linker error:


1>: error LNK2001: unresolved external symbol
"public: enum Acad::ErrorStatus __thiscall
AcDbAppSystemVariables::setOsmode(short,bool)" (
href="mailto:?setOsmode@AcDbAppSystemVariables@@QAE?AW4ErrorStatus@Acad@@F_N@Z">?setOsmode@AcDbAp...
)


any other idea?


thanks for your help


Moshe


 


 


========== Build: 0 succeeded, 1 failed, 0
up-to-date, 0 skipped ==========


 

It's in
acdb17.lib

"Moshe" <

href="mailto:[email protected]">
size=2>[email protected]
> wrote in
message

face=Arial size=2>news:[email protected]

face=Arial size=2>...
Hi,

i'm using 
AcDbAppSystemVariables::setOsmode()  method
when build, compiler
complains that  AcDbAppSystemVariables::setOsmode()
is
unresolved

in which lib file this class
hide?

thanks,

moshe
0 Likes
Message 9 of 12

Anonymous
Not applicable

I ran a quick test, using a2007 and yes it gives
the same error, and tested with some of the other functions, and it
compiles


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
1>: error LNK2001: unresolved external symbol
"public: enum Acad::ErrorStatus __thiscall
AcDbAppSystemVariables::setOsmode(short,bool)" (
href="mailto:?setOsmode@AcDbAppSystemVariables@@QAE?AW4ErrorStatus@Acad@@F_N@Z">?setOsmode@AcDbAp...
)
0 Likes
Message 10 of 12

Anonymous
Not applicable

it seems that they forgot to put
AcDbAppSystemVariables::setOsmode IN...but

did take it out from AcDbDatabase

 

what's my option? to
face=Arial size=2>use acedSetVar()?

 

Moshe

 

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">


Are you working with ObjectARX for AutoCAD 2007
or for AutoCAD 2008?  I'm asking because this function was not in the lib
file for AutoCAD 2007, but is in the lib for AutoCAD 2008.

 

This method is actually exported in both versions
of AutoCAD, it (and the other non-inline methods of AcDbAppSystemVariables)
was just mistakenly not included in the acdb17.lib file for AutoCAD
2007.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">


Art,

 

well i do have the acdb17.lib include as
additional dependencies

 

here is my linker error:


1>: error LNK2001: unresolved external symbol
"public: enum Acad::ErrorStatus __thiscall
AcDbAppSystemVariables::setOsmode(short,bool)" (
href="mailto:?setOsmode@AcDbAppSystemVariables@@QAE?AW4ErrorStatus@Acad@@F_N@Z">?setOsmode@AcDb...
)


any other idea?


thanks for your help


Moshe


 


 


========== Build: 0 succeeded, 1 failed, 0
up-to-date, 0 skipped ==========


 

It's in
acdb17.lib

"Moshe" <

href="mailto:[email protected]">
size=2>[email protected]
> wrote in
message

face=Arial size=2>news:[email protected]

face=Arial size=2>...
Hi,

i'm using 
AcDbAppSystemVariables::setOsmode()  method
when build, compiler
complains that  AcDbAppSystemVariables::setOsmode()
is
unresolved

in which lib file this class
hide?

thanks,

moshe

0 Likes
Message 11 of 12

Anonymous
Not applicable

Yeap.  AcDbAppSystemVariables::setOsmode() and
acedSetVar() both use the same code to do the real work.

 

The real difference is that AcDbAppSystemVariables
methods are in acdb17.dll so they can be used in dbx applications and will just
return an error if the host application is not AutoCAD based.  Whereas
acedSetVar() is in acad.exe, so it cannot be used by a dbx app at
all.

 

For an ARX application it doesn't matter which one
you use.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">


it seems that they forgot to put
AcDbAppSystemVariables::setOsmode IN...but

did take it out from AcDbDatabase

 

what's my option? to
face=Arial size=2>use acedSetVar()?

 

Moshe

 

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">


Are you working with ObjectARX for AutoCAD 2007
or for AutoCAD 2008?  I'm asking because this function was not in the
lib file for AutoCAD 2007, but is in the lib for AutoCAD
2008.

 

This method is actually exported in both
versions of AutoCAD, it (and the other non-inline methods of
AcDbAppSystemVariables) was just mistakenly not included in the acdb17.lib
file for AutoCAD 2007.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">


Art,

 

well i do have the acdb17.lib include as
additional dependencies

 

here is my linker error:


1>: error LNK2001: unresolved external
symbol "public: enum Acad::ErrorStatus __thiscall
AcDbAppSystemVariables::setOsmode(short,bool)" (
href="mailto:?setOsmode@AcDbAppSystemVariables@@QAE?AW4ErrorStatus@Acad@@F_N@Z">?setOsmode@Ac...
)


any other idea?


thanks for your help


Moshe


 


 


========== Build: 0 succeeded, 1 failed, 0
up-to-date, 0 skipped ==========


 

It's in
acdb17.lib

"Moshe" <

href="mailto:[email protected]">
size=2>[email protected]
> wrote
in message

face=Arial size=2>news:[email protected]

face=Arial size=2>...
Hi,

i'm using 
AcDbAppSystemVariables::setOsmode()  method
when build, compiler
complains that  AcDbAppSystemVariables::setOsmode()
is
unresolved

in which lib file this class
hide?

thanks,

moshe

0 Likes
Message 12 of 12

Anonymous
Not applicable

Art,

 

Thank you very much for your help

 

 

Moshe

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">


Yeap.  AcDbAppSystemVariables::setOsmode()
and acedSetVar() both use the same code to do the real work.

 

The real difference is that
AcDbAppSystemVariables methods are in acdb17.dll so they can be used in dbx
applications and will just return an error if the host application is not
AutoCAD based.  Whereas acedSetVar() is in acad.exe, so it cannot be used
by a dbx app at all.

 

For an ARX application it doesn't matter which
one you use.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">


it seems that they forgot to put
AcDbAppSystemVariables::setOsmode IN...but

did take it out from AcDbDatabase

 

what's my option? to
use
size=2>acedSetVar()?

 

Moshe

 

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">


Are you working with ObjectARX for AutoCAD
2007 or for AutoCAD 2008?  I'm asking because this function was not
in the lib file for AutoCAD 2007, but is in the lib for AutoCAD
2008.

 

This method is actually exported in both
versions of AutoCAD, it (and the other non-inline methods of
AcDbAppSystemVariables) was just mistakenly not included in the acdb17.lib
file for AutoCAD 2007.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">


Art,

 

well i do have the acdb17.lib include as
additional dependencies

 

here is my linker error:


1>: error LNK2001: unresolved external
symbol "public: enum Acad::ErrorStatus __thiscall
AcDbAppSystemVariables::setOsmode(short,bool)" (
href="mailto:?setOsmode@AcDbAppSystemVariables@@QAE?AW4ErrorStatus@Acad@@F_N@Z">?setOsmode@...
)


any other idea?


thanks for your help


Moshe


 


 


========== Build: 0 succeeded, 1 failed, 0
up-to-date, 0 skipped ==========


 

It's in
acdb17.lib

"Moshe" <

href="mailto:[email protected]">
size=2>[email protected]
>
wrote in message

href="news:[email protected]">
size=2>news:[email protected]...

size=2>...
Hi,

i'm using 
AcDbAppSystemVariables::setOsmode()  method
when build, compiler
complains that  AcDbAppSystemVariables::setOsmode()
is
unresolved

in which lib file this class
hide?

thanks,

moshe

0 Likes