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

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

Anonymous
Not applicable
1,204 Views
6 Replies
Message 1 of 7

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

Anonymous
Not applicable
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
0 Likes
1,205 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable
The MFC libraries are available only with the non-free versions of Visual
Studio. 🙂
--
Owen Wengerd
President, ManuSoft <>
VP Americas, CADLock, Inc. <>
0 Likes
Message 3 of 7

Anonymous
Not applicable
"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
0 Likes
Message 4 of 7

Anonymous
Not applicable
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
0 Likes
Message 5 of 7

Anonymous
Not applicable
ok, i try solve of other way.

Thanks.
0 Likes
Message 6 of 7

Anonymous
Not applicable
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
0 Likes
Message 7 of 7

Anonymous
Not applicable
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
0 Likes