标签: visual-studio-2005

Visual Studio 2005快速文件搜索

在Eclispe中,您可以执行Ctrl + Shift + R和一个窗口弹出窗口,您可以在其中写入文件的名称(或只是文件的开头),然后按Enter键直接转到文件.

Visual Studio 2005中的等价物是什么?(Ctrl + Shift + F不是我想要的).

visual-studio-2005

0
推荐指数
1
解决办法
2835
查看次数

如何克服mmsystem.h引发的错误

我无法摆脱这些简单的错误,但是如果有人能够从这些错误中解脱出来,那么它就会非常充实.我包括了windows.h和一些其他必要的标题,但无法摆脱它.

错误片段:

error C2146: syntax error : missing ';' before identifier 'MMVERSION' 
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int error C4430: missing type specifier - int assumed. Note: C++ does not support default-int error C2143: syntax error : missing ';' before '*' 
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int error C2146: syntax error : missing ';' before identifier 'ms' 
error C4430: missing type specifier - int …
Run Code Online (Sandbox Code Playgroud)

c++ windows visual-studio-2005

0
推荐指数
1
解决办法
5594
查看次数

为什么ASP.NET显示此错误?

我已经安装了Visual Studio .NET 2005.但是当我尝试执行asp.net应用程序时,我收到以下错误:

无法打开网页' http:// localhost/adiii '.无法在端口80上的"localhost"中找到Web服务器.请检查以确保Web服务器名称有效并且您的代理设置已正确设置.如果您确定一切正确,则Web服务器可能暂时无法使用.

单击此处查看我收到的错误的屏幕截图

任何人都可以告诉我这个问题的解决方案.我们知道在VS2005里面有嵌入式Web部署服务器那么为什么它会给我这个错误?

asp.net iis visual-studio-2005 localhost

0
推荐指数
1
解决办法
1746
查看次数

如何在VS2005中使用.NET 3.0?

我试图在VS2005中使用自动实现的属性.我在我的机器上加载了.NET 3.0框架,但Visual Studio仍在使用.NET 2.0进行编译.如何告诉它使用.NET 3.0?

visual-studio-2005 automatic-properties c#-3.0

0
推荐指数
1
解决办法
277
查看次数

Visual Studio 2005链接器问题

我是Visual Studio的新手,所以如果这是一个基本问题我会道歉.我有一个包含许多项目的解决方案.在项目A中,我有一组预先存在的文件,我添加了一个新类.项目B使用项目A中新类编写的功能.首先构建项目A,生成.lib文件,并将.lib文件链接到项目B.但是,当我去创建.lib文件时Project BI遇到链接错误,引用我添加的项目A中的新功能.使用'dumpbin'命令和项目A生成的.lib文件,我注意到我添加的函数的符号不存在.但是,在项目A中编译新类之后创建的.obj文件确实包含这些符号.知道为什么那些符号不会出现在Project A的.lib文件中吗?

c++ visual-studio-2005 linker-errors visual-c++-2005

0
推荐指数
1
解决办法
2497
查看次数

在Visual Studio 2005中将Boost 1.40.0加载到Intellisense中?

有没有办法在Visual C++中为Visual Studio 2005获取Intellisense?

我正在尝试使用intellisense和对象浏览器/类视图中的Boost库加载.

我使用BoostPro安装程序(BoostPro 1.40.0 Installer)安装了Windows二进制文件.

我不确定它是否带有源代码,但可能需要使Intellisense在VS2005中工作.

intellisense boost visual-studio-2005 visual-c++

0
推荐指数
1
解决办法
1112
查看次数

如何从vbscript调用c#dll

嗨,我正在用下面的代码创建ac#dll

using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;

namespace imageexport
{
    [ComVisible(true)]
    public class ExportImage
    {
        [ComVisible(true)]
        public void exportPNG(String pDirectory,String svgFileName,String outputFileName) {
            String arguments= pDirectory+"res\\include\\highcharts-convert.js -infile "+pDirectory+"res\\graphs\\"+svgFileName+" -outfile "+pDirectory+"res\\graphs\\"+outputFileName +" -scale 2.5 -width 1088";
            /*using (StreamWriter writer = new StreamWriter("c:\\debug.txt", true))
            {
                writer.WriteLine("pDirectory=" +pDirectory);
                writer.WriteLine("arguments="+arguments);
            }*/
            Process p = new Process();
            p.StartInfo.UseShellExecute = false;
            p.StartInfo.RedirectStandardOutput = false;
            p.StartInfo.FileName = pDirectory+"res\\bin\\phantomjs.exe";
            p.StartInfo.Arguments = arguments;
            p.Start();
            p.WaitForExit();
        }
    }
}

为了创建DLL,我在VS2005中进行如下配置

Application
     Assembly Name - …

c# com vbscript visual-studio-2005 visual-studio-2010

0
推荐指数
1
解决办法
1146
查看次数

C++ 错误 typedef 无法重载

我有这个 C++ 程序,由于某种原因它无法编译。我使用 XP 和 VS 2005 。

#include "stdafx.h"
#include "MainThread.h"

HANDLE  hStopEvent = NULL;

int main(int argc, char *argv[])
{

    return 0;
}

error C2146: syntax error : missing ';' before identifier 'hStopEvent'
error C2377: 'HANDLE' : redefinition; typedef cannot be overloaded with any other symbol
see declaration of 'HANDLE'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Run Code Online (Sandbox Code Playgroud)

c++ windows-xp visual-studio-2005

-1
推荐指数
1
解决办法
4226
查看次数

从小数中获取最后一位数字

我有个问题.在我的情况下,我想检索十进制值的最后一位数,以进行舍入调整.以下是我的代码:

private void calculateADJ()
    {
        string result = Strings.Right(txtGTotal.Text, 1);
        if (result == "1" || result == "6")
        {
            txtStoreRA.Text = "-0.01";
            txtOutstanding.Text = (Convert.ToDouble(txtGTotal.Text) - 0.01).ToString("0.00");
        }

        if (result == "2" || result == "7")
        {
            txtStoreRA.Text = "-0.02";
            txtOutstanding.Text = (Convert.ToDouble(txtGTotal.Text) - 0.02).ToString("0.00");
        }
        if (result == "3" || result == "8")
        {
            txtStoreRA.Text = "0.01";
            txtOutstanding.Text = (Convert.ToDouble(txtGTotal.Text) + 0.01).ToString("0.00");
        }

        if (result == "4" || result == "9")
        {
            txtStoreRA.Text = "0.02";
            txtOutstanding.Text = (Convert.ToDouble(txtGTotal.Text) + …
Run Code Online (Sandbox Code Playgroud)

c# pocketpc visual-studio-2005

-1
推荐指数
1
解决办法
1163
查看次数

检查是否创建了对象C++

我有以下代码 -

string classNeeded;//set to either "Max" or "Min"

if(strcmp(classNeeded, "Max") == 0)
{

    Maximum maxi;//object of class Maximum declared

}
else
{

    Minimum mini;//object of class Minimum declared

}

while(/*Conditions*/)
{

    //Some processing
    //Use maxi or mini depending on which one is declared

}
Run Code Online (Sandbox Code Playgroud)

我需要检查是否声明了maxi并使用它,或者如果没有声明,请使用mini.如何在C++ Visual Studio 2005中检查是否声明了对象?

PS:我是VS2005 C++编码的新手

c++ visual-studio-2005 class declaration object

-3
推荐指数
1
解决办法
661
查看次数

蜘蛛纸牌代码

嗨如果我想检查或查看C#中的蜘蛛纸牌游戏代码,我应该去哪里?

我想知道游戏是如何工作的以及代码是如何组织的,任何想法?还是链接?还是电子书?

提前

c# visual-studio-2005

-4
推荐指数
1
解决办法
7373
查看次数

-4
推荐指数
1
解决办法
484
查看次数

为什么我的编译器显示一些不应该存在的错误?

我有两个错误,让我生病,有点困惑.

错误#1:

错误C2679:二进制'+ =':找不到运算符,它接受类型'std :: basic_string <_Elem,_Traits,_Ax>'的右手操作数(或者没有可接受的转换)

此错误的代码是:

CString lancuch1;   
lancuch1  = "Znaleziono ";
lancuch1  += liczba1.str();
lancuch1  += " pozycji.";
Run Code Online (Sandbox Code Playgroud)

而第二个,更奇怪:

错误#2:

错误C2440:'初始化':无法从'std :: _ Vector_iterator <_Ty,_Alloc>'转换为'std :: basic_string <_Elem,_Traits,_Ax>'

这个错误我有7次写入此代码:

for(int i = 0 ; i < pojemnosc_vectora; i++){ 
std::string linijka = (vector.begin()+i); 
char deli = ';'; 
int a = 0; 
for(int i = 0; i<5; i++){ 
std::string pokico = linijka.substr(a, deli); 
vector2.push_back(pokico); 
a+=pokico.length(); 
} 
}
int licznik_komunikatow=0;
for(int i=0; i<vector.size(); i++){
std::string komunikat1 = vector2.begin()+(licznik_komunikatow);
std::string komunikat2 …
Run Code Online (Sandbox Code Playgroud)

c++ mfc visual-studio-2005

-6
推荐指数
1
解决办法
87
查看次数