ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Compile ObjectARX 2008, using Visual C++ 2005 Express Edition

6 REPLIES 6
Reply
Message 1 of 7
cracksther
1030 Views, 6 Replies

Compile ObjectARX 2008, using Visual C++ 2005 Express Edition

If add in my code, a call to acedRegCmds->addCommand(...), the builder showed the messages:
cannot open file: "mfc80u.lib"
cannot open file: "mfcs80u.lib"
cannot open file: "atls.lib"

these file should be in the directory "C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\lib", however, my computer not have this diretory, because is not avaliable to Express version.
Where are these files?

If ignore this files, the builder showed the messages:
acedapi.lib(acedstub.obj) : error LNK2001: unresolved external symbol __afxForceEXCLUDE
acedapi.lib(acedstub.obj) : error LNK2001: unresolved external symbol __afxForceSTDAFX

In search in web, read about need to install the Platform SDK. I installed the Platform SDK R2 for Windows Server 2003 (compatible to Win XP), however, i do not solved my problem.

which LIB file, have to add in dependencies?
Any suggest to solve the problem?

Thanks advanced.

--
Marcelo Silva - Brazil
cracksther@gmail.com
6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: cracksther

The MFC libraries are available only with the non-free versions of Visual
Studio. 🙂
--
Owen Wengerd
President, ManuSoft <>
VP Americas, CADLock, Inc. <>
Message 3 of 7
cracksther
in reply to: cracksther

"The MFC libraries are available only with the non-free versions of Visual Studio. :)"

Ok, however i think there is possibility to solve this problem, without the need buy comercial version.
I am downloading trial version to test, then i try copy MFC to the free version. Is this illegal?

Thanks.

I think there is possibility to solve this problem
--
Marcelo Silva - Brazil
cracksther@gmail.com
Message 4 of 7
Anonymous
in reply to: cracksther

Yes, that's illegal, and there may be countermeasures in
the express version to prevent using MFC libraries from
another version.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009

http://www.acadxtabs.com

Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm


wrote in message news:6139307@discussion.autodesk.com...
"The MFC libraries are available only with the non-free versions of Visual
Studio. :)" Ok, however i think there is possibility to solve this problem,
without the need buy comercial version. I am downloading trial version to
test, then i try copy MFC to the free version. Is this illegal? Thanks. I
think there is possibility to solve this problem -- Marcelo Silva - Brazil
cracksther@gmail.com
Message 5 of 7
cracksther
in reply to: cracksther

ok, i try solve of other way.

Thanks.
Message 6 of 7
cracksther
in reply to: cracksther

Hi all,

Problem solved.

Solution:
- Get the DDK from http://www.microsoft.com/whdc/devtools/ddk/default.mspx and install in system.
- Add the directory ...\WINDDK\3790.1830\inc\atl30 and ...\WINDDK\3790.1830\inc\mfc42 in project.
- Add the directory ...\WINDDK\3790.1830\lib\atl\i386 and ...\WINDDK\3790.1830\lib\mfc\i386 in project.
- Linker\Input\Ignore specif library add mfc80u.lib;mfcs80u.lib
- Linker\Input\Additional dependencies add mfcs42u.lib mfc42u.lib
- Use /noentry in command line (linker)

See the link refering use MFC in Express Version http://www.codeproject.com/KB/MFC/MFCinVisualStudioExpress.aspx

--
Marcelo Silva - Brasil
cracksther@gmail.com
Message 7 of 7
Anonymous
in reply to: cracksther

Hi Marcelo
Thanks for your great post. It helped me to solve that problem by maintaining your each and every step.
But now it shows another error.

----------------------------------------------------------------
error LNK2001: unresolved external symbol _SetacrxPtp
----------------------------------------------------------------


Here is my definition file content
----------------------------------------------------------------

EXPORTS
acrxEntryPoint
_SetacrxPtp
acrxGetApiVersion
----------------------------------------------------------------

Can you please help me to solve this problem?


Thx
Rashidul

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost