HelpMePleaseeee's Q&A profile
Visual C++ What's wrong with this code. I get error at runtime
#include <string> #include<iostream> using namespace std; class InventoryItem { public: virtual double calcPrice()=0; //pure virtual virtual ~InventoryItem()=0; // pure virtual destructor virtual int areyourthere(int BCT, std::string title); virtual void updateInfo(float cost, int Numreceived); virtual float Report(ostream& os); }; class Book:public InventoryItem { private: std::string title; int NonHand; float CurrentCost; public: //constructor // Book(char t[100]){ strcpy(title,t); } Book(const std::string& t) : title(t) { } Book(): NonHand(0) , Curren ...Show All
Windows Forms What's wrong with my FolderBrowserDialog?
Hi, I use the FolderBrowserDialog in installer class. However, when the dialog box is open, I did not see anywhere where a user can select a folder. It has just three buttons. Using MessageBox, I saw folder_browser_dialog.RootFolder = "personal". It does not looks like a path. What is the problem here Or FolderBrowserDialog cannot be used in installer class Please help me. Many many thanks. Below is the code. FolderBrowserDialog folder_browser_dialog = new System.Windows.Forms.FolderBrowserDialog(); folder_browser_dialog.Description = "Select the directory that you want to use to create tickler letters."; folder_browser_dial ...Show All
Windows Forms controls created on the fly
hello! i created several controls on the fly. Some are textbox and others checkbox. well. for the textbox i have no problems. all the time i can do: string x = tb.Text; but, when the control is checkbox, how can i get the status of the checkbox This is because the "checked" property do not appears to me. I know that the control is a checkbox ...Show All
Smart Device Development SqlCeResultSet Help
Hey everyone, I have a VB2005 project with a SQL Mobile datasource. I'm trying to use SqlCeResultSet to return a list of records to a datagrid to solve some speed issues, but I think I have a problem with my code: Dim cnWorkOrders As SqlCeConnection = Nothing Try cnWorkOrders = New SqlCeConnection( "Data Source =" + """\Program Files\PWO\WorkOrders.sdf"";" ) cnWorkOrders.Open() Dim cmdSearchCust As SqlCeCommand = cnWorkOrders.CreateCommand cmdSearchCust.CommandText = "SELECT * FROM tblCustomers WHERE SUBSTRING(CustName, 1, 1) = 'A'" Dim rsCustome ...Show All
Visual Studio 2008 (Pre-release) Binding Data to a ListView at Run-Time
Hi, If this question has already been posted, please could somebody post the link. I want to add items to a List View that uses a Grid View as its View at run-time. I am new to xaml and as such don't know how to do it. Could anyone please help me Thank you You can take a look DataGridView of Window Form 2.0. When you set AllowAddNew property = true, your DataGridView always show new row at the end of DataGridView for add new. And now I would like my DataGrid (Avalon) have horizontal and vertical line. Is this clear, please help me to solve my issue. Thanks a lot. Steven ...Show All
Windows Forms generic icon in taskbar when collapsed in xp.
I have set my application icon, in each of it's several top level windows. It's not an MDI app, it just has a main form and several utility forms... each has the icon set to the same image file. When windows XP collapses my top level windows in the taskbar to a single item with a menu... the icon it uses for the taskbar entry ...Show All
Windows Forms Hide a tab Page in vs 2005 is this possible?
In vs 2003 you had to remove a page and then readd it. In my eyes I could not see the reason of MS not providing a visible property I see that in vs2005 is still the same thing They say is by design mmm... What is it the proper way to handle the visibility of a tab page in vs2005 thanks for your help Hi, Use the Insert function rather than the Add in the TabPages Collection. So that you could specify the index to add the tabpage. tabControl1.TabPages.Insert(2, tabPage3); cheers, Paul June A. Domag ...Show All
Visual Studio Team System WebTests - "Test aborted"; however, no errors displayed
I've got a webtest that fails every time after 5 iterations--at some point during the 5th run of the test. There are no errors generated. As per previous posts along this subject, I made sure that both my results from previous runs were deleted. I also made sure that the testrunconfig testtimeout properties were okay and not the issue. What could be causing this It's not a very long test....around 10 gets and 10 posts. I pass in unique values per iteration using an Access Datasource. Can you zip up the access db and webtest and mail them to me. You can mail it to me from my blog: - http://blog ...Show All
.NET Development is there any kind of Boolean type SQL server
Hi, I have a boolean check property of my checkboxes in VB.NET. how can I send that value to SQL server, is there a boolean type in SQL server when I m designing the table. Thanks but if i send the boolean type directly it s gonna give me an error, right, i remember it did give me error thanks amigo ...Show All
Visual Studio Team System Estimate Extensibility
My current work item tracking system allows estimates to be done for a work item for each of the different stages of development (e.g. functional spec creation and review, code and unit test, code review, etc.). I would like to extend the estimates functionality in VSTS to support this. But I don't just want to add a bunch of hardcoded fields -- I would like a grid that contains a one-to-many relationship from the work item record to the estimate records. Any recommendations on how this could be done Can VSTS be extended to handle child tables -Larry Thanks Jason, although this is not what I w ...Show All
Windows Forms multi column in table need add combobox
hey me to 2 column( ex:id,code) in student table.Need Add ID,Code column this in Combobox help me thanks Hi,basedcp If you mean to to assign values of id,code column in the student table to the ComboBox, just set the DataSource, DisplayMember, ValueMember property of the ComboBox. And if you want to set id+code as value that displayed on the comboBox, you can achieve it as changing your sql statement as: Select id+code as value4Combo From Student then set comboBox.DisplayMember = "value4Combo"; Regards. Shin Ye ...Show All
.NET Development unable to connect to SQL server
hi everybody! I am just a beginner in asp.net. i am trying to connect to the sql server and getting an error: Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection. the code line for connection is : cn.ConnectionString = "Data Source=DENVER; Initial catalog=pubs; user id=sa ; Pwd=" right click on the server name - properties gives a message saying only sysadmin can access this feature. do i need to change something in code please help. I cannot login in QA using my own account. I don't know the password for sa account. mixed authentication is surely ...Show All
Visual Studio Grouping tables and paging
I am trying to build a local web report that contains 2 tables per page. Each of these tables is bound to a different datasource. Each table needs to contain a defined number of rows ( as in the example below) - if there is no data the rows will be empty. In the case where one of the tables has more data - I will always need to display a page break after the second table, so that the data can be displayed on the next page. Page1 Table1 heading1 heading2 heading3 1 2 3 Table2 heading1 heading2 heading3 1 2 3 1 2 3 Page2 Table1 ...Show All
Visual C# Bug in C# compiler with generics ? (BadImageFormatException)
I m' having a problem with a quite simple program using generics inheritance. Running the program throws a BadImageFormatException (Exception from HRESULT: 0x8007000B). The program defines a generic entity, factory, and entity reference (an ID and a pointer to an entity). A "factory factory" is used to create the factories. A User factory and a User entities are defined. This is the program : /// <summary> /// Generic class defining an entity /// </summary> /// <typeparam name="E">The entity type</typeparam> /// <typeparam name="F">The factory type used to create entities ...Show All
Visual Studio Team System Source Code Control-how to work from home via web protocol?
I checked out webcast and talks about version control system. It says users can work from home to access to master Source Control server. But as I know user must join the domain of the server in order to access the server. How is it possible to access to master source control server via web(remote access) and work if anyone knows detailed steps to make this work, please let me know. Experts~!! If you can connect from your machine to the corporate network through a VPN such that your machine is on the corporate network, then it should work properly. Buck ...Show All
