visual-studio-2008

Is it safe to define _HAS_TRADITIONAL_STL to enable STL functionality ?

In attempting to use std::select1st from <functional> in a VS2008 project I found that it was ifdef'd out by a _HAS_TRADITIONAL_STL guard. Is there a reason for this? Is it safe to simply define _HAS_TRADITIONAL_STL before including <functional>? ...

Can I use classes and controls from main project in other projects within one solution?

How should I divide source files into projects (within one solution) to be able to use common classes in more relatively independent apps, avoid lots of dlls needed (preferably all in one file for each application), keep it fast? There are working (data processing) classes, User controls, some utility classes and Forms of the ap...

Why does a multilanguage solution not work?

My solution has a C# application project C# User Controls project C++ Mathematics project One of the UserControls uses function from the Mathematics (C++ project). This UserControl is used in the application. Building and starting the application works just fine. When typing the IntelliSense suggests all the contained classes and me...

Dll execute during MSI execution(Installer)

I created an MSI for my application and i want my dll to execute during installation of this MSI. How can i add my dll to MSI. I read something on ORCA but getting error. Can anyone help to add my dll to msi using orca. My dll contain a message box and registry entry ...

Set system time into registry

i want to create a new registry entry and set current system time into registry. How can i implement it using C++ ...

How to set system time, day and year in registry

i created new registry entry using RegCreateKeyEx(HKEY_LOCAL_MACHINE, TEXT("Software\XXXXXX\Test"), 0, NULL, 0, 0, NULL, &hkey, &dwDisposition) Now i want to save current system time data and year to the newly created registry for later retrival How can i implement it in VC++ using RegSetKeyValue. I tried but faile dto implement. ...

DataGridRow Cells property

I would like to get to DataGridRow Cells property. It's a table of cells in a current DataGrid. But I cannot get access direct from code nor by Reflection: var x = dataGridRow.GetType().GetProperty("Cells") //returns null Is there any way to get this table? And related question - in Watch window (VS2008) regular properties have an i...

Localize node texts in treeview using resource files

For a project I need a tree view that allows the user to select a module, which then is displayed in a content area. The project relies heavily on localization and this is provided by the resource files. Now I discovered today, that the text that are assigned to preset tree view nodes are not contained in the resource files. So the q...

Registry entry using VC++, Data corrupting

Hi I want to set system time to registry, i did like this. But some null characters only getting there. when i am giving LPCTSTR data = TEXT("24/3/2010\0"); LONG setRes = RegSetValueEx (hkey, value, 0, REG_SZ, (LPBYTE)data, 100)); thsi is sucessfully adding into registry How to trace the issue IF possible please check my code ...

Restart system in the deplyment of visual studio 2008

I there any option to restart in the visual studio when my product install? ...

How can I prevent the "... has stopped working" window on my Server 2008 R2 dev box?

I'm using a Windows Server 2008 x64 R2 machine as a development box. Amongst many other things I've got Visual Studio 2008 SP1 installed on it. When I'm working on a project, I sometimes need to use Debug > Start without Debugging (Ctrl + F5). If the program throws an exception, I get a new R2-style window appear. I'm pretty sure I d...

Windows SDK for Windows 7 and .net framework 3.5 installation

I have Visual Studio 2005 Pro and VS 2008 Pro installed. I think the VS 2008 installation gives me the MS Windows SDK for VS 2008 headers and libraries.Do i need to install Windows SDK for Windows 7 and .net framework 3.5? I have a version 5.0,6.0A already in C:\Program Files\Microsoft SDKs\Windows ...

C++ linking issue on Visual Studio 2008 when crosslinking different projects on same solution

I'm using Google Test Framework to set some unit tests. I have got three projects in my solution: FN (my project) FN_test (my tests) gtest (Google Test Framework) I set FN_test to have FN and gtest as references (dependencies), and then I think I'm ready to set up my tests (I've already set everyone to /MTd (not doing this was leadi...

Can I output Trace messages to a separate window in Visual C# 2008 Express?

Console, Debug, and Trace messages all seem to be displayed in the "Output" window, which is fine in most cases, but I'd like to have my Trace messages displayed separately (so they're not interleaved with everything else). Is there any way to do this without writing to a file/log? ...

Visual Studio 2008 doesn't create *.refresh files for external DLL references... what am I missing?

Hi all-- I've got a question about something that's just been irritating me. A colleague and I are building a support framework for our current client that we want to reference in other projects. The DLL we want as a reference in our project would be an external reference. We're adding it by doing "Add Reference...", then browsing to t...

Select All as default value for multiple values parameter SSRS

Hi there I'm building a report in VS08 with a lot of multiple values parameters and it's working great, but I would like to have have the "(Select all)" option as default value when the report is opened. Is there some kind of expression or sql code I can use to make this happen or do I need to choose "(Select all)" every time, in every ...

sharp architecture question - no strongly typed views

Hi, I am trying to get my head around the sharp architecture and used the visual studio template as described on the web: http://wiki.sharparchitecture.net/VSTemplatesAndCodeGen.ashx This is all cool. Unfortunately, I cannot add a strongly typed view as easily as I am used to ‘under’ asp.net mvc. What can I do to ‘enable’ this in VS ...

WPF Docking windows like VS2008 IDE

I'm sure a lot of people would like to be able use this in their apps. Anybody know where to get or how to implement the Docking windows in VS2008, like the Solution Explorer and Properties windows? ...

C#.NET : A graphical control makes my app freeze after workstation unlock

Hi, I have a graphical control that is multithreaded. Until now it worked fine, but I just noticed that whenever I'm on my application showing this control the following happens: if I lock and unlock my workstation, it freezes, like if it were in some kind of infinite loop. Even stranger, this bug occurs only when I'm not launching ...

Visual Studio 2008 setup looking at wrong drive

I'm trying to add a feature to VS 2008. However, the initial install was done with a DVD in drive D: ... I don't currently have the DVD, so I'm trying to do the updating using an .iso mounted as drive E: ... The VS setup program is not able to find the setup files. Is there a way for me to tell VS 2008 setup to look for files in E: in...