visual-studio-2008

Binary * Operator Not Found

I have a vector class with a properly overloaded Vect*float operator and am trying to create the global/non-member float*Vect operator as follows: (Note this is a heavily edited sample) class Vect { public: Vect::Vect(const float p_x, const float p_y, const float p_z, const float p_w); Vect operator*(const float p_sc...

How to create a COM DLL (class library)?

I have an existing COM DLL (class library), originally written in VB6 and source code now lost. I need to very quickly rewrite to make a minor tweak it and don't have access to VB6. I understand that C++ Express 2008 will let me create the DLL, but I get bogged down ATL and the like. Is there a really simple step by step guide to creat...

Assign work in backgroundworker_DoWork() according to condition

In a Winform application,I want to use a single backgroundworker (or may be one for each form) to do different tasks on different events. For eg: Search, Loading Data in grid, opening new forms, sending emails, File transfer etc. How can i manage all this in backgroundWorker_DoWork() and backgroundWorker_RunWorkerCompleted() events? ...

What is the best practice for ReadOnly Properties/Functions in VB.Net?

I'm not too new to VB.Net and the syntax, but I'm not an expert. I'm working on rewriting something in VB that was previously in C# and while I was doing so, I came across a "dilemna." I can have a ReadOnly Property: Public ReadOnly Property MaximumIndenture() Get Try 'If the connection is closed, open it.' ...

Difference between .NET Web Service & Web Service Application (NOT Web-Application OR WCF Service App)

Can anyone point me in the direction of resources that explain the difference between the two? They appear to do the same thing but are implemented in a different way.. e.g. web service application compiles to dll and global.asax.vb compiles into the app, rather than being treated in the same way as a normal web service. Edit: web-serv...

Use unit tests in unusual architecture when porting from VS6 to VS2008?

Hello, we have one main application, which executes up to 5 different exes. These exes run independently and communicate with each other via UDP. Changing this architecture is not planned at the moment. We want to migrate this whole thing from VS6 to VS2008. I'm thinking about adding unit tests to make sure that after migration everyth...

get ip address from url

I am trying to get country location from the ip address which I am also looking up from actual url. However for certain urls I am getting the following error: The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for I wanted to use the following code to identify ...

Make a constructor warn the developer of improper value?

Private _bgWorker As BackgroundWorker = Nothing Private _bgWorkerMessage As String = String.Empty Private _bgPercentComplete As Integer = 0 Private _dictQueries As Dictionary(Of String, String) = New Dictionary(Of String, String) Public Sub New() _dictQueries.Add("IPB", "") _dictQueries.Add("Figure", "") _dictQueries.Add("Pa...

Strange results in my locals window for VS2008

static void Main(string[] args) { List<string> myList = new List<string>() { "A", "B" }; string myString = "abc"; int myInt = 42; System.Xml.Linq.XElement root = new System.Xml.Linq.XElement("abc"); Console.WriteLine(myList.First()); //breakpoint on this line Console.WriteLine(myString); Console.WriteLine(myI...

Add webcontrol to web form designer in design time

I want to add a webcontrol to the web form designer in design-time, using Visual Studio 2008. I have the DTE object but I don't know how to get to the web-form-designer from there, and add the control at the end of the active document. The result should be the same as drag-and-droping a control from the toolbox to the end of the active ...

Lots of type errors in Visual Studio Error List -- until I build and then they are gone

I recently added a new project to my Visual Studio 2008 solution. Now, as I make edits in the new project, I receive a ton (~50) of type checking errors - indicating that an assembly reference may be missing. However, when I actually build the solution, the errors go away. As best I can tell, my dependencies are set and the build orde...

Report Server in Visual Studio without Reporting Services

Hi, I have visual Studio 2008 and sql server 2008 and Integration Services installed too. I uninstalled the reporting Services. I don't have reporting services in my machine anymore. But still I can see the Report Server project in the Visual Studio. I can still design,build and preview the reports. I am wondering, how come I can create...

Can anyone provide a good "idiot's guide" to creating an installer in VS2008 (C#) Pro?

I have Visual C# 2008 Professional and have developed the first half of a C# application (console mode) with the second half in progress now (GUI). I'm looking for an easy path to creating an installer for it. What are the steps that need to be taken to produce a professional installer? There's a similar question here regarding the Exp...

Reduced printing functionality in SSRS BIDS 2008 R2 "Preview" tab or bug?

Problem: Printing from within BIDS 2008 R2 "Preview" tab hangs and must have the process ended in task manager. Facts I can set the report as StartItem under Debug Configuration Properties for the project and then run, producing the Preview window. And then successfully print. I can deploy the report to the Reporting Services server ...

Assign an external image to a Picturebox in Visual Studio 2008 (C#) ?

How can I assign an external image into the PictureBox in Visual Studio 2008 ? Typically, When we use ChooseImage in PictureBox , Visual Studio adds the image to the exe file and it causes increasing exe file's volume, I wanna add the image from a directory beside the exe file. Is it possible in Visual Studio 2008? P.S: I don't want add...

I am using Transactional Replication, At certain time my replication is fail how can i know?

I am using Transactional Replication, At certain time my replication is fail how can i know? ...

problem with server side includes for html page in visual studio

I have the following html pages example1.html ,header.html,searchpanel.html i have server side includes control in example1.html to refer for header.html and searchpanel.html the problem is this works fine when i browse through dreamweaver but when run the example1.html through visual studio it does not refer to header.html . This is ex...

VS2008 Professional trial does not show x64 option

I've VS2008 Professional trial obn windows 7 64 bit installed at the moment and its not giving me any other option other than Win32. Creating x64 nmanually doesnt work, 64 bit compiler are there. Driving me nuts.. Need the service pack? http://www.visualstudiodev.com/visual-studio-setup-installation/cant-create-x64-configurations-compil...

System.Web.UI.WebControls.Image/ImageButton not displaying the image

Hi, I'm a newbie to Asp.net,learning from the Apress's Begining Asp.net...book.While very curious to see an image given by me on the browser,I'm stuck at the very first step, please help. Configuration : Win7(32-bit),VS2008 Pro/.net 3.5,Firefox as default browser. Now,In created a simple website(not web app) in C#,added three images(....

class wizard from dialog box in VC ++ 9.0

does any body know how to bring a class wizzard from a dialog box in MFC application using VC++ 9.0 only. ...