Gurn's Q&A profile
Visual C++ "Dynamic" creation of variables through macros
Hi, I wanted to know if something like this is possible: #define CREATEVAR(X) X##__LINE__ but expanding the __LINE__ macro. I'm trying to create a variable's name through a macro that could be called different times creating different names: int CREATEVAR(a); int CREATEVAR(a); (of course, in this case it would only work if the macro was called in different lines). The thing is that after the concatenation operator ## the macros don't get exp ...Show All
Visual Studio What happened SourceSafe web service access in Beta 2?
A collegue of mine has just setup a SourceSafe 2005 database and configured it for internet web service access. I have Team Suite installed including SourceSafe 2005, but I am unable to find an option anywhere which would allow me to connect to it. I can connect over a local LAN or over the net via file sharing, but I can't find the web service protocol. I was informed this feature was in Beta 1. Anyone know what happened to it I ...Show All
Visual C# C# Insert Statement
I am using Microsoft Access database and I am trying to Insert a new record in a table. I have the insert statment. When you use varables that are string you have to put single quotes around it but what do u put around the System.Dateandtime.Now to insert it in the database. If you use the single quotes on it it throws a syntax error if you don't use anything it throws the same error. the field that I have in the table is a date/time field.  ...Show All
Windows Forms OverDrawing Custom Inherited Controls
Hi, Using VB.NET. I'm a beginner so please be gentle.. I am trying to overdraw most of the windows controls, including Listbox among others, so that they have a solid 3 pixel border. Currently I am doing this by creating a customcontrol inher ...Show All
SQL Server SSMS Express: Using PIVOT operator to Create Pivot Table - Error Messages 156 & 207
Hi all, In MyDatabase, I have a TABLE dbo.LabData created by the following SQLQuery.sql: USE MyDatabase GO CREATE TABLE dbo . LabResults ( SampleID int PRIMARY KEY NOT NULL, SampleName varchar ( 25 ) NOT NULL, AnalyteName varchar ( 25 ) NOT NULL, Concentration decimal ( 6.2 ) NULL) GO --Inserting data into a table INSERT dbo . LabResults ( SampleID , SampleName , AnalyteName , Concent ...Show All
Windows Forms datarows to repeat
i have created a sql database with a vb.net front end. i have records in that database that have dates attached. i want each record to repeat in a given time frame according to a field in the row called freq. is it possible. here is a sample layout of the database. column format: id taskname duedate freq autonumber clean floors 06/01/06 30 i would like to duplicate this task based on the freq. someone please ...Show All
Visual Basic Is this a bug in Express 2005?
I have a combobox on the form, it has 9 items. now I changed it to 5 items (in the property window). Then when I run the application, it shows an exception: IndexOutOfRange: System.ArgumentOutOfRangeException was unhandled Message="InvalidArgument=Value of '7' is not valid for 'Index'. Parameter name: Index" ParamName="Index" Source="System.Windows.Forms" Obviously, it does not have 7 items. Is this a bug ...Show All
Visual Basic Would like to know how to fill a textbox when the value of a dropdown list changes.
Hello, I am working on a webapplication, I have a dropdown list which is filled up using a dataset. There is also a textbox right next to it. The end user should select a value from the dropdownlist, and then I would like the textbox to be filled with a value depending on what item was selected from the dropdown list. I tried using the SelectedIndexChanged but it doesnt do anything, and I do not s ...Show All
Visual C++ Refering API Dlls
Hi, I have a very basic doubt. I'm having a static api dll and a header file for its function prototypes. how can i call it from a vc++ project. (I need very basic information like where to change the configuration to include that dll to project)... Advance thanks... Muthu R. Krishnan You terminology "static API dll" is confusing. Is it a static lib, or is it a DLL DLLs expand to Dynamic-Link Libraries, and are not stati ...Show All
Windows Forms A working Terrarium with v1.1 framework?
Okay, first off, it was annoying that this ".Net" site does not support the .Net Passport that I already have and required me to create yet another login. What's up with that ! On to the issue... I noticed they (the keepers of this site)&n ...Show All
Windows Forms Specify ConnectString at Installation Time
I want to write a C# program which needs talk to an Access database. I plan to add this program to Windows Task Schedule so the program can run periodically and automatically. Since this program needs to run automatically, it cannot take user input at run time. I also do not know where is the database file until the program is distributed to individual users. That is to say, I do not know the ConnectString until installation time. How can I solv ...Show All
SQL Server I can't uninstall SQLEXPRESS
Hi all, I have a strange problem here. How to uninstall SQLEXPRESS when it does not appear in the "Add/remove program" Another problem is that I can't connect to the local server using SQL Server Enterprise manager. This is the error that i got: "a connection could not be established to (My Computer name)\SQLEXPRESS. Reason: [SQL-DMO]you must use SQL Server 2005 management tools to connect to this server. Please verify SQ ...Show All
.NET Development No of threds in DotNet
hi, i want to know how many threads will be thier(running) when an dotnet application runs. Is GC running as a seperate thread by default Thanks, Suresh. ...Show All
Visual Studio 2008 (Pre-release) ListView, I would like somthing like SelectionMode.None ?
I know it’s a little odd. But is there a way to make the ListView “readonly”. I was thinking something in the line of: ListView1.SelectionMode = SelectionMode.None; I know I could just ignore the SelectionChanged event. But the problem is that the styling shows that an item is selected. Best regards, Thomas S. Andersen BTW, as a workaround I'm using this at the moment: ListView1.SelectionChanged += delegate ( obj ...Show All
Visual Basic No editor for ".vb" in VS2005 Beta2
Hi, I have received the VS2005 Beta2 DVD from Microsoft last week, installed it, and it worked fine for a couple of days. Then I went to the .resx file to edit some resource for the project. I then come back to open the .vb file and there it goes, the editor is replaced by a "Catastrophic Error" page (not an error dialog box) sayiong something is wrong with the VB editor. I quit the IDE and reopen, then reload the vb project u ...Show All
