Steve 5656565656's Q&A profile
Visual C++ overriding virtual member function of a generic class using wizard
in VS6 C++, "add member function wizard" was simple. but in VS2005 C++, it is no longer possible to copy and paste a function declaration into the "add member function wizard". (must add each parameters one by one....) for MFC classes, the property window provides a simple way to override a virtual member function, but that interface seems not working for generic classes. is there an easy way to override a virtual member function of a generic class (like somehow enable the MFC class' virtual function override interface for generic class) or I have to edit .h and .cpp manually thanks. kkang ...Show All
Software Development for Windows Vista TransactionInDoubtException
Source: System.Transactions.TransactionInDoubtException: mscorlib Text: The transaction is in doubt I'm getting the following error is a very specific circumstance and I don't understand why. I've got a single unavoidably long running transaction (~90mins) that I run from a .net component against a SQL Server 2000 database. If I invoke my component from MMC.exe (COM based root) I'll often (eventually) get the above error message. However, if I invoke the component from a .net based root application it always seems to run without a problem. Any ideas Hi, Is it possible to tell us, after how long do you get the ...Show All
.NET Development SSL on TCP Socket, how in .NET 1.1?
Is there a way, using intrinsic .NET framework functionality, to open a TCP connection over an SSL channel I'd rather not get into buying libraries, etc. Java has the javax.net.ssl.* objects, and I'm not finding an equivalent in .NET. I looked all over the Internet, but nowhere a pointer/solution can be found. Please note this is a socket connection, not an HTTPS connection. Also, it's about .NET version 1.1. Any hints/tips/remarks/howto's (if even possible) would be greatly appreciated... If this is a .NET 2.0 issue, please start a new thead and post your code that is giving you this issue. ...Show All
Visual C# Memory usage Help!
Hi! I'm gaving some problems with this C# code: I mean I have a application that has a very simple GUI. The problem is when I watch the memory usage while my application is running I see that only when I press some buttons - that don't have any events loaded, so these buttons are doing nothing- the memory usage for my application is rising !!!! WHAT'S HAPPENING ! At this point my application does nothing - just loads the a form that contains a TabControl and some buttons. I used an endurance test for .NET : BoundsChecker and this program showed that my app has no errors and no memory leaks! But still if the user that will run my applicati ...Show All
SQL Server Unable to Install SQL Server 2005 after BETA
I have completed the uninstallation instructions for my beta versions of SQLExpress (repeatedly). I have used the manual unistall procedures also. I have physically removed the SqlServer directory from the the Program Files directory. The result is the same. This message appears every time I try to to install the MS SQL Advanced package: "SQL Server 2005 setup has detected incompatible components from beta versions of Visual Studio, Net Framework, or SQL 2005. For detailed instructions on uninstalling SQL Server 2005, see the SQL Server 2005 Readme." The detailed instructions are NOT detailed enough. I have uninstalled th ...Show All
Visual Basic Debugging error - Operation Could not be completed
Hello, I am running on the VB8 and expirienced an error during debugging after some changes in "My project" area. I have noticed (on two different machine) that after change for example Startup Form or Security Area, I am not able to debug program any longer. An error appears, telling me that: The Operation Could not be completed. After clicking OK (nothing else is available) and next try of debugging, another error message appear: Visual Studio could not copy a support file to this location: "path". Please verify the path exists and is writeable. After that, I have to close Visual Basic and restart it. Tha ...Show All
SQL Server Grouping a query in 30 seconds
Hi, How can I make a query and group the registries in a interval of 30 seconds...like for each line I have a datetime field that have all the day, and I need it to return just like TIME Contador_type1 Contador_type2 Total 01-01-2006 00:00:30.000 2 5 7 01-01-2006 00:01:00.000 3 7 10 It's just an example...but that's the result that I need and my table is data_hora -- datetime field tipo - 1 or 2 -- count nrtelefone - that's is the number dialed. Thanks Hi there and welcome to the groups, see ...Show All
Visual Studio ReportViewer data binding (NOT design time) in ASP.Net, please help
I am trying to bind a report to a datatable (or dataset) in asp.net. The only way I can see is via an ObjectDataSource (unlike windows where I can bind direct to the datatable). Is this the case, is it not possible to bind direct to the table or dataset Assuming we have to go through an ObjectDataSource, I have succeeded in building a working example using design time binding of the report to the ObjectDataSource, and adding a handler to the ObjectCreating event to put my datatable into its object data source property (see snippet1). However if I try to create the ObjectDataSource programatically (see snippet2) then the report doesnt ...Show All
Visual Studio Tools for Office Serious Error while deleting the row
Hi, I am using following code to bind the ListObject: DataSet dsTrims = new DataSet (); dsTrims = MyDataAccessLayer .Provider.ExecuteDataSet(System.Data. CommandType .Text, strWhere); this .bindingdataSource1.DataSource = dsTrims.Tables[0]; myListObject.AutoSetDataBoundColumnHeaders = true; myListObject.SetDataBinding(bindingdataSource1); All the data get visible to listobject when run the application. I can also insert and update row into excelsheet/listobject and this insert and update also takes place into the dataset through which listobject is bound. And from there I can easily put logic for updatig dat ...Show All
Windows Forms ComboBox ValueMember Binding Issue
I have a combo box which i have set the Valuemember to a column. What seems to be showing up is the column name, not the data value. Am I doing this wrong Thanks, MikeD Here is what I did to check it. private void cbQuery_SelectedIndexChanged( object sender, EventArgs e) { if ( this .cbQuery.Text == "" ) return ; MessageBox .Show( "vm=" + this .cbQuery.ValueMember.ToString()); } You want to use SelectedValue rather than ValueMember. By selecting the valuemember you are simply asking the combo for the name of the valuemember rather than t ...Show All
Windows Forms ClickOnce Failing on one machine after working previously
I'm hoping that someone can tell me how to "reset" a ClickOnce install on a user's machine as I cannot find any information on how to do this. I have an application that is published via ClickOnce, installed on about 20 machines and has been working for a month or so without issue. Today, every machine except one is working fine. The machine that is not working is getting the below error message which is preventing him from running the application. There have not been any recent new publishes for this application, but the user did have the application up and running prior to a power failure. In addition, this same error occurs whe ...Show All
Visual Studio 2008 (Pre-release) How do I handle a click event for a button in a ControlTemplate?
I have a ControlTemplate that consists of a horizontal StackPanel with a TextBlock and a Button: < Style x:Key = " MyStyle " TargetType = " {x:Type ContentControl} " > < Setter Property = " Template " > < Setter.Value > < ControlTemplate > < StackPanel Orientation = " Horizontal " Margin = " 1,0,1,0 " > < TextBlock VerticalAlignment = " Center " Margin = " 3 " > < ContentPresenter Content = " {TemplateBinding Property=ContentControl.Content} " /> </ TextBlock > < Button Width = " 16 " Height = " 16 " Background = " LightBlue " VerticalA ...Show All
Visual Basic using variable data to determine which object to modify
Sorry if this has already been answered before. It probably has but I couldn't think of what to search for. Is there anyway that I can have a variable that holds the name of an object and then reference that object via the name stored in the variable Hope this makes sense and thanks in advance for any help i receive. This may be working for you all it does is use a lookup arraylist to locate the control to be modified and uses the a second field to carry the new value. Of course this can be expanded upon to make it more robust but it shows the principle of reading the controls collection to fin ...Show All
Visual C# IE Browser Helper Object (Plug-in or toolbar)
Hello All, I have just started to learn Visual C#. Could you kindly let me know if there's an easy way to develop toolbars or plug-ins for Internet Explorer (and, if possible, even for other browser like FireFox, Opera, etc.) in Visual C# Thank you in anticipation, rohit505 HI, In a different thread they gave you a link to an article for an IE toolbar in VB. By reading that article, I discovered that the code was translated from another article in C#. Here is the link for that one: http://www.codeproject.com/csharp/dotnetbandobjects.asp select=1113574&df=100&forumid=3788&noise=1&am ...Show All
Visual Studio Team System circular loop bug in compare tool??
We have been having an interesting problem while checking in a file in team systems. The file in question was modified by 2 different people, and they had been modifying similar code blocks. After the 2nd person tries to check his code in he is presented with the standard files need to be merged and then the 'keep your changes, use server's copy, etc' dialog, but after trying to merge his changes the screen freezes up and there seems to be a lock on the file. Afterwards we forced the changes in manually by copying the file somewhere else, undo checkout, checkout with lock, paste of the copied file and just used that version instead of trying ...Show All
