C++ Visual Studio 2010"无法启动程序"

Arh*_*owk 1 c++ dll

我一直在寻找arund,我找不到这个问题.每当我尝试调试我的项目时,我都会收到此错误

Unable to start program 'C:/Users/.../project/.dll' 
Run Code Online (Sandbox Code Playgroud)

我所做的只是创建一个新的应用程序,而不是把它

// This is the main DLL file.


#include "stdafx.h"

#include "asddsa.h"

/* 
 * File:   main.cpp
 * Author: Arhowk
 *
 * Created on March 22, 2013, 10:15 PM
 */

#include <cstdlib>
#include <iostream>

using namespace std;

/*
 * 
 */
using namespace std;
void main()
{
  cout << "Hello World!" << endl;  
  cout << "Welcome to C++ Programming" << endl;
}
Run Code Online (Sandbox Code Playgroud)

任何帮助?如果需要,我可以提供更多调试信息,但无法找到.在W7 x64计算机上运行VS2010 Express

Mon*_*hen 5

  1. 你应该像"Win32控制台应用程序"一样创建一个exe项目
  2. "C:/ Users /.../ project/.dll"看起来不对,右键单击你的项目,选择"Properties",选中"General-> TargetName","Debugging-> Command"和"Linker-> General->输出文件"