I am having a very strange problem, which I have no clue about its cause.
I am using the following code sample to load Play's dll:
////
#include <windows.h>
#include <stdio.h>
int main()
{
printf("\nLoading...");
Sleep( 5000 );
if( !LoadLibrary( "E:/temp/EastWest/play_VST_x64.dll" ) )
MessageBox( NULL, "LoadLibrary error", "warning", MB_OK );
//exits with code 16 before getting here with VS2008
printf("\nOK");
Sleep( 5000 );
return 0;
}
////
The strange thing is, if I compile and run this with Dev C++, it runs fine, but if I compile it with Visual Studio 2008 ( a console empty project with the default settings ), it crashes if I run it from the "Release" folder, and exits with code 16 if I run it from the IDE.
Does anybody know what could it be?
Thanks.

