Entry point _ftol2 not located in msvcrt.dll -- error message
Question
Friday, September 17, 2010 3:27 AM
I finally succeeded in making my MFC-based CAD system downloadable from my web (www.iNet1000.com). I created my install package *.msi using VS2008 Windows Installer (running on WIndows 7).
When I downloaded my CAD (on my Windows XP) and ran it, I got the following error:
The procedure entry point _ftol2 could not be located in the dynamic library msvcrt.dll.
How do I resolved this problem?
Thank you,
Makoto
All replies (8)
Friday, September 24, 2010 3:35 AM ✅Answered
Hi Jesse, and everyone, thank you for your input.
Just to sum up my initial problem: I encountered a runtime error of not being able to locate an entry point (in msvcrt.dll), when I installed my CADsoftware from my website (www.iNet1000.com) on my XP machine. A friend of mine had the same problem on his XP. I had a clean install and run on my Windows 7 laptop (Sony Vaio where I have VS2008 and dev environment of this CAD). A friend of mine then tested on his Vista and Windows 7 and did not counter any problem running the software.
I assume this is a compatibility issue between different versions of Windows and I now think it is "normal". My CAD software was built in 7 (VS2008) environment and packaged in that envirnment, and therefore installable on, say, VISTA and beyond. No backword compatibility guaranteed by Microsoft. I do not want to go out of my way to offer an XP version of installer for this CAD - probably I could do that by building and packaging the whole thing in my VC++6.0 (Windows XP) environment if I wanted to.
Makoto
Friday, September 17, 2010 5:48 AM
I googled it for you and came up with these -
http://www.crystalxp.net/forum/en/Windows-Customization-Support/General-Discussion/sujet_30463_1.htm
http://www.kvraudio.com/forum/viewtopic.php?t=76350
Hope this helps.
«_Superman_»
Microsoft MVP (Visual C++)
Friday, September 17, 2010 7:30 PM
Thank you, Superman.
This is a problem users who downloaded my program from my website (www.iNet1000.com) are experiencing, so I cannot fix their system...
Is this purely a DLL incompatibility issue between Windows XP and newer ones like 7? Only one friend of mine tested it on his XP and got the same entry point error in msvcrt.dll as I did when I tried on my XP. (I got a clean install and run on my Windows 7 laptop.)
Is there anything I can do on my side to fix this?
Makoto
Friday, September 17, 2010 8:43 PM
I'm guessing that you are using OpenGL32.dll. Did you perhaps download it from a web site? It may be compiled to link against msvcrt.dll rather than msvcrt100.dll (if you are using Visual Studio 2010). I'm not an OpenGL expert, but perhaps you should investigate to see if you can get a version of OpenGL32.dll that has been compiled with VS 2010.
Friday, September 17, 2010 9:30 PM
Yes, I am using OpenGL32.dll.... I do not remember ever downloading it from a website. I always assumed it came with Windows.
True, the original development was done on VC++6.0 (Windows XP), but my new environment now is VC++2008 (on Windows 7) and I rebuilt my exe and all dlls clean on this new platform. And then I created *.msi using VS2008 Windows Installer.
What you are implying sounds very possible, but in VS2008, how do I control link target?
Thank you,
Makoto
Thursday, September 23, 2010 3:00 AM
Hi,
I think you should download new solution of OpenGL on its website, there are actually some instructions on how to configure Visual Studio 2008 to work with OpenGL.
http://tempvariable.blogspot.com/2008/02/installing-freeglut-on-visual-studio.html
http://habsq.blogspot.com/2006/10/glut-with-visual-studio-c-express.html
Hope my information can help you!
Regards!
Jesse
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Friday, September 24, 2010 2:28 AM
Hi,
I'm very interested your issue, did you solve your problem?
If so please share the solution with us and mark the right answer.
If not please let me know.
Have a nice day!
Jesse
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Monday, February 7, 2011 10:16 PM
I'm seeing the same issue with my app. Built on Windows 7, with VS2010, and trying to install on XP. I've included all the depend .dlls in the same directory as my app, including the
msvcrt.dll (7.0.7600.16385)
and the opengl32.dll (6.1.7600.15385)
and glu32.dll (6.1.7600.15385)
that I got off my Windows 7 machine.
The .NET frame lauch condition requires 4.0.30319+.
However when I look using dependency walker I see opengl32.dll is hardcoded to use Windows/system32/msvcrt.dll. I believe the only option is to build on XP (boohoo).
Please tell me I'm wrong. Is there a way to force a dll to use a specific dll other than the one it was built with?