visual-studio-2008

Programming an ActiveX component in Visual Studio 2008 vc++

Hi, anyone knows a good tutorial for programming ActiveX in Visual Studio 2008 for VC++? or the way to create methods and properties automatically, like the old Wizzard in VS6.0 did? I was trying harder to find some info, but everything is for C#, VB, or it's explained for VS6.0 and not 2005 or newer :( Thanx everybody. ...

c/c++, mfc: Not passing open files / handles to a spawned process

In unix I know the routine: between fork() and exec() in the child I close everything except stdin/out/err, so that all the open ports or files are not passed to the program I want to run. But how do I do this in windows? In my case I'm implementing a DLL in C/C++, and I need to close both some files I opened (indirectly via some object...

How to back up or move a project

Someone set up a large complex visual studio project on my PC. The source sits on more than one directory and it uses the boost libraries. I wish to make some modifications to the source code to experiment with some ideas. But before I do that I want to make a back-up of the project elsewhere on my PC so that I have a back up and So ...

How To raise NofityIcon Control Event in Window Service

Hii,I am Siddharth,ihave build a Window Service That Raise a NotifyIcon Balloon PopUp in SystemTray. But NotifyIcon BalloonTipClicked Event is Raising on Cliking.Plzzzzzz Tell me Ansssssss. Mail me at : [email protected] ...

Why I cannot call the interface of Release of a COM object

I'm develop a VC Add-In for VC6 and VC9. The following codes are from my works. In CViaDevStudio::Evaluate, after I call pDebugger->Release() and it's all OK. But in CViaVisualStudio::ReadFromMemory, after I call pDebugger->Release() or pProc->Release(), VC9 will prompt a error complaint a unspecified error number. I don't know why. I th...

Joining two programs one with main() one with WinMain()

I want to combine two programs into a single executable. One is an open source program that has a rather complex project file, the other is one of mine with a much simpler structure. Because of the relative complexities of the project files I feel it would make most sense to start with the open source project and modify it to include my ...

Problems with debug DLL for device driver in VS2008

Hi, I'm working on migrating device driver for a specific device to windows7. For that I need to re-build old project using VS2008. I used the release exe and DLL to start up device loader and device driver. But services didnot start up. Even with the debug exe and DLL device loader and device driver did not start up. But, when I actual...

convert a console app to a windows app

(its a long story) but I have a large complex project file containing a windows program. Unfortunately the project was originally built as a console app. The program compiles and links ok but when runs brings up a console instead of the collection of windows I was hoping for. I looked at the command line and saw "/SUBSYSTEM:CONSOLE" wher...

How to Update Data Source in C#

I am working on a Windows Form-Based application in Visual Studio 2008 using C# with an Access database as a back end. I added the Access database into the project by going to Data->Add New Data Source and I am able to retrieve data from the database's custom-made DataSet perfectly. My next goal is to save new data back into the Access ...

Improve the design of GUI/website

So i am using visual studio 2008, asp.net 3.5, with the basic toolkit provided. Now i have made the gui which a lot of functionality but the design is very basic. and looks too old. I need to give it a new look, a new feeling new designs.... like the gridview, the buttons the textboxes, the menus look basic... this is not working for...

Can Visual Studio Post Build Events be used with ClickOnce Publishing?

In Visual Studio 2008, can a the post build event be used with Click Once publishing? If so, how? Out of the box is looks like I can only use pre-build events and click once publishing seems to build the project to a different location, before the post build event is launched. ...

intellisense not properly working visual studio 2008 for Visual C++ and MFC environment

I am working in vc++ of Visual Studio 2008. In my project (VC++), I could access the INTELLISENSE only when i press CTRL+SPACE. it doesn't work automatically as like any other project ( i.e. C#, VB .Net). so what should i do to work with the intellisense efficiently? ...

how to run Web client software factory i face to face :"Exception Details: System.InvalidOperationException: '/' matched to the path."?

/ WebClientApplication1' Application Server Error. '/' Matched to the path. Description: An unhandled exception occurred in the execution of the current web request. About the error and where it originated in the code review the stack trace for more information. Exception Details: System.InvalidOperationException: '/' matched to the pat...

Problem with omp_set_num_threads called from a WinAPI thread

I've run into a funny problem using OpenMP v2 under MSVC 9 SP1. when calling omp_set_num_threads from the main thread of execution then using omp_get_num_threads to check the amount set, all works well and checks out. However, in an GUI app, I call the same thing, but its own thread(created with CreateThread), to prevent the UI from be...

How to prevent duplicate code generation when placing winforms event handlers in other partial files

In a winforms application I have a MyForm.cs that starts to get quite large. To solve this I have created a new file(MyForm.LeftPanel.cs) using partial class of the MyForm class with a subset of the GUI functionality. However once in a while, not always, when I go into the designer all event handlers that I have moved to MyForm.LeftPane...

Installer Project giving error in VS2k8

Hi guys, I have a installer project on VS 2k8, .net 3.5. Its giving me the following error: Error 1 Invalid icon file 'MSDN Magazine Managed Preview Handlers', located in 'Application Folder' C:\Users\jaminator\Desktop\APPreview\Handler\InstallPreviewHandlers\InstallPreviewHandlers.vdproj InstallPreviewHandlers It is a demo appli...

Making Visual Studio TFS plugin store your credentials?

Every time I open Visual Studio 2008, I get a pop-up dialog prompting for my username and password ('Connecting to Team Foundation Server'). Presumably this is because I have my TFS server stored in the Team Explorer tab, in Servers, so it wants to connect to it on startup. In addition, this happens when I open a solution file whose so...

Is it possible to create ClickOnce-like functionality for an Excel 2003 addin ?

I'm working on an Excel 2003 addin (users will upgrade to newer Office, but not any time soon), and am wanting to use functionality to automatically check for a newer version, and deploy it if there is one. I can't use ClickOnce as that is Office 2007 (so VSTO v3) or better. I'd like to have some functionality that does this kind of ta...

Can a VS2010 VSPackage project be installed to VS2008?

I am wondering whether the result VSIX artifact of a VSPackage project created and written in Visual Studio 2010 can be deployed to Visual Studio 2008 - provided, of course, that the package does not use/rely on any .NET 4 assemblies? Alternatively, what other paths may exist, that allow me to create an installable extension targetting ...

How to have an integer string in an enum?

I know this is a proper enum: Private Enum Months JANUARY = 1 FEBRUARY = 2 ... End Enum However, I want to have an enum where the string will solely be integers. Example: Private Enum ColumnCounts 01 = 5 02 = 4 03 = 40 End Enum The 01, 02 and 03 are all strings. However, if I put "01", [01] or just 01, it tells me it ...