visual-studio-2008

icons not display in 64-bit build under windows

I have 256x256 PNG compressed icons working under Win7 with my 32-bit builds, but my 64-bit builds aren't showing the high res icons. When I extract the ICO file from the 64-bit executable, it has the 256x256. I was under the impression I shouldn't have to do anything special for 64-bit builds vs. 32-bit builds and that if it works in ...

unable to install visual studio 2008 sp1

I got following error failed with error: 12180 WinHttpDownloader::GetProxySetting) Auto detection of proxy failed, try to retrieve proxy information via IE. WinHttpDownloader::GetProxySettingViaIE) Retrieving proxy information using WinHttpGetIEProxyConfigForCurrentUser WinHttpDownloader::GetProxySettingViaIE) Unable to retrieve Proxy i...

Is the Optional Parameter in C# 4 Backwards Compatible?

I am curious to know that whether optional parameter introduced in C#4 is backward compatible or not? Let me clarify my question with a simple example. Suppose I write the following code in C#4 on .Net2 in VS2010: public void Foo(int val1, int val2, int val3 = 5){ .... } Now I compiled the code, make a dll and reference it to a C#2 /...

Stop xsd.exe from auto generate c++ header file from xsd schema

I am using Visual Studio 2008. I have xml files and corresponding xml schemas for validation. When I modify any of schema files and save it VS automatically generate a header file,*.dll files and some garbage from it. But I don't want this. How can I stop this behaviour? ...

In VS 2008, how to do re-assign all classes that use a global variable to another class with the new variable?

Is there a shortcut that allows me to repoint all classes that use the old object and repoint them all to the new class that has the new object? and i don't mean just doing a Ctrl+F then replace. ...

Can I develop visual studio extension for viewing Web User Control in temp web page?

I work now in a huge project that we build all interface as Web User Controls .. every time I want to view & test one i should add it in web page and then view .. I think in a way to develop a visual studio extension that show "View in Temp Web Page" when I make right click on a user control to allow me view user control in a generated t...

How to debug AccessViolationException coming from native code

I'm writing managed code, and I'm using managed bindings (qt4dotnet) for an unmanaged library (Qt). Now and then, I get an AccessViolationException coming somewhere from Qt, but I don't know how to debug that. I don't even get a stacktrace further than the managed/unmanaged boundary (meaning I don't know what part of Qt crashed on me). ...

Code formatting in visual studio for ASP.NET

How can I have the same formatting as mentioned in this resource for ASP.NET. Like all attributes in separate lines as starting line. Is it possible to format my code in ASP.NET? Please help. http://geekswithblogs.net/lbugnion/archive/2007/09/29/Cleaning-up-XAML-code-and-improving-parsing-time-with-Blend.aspx#lbu_note2 ...

How to change Visual Studio 2008 menu items color ( not the text editor but windows of VS more like skin)

hi there, i am working in Visual Studio 2008 and is bored of default theme of blue menu items so wanted to chage it. but so far have no clue ho to do it. found a theme editor which changes themes but this is for VS2010: http://visualstudiogallery.msdn.microsoft.com/en-us/20cd93a2-c435-4d00-a797-499f16402378/view/Reviews Please note that...

How can i add list<myclass> data into sqldatabase?

i try to add data with ExecuteCommand. everything is ok if list<string> data. i converted string type list into arraylist to add sql. But <MyClass> there are rows and column. look below picture. public class MyTally : ISave { public List<ENG_MPD> engMpdIntersectList { get; set; } private ArrayList engMyTallyList; ...

How can i add data programatically in linqqtosql?

i dislike below methods. Because more fields (suchas 150 fields) it is not good method. There is any SetValue method to add datato sql linqtosql for submitchanges? MyClass c = new MyClass (); c.FirstField = "bvnvb"; c....... c... c... // Too many rows there is... ...

Compiler bug? "not a valid win32 application"

I have been working on a very large program, compiling, testing, adding new code, compiling testing - repeat. The program has generally been working fine, but then I added some new code and now when I run the executable, I get a dialog box with "xxx.exe is not a valid Win32 application.", I can only assume this is a bug in the compiler. ...

Excel dump takes long time.

So what I have is an asp page that allows my user to hit a button and it will generate a dump of data from our sql server containing about 100k rows and 23 columns to an excel file. This takes about 10+ minuets. Should it be taking that long? ...

Wix Woes: Chaining MSIs, but installing conditionally?

I am new to WiX (and installers in general), and am finding the whole process quite overwhelming. What I want to do is this: I have a very large application with a working installer currently (VS2008 Setup Project) The application depends on SQL Server Express 2008 R2 to be installed, but if the machine already has a full version of SQ...

Get email body from outlook with C#

I'm writing a program that pulls in email, parses it and then stores the entries in a database. So far I can get the subject of the email but when I try to pull in the body I get a COMException ("Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT))"). I tried pulling it as the HTMLBody instead but neither is working. I'm usin...

Developing ASP.Net Applications remotely and best practice? (Guidance needed)

Just a newbie question really. Can you edit a website (in Visual Studio) on a server from your PC by going: File -> Open Web Site -> File System -> My Network Places -> Entire Network -> Microsoft Windows Network -> FooDomain -> FooServer -> Foo_Public_Shared_Folder (which is actually a web applicaiton in C:\Inetpub\wwwroot\foobarWebAp...

Pointer seen by Visual Studio as a void**

Hi, something strange is happening to my code. I am using a library which is supposed to work perfectly (nglib from the open-source Netgen mesher). I can link and include everything, but I cannot use this library : The object I want to use is Ng_Mesh* mesh = Ng_NewMesh (); The Ng_NewMesh() method is : DLL_HEADER Ng_Mesh * Ng_NewM...

OData or REST WCF toolkit for Visual Studio 2008?

I tried to create a OData web service using VS 2008 without any luck. I downloaded ODataDemo from Odata.org, installed Microsoft .NET Framework 3.5 Service Pack 1, and ADO.NET Data Services Update for .NET Framework 3.5 for Windows XP. However, I don't see any reference to ADO.NET Data Services Framework. When I tried to add a new ADO.Ne...

ASP.NET MVC 2 projects don't recompile?

I have this very strange issue with my MVC 2 project. Often times, I'll edit some code and there will be a compile error. If I hit F5 to debug, the error goes way even though it isn't resolved. I usually don't notice this and I then keep working, hitting F5 to debug and get extremely frustrated when my changes don't show up and when my b...

Array stores name retrieved from GetVolumeInformation weirdly in Visual C++?

Hello, I would like to use the GetVolumeInformation call to retrieve the name of a removable device. I can retrieve the name just fine and store into a TCHAR array variable szVolNameBuff. Here is my code for that: // Get Volume Information to check for NTFS or FAT TCHAR szFileSys[256]; TCHAR szVolNameBuff[256]; DWORD dwSerial ...