3DxTstMFC error

Post questions, comments and feedback to our 3Dconnexion Windows Development Team.

Moderator: Moderators

Post Reply
batigol
Posts: 19
Joined: Wed May 08, 2013 8:10 pm

3DxTstMFC error

Post by batigol »

I just open C:\Program Files (x86)\3Dconnexion\3DxWare SDK\Demos\3DxTstMFC in VS2010
Then run but got this error.
How could I fix it?
ngomes
Moderator
Moderator
Posts: 3342
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Re: 3DxTstMFC error

Post by ngomes »

It seems that the runtime dependencies (libs) are not install on your system (which is off if VS2010 is).
batigol
Posts: 19
Joined: Wed May 08, 2013 8:10 pm

Re: 3DxTstMFC error

Post by batigol »

ngomes wrote:It seems that the runtime dependencies (libs) are not install on your system (which is off if VS2010 is).
Could you explain more detail?
ngomes
Moderator
Moderator
Posts: 3342
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Re: 3DxTstMFC error

Post by ngomes »

When you build a program, it will normally have a dependency on the runtime libraries it has been linked against. If the libraries are missing, then the program will fail to start.
batigol
Posts: 19
Joined: Wed May 08, 2013 8:10 pm

Re: 3DxTstMFC error

Post by batigol »

Is there anyway to fix it?
I could build and run with VS2008
batigol
Posts: 19
Joined: Wed May 08, 2013 8:10 pm

Re: 3DxTstMFC error

Post by batigol »

Or is there any sample that works on VS2010, I have to use vs2010 to integrate with CryEngine
ngomes
Moderator
Moderator
Posts: 3342
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Re: 3DxTstMFC error

Post by ngomes »

Uninstall the SDK and confirm that no files are left in C:\Program Files\3Dconnexion. Then reinstall the SDK and copy the "3DxWare SDK" folder to a separate location (say C:\Temp\3DxWare SDK). Then open the .sln file in VS2010 and follow the conversion wizard. After that, rebuild. This works fine for us.
batigol
Posts: 19
Joined: Wed May 08, 2013 8:10 pm

Re: 3DxTstMFC error

Post by batigol »

ngomes wrote:Uninstall the SDK and confirm that no files are left in C:\Program Files\3Dconnexion. Then reinstall the SDK and copy the "3DxWare SDK" folder to a separate location (say C:\Temp\3DxWare SDK). Then open the .sln file in VS2010 and follow the conversion wizard. After that, rebuild. This works fine for us.
I tried to follow your instructions, but still got error
batigol
Posts: 19
Joined: Wed May 08, 2013 8:10 pm

Re: 3DxTstMFC error

Post by batigol »

that's the capture my screen
batigol
Posts: 19
Joined: Wed May 08, 2013 8:10 pm

Re: 3DxTstMFC error

Post by batigol »

No more error after installing VC++ 2008 Express :D
It's so strange, because I already have VC++ 2008 redistribute both x86 and x64 before install VC++2008
ngomes
Moderator
Moderator
Posts: 3342
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Re: 3DxTstMFC error

Post by ngomes »

If you look in the "Properties" of your VS2010 -converted project, what is the option "Platform Toolset" assigned to?
batigol
Posts: 19
Joined: Wed May 08, 2013 8:10 pm

Re: 3DxTstMFC error

Post by batigol »

Platform Toolset --> v100
ngomes
Moderator
Moderator
Posts: 3342
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Re: 3DxTstMFC error

Post by ngomes »

batigol wrote:Platform Toolset --> v100
That's correct.

If you load your executable in Dependency Walker, what are the file names of "MFC<something>.dll" and "MSVCR<something>.dll"?
batigol
Posts: 19
Joined: Wed May 08, 2013 8:10 pm

Re: 3DxTstMFC error

Post by batigol »

MFC42U.DLL
MSVCR100D.DLL
MSVCRT.DLL
ngomes
Moderator
Moderator
Posts: 3342
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Re: 3DxTstMFC error

Post by ngomes »

batigol wrote:MFC42U.DLL
MSVCR100D.DLL
MSVCRT.DLL
The MFC dependency is wrong. It should be "MFC100U.DLL". Somehow your system is causing the project to be built incorrectly.

The installation of VS2008 Express probably added the MFC42U.DLL file and now the program seems to run well.
Post Reply