visual-studio-2008

Foreign Characters Appearing In Git-Managed Files

I am using git 1.7.2.3 via cygwin on Windows 7 and seeing strange artifacts appearing in some of my source files when switching branches. git status reports everything as unchanged yet they crazy characters are present. I've confirmed on GitHub that the files are as they should be in the repo. My Copy: ਍        ⼀⼀⼀ 㰀猀甀洀洀愀爀礀㸀ഀഀ ...

Getting an error while trying to debug an ASP.NET (WebForms) app that I've migrated

I'm trying to migrate an ASP.NET 2.0 app (WebForms) to ASP.NET 3.5. I've finally fixed a 500.19 IIS 7.5 error I was having. Now it will run, so long as I don't attempt to debug it. If I do attempt to debug it I get an error message. I've searched for help on this error and there's precious little out there. Here's the text of the er...

Visual Studio Server Explorer Table Changes Wrapped in Transaction?

Hi, I'm using the Visual Studio Server Explorer to open a table (Table_A) and rearrange the order of fields. When submitting the changed it will generate the script which does the following. Remove all foregin keys that refer to Table_A and remove it's foreign keys. Create a temporary table with the new schema. Tmp_Table_A Copy al...

"Cannot open include file: 'fstream.h'" error in Visual Studio 2008 Express Edition

When compiling this code I get: fatal error C1083: Cannot open include file: 'fstream.h': No such file or directory Why? Code: #include <windows.h> // use as needed for your system #include <gl/Gl.h> #include <gl/glut.h> #include <iostream> #include <fstream.h> //**************Global Data char ifileName[30],oFileName[30]; fstrea...

fatal errors LNK2001 & LNK1120 in VS Express Edition 2008

The following code compiles on VS Express Edition 2008, yet I get the following errors when trying to debug/release: 1>Linking... 1>MSVCRT.lib(crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16 1>E:\Documents and Settings\Administrator\Desktop\Proyecto 2 gràficas\testing\Release\testing.exe : fatal error LNK1120: 1 unr...

CruiseControl.net noob question on linking TortoiseSVN, other posts didn't help

Hello, Before giving me a link on StackOverflow on the existing post regarding this, I would like to apologize but that post didn't help me at all. I'm looking more into detail on how I can really hook up TortoiseSVN to CruiseControl.net. What I tried to do is to follow that post, but I got into a dead-end because I couldn't find the ...

create VS 2008 Add-in as a right click menu for a class file

How can i create a right click menu for VS 2008\10 that will be specific for a class file? ...

How Utility functions can be shared across various classes ?

Hi, I had a class Display with 2 utility functions getDate and getTime like below. class Display { public: void getDate(char *pDate); //Utility functions for converting to custom format void getTime(char *pTime); }; Later, In other class called Retriever also, i needed the same Utility functions getDate and getTime. I do not want ...

Outlining in VS2008, C++, not working

I'm using VS2008 (version 9.0.30729.1 SP) and have found that outlining regularly stops working. I get outlining options for the start and end of functions, and for comment blocks, but not for other code blocks, such as ifs, while loops, for loops, etc... Using Reset all settings, as recommended in a similar previous question temporari...

What generated this database accessor code?

I'm trying to make alterations to an existing project, and I've found a project in the solution which is full of generated classes. Problem is, nobody here can tell me what generated them, so I'm pretty much left with pasting one of the classes in here and hoping someone will be able to tell me where they came from. The solution I'm w...

VB.NET Memory Leak when using WndProc()

I'm using VB.NET for a small control software which analyzes the messages of a video router. I need to hook up to the DLL (which includes the needed interface to the router) using WndProc. Everything was running smoothly in the Lab, but on site (where the router sends more messages) I get a huge memory leak (inside the unmanaged heap). ...

sproxy for vs2008?

Hi, I'm trying to create WCF proxy in unmanaged C++ (No .NET framework is installed on the client). I've found the website "http://icoder.wordpress.com/2007/07/25/consuming-a-wcf-service-with-an-unmanaged-c-client-with-credential-passing/" which teaches how to generate such a proxy. The problem is that I've found the sproxy.exe only i...

Managing Cut, Copy Paste button availability .NET WinForms

Hi ! I'm working on a WinForms solution in VB.NET. It's been a while since I'm mostly a web developper. So what I need to do is to replicate the behavior of Microsoft Office product for the Cut, Copy, Paste and Undo menus and toolbar. Which meens, I need to enable Cut and Copy when and only when there's some selected text on the Form. T...

ReSharper's autocompletion bug?

I'm trying to call a method with many parameters in vs2008. Resharper's (v5) intellisense shows only few of them and then "Use smart Completion to see all". OK, I'm pressinf Ctrl+Shift+Space - and after that he shows some stupid suggestions like "String.Concat, String.Copy...", but I want to see as usual what name and type of parameter I...

class variable losing value

This is how my code looks like. I want to kno why is the value in the label coming as blank or null. I want to assign the value to username at get data and use it at the button click event. Can some1 guide me with this and why is it happening and how to solve this issue I don't want to use a session and static. namespace GUI { p...

In Visual Studio 2008 is there a way to find all references that have no references for all methods not just 1 at a time?

I know you can right click on an individual method and find all references for a single method but is there a way to find all references where there is only the method definition returned (i.e. no external references to the method). ...

Entity relationship not reading correctly from database

I have an entity relationship setup in my mvc2 application such that each user has one role and each role can have many users. Like so: Roles Users -------- --------- RoleID-- UserID \ Name --> RoleID So a pretty basic many to one relationship enforced in the database and reflected in my entity relati...

asp.net webforms - how to handle multiple pages with the same name in one web project?

I have a web application with several different top-level directories, and some of the pages with different directories have the same name - for example: foo/ search.aspx list.aspx bar/ search.aspx list.aspx baz/ search.aspx list.aspx etc. The problem is that the class names for the code-behind files conflicts - each se...

Visual Studio Debugger - Visualising Intel Quadruple precision (_Quad)

Hello, I'm using Intel C++ Compiler from within Visual Studio 2008. I was experimenting with the Intel quadruple precision type (_Quad). Everything seems to be working fine, except for the debugging. Visual Studio visualiser is unable to peek into _Quad values. What's worse, the visualiser is unable to provide the type information abou...

How do I split apart a database project?

I've got three database projects. I'd like to have the base project contain common tables and other common objects. And then, I'd like to have the other two projects contain version specific objects that will work with different versions of an application, in other words, depending on the version of the application I will be interfacing ...