libra08's Q&A profile
Visual C++ Compiler selecting template function in error?
class A { ... A operator =(A &rhs); A template<typename T> operator =(const T &rhs); A operator -(A &rhs); } int main(void) { A number; A otherNumber; A result; number="123"; //calls templated operator = as expected otherNumber="321"; //calls templated operator = as expected result=number - otherNumber; //calls templated operator = in error } I don't not understand why the templated version of the assignment operator is being called when minus operator returns an object of type A. The last line should resolve to: A = A After the call to the minus operator which should have the compiler c ...Show All
Visual Studio Team System Error: No Pending Changes - But there are changes!
Hello, Sometimes we're experiencing the following annoying behaviour with our TeamFoundation Server (RTM) and the TeamExplorer: A file was checked out and changed, and if I try to check in the changes ("Check in pending changes..."), TeamExplorer says "Error: No Pending Changes" and does nothing. This is not safely reproducible though. But it still gives our team a really bad feeling about migrating to TeamSystem (we're at it right now, and we're running into several small glitches). Whatever, right-clicking the directory and selecting "Refresh" solves the problem. Has anybody else experienced this problem and knows why or when it appears Best regards, Martin Martin, Is i ...Show All
SQL Server fishing for a clue. to loop or not to loop
I have a table called Tbltimes in an access database that consists of the following fields: empnum, empname, Tin, Tout, Thrs what I would like to do is populate a grid view the a select statement that does the following. display each empname and empnum in a gridview returning only unique values. this part is easy enough. in addition to these values i would also like to count up all the Thrs for each empname and display that sum in the gridview as well. Below is a little better picture of what I’m trying to accomplish. Tbltimes |empnum | empname | Tin | Tout | Thrs | | 1 | john | 2:00PM | 3:00PM |1hr | | 1 | john | 2:00PM | 3:00PM | 1hr | | 2 | joe | 1:00PM | 6:00PM | 5 ...Show All
Visual Studio Express Editions C++: DialogResult and namespaces confusion...
Hi I'm working with C++ Express, I'm new to Windows Forms and the namespaces used but not to C++. I'm having difficulties with DialogResults: The MSDN documentation gives examples like this: System::Windows::Forms::DialogResult result; result = MessageBox::Show( this, message, caption, buttons ); if ( result == ::DialogResult::Yes ) Yet when I compile I get the following errors (for the if line) : error C3083: 'DialogResult': the symbol to the left of a '::' must be a type error C2039: 'Yes' : is not a member of '`global namespace'' error C2065: 'Yes' : undeclared identifier So I also try without the leading :: and get: error C2039: 'Yes' : is not a member of 'System::Windows::Forms::Form::DialogResult' see declaration of 'Syst ...Show All
.NET Development New column problem....!
I made a procedure Public Sub Novo(ByVal nova1 As String, ByVal nova2 As String) that creates a new oledbDataAdapter with insert update select and delete commads. I also added that commands can change depending how many columns are in a Table (insSql). Dataset is Studenti1data, I made it by the new data source wizard,and made datagridview and bindingsource draging Table1 to Form2. I use Access database. I add a new column with this code: Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Dim noviStupac As Data.DataColumn = New Data.DataColumn("Test Marko", System. ...Show All
Visual Studio 2008 (Pre-release) CustomControls & Handling Events of Elements in its Template.
Just posted this and it didn't show up for some reason so I'm posting again... I have a custom control and in its control template I have another custom control. In the xaml I have this: <z:MyCC x:Name="someName" ExposedEvent="OnExposedEvent"/> I get a compile error saying I have to have an x:Class value, so I added the "partial" to the class definition and added this to generic.xaml: <ResourceDictionary x:Class="myNamespace.MyCC" I get a compile error saying I can't have different base types, so I changed generic.xaml to this for laughs: <ResourceDictionary x:Class="MyCC" I get another error saying "OnExposedEvent" isn't defined in MyCC...even though it most cer ...Show All
Gadgets file is .gadget but IE downloads as .zip
I have packed my gadget files in a zip file. I then changed the name to *.gadget. The icon changed to a gadget icon and double-clicking it installs it. I then uploaded the file to my webserver and it is there are a gadget file. I then linked to it as a gadget file. When I click that link it downloads a .zip file and asks where to save it rather than downloading as a gadget file and installing. What am i doing wrong I get the install prompt, however it does the same thing. It creates the filename.gadget.~0004 in the proper directory and one folder deeper creates the filename.gadget folder. I had WinRar install and thought this was the problem. Perhaps it still is somehow. I've uninstalle ...Show All
SQL Server what is the best way to do this search?
what is the best way to do this search I want a stored procedure which can serach in any of the filled form on my C# windows application. The textBoxes are: txtFileNo txtIDNumber txtContactNumber txtName txtBuilding txtBlock txtBox txtEmail I want SQL Server to search for any fiiled text, so if the user enterred txtName and txtEmail this it will onlt search for txtName and txtEmail. I know how to do this directly from the form but I want to perform this using stored procedure. i have noticed that the SQL returns the correct result. I have searched for id_number = 731004167 and got the correct result and here is the @sql_string SELECT file_no, id_number, person_name FROM persons WHERE 1 = 1 AND id_number ...Show All
Windows Forms ListView Column Widths Question
Hi folks, I'd like to retrieve the current width of a column in a ListView, except I'm having troubles figuring out how to get the column I want to work with. My WinForm is using C/C++ - advice -Zero The correct syntax is listViewLogWindow->Columns[0]->Width. The other versions should give you a compiler error. "Neither seems to work", what do you mean ...Show All
Visual Studio When Sharing a folder containing a project, the .vspscc files go crazy, or duplicate
Following a suggestion from the VSS Help, regarding ways of maintaing to separate code version for a project, eg a released version, and a developement version, where fixes from a released version would also be merged into the development stream. I shared our main project folder, instead of just branching it, to save space, so that for bug fixes, we would just need to branch specified files. An addition necessary step was to branch the actual project files (.vcproj) along with the associated vspscc files. This seemed to be necessary for visual sudio to be able to work with these projects and use source control. When I tried to branch the vspscc files they seemed to duplicate themselves. E.G. They would continue to to maintain a ...Show All
SQL Server Understanding incremental processing sequence
I'm looking at how we might optimize the incremental processing performance of our cube set. I'm looking at the Profiler trace for the processing sequence, and trying to understand the contributions to the total processing time. One thing I noticed is that that for the part of the processing that takes the most time, there isn't a whole lot of detail in the trace about what the server is actually doing at that time. For example, the section of the log that looks like this: Processing of the 'Activity Statistics' cube has started.. Processing of the 'Activity Measures' measure group has started. Starting to write data of the 'PA_F_ActivityStatistics_INCR_UPDATE_TEMP_mhng0_' partition. Started reading data from the 'PA_F_ActivityStatistics_I ...Show All
SQL Server High level of login/sec
Hi All Perfmon shows max 3900 login/sec and avg is 1500. ASP.NET v 2.0 application uses this SQL 2005 server consists of 10 webservers. Max Pool Size on each was changed today to 300 (was default so I suppose - 100) and it didnt change logins/sec graph at all. Application uses SqlConnection object from ADO.NET v 2.0 obviously. Can someone explain - what could be reasonable explanation - is load that high Do we need 3000 as Max Pool Size (I cant imagine what could be maximum recommended size of pool for W2003 32-bit server) Thank you We are seeing a very high number of login/sec compared to SQL Server 2000 although logouts/sec remains low and the number of user connections stays stable. Th ...Show All
Visual Basic Acces report printing with WB6
How can I print an acces database report VB6 questions should be posted here in the correct newsgroup: www.microsoft.com/communities These forums here cover .NET platform :-) ...Show All
SQL Server Failure saving package
Hello All, I have a package in the SQL 2000 environment that works fine. I have migrated this DTS Package to a SSIS Package using the Visual Studio 2005. After that, i made some changes in this package and now I'm trying to save it but I am facing with this error message below: TITLE: Microsoft Visual Studio ------------------------------ Failure saving package. ------------------------------ ADDITIONAL INFORMATION: Invalid at the top level of the document. (Microsoft OLEDB Persistence Provider) ------------------------------ Invalid at the top level of the document. (Microsoft OLEDB Persistence Provider) ------------------------------ BUTTONS: OK ------------------------------ Could someone please help me wi ...Show All
Visual Studio Team System Cherry Picking Merge problems
Hi ! Lets says that a file has been branched, and that changesets have been done affecting the same files in both the main branch and the child branch (lets says 5 changesets on each side). I wish to do a "cherry pick" merge of a single changeset, but it doesn't seems to work, it always try to merge all the changeset "up-to" the choosen one. How can I get this done successfully Is it a bug in the TFS trial version example with simple text file where each lines represent a checkin : main branch : C1 (before the branch) C3 C4 C5 C6 child branch : C2 (the branch creation) C7 C8 C9 I wish to bring C5 into the child branch, but it bring C3~C5 even if I specify /force : ...Show All
