Friday, April 4, 2008

Why does my application fail when run on computers that don't have Visual Studio installed?

If you get an error message like "The application failed to initialize properly (0xc0150002)" when you try to run your application on a computer that doesn't have Visual Studio installed, it is probably because the proper C runtime DLLs are missing on that computer. This is one of the trickier aspects of using Microsoft's development tools because you need to have access to the same version of the DLLs that you linked with. So if you link dynamically to the C runtime library, you will have to either include the C runtime DLLs with your installer or provide a way for users to obtain the propert DLLs. To me this seems like a bad idea for most programs because it is rare that a program will use all that many functions in the runtime library. So for many cases it is probably more efficient to statically link the C runtime library using /MT on the command line instead of /MTD. This will usually yield binaries that are smaller than the combined size of the dynamically linked binary and the DLL file. Static linking will ensure that your program will run even without access to any DLLs.


dakarnagao said...

A Beginner's Guide to the 10 Best Titanium Road Bike
There's a lot ion titanium hair color of riding titanium water bottle around the world and there's a titanium granite countertops ton of price of titanium ways to do it. mens titanium earrings As a novice you're

neaulesm said...

gs460 jordan 13 retro,jordan 12 flugame,jordan 12,aj 1 royal,jordan 4 red thunder,jordan 4 kaws,yeezy 350 black,yeezy 350 beluga,jordan 1 unc

xi58fddk0k said...

Moreover, in 2020, the market witnessed a greater than 50% enhance in demand for injection molding machines from the medical sector. This can be attributed to the Sissy Panties sudden rise in the requirement for medical gear outcome of} ongoing coronavirus pandemic. An injection molding machine is used to supply components by injecting molten materials into a mould. Injection molding is an appropriate method to mass manufacture complex shapes and performs an essential role in the plastic processing industry.