I have copied a dll project and started using it with visual studio 2010. I am facing a strange problem. Any additional code I add inside any of the function is not getting executed. The project is building fine. No errors. But when I use the dll with an application, none of the code which I added gets executed. for example
int f1()
{
printf("a");
}
is the old code.
New code
int f1()
{
printf("a");
printf("b");
}
When I call f1() from an app which references the dll, I stil get a printed. b is never printed on screen. I disabled the optimization option. must be missing a setting in vs2010 project. Any pointer?
Are you sure you're loading the updated library? This sounds a lot like you've got an older copy of your library somewhere and that's the one loaded all the time. This can get a bit tricky in multi-project solutions building dynamic libraries.
probably an older dll is loaded. check the Dynamic-Link Library Search Order http://msdn.microsoft.com/en-us/library/ms682586%28VS.85%29.aspx
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.