visual-studio-2005

Use VB.NET and C# in the same application?

I am developing a GUI based application in MS Visual Studio 2005, I just want to know if it is possible to use both VB.NET and C# in the same project. Or can I include a module written in C# in my VB.NET project? I have a class written in C# which I want to use in my VB.NET based project, so if I can include and call functions from tha...

VB.NET and AutoDesk Inventor 11 Customization Problems

I've done some looking through the site and on the Internet trying to find a solution to a problem with a VB.NET application I'm attempting to create. Unfortunately, I'm stumped by an error message that has prevented me from moving forward with any Inventor customizations. Tools: Visual Studio 2005 sp1, Inventor 11 Stand Alone install O...

OpenMP in Visual Studio 2005 Standard

I have used OpenMP with gcc for writing parallel code. I am now using Visual C++ 2005 and am trying to figure out how to use OpenMP. There is a compiler option in the Properties->C/C++/Language menu but then it complains the library is missing. Is there a 3rd party implementation for OpenMP or am i just configuring Visual C++ incorrectly...

Defining more than one variable in a vb2005 for loop

Is it possible to define two variables in a vb2005 For loop in a similar way that jscript does it? the javascript example is for(i=0,l=0;i<20;i++){} ...

Building with Boost through Visual Studio is not picking the correct VS version or statically linked libs

#include <boost/regex.hpp> int main(void) { return 0; } Error 2 fatal error LNK1104: cannot open file 'libboost_regex-vc90-mt-gd-1_38.lib' This isn't a pathing problem. I intentionally do not have that .lib built, and want to link against the mt-sgd-1_38.lib file, but I don't know what I need to set to have boost's auto-namin...

Concrete Implementation of Generic Form Not Working in Designer

I have a base class, defined as below (I'm also using DevExpress components): public abstract partial class BaseFormClass<R> : XtraForm where R : DataRow { ... } Contrary to what I've read from elsewhere, I'm still able to design this class. I didn't have to create a concrete class from it to do so. But, when I create a concrete cla...

Does anyone have a Control Visualizer for VS 2005

Hello Friends I am looking for the source and download of the Control Visualizer which is developed by Brett Johnson, but i am unable to find any links related for downloading the Visualizer and also unable to find any source code for the same. I am using VS 2005, are there any links for or any other material related to this control vi...

How to convince employer to switch from Visual Studio 2005 to 2008?

I know that is good to switch to newer software, but what are the reasons which I can tell to people above me? In our department everyone has to code in the same IDE, so switching means for company buying approx. 10 upgrades and unless there is a good reason they are not very willing to do so (; We code in C++. ...

disable folder virtualization in windows

I currently have a c++ application that gets built on xp and windows vista/7 virtualize some of the paths which i dont want it to do. Some sites says to add this to manifest file: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <trustInfo xmlns="...

Is there any way to define several view configuration in visual studio 2008?

Hi , Is there any way to define an IDE Layout in visual studio 2008? Lets say that when I code in C# , I have the properties windows disabled and the output window at the bottom. Now Lets say that when I am in the visual editor of a window , I want the tools and the properties windows on the left and the output window disabled. the pro...

How to modify source files in Pre-Build... without modifying source files?

Hi, so I'm using Visual Studio 2005 and for my current project I'm building a C# Add-In to handle the weaving of aspects for AspectC++. It's simple enough to gather the aspect and source files and feed them into the aspect compiler, but this generates new (modified) source files. I'm trying to emulate the standard AspectC++ Add-In: htt...

Mining out functions from a CPP file

Hi experts, I am using Visual Studio 2005, VB. I have to parse a CPP file and list all the functions that are getting called in that CPP file. Is there any built-in object that can make things easier for me or should i go about searching for () and then finding out the function calls? That is also a bit difficult (I suppose) because the...

Visual Studio 2005 Installer is launched after reboot

Hi everyone, I recently reinstalled visual studio and my machine froze during setup. While the setup completed successfully when I ran the installer next time, the "configuring visual studio 2005" window started to pop up at every reboot. To me it seems like an entry in registry somewhere ( runonce?) but I am not sure. Any help is appr...

Trying to pass Parameters to Crystal Reports

I am trying to pass parameters from Visual Studio using VB.net to a Crystal report. I am using the following code: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If IsDate(MaskedTextBox1.Text) Then Dim report As New invoice4 report.SetParameterValue(0, gC...

How to redistribute Crystal Reports for VS2005 to Vista?

I have a WinForms app built using Visual Studio 2005, including the crystal reports that comes with VS2005 to run and view reports. My installer uses the merge module CrystalDecisionsRedist2005_x86 to install Crystal. This all works well until I try installing on Vista, when I get errors registering the Crystal dlls. It seems this is a w...

Way to see assigned visual studio shortcuts with given prefix

Is there a simple way to see assigned shortcuts with given prefix? Something similar to emacs CTRL+M, CTRL+H. I can do it in following way, but hope, that there is more simple solution: Tools -> Customize -> Keyboard In "Press shorcut keys" press given prefix (say CTRL+M) In "Shortcut currently used by" combo-box there is a list of ass...

How to bring up the "Windows cannot open this file" dialog?

My users can attach documents to various entities in the application. Of course, if user A attaches a .TIFF file, user B may not have a viewer for that type of file. So I'd like to be able to bring up this dialog: My application is C# with VS2005. Currently I do Process.Start and pass in the file name. If no association is found,...

How do i perform a better colorize function?

Duplicate of http://stackoverflow.com/questions/885696/how-do-i-perform-a-better-colorize-function I am using this function in vb2005 to colorize a pixel, however when a user chooses a color >50 i begin to lose detail in the image, any idea how i can fix this? Private badcolor As Color = Color.FromArgb(0, 0, 0, 0) Public Function gra...

How do i dynamically call a function with delegates by passing a string to a background thread in vb2005.net?

How do i dynamically call a function with delegates by passing a string to a background thread in vb2005.net? currently my code is this Public Sub invertImageBK(ByVal image As Bitmap) Dim snxl As System.ComponentModel.BackgroundWorker = createBW() snxl.RunWorkerAsync(New ImageProperties(image.Clone, "invertImage", Nothing)) End...

Visual Studio loses track of pending changes after unshelve

Yesterday I worked on a set of changes I don't want to check in yet, and at the end of the day, decided to shelve my changes. The changes included a bunch of added files. The shelving worked fine, but today when I unshelved, the following happened: VS told me four writable files already exist in my workspace. These files were the ones ...