Answer Questions
kangalert silly question about converting a vector<char> to char []
I have a vector of vector char's that I need to display to the screen. I don't want to display char by char but would like to store them in char[] or strings. I hope this is easy and possible but I just can't figure it out at the moment. Any help or push in the right direction would be helpful. Thanks, Matt I found the answer I was looking for finally. vector<wstring> Parse(BSTR &XML) { vector<wstring> dirTree; //char * tmp = _com_util::ConvertBSTRToString(XML); wchar_t const * tag = L "<a:href>" ; wchar_t const * endTag = L "<" ; wchar_t const * stringFromTag = wcsstr(XML, tag); while (stringFromTag != NULL) { s ...Show All
sgmuser source control server events
Hi, how can I subscribe for events like check in, before check in, pending changes and etc I saw that VersionControlServer class has very interesting events that I can use but they did not fire up for me. Basically here is what I am doing: TeamFoundationServer tfs = new TeamFoundationServerFactory.GetServer(serverName); VersionControlServer vcs = (VersionControlServer) tfs.GetService( typeof (VersionControlServer)); vcs.BeforeCheckinPendingChange += OnBeforeCheckinPendingChange; Then I keep the application running so the method can be called. And I expect when someone else is making a checkin to receive a notification about it. What am I doing wrong or I got the whole idea wrong Where can I find more information about t ...Show All
ozhonetech Error 32000 while installing TFS Application tier
While installing TFS Application tier I got the following error: Product: Microsoft Visual Studio 2005 Team Foundation Server (services) - ENU -- Error 32000.The Commandline '"C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Tools\ProcessTemplateManager.exe" /setup /install "dbserver" "TfsIntegration" "C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\TF Setup\1033\MsfFormal_new.zip" "C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\TF Setup\1033\MsfFormal_Metadata.xml"' returned non-zero value: 5150. My environment: Dual server deployment, TFS RC release. Any one have idea on this Hi, I tried install ...Show All
Keith5150 Error connecting to Team Foundation from all client machines
Hello! Could someone help me resolving the TF31004 error TF31004: Team Foundation encountered an unexpected error while connecting to Team Foundation Server <server_name>. Wait a few minutes and try again. If the problem persists, contact your Team Foundation Server administrator. I get this message when connecting to TFS from all client machines. TFS is up and running and I don't have any issue working in VS2005 on the server itself. Thanks! It sounds like the clients cannot connect to the AT. Can you browse to : http://<MachineName>:8080/VersionControl/Repository.asmx I was not able to connect to any of the clients prior to the reboot. There were no windows updates ...Show All
Fahd how to open IExplorer
i have used this code and an error has occured C:\Documents and Settings\sajid\Desktop\web browser\Form1.cs(102): The type or namespace name 'webbrowser' could not be found (are you missing a using directive or an assembly reference ) tell me how to remove it The WebBrowser class comes under the System.Windows.Forms namespace. Just insert the using System.Windows.Forms directives on top of the file, if it isn't already there. If you're trying to open Internet Explorer through C#, try this: System.Diagnostics. Process .Start( "IExplore" , "http://www.microsoft.com" ); Hope that helps. :) can you post the code that is having the problem Do you have "webbrowser" object defined in you ...Show All
Gary DBA Open text files
hi how can i open text files from differente paths using OpenfFileDialog It's wotking Thank you very much No, i need the code like this. Dim OpenFileDialog As New OpenFileDialog OpenFileDialog.InitialDirectory = My .Computer.FileSystem.SpecialDirectories.Desktop OpenFileDialog.Filter = "Text Files (*.txt)|*.txt" OpenFileDialog.ShowDialog( Me ) Dim FileName As String = OpenFileDialog.FileName Me .rtfData.LoadFile(FileName) But this is not working Hi, see if the following code helps you... Using dialog As OpenFileDialog = New OpenFileDialog() dialog.Multiselect = True 'Set other dialog properties here... If dial ...Show All
Alexei Pavlov aka BlackTiger How can I add OleDbDataReader Object to DataSource ??
hi, when I retrieve data from remote DB as the following // //.... OleDbDataReader reader; //Executing The Command. reader = command.ExecuteReader(); //Reading if (reader.Read()) { MyBindingSource.AddNew(); MyBindingSource.add(reader); // It doesnt work, whith error.., } //... so how can I add the reader object to MyBindingSource please dont cross post. I have now merged the threads I would not use the datareader if you intend to use a bindingsource (on a form or webpage). A datareader is a fast way to pull records one after the other from the database into the application, it can only read forwards. You need to make your own co ...Show All
Jo&#227;o Santa B&#225;rbara Menu Site maps with multiple nodes
I did the tutorial on this site for making a master page with a menu site map on the left. The men has a root node for Home then branches to Authors and Content. How can I make a menu, using the same method as in the tutorial, but have Home, Authors, and Content as seperate root nodes This forum is for installation and registration troubles within VS Express only. Your questions would be better answered if you could post it in the ASP.NET forums. http://forums.asp.net/ Thanks. ...Show All
GTrz Error creating a new datasource
I have created a database file using the Microsoft SQL Server Express Edition which I believe is not complicated at all. When connecting to the Visual Studio (Visual Basic or Visual C#) express edition, and try to add a new Data source. It tells me "Could not get type information < Dataset name >". What is wrong What should I do ...Show All
Leon Mayne Where can i get this profiler?
I have VS 2005 - where can i get the profiler for it is it an add on free in a SP Thanks. Hi, Which edition r u using i think ..you can get the profiler in Visual Studio Team Edition for Software Developers...check out. i hope answered your question. Thanks, Kathir Does the Team System upgrade support profiling memory and/or performance on WindowsMobile devices Or is this desktop only profiling support If ! supporting mobile devices, does anyone know when there will be a released profiler for winmobile Unfortunately, I am still using the Embedded VC profiler from like 2002 (B.C.) and I'd love to upgrade if possible. Thanks ...Show All
Sambag TSQL Debugger is not working after installing "VSTS - Database professionals"
Hi, After I have installed VSTS - Database professionals CTP5 I have found that TSQL debugger is not working any more. When I put breakpoint into the stored procedure and do "Step into Stored Procedure" the break point became disabled and the message is "The breakpoint will not currently be hit. Unable to bind SQL breakpoint at this time. Object containing the breakpoint not loaded." I'm absolutely sure that this was working normally before the installation of the CTP5. I'm guessing that something was done to the security settings by the installation package. I hope it is fixable. I'm running VS2005 and SQL Server 2005 Developer eddition and now SQL 2005 Express edition as second instance. CLR Stored p ...Show All
SSUser Getting win32 to work on C++ EE
Hi, I have VC++ EE, Im trying to work on some tutorials for win32 but my first attempt to compile a simple windows app from http://www.functionx.com/win32/index.htm failed due to VC++EE not coming with default configuration for native win32 apps. (Very annoying) I had to download the PSDK and follow the instruction from here http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=7004&SiteId=1 So I created the PlafromSDK directory and move the lib/bin/include directories inside. Now when I compile I don't get windows.h not found, but rather some errors that are pretty obscured to me as a beginner win32 programmer. I tried compiling this very code: #include <windows.h> const char *ClsName = "BasicApp"; const char *WndName ...Show All
John Smart - MSFT array of data
How to create an array of data that i read fr the serial port so that i can manipulate the data later Hi, You can also try the following link too...it has sample code to read from COM port and get data into byte array. http://msdn.microsoft.com/coding4fun/someassemblyrequired/whereami/default.aspx Thank you, bhanu. Explain your problem or what want you do. Regards. I have a timer which counts whether the maximum number of value allowed to be plotted on the graph has exceeded. If it does, it will remove one point on the left and add one new value(which is the data received fr serial port) on the right. I buffer the data received into received(i) array , but i doubt when i ...Show All
Dan Rooney RichTextBox Images Can Stretch
Hi, I'm using the paste method to insert images in a RichTextBox, the trouble is the user can stretch the images by dragging them with the mouse. Is there anyway to stop this behaviour Or is there another way to insert images into a RichTextBox control that pastes the images with fixed dimensions Okay, the following code seems to 'undo' a picture resize. I don't know if it has any bad side effects. Private Sub RichTextBox1_TextChanged( ByVal sender As Object , ByVal e As System.EventArgs) Handles RichTextBox1.TextChanged 'MsgBox(RichTextBox1.UndoActionName) If RichTextBox1.UndoActionName = "Unknown" Then RichTextBox1.Undo() End If End Sub Ive been using this co ...Show All
Scott Herbert TFS Administration Tool Setup: Error code 2755
Hello! I am trying to install the TFS Administration Tool 1.1 on a machine with Windows 2003 Server R2 Standard Edition SP1 and Team Foundation Server. The OS and the TFS are both German versions. When I start the setup of the tool I get the following MessageBox: The installer has encountered an unexpected error while installing this package. This may indicate a problem with this package. The error code is 2755. How can I get this tool installed and running Regards CSharpNewbie22 Excellent! Thanks for posting the reply - hopefully now when the next person has this same problem, they'll run across this thread and your fix :) Actually, that tool isn't part of Team Foundation Server ...Show All
