visual-studio-2008

Can OOPP (Out-of-process plugin) windowless?

Hi, I am trying to write a OOPP(Out-Of-Process plugin) ActiveX in vs2008. can an OOPP activevx plugin windowless? if so with out windowhandle how can we send signals to that window? ...

Paremeters in TableAdapter not accepted

I'm currently trying to set up my TableAdapters, but it doesn't allow me to use parameters (what makes it quite useless) - When I create a new Query SELECT users.* FROM users WHERE name LIKE @name It tells me there is a SQL-Error near '@'... I'm using VS08 with C# and an Access-Database using OleDB-Driver ...

[VB.NET] Automatically add namespace when adding new item

When adding a new item (class, control, etc) in C# it will automatically add a namespace to the file depending on the location in the project. Is this also available for VB.NET? The code 'Namespace DataClasses.AX' and 'End Namespace' would be generated. Namespace DataClasses.AX <Serializable()> _ Public Class AxInventItem #Re...

Is Master Page required in web application?

HI. I am new in using WEB applications and Visual tsudio. I was just designing this application and made many .aspx files which have my design's, Now suddenly when i was learning about User Logged Display, I came across the concept of Master Page. Now it has confused me a lot, Should i once again restart my web application to add Master...

"Member not found" error when using vlc plugin in vs2008 Mfc

Hi i am trying to use vlc plugin in my vs2008 mfc project to play video files. but i am getting "Member not found" exception. can any body suggest me how to overcome this? ...

Why the template for a webform got a different behavior than the IDE?

If you open this zip file C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\VisualBasic\Web\1033\WebForm.zip in this file Default.aspx.vb you will see this code Public Partial Class $classname$ Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) H...

How can i get NON contains data from list?

I have "Contains" method but I need a "Not Contains" method. Any suggestions? var ResultsOfMPD = (from m in engMpdMultiSelect where engMpdMultiItems.Select(o => o.ENG_MPD_MYTECHNIC_TASK_NO). Contains(m.ENG_MPD_MYTECHNIC_TASK_NO) select m); is there any method like that? var ...

Unwanted breakpoints in Visual Studio debugger

I check out my projects from SVN and usually have a couple of projects in my solution while debugging . sometimes when I set breakpoints in my program to debug it, the program breaks at other points that I have Not set any break point in there at all ! but there is a break point in there? How is it happening? does VS keep its breakpoints...

Files referenced in .ASPX not found

I've created a new web application project in Visual Studio 2008, and then copied in some code from a project created with an older VS version. For instance, I'll add a new web form item in my project, say, "Shop.aspx". Then copy the older code into the new file. The trouble is that referenced supporting files get a "not found" warnin...

Compiling for windows 64bit target, issues with static .libs

Hi, I'm using MS Visual Studio 2008 professional edition on windows 7 64bit. I installed the 64 bit compilers along with the standard 32bit ones. I have used http://argtable.sourceforge.net/ for windows 32bit programs before I have no problems building my application (Which is just written in plain and simple C89) to use argtable2.lib ...

IsTrue:TrueCondition:FalseCondition Evaluates Both Conditions

I discovered a very puzzling behavior for the following code: public double ReturnBehavior(List<double> ptList) { return ptList.Count==0? 0:ptList[0]; } I thought it should be equivalent to public double ReturnBehavior(List<double> ptList) { if(ptList.Count==0) return 0; return ptList[0]; } But it is not, becaus...

Unable to create/save output avi file in OpenCV

I Have following source code to detect BLOB and i am using MS 2008 , OpenVC 2.1 #include "stdafx.h" #include <cv.h> #include <highgui.h> #include <stdio.h> #include <stdlib.h> using namespace std; /*You may change the values of the sthreshold and hlower and hupper to get different results....*/ const int sthreshold=210; const double h...

textbox string to long format error

hi, i am doing a project with SQL server 2005 and VS 2008, I have parsed a textbox text to long variable(phone number), because the backend stores the phone number in bigint. long phone = long.Parse(TextBox4.Text); This works fine when i insert my phone number, but if a person doesn't know or doesn't want to insert it, i have the...

File Local Define

Hey all; This question more falls into the category of best practices, and clean/safe code for distribution. I'm working on a math library in c++, for my portfolio, and to use during my last two semesters of College. I want this library to be very easy to use, and to minimize the possibilities of conflicts with pre existing code. For...

Creating a swatch library.

Hey all, I'm working on cleaning up my code from previous semesters. Previously I created a 151 color swatch library in c++. However because of my time crunch and lack of experience, I created it entirely as a block of define statements. Which, for hard coding values into spots worked fine. However there are some obvious weaknesses to t...

How to enable more debugging info for DirectX variables in VS 2008 ?

Hi! I was able to enable debugging info for directX variables like LPD3DXMESH etc. Normally it just shows IUnknown and a some pointer value, but if additional debugging is enabled its possible to see more detailed info about the structure. Problem is that I lost the project and now I can't remember how to enable this type of debuggin...

Overloading + Operator With Templates.

Hey, I'm getting a linker error LNK2019: unresolved external symbol when trying to use an overloaded + operator. I'll show you snip-its from the class, and how I'm using it in main. If you need to see more, let me know, I'm just going to try and keep things concise. /** vec.h **/ #ifndef __VEC_H_ #define __VEC_H_ #include <iostream> #...

.NET - does not exist in the current context...

Hi I have a few apps built in ASP.NET 3.5, VS 2008. After having to re-install VS 2008, when I go to amend any page in any system, all the controls dont seems to be recognised and Im faced with "[control name] does not exist in the current context" This is for all my apps. Also getting "failed to create app domain" in all apps as well....

Visual Studio loads report design view (RDLC) veeery slow

Opening a report design view with my local VS 2008 Pro is very slow, it sometimes loads 30 seconds and since I have many reports in my solution, it really starts getting on my nerves. Is there a trick to avoid that and load the rdlc files faster? Thanks ...

Visual Studio 2008: Use external Debug-DLL for Debug-Run and external Release-DLL for Release-Run

Short version: If running a program from VS2008 in Release mode, I want it to use pathA\externaldll.dll. If running a program from VS2008 in Debug mode, I want it to use pathB\externaldll.dll Long version: I have a programm that is linked against external dll-files (VTK). I have built the external application myself in both Debug and ...