visual-studio

How to avoid "error LNK2005:" (already defined stdlib functions) when compiling libpng with Microsoft Visual Studio '08?

(Why I am trying to do this: I have had no luck in using the pre-built binaries for libpng on Windows (despite many hours of trial and error), and therefore am now trying to compile it myself. I found this helpful blog post concerning this, complete with a Microsoft Visual Studio 2008 project file, but unfortunately have still not been a...

Visual Studio 2008 Restrict to ANSI C

I want to restrict microsoft visual studio so that it can only run "C99" (ANSI C) code. Can any one give me some guideline? ...

Publish Web dialog for a standard VS Website Project?

Until I started building MVC sites, I always built WebForm web sites using Visual Studio Web Site projects (instead of Web Application projects). When I publish my MVC sites, I'm loving the Publish Web dialog that allows much more control over the deployment than I'm used to. This is the feature I've been looking for for 5 years! Web ...

Disable Microsoft Visual C++ Runtime Error

If my application crashes, a Microsoft Visual C++ Runtime Library "Runtime Error!" occurs. The text of the message is: This applicaton has requested the Runtime to terminate in an unusual way. Please contact the application's support team for more information. I know, that I need to solve all these issues, but I imagine that this error...

VS 2008 Team Database project

I have one database of sql2008. 1- Some table are use for client in sql compact CE format. 2- Whole DB on server I want to use team data base project solution to manage, compare and modify the schema. Can i made any distinguish to project to compare only some tables and generate scripts. Please let me know if it make some sense. ...

AllowDrop does not appear in intellisense menu

Why does the AllowDrop property in VB.net not appear in the intellisense menu of a control? Also why is it not in the propeties window of the designer? ...

Dynamically inserting strings to a std::map

Hi I am trying to create a map of file pairs... First I am searching a specified directory for files using the FindFirstFile and FindNextFile and when a file is found I search the map to see if the associated file is there. If the other file was added to the map, the new found file is inserted beside the previously found one. If an asso...

Why does CUDA.rules have two identical command lines

The commandline for CUDA.rules file is: echo [CompilerPath] [Keep] [CInterleavedPTX] [ExtraNvccOptions] [Arch] -ccbin "$(VCInstallDir)bin" [Emulation] [FastMath] [Defines] -Xcompiler "/EHsc [Warning] /nologo [Optimization] /Zi [RuntimeChecks] [Runtime] [TypeInfo] [ExtraCppOptions]" [Include] [MaxRegCount] [PtxAsOption...

Why does Request["host"] == "dev.testhost.com:1234" whereas Request.Url.Host == "localhost"

Hi all, I seem to have found a discrepancy when testing ASP.NET applications locally on the built-in web server with Visual Studio 2008 (Cassini). I've set up a host on my local machine associating dev.testhost.com with 127.0.0.1, since I have an application that needs to change its appearance depending on the host header used to call i...

WinDbg -- debugging mixed x64 managed/unmanaged code

I'm using WinDbg (Native x64 -- NOT Itanium) to debug an x64 (unmanaged) application that loads both managed an unmanaged DLLs. I'm trying to set a breakpoint in one of the unmanaged DLLs. When the breakpoint is hit and I step through, the instructions displayed are totally different from what they should be. I verified with two differe...

How to automate Visual Studio tasks following SVN update?

I have several Visual Studio web application projects that include SVN externals. When a new file is added to an external module, VisualSVN brings it down to the file system, but doesn't add it to the Visual Studio project; it has to be manually added. I might write a macro to automate this process, and I'm wondering if I can make it a...

Why does my T4 template append a number to the file name?

Why do my T4 templates sometimes append a number to the output file and sometimes not? For instance, in one case I might have a template file called Foo.tt and I'll get an output file of Foo.cs. In other cases, I'll get an output file of Foo1.cs. In every case, there is no other Foo.cs file that might be causing it to append a number. In...

Visual Studio 2008 class diagram creates empty properties, not autoproperties

I'm using a Class Diagram in Visual Studio 2008 to create some classes with properties. I notice that when I create a new property in the Class Diagram, it comes out in code like this: public DateTime DateBilled { get { throw new System.NotImplementedException(); } set { } } Yuck. I'd much rather it e...

Installing msvcr90.dll easy way! (without C++ Redistributable Package)

My program is a converted python file to exe file. The problem with this exe file is that it does not run without python installed and it only needs mscvr90.dll! I don't want to install C++ Redistributable Package just for this dll file! That big fat package! If I copy this msvcr90.dll to my application folder it just won't work! The f...

Using IIS virtual directories in Visual Studio Web Application projects

I have an ASP.NET project that has the following directories \ads \photos both these folders have thousands of files in them that get updated frequently. I currently have my IIS set up like \inetpub\wwwroot\foo \inetpub\wwwroot\foo\ads \inetpub\wwwroot\foo\photos \inetpub\wwwroot\foo.staging \inetpub\wwwroot\foo.staging\ads \inetpu...

VB.NET 2003 copy log4net.config to bin folder

I'm using VS.NET 2003 and VB.NET. I have placed my log4net.config file in the same folder as the source code and I want to automatically copy the log4net.config file to the bin folder just as the app.config file is copied to bin. Is there an automatic way to do this? ...

What is the latest version of .Net FrameWork and Visual studio

I want to know about the latest .net framework and visual studio versions avalilable in the market. ...

How to go back to a clean user interface code ?

I am working on a winforms project containing some forms and controls. Each one is translated in 4 languages. There is one form called "PropertiesForm" which is a nightmare to maintain : it has a tab container with 6 tab pages, and more than one hundred controls in it, with dirty code trying (and often failing) to keep the whole thing co...

C++ Array vs vector

when using C++ vector, time spent is 718 milliseconds, while when I use Array, time is almost 0 milliseconds. Why so much performance difference? int _tmain(int argc, _TCHAR* argv[]) { const int size = 10000; clock_t start, end; start = clock(); vector<int> v(size*size); for(int i = 0; i < size; i++) { for(int j = 0; j < size; j+...

Where can I download Sp5 for Visual Studio 6.0?

Folks, My google-fu is failing me today. Anyone have a link to a download for VS 6.0 Sp5? I can download SP6 but the bean counters say it has to be SP5. Thanks ...