Jumb0's Q&A profile
Visual Basic reading a string from the right until...
I thought this would be simple to figure out (and perhaps it is), but I’m not finding it. I want to extract the last part of a string and save it in a variable. The string lengths are never the same, but there are consistent separators, as below: home\work\school\neighbor I need to save “neighbor” in a variable. My idea was to simply read the string from right to left and stop at the first instance of “\” but I am having trouble finding the proper way to do this. BTW, I’m using VB 2005 express Spotty~ Sure enough...that works. Thank you very much. Now I just have to dis ...Show All
.NET Development Typed TableAdapters with Dynamic ConnectionStrings
Can a TableAdapter pull its connection string from an app.config file without writing code to read from app.config and set then set its connectionstring property The literature is fuzzy but it sounds like a TableAdapter can pull its connection string value from an app.config file without writing a line of code to do it. Upon creation, the TableAdapter wizard offers the option to embed the connection string into your code or write it to app.config . The TableAdapter then stores the connection name and connection string as properties which can be viewed in the data designer by selecting the Table Adapt ...Show All
Windows Forms Finding values in a databound combobox
I have a set of two comboboxes. When the value of combo1 changes I need to change the selecteditem of combo2. The selecteditem of combo2 is related to the particular value selected in combo1. The mechanics of this is easy enough but I'm having a problem. Since the combobox (combo2) is databound, its items are DataRowViews. This means I cannot use items.indexof to search for my value. combo2.FindString and combo2.FindStringExact will not work in this instance because I need to search by the value. I can easily find the DataRow in the original DataSource.DataTable that the value is in but how do I convert it to a DataRowView which I can sea ...Show All
Visual C# bug in double calculations?
Hi! I just encountered a strange behaviour of the IDE: If you wannt to evaluate the result of the following expression, if in immediate window or in a watch window, the IDE hangs or crashes: double r = 2.5+(-5/System. Math .Sqrt(50)) * System. Math .Sqrt((25-(System. Math .Sqrt(50)*0.5) * (System. Math .Sqrt(50)*0.5))); Console .WriteLine(r); If you run the build app (debug or release version), it gives the correct result, wich is allmost zero (4,44089209850063E-16). This can be reproduced on different machines. I tried to report as a bug, but cannot overcome the "Profile Center" page showing up immediately after logging in, it alway ...Show All
Visual C++ Error on delete [] v
Hi, I have a problem with a class. The declator is class Configuration { public : struct conf_table { char name[40]; char value[10]; }; struct conf_table *conftable; int size; //rows on conftable int max_size; //maximum rows on conftable public : Configuration( void ); //Constructor ~Configuration( void ); //Destructor }; And the code is Configuration::Configuration( void ) //Constructor { size=0; max_size=256; conftable = new conf_table[max_size]; //initialize conftable } Configuration::~Configuration( void ) //Destructor { d ...Show All
Visual Studio Team System Visual Studio 2005 Team Suite 180-Day Trial upgrade to RTM licensed version
We are in tre process of purchasing the final version of the TFS server, but that might take a few weeks, I was wondering if I install the 180 day trial version and start doing some of the homework of configuring it, migrating the source files, etc. Once the we have the licenses, how easy it is to upgrade It is a matter of entering a license or do we have to uninstall/reinstall Any help would be appretiated. Thanks Are you saying the 180-day clients need to uninstalled, and the full RTM versions installed ...Show All
Visual Studio Team System General Newb Questions
I have a few questions, that i've been googling and searching for for a few and just figured I'd ask here in one general place where it may benefit others. 1. I have two machines, one very large spaced and one not so large spaced. We want a dual tier setup of TFS with Source Contol. Am i correct in assuming that the source control database is going to end up on the App tier, therefore we want more space there than the DB tier 2. Where is there a faq or tutorial on changing the layout of the bug entry page Adding fields, etc. Thanks! I can only address #1, and Joe's summed ...Show All
Software Development for Windows Vista Encode WAV to mp3
i'm writing a project use directshow to encode wav to mp3. Anyone can help me mail to me:khanhpt@bkav.com.vn ...Show All
Visual Studio Team System Is there no support for native C++ in Team System?
The subject says it all. What test tools in VSTS actually do work for native C++ So far, I've found prefast. I get the impression from the help that none of the unit test tools, or code coverage tools are usable for native C++. Am I missing something, or is VSTS not very helpful for native development Another non-unit-test possibility is to set up a generic test (that just opens your native c++ app), configure code coverage the normal way to instrument the app, and then launch the test that way. This is still linked in as a "test" but it might get you far enough away from the unit testing ...Show All
Visual C++ CFile GetStatus() Date and Time Help
I'm want to read the date and time a file was created. I saw that CFile GetStatus() could do what I wanted. I'm able to display the file name and path but how the heck do you display CTime m_ctime value I do see a number retreived while in debug mode. Thanks for your help. Thanks for the help. I was just missing this part( bold ) CString myString = myFileStatus.m_ctime .Format("Created %m/%d/%Y %I:%M %p") ; I never would of figured that out. Don't do that much with C++. If this info was in a book could you give me its Name and ISBN number. Again Thanks ...Show All
Smart Device Development CE.Net 4.2 and Compact Framework 2.0
Hi, I'm hoping someone can help understand why those of us that work with Industrial Handhelds (and therefore CE.Net) got the short end of the stick. We have equipment that was just purchased this year with CE.Net 4.2 and Microsoft is not supporting it with VS2005. It's not like 4.2 was a down-level version, it was the latest version of that build. Our only options are: 1) Pray the vendor certifies on the new version, pay additional licensing fees for the OS upgrades, pay to have almost 100 units shipped to Corporate to rebuild and all of this after spending thousands of dollars regression testing CE.Net 5.0 against o ...Show All
Windows Forms Having Problem to display form with UTF-8 charactors
It worked all fine on my laptop computer with English OS XP, but after moving the project folder to my desktop computer also with English OS XP, VS 2005 no longer displays the forms with UTF-8 charactors in recognisable Chinese but some gibberish strings... wondering what I haven't done to make it right. Any advise please Hmm... are Chinese fonts installed on the laptop Probably the answer is "yes" but I don't have any other idea ...Show All
.NET Development Removing empty tags from XmlDocument
here's how my code starts... Dim xdoc As New Xml.XmlDocument Dim xnode As Xml.XmlNode Dim xelement As Xml.XmlElement Dim xatt As Xml.XmlAttribute xdoc.Load("Template.xml") then i'm looping through a text document adding in elements, attributes, values, etc... accordingly now, after all of those elements are added i'm wanting to remove any elements that do no have a value (InnerText) and my assumption is that something like this would work... ' remove any empty tags Dim xxnodes As Xml.XmlNodeList = xdoc.DocumentElement.SelectNodes("//records/record") Dim xxnode, xxxn ...Show All
Windows Forms Toolbox bitmap for myControl doesnt show .Why
I have the following control library: MyCompany.library.Winforms Control Library. I have set the root Namespace of my control to empty in the property of the control. I need to do this to be in control of my namespaces. Added a class and inherited from listview Added a 16 x 16 bitmap to the the control set the bitmap to embed resources then I did Namespace MyCompany.library.Winforms.MyListviews <ToolboxBitmap(GetType(Listview))> _ 'this works but i dont want to use it <ToolboxBitmap(C:\MyProjects\MyControls.ListviewEx.bmp")> _ 'this works but dont want to do this way ListviewEx is the name of the co ...Show All
Windows Forms ClickOnce updates all assemblys!
Hi, I am now trying to deploy with Click Once, and have run into 2 problems/questions. I have 6 projects 1 win and 5 class libs. I seem to think that with Click Once I should be able to make a change to library X and redeploy, in turn the user would only need to download that one assembly. The problem I am having is, a change to 1 library forces the user to download the entire application again. I must just be missing something, what is the way around this Thanks Are you sure it download the whole app ClickOnce is designed to only download changed files. When the user gets an update, the new file ...Show All
