visual-studio-2008

Set an exe icon for my program

Hello! I'm using Microsoft Visual Studio 2008 and I'm trying to set an exe icon for my program. I've searched this site and found this: htp://stackoverflow.com/questions/320677/how-do-i-set-the-icon-for-my-application-in-visual-studio-2008 But I cant find this "Resource View". Looked everywhere in MVS08 Please help! http://i46.tinyp...

Ability to execute code on a device when the debugger detaches.

I found recently that calling TAPI's lineInitializeEx() without a corresponding lineShutdown() causes the visual studio debugger to hang for around 10 to 20 seconds on detach (shift-f5). Is it possible to detect in my Windows CE application when the IDE requests the application debugger detach? On that hook, I want to be able to execute...

Has anyone gotten Xalan to build (against Xerces) with VisualStudio .NET?

I have spent hours trying to get the subversion trunk or 1.10 building with both VS.NET 2008 and 2010, to no avail. I'm currently stuck with many link errors. I've read dozens of threads on this and am quite surprised that two major libraries from Apache would essentially be so fraught with problems when it comes to building. I am using ...

How to open DataSet in Visual Studio 2008 faster?

When I open DataSet in Visual Studio 2008 to design or modify it, it always take a very long time (more than five minutes) before I can continue to do my job. While I'm waiting I can't do anything on Visual Studio, moreover CPU and memory usage is growth dramatically. I want to know, Is it has anyway to reduce this waiting time? Hardwa...

Pointer incrementing query

I have been looking at this piece of code, and it is not doing what I expect. I have 3 globals. int x, y, *pointer, z; Inside of main I declare them. x = 10; y = 25; pointer = &x; now at this point &x is 0x004A144 &y is 0x004A138 pointer is pointing to 0x004A144 Now when I increment: y = *++pointer; it points to 0x004...

winsock gethostbyname fails

Hello, Visual Studio C++ 2008 I am using this code. However, gethostbyname always returns an error. Everything looks ok to me, so I don't understand why I am getting this error. This is the code I am using up to getting the gethostbyname. Any think obvious that I might be doing wrong? int32_t sockfd; /* struct definition */ struct ...

How to read in text from the visual studio debug output window

I've read several articles that tell you how to add text to the output window in visual studio from within an Add-On (specifically, a visual studio 2008 integration package, via the visual studio 2008 SDK 1.1), but no examples of how to read text from the output window. My goal is to parse text from the debug output window while debuggin...

Open New Form. error c3767 candidate function(s) not accessible

Hi, I want to open one form from another. I'm having no troubles doing this with blank project. Start new, make 2 forms, put button on first, use this code Form2 ^ form = gcnew Form2; form->ShowDialog(); Also adding the include file at the top... I'm getting this error error c3767 candidate function(s) not accessible I've gone th...

Why does Visual Studio lag when working with some ASP.NET sites?

I am working with an ASP.NET website that is currently being referenced by IIS. When I open .aspx files for editing, the pages seem to hang randomly - has anyone else experienced this? Is there a known cause (and solution)? Thanks ...

Vshosts folder created after each F5 run

Every time I run the app it creates a vshosts folder in the bin\debug folder in the following format: [appname].vshost_[hh-mm-ss] for example: mCommAttempt.vshost_16-33-57` The folder is always empty and ofcourse the regular vshost exe file is in bin\debug as well. I'm using VS 2008 with C#. What is this, why is this happening?...

Server control menu disappeared

For some reason, the Server control menu disappeared. The only menu appears on the left side is "CCS Properties". How do I get the server control menu to appear again? ...

Visual Studio Custom Actions - Commit

I added a second exe file in the Commit folder of a setup and deployment project, which has another exe in the Application Folder. I plan to run the first exe after the latter. First when I tried to run the main exe which is in the Application Folder, an error message came that it cannot run the second one since .msi file is missing. Aft...

How to prevent double inclusion of a .lib when inheriting dependencies?

Hello, I'm working to a Visual C++ 2008 project which needs two libraries (A and B), both of them are compiled using a a particular .lib (C). When I compile my project I'm asked for C again, and thus I specify it in the additional libraries. Then everything goes ok until the linking phase, where I get errors for external symbols which ar...

Sql Server 2008 Install

I already have Visual Studio 2008 installed. When installing developer Sql Server 2008, do I need to check the Business Intelligence Development Studio option? I'm guessing not. I assume if I already have VS 2008, the install will just add the relevant Sql Server related project types into VS 2008. EDIT: I marked the question answer...

File.Exists() returns false, but not in debug

I'm being completely confused here folks, My code throws an exception because File.Exists() returns false public override sealed TCargo ReadFile(string fileName) { if (!File.Exists(fileName)) { throw new ArgumentException("Provided file name does not exist", "fileName"); } Visual studio breaks at the throw stateme...

Create a dynamic control and AddHandle WITH Values/Brackets

Hi, it seems that adding for example a button Dim myButton as New Button and then addHandler to mySub("lol", 255) is not possible. Where mySub is Shared Sub MySub(byRef myString as string, myInteger as Integer) So: addHandler myButton.click, addressOf mySub("lol", 255) - returns an error saying it does not work with parentheses or what...

SQLConnection.Open(); throwing exception

Updating an old piece of software but in order to maintain backward compatibility I need to connect to a .mdb (access) database. I am using the following connection but keep getting an exception, why? I have validated the path, database existence etc. and that is all correct. string Server = "localhost"; string...

Is git suitable for one developer without server

I am a single developer without another computer to backup my projects on. I'm looking into source controls and I came across git but all the setup tutorials are targeted to an external server. I used to use SourceGear Vault, but seeing that git is getting alot of attention, I might as well familiarize myself with it. I do not always hav...

Visual Studio Config File Editor - Not Formatting

Hi All, My VS 2008 seems to be acting a bit weird and the solution is eluding me. The problem is that if I open a config file; app.config or web.config, this looks and behaves as a plain text document. I have no formatting, no coloring, no intellisense and no collapsible or expandable regions. I have reset all setting and restored de...

Visual Studio 2008: Don't deploy SQL Server Compact 3.5 when debugging

Hi, I'm using VS2008 to create a Compact Framework application for a Windows CE 5.0 device (Datalogic Kyman). I'm using SQL Server Compact 3.5 in my application. However, I'm debugging on a Kyman that still has Windows CE 4.2 installed (attached via USB using Mobile Device Center). My problem: VS2008 does not recognize that SQL Server...