visual-studio-2005

how do I specify in qmake 4.5's .pro file that i want to ignore a library in msvc8 (2005)

I have a linking problem. It can be solved by specify in msvc8 project properties -> Linker -> Input -> Ignore Specific Library: msvcrtd.lib. That library conflicts with libcpmtd.lib. But can't find how to do the same thing in qmake's .pro file that is used to generate the .vcproj file. Grateful for any hint /LG ...

What is the Windows CE equivalent of Application.StartupPath?

I'm adding code to a program created to be used on Windows CE. My current problem is that Application.StartupPath isn't recognized. What is the Equivalent line of code I need to use? ...

Consecutive build of VS2005 and VS2008 C++ projects causes LNK1104 error

I have VS2005 and VS2008 installed on the same machine. I also have a common codebase that I build using both '05 and '08. For this purpose, I have 2 VC projects.. A '08 project called XYZ_2008.vcproj and a '05 project called XYZ_2005.vcproj, and the corresponding 2 slns as well. Both projects output dlls, libs and pdbs to the same outpu...

How to write a simple Lexer/Parser with antlr 2.7?

Hello, I have a complex grammar (in antlr 2.7) which I need to extend. Having never used antlr before, I wanted to write a very simple Lexer and Parser first. I found a very good explanation for antlr3 and tried to adapt it: header{ #include <iostream> using namespace std; } options { language="Cpp"; } class P2 extends...

clicking browser back button is opening a link in the previous page.

I am using the below code protected void lnk_Click(object sender, EventArgs e) { try { string strlink = ConfigurationManager.AppSettings["link"].ToString().Trim(); StringBuilder sb = new StringBuilder(); sb.Append("<script type = 'text/javascript'>"); sb.Append("window...

Visual Studio add-in to support images inline with source?

We use Visual Studio 2005 here, and in an attempt to improve the documentation of our source, we're looking for a Visual Studio add-in that will allow images to be viewed in line with source from within the IDE. For example, the use case I'd like to fit is the following: In the directory in which my source lives, I save my image file ...

is there a way to revert a changeset in visual studio 2005

Hi All, Is there a way to revert changes for a particular changeset in visual studio 2005 and tfs/2005? Thanks, rod. ...

How do I add a WSDL to a Visual Studio 2005 project?

One of our vendors provides a web service API to allow their customers to validate data in a database. As part of their SDK, they provide a WSDL (Web Service Definition Language) file that, according to their documentation, can "be read by software applications and application development tools. An application tool such as Microsoft's ...

initializing structs using user-input information

I am trying to make a program that works with poker (texas holdem) starting hands; each hand has a value from 1 to 169, and i want to be able to input each card and whether they are suited or not, and have those values correspond to a series of structs. Here is the code so far, i cant seem to get it to work (im a beginning programmer). ...

How can I send an email when a program crashes running in Visual Studio 2005

We are running reliability test on our application and looking for crash failures. We have a scripting language built in that exercises the application. The crash may take minutes or days to occur. We are starting it up in Visual Studio 2005 and would like Visual Studio to send us an email when it crashes into the debugger. Does anyone...

VS2005: two projects doing identical tasks but with different result

In VS2005 I have multi-project solution. Two of the projects use an external set of DLLs to create a report, using report definition data taken from an SQL Server. One of the projects creates the report just fine, but the other project results in an Exception. I have checked that the projects are referencing the same versions of the a...

Visual Studio highlighting source code in bold

While editing HTML/ASPX/ASCX etc in visual studio 2005; whenever I select an html tag, visual studio highlights the entire tag in black and bold; the black I'm not so fussed about but the bold changes the length of the line and really messes up the formatting. Is there a way to disable this? Thanks, Chris ...

VS2005: Found conflicts between different version of the same dependent assembly

What does it mean if I receive this warning? Does it mean the project is referencing the same assembly from different files? ...

C# in VS2005: Assemblies listed in the "References" folder in a project

If you have using XXXX.YYYY; at the top of a C# file, do you need to include that assembly in the References part of the project? What is the difference? ...

C#: cannot find assembly file

I am getting an error back from a DLL saying it cannot create an instance of one of classes in my solution because it cannot find the assembly file. If I am debugging a solution, do I need to put a copy of certain assembly files in other locations? EDIT: In my compiled solution all the DLLs (including the proprietary ones) all go in t...

C#: proprietary DLLs requiring access to my assemblies

My solution uses a proprietary assembly, which when debugging the solution throws an Exception saying it can't find an assembly that is meant to be one of the projects in my solution. I cannot add a reference to the proprietary assembly because all I have is the DLL. When I compile everything into a single application directory and run...

Using graphical ActiveX (COM) controls in WinForms project

I have a collection (set) of ActiveX controls. I recieved them from our vendor company. I created a wrappers for them using tlbimp.exe and aximp.exe. All non-graphical controls work good. All graphical controls don't react on some methods. When I call their methods I get: TargetInvocativeException (InnerException is null). or Attemp...

Why does VS2005 skip execution of lines when debugging managed C++ without optimizations?

I ran into a rather odd behavior that I don't even know how to start describing. I wrote a piece of managed C++ code that makes calls to native methods. A (very) simplified version of the code would look like this (I know it looks like a full native function, just assume there is managed stuff being done all over the place): int somefu...

Visual Studio - How to use an existing vsproj's project settings as a template for new project?

There is some software I want to write a plugin for. The software includes some sample plugins. I want to create a new fresh project but I want to use one of the sample plugin vsproj's project settings as a template. It doesn't seem very clear on how to do this. If I do "New Project From Existing Code" that only imports the cpp, h, etc ...

Is Ogre's use of Exceptions a good way of using them?

I've managed to get through my C++ game programming career so far virtually never touching exceptions but recently I've been working on a project with the Ogre engine and I'm trying to learn properly. I've found a lot of good questions and answers here on the general usage of C++ exceptions but I'd like to get some outside opinions from ...