visual-studio-2008

Classic asp paging and session state

Hi, Working on a classic asp page that uses paging. The error I am having a problem with is this: Lets say that you have 5 pages returned in your record set and you are on page 2. You leave and come back, you then press the link for page 3, the trouble is your session has timed out. I don't know why this happens but the page is relo...

Visual Studio 2010 .NET framework 3.5 unavailable

Hey people, I have installed VS 2010 Professional, and despite my tremendous urge to work on it since it is pleasing to the eye, it seems not to support .NET framework 3.5/3.0. Therefore, I have switched to VS 2008 rather relunctantly. Does anyone know, to add .NET framework 3.0/3.5 to the top right Combo Box within the make new pr...

Problem with debug watch in Visual Studio with yield return enumerator methods

I have a method which returns an IEnumerable<> which it builds up using the yield return syntax: namespace Validation { public class UserValidator { public IEnumerable<ValidationError> Validate(User user) { if (String.IsNullOrEmpty(user.Name)) { yield return new ValidationE...

How to use client side code in Visual studio ASP.NET

I am a quite new to web development and I am trying to do some small form updates without causing a postback. For example making a control visible when a drop down list is changed. I have so far come across some features that achieve this like the RequiredFieldValidator inside an update panels. However, these are specific to a single ...

Member function pointer to integer?

Is it possible to get the virtual address as an integer of a member function pointer? I have tried. void (AClass::*Test)(); Test = int num = *(int*) But all that does is get me the virtual address of a jmp to the function. I need the actual functions virtual address. ...

add version no in setup project

Hi, I have created a setup project following the steps listed on below mentioned page: http://msdn.microsoft.com/en-us/library/ms235317%28v=VS.90%29.aspx It just creates a xxx.msi where xxx is the name of setup project and setup.exe. I want version no. in .msi as well as exe. I know, for every new version, I can create a new project w...

TFS 2008 Build Script

In TFS 2008, I am trying to modify a build script (TFSBuild.proj). I get the following warning: The element 'PropertyGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'TeamProject' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. Which is correct, The element Proper...

VS2010: "Select Resource" dialog & resx location

Got two issues with the VS2010 / VS2008 select resource dialog - the one that appears when you want to add an image to a button in a WinForms app for example. Give me my files back! It only seems to see the default project resources file (Properties\Resources.resx), and resx files in project root (say MyProject\famfamfam.resx). We ha...

Query MS Access database in VB 2008

Hi, I added an Access database as a Data Source in VB 2008. I want to query this database and use the information in various ways throughout the program. For example, there is an Employee table with first/last names of employees. I have a combobox on my form that I want to display all of the employees. So I want to query the database fo...

Visual Studio 2008 setup project, how to block the folders from deleting during Uninstall?

Hi, I have the following problem. After I uninstall the project - all folder is removing. But it contains the files which shouldn't be deleted. What could you advice me? Ideally I would haeve the option which will be proposed to the user while uninstall with checkbox if it is necessary to delete this folder or not. Thank you in advanc...

Debugging silverlight 3 in vs2008 after vs2010\silverlight 4 installed

I've installed vs2010 on my machine now it seems that I can't debug\run my silverlight 3 app in vs2008. The debug play button (F5) is grayed out. And when an exception is throw it says "Debugging resource strings are unavailable". I feel like I read something about this somewhere but can't seem to find it now. Also I can't just us vs...

WCF debugging on Windows 7 x64

I have created a very simple WCF sandbox project using Visual Studio 2008, consisting of: Console client application WCF Service Library, running in WcfSvcHost.exe I am unable to debug the WCF service on my Windows 7 x64 system. I get a popup saying: Unable to automatically debug 'ServiceLibrary'. The remote procedure could n...

Editing source from a Visual Studio 2008 project in Visual Studio 2010

I work in a large team, and not everybody has upgraded from VS 2008 to VS 2010, though I have. I have a maintenance bug in a VS 2008 project, and have been told that I cannot upgrade the project file. Is there a way for me to make the changes I need to make within VS10 without upgrading the project (including compiling, using the debugge...

Visual Studio 2008 coding for Visual 2010 add-in

Hey guys, I been wondering if VSX is backwards compatible in coding, as there had been very limited and vague resources for the VS2010 add-in API. I need to create an add-in for a project, but since I've never coded in VSX before, I was wondering if anyone knew. Thanks in advance. ...

Opening a file in c++ by using a string array of adress

Hello guYz plz help me out in making it possible to open the files by the adress provided in an array of strings......... a way to open file is as given below... ifstream infile; infile.open("d:\aslam.txt"); but how can i open file providing an array of string as an adress of file..... like this infile.open(arr[i]); (but its not worki...

Checking that all libs and dlls are from the same build?

I am developing a program in VS C++ 2008. Right now, I have a huge list of dll and lib dependencies and I am adding some more. I worry that when I need to update a dependency by building from source (where I have to manually replace built dlls and libs in the correct place), if I accidently forgot to replace something or vice versa, I m...

how to put SQL Server express R2 advance and Wt edition in the visual studio setup as a CLickOnce prerequisites

Like i said in the topic: I would like to insert as a ClickOnce prerequisites sql server express r2 editions. I can do a similar package.xml and product.xml like that of sql server express that i took from vs2010 but i don't have the public key for SQLEXPRWT_x86_ENU.exe does anyone know how to find the public key ??? ...

Why is my class method not visible when I implement an interface in my class?

i can not see MyLoad.TreeLoader(.... but why i can not see? i implemented iloader to TreeViewLoad. i should see TreeLoader why? namespace Rekursive { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) ...

error C2146: syntax error : missing ';' before identifier 'g_App'

I wish c++, was a little more specific on the messages they give. The following error is being thrown in the document below main.h #ifndef main_h #define main_h //includes #include <windows.h> #include <commctrl.h> #include <d3d9.h> #include <fstream> #include "capplication.h" //constants #define TITLE "D3D Tut 01: Creat...

Why must use "out" instead of ref ?

i wrote some code blocks about ref -out declaration. i think that ref is most useful out. Ok. why i need to use out. i can use always ref everytime: namespace out_ref { class Program { static void Main(string[] args) { sinifA sinif = new sinifA(); int test = 100; sinif.MethodA(...