visual-studio

NullReferenceException mystery

...

How can I use integrated Windows Authentication when debugging locally with Visual Studio

I'm using RESTful WCF services to serve data to a client. The application hosting the services requires integrated Windows Authentication on the server, making testing locally in Cassini quite difficult. I use the following behavior configuration for my service, which works great when deployed to IIS with Integrated Security turned on. ...

Clarification on a header without #includes

Hi all :) I was reading some code from the Doom 3 SDK ( in a VS solution ) when I found a header like this: #ifndef __PLAYERICON_H__ #define __PLAYERICON_H__ class idPlayerIcon { public: idPlayerIcon(); ~idPlayerIcon(); ...... // omitted public: playerIconType_t iconTyp...

How do I find the path of Visual Studio in the registry using Python?

We have this code, but it doesn't work any more: def get_vcvarsall(generator): value = None type = None key_name = r'SOFTWARE\Microsoft\VisualStudio\SxS\VC7' key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, key_name) if generator.startswith('Visual Studio 8'): value,type = _winreg.QueryValueEx(key, '8.0') elif generator.startsw...

How do i use a Resources.resx in a C# class?

i am currently using this line of code resourceManager = new ResourceManager("Namespace.class", GetType().Assembly); to try use a resourse but keep getting a error: System.Resources.MissingManifestResourceException was unhandled i am just trying to use the default .resx file made by VS2008 ...

how to transition from c# to python?

i feel like i'm going back to the stone age. how do i relearn to develop without intellisense (pydev intellisense doesn't count).. in general, how does one successfully leave the comfort of visual studio ? ...

Embedded Visual C++/Why is my Symbol Undefined?

I am new to this platform, and I am trying to resolve an issue with existing code that was developed by a contractor many years ago. In Resource.h, I have something that looks like this, where the last two items I have added. #define IDC_HOSPITAL_NAME_LABEL 1069 #define IDC_REASON_LABEL 1070 #define IDC_HOSPITAL_...

How can one setup a version control system on a local network, without a server?

Edit: Ok so I learned that I guess I need an distributed source control, however are there any UI based ones, and do they allow you to merge with other users on the network? This is kind of a two part question, so here it goes. I want to start developing a web application at home (with multiple developers). However, I don't have a dedic...

Signed assembly dependency that references a COM DLL must have the dependency's generated interop assembly referenced

Sorry about the terrible title. I have a signed assembly 'Signed.dll' that is a dependency of another assembly, say Executable.exe. Signed.dll references a COM DLL and publically exposes one of this COM DLL's types: 'ComPublicT.' Executable.exe must reference the automatically generated Interop.COM.dll from the Signed project, rather ...

Visual Studio Macros on 64 bit fail with COM error

I'm doing some javascript development and found a cool macro to region my code ("Using #region Directive With JavaScript Files in Visual Studio"). I used this on my 32 bit box, and it worked first time. (Visual Studio 2008 SP1, Win7) For easy of reference the macro is: Option Strict Off Option Explicit Off Imports System Imports EnvDT...

Set data type (xml) for a field in data table, using Visual Studio

Hi I have datatype for a field recently converted to xml from varchar(MAX) in SqlServer DB. I want to set this type for the corresponing field in the data table, but it has no option for xml. Any suggestion ? Thanks using VS 08 and SQL SERVER 08 ...

How does the immediate window of visual studio print all members of an object?

How can I using the output window write all the members of an object? Trace.WriteLine uses method ToString and doesn't output all the members. Is there API to do it without writing own code? ...

why project dependency affect linker settings

Hi, any idea why project dependency (Visual Studio) affects linker settings (C++)? I thought that it's enough to chceck linker settings (Additional depend...) or pragma in source code. It's not a big problem, I'm just curious. Thanks. ...

Is there a tool to automatically convert a make file to sln/vcproj?

Google reveals many tools for taking Visual Studio format sln/vcproj files, and producing a make file from them. But I can't find one that solves the opposite problem - I have a make file that references hundreds of .c and .h files and (for convenience, for debugging, for writing code in the VS IDE) would like to open it as a Visual Stud...

Resharper colors settings missed in VS tools/options

I've missed all Resharper's colors options in VS tools/options/fonts & colors (There is no entry started with "Resharper" word) Is it the way to bring them back ? ...

Where does Visual Web Developer 2008 Express Edition keep it's project files

Related to a previous question re. the debugger not working for me from VS Express: http://stackoverflow.com/questions/1840542/visual-studio-express-cant-debug-the-debugger-is-not-properly-installed/ I established that the problem seemed to be with the particular project that VS had set up when I chose "Open Web Site > Filesystem". I w...

Visual Studio 2010 Beta does not attach to w3wp.exe automatically on debugging IIS7

I don't know if this a bug of VS2010 Beta, but right now breakpoints don't get hit, when I start an ASP.NET debug session by pressing F5 (Web settings configured to "Use Local IIS Web server".) I always have to switch back to Visual Studio, press Alt+Ctrl+P and manually attach to w3wp.exe process. Then, after reloading the website in In...

Writing Code in MArkup

I have a template field in a gridview with a label whose text I want to alter depending on an if statement. The Following of course does not work but this is what i want to accomplish. <%if Eval("Address") != ""%> <%{ %> <ItemTemplate> <asp:Label ID="Label18" nowrap="nowrap" runat="server" Text='<%# Eval("Address...

Why won't OpenCV compile in NVCC?

Hi there I am trying to integrate CUDA and openCV in a project. Problem is openCV won't compile when NVCC is used, while a normal c++ project compiles just fine. This seems odd to me, as I thought NVCC passed all host code to the c/c++ compiler, in this case the visual studio compiler. The errors I get are? c:\opencv2.0\include\open...

Is there a best practice to not forget SVN Add new files with Tortoise SVN?

We've been using Source Safe for years. Now we use Tortoise SVN. It's quite a problem to not forget to add new files to the repository - Source Safe had integration with Visual Studio but I don't see any for Tortoise SVN and so I often forget to add files and this breaks the build. Is there some industry-wide practice for simplifying ad...