Reputation: 137
I am executing win32 C++ project in Visual studio 2010. My project is a simple project to create a dll.
#include "stdafx.h"
#include "MyWin32Function.h"
// This is an example of an exported function.
extern "C" MYWIN32FUNCTION_API float fnMyWin32Function(float a,float b)
{
return a*b;
}
And i am able to build and rebuild the project successfully. But when i am trying to debug the project i am getting the following error.
Unable to start the program
'c:\users\Visual studio 2010\projects\Mywin32Function\debug\Mywin32function.dll'
Upvotes: 0
Views: 218
Reputation: 490108
It's simply telling you that you can't run a DLL. You need to build an executable that uses the DLL, and run the executable.
Upvotes: 1