Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: ThermoSight

Page 1 of 15 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    3
    Views
    816

    Re: Grief with a serial port

    "Could it be that the serial device gets a stray character when the PC boots and that locks up the communication? Maybe the C# application knows how to resolve such a lockup?"

    Hi S !

    Indeed...
  2. Replies
    3
    Views
    816

    Grief with a serial port

    Hi.
    I am working with VS2010 C++, Windows 7 Pro, and a serial device.

    The C++ app is unaffected by cycling power on the serial device. However, cycling power on the PC (Windows 7 Pro) causes...
  3. Replies
    10
    Views
    2,484

    Re: Binary Pattern Search

    ho-hum ...




    namespace Bozo
    {
    public partial class Form1 : Form {

    StringBuilder bldr = new StringBuilder();
  4. Replies
    4
    Views
    403

    Re: List and order question

    "... is it safe to assume that when I add an object it will always go at the end, ...

    That would be my assumption predicated on the definition found at
    ...
  5. Replies
    10
    Views
    2,484

    Re: Binary Pattern Search

    Hi Mutant ...

    you are correct, Of Course, Sir.

    Indeed, after some time away from the desk, I returned a few minutes ago to play with this a bit and found that it seems that values are...
  6. Replies
    10
    Views
    2,484

    Re: Binary Pattern Search

    Perhaps you could use regular expressions, sorta like the following ...



    public partial class Form1 : Form
    {
    ASCIIEncoding e = new ASCIIEncoding();
    string...
  7. Re: Serial port & thread use & non thread use

    Certainly not to belabor the point, but to offer an explanation, the term CCB goes back at least to the IBM System 360 family of machines and RCA's 360-clone, the Spectra 70 series. And it certainly...
  8. Re: Serial port & thread use & non thread use

    It's quite a coincidence that you should raise this issue just now .... I've been working with C# and C++ since 2006 but just last week and this, I've begun working with the serial port for the very...
  9. Re: Problem with StreamReader off of a button

    My first thought is to check the lines
    if (print == true)
    txtResult.Text = line;
    }//End while statement

    I think it's reading all the lines but each new line overwrites the preceding line. See...
  10. Replies
    3
    Views
    414

    Re: Date Calculations

    VERY nice, rliq !
  11. Replies
    3
    Views
    414

    Re: Date Calculations

    Something like the following might get you off to a good start ...



    private void button1_Click(object sender, EventArgs e){
    string tmp, month, year;
    DateTime...
  12. Replies
    1
    Views
    878

    Re: wrong answer on spoj.pl???

    the following code appears to run OK on my machine (for the unconscionably few test points I tried) ....



    // ****************************************

    private long...
  13. Replies
    2
    Views
    480

    Re: Extra data from textBox. Please help.

    In the definition of string placeholder, try changin' the ".ToString" to ".Text". I think what you are doing is converting the control to a string, rather than acquiring the text in the text box.
  14. Replies
    1
    Views
    628

    Re: learning C# help

    I dunno ... works for me as a console application



    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    namespace ConsoleApplication1
  15. Replies
    3
    Views
    507

    Re: Joining strings (n00b)

    perhaps something like the following ...


    using (StreamWriter writer = new StreamWriter("C:\\256Combinations.txt")) {
    foreach (string cat in cats)
    ...
  16. Replies
    4
    Views
    1,281

    Re: Lambda expressions

    The => operator indicates to the compiler that this is a lambda expression.

    The empty parentheses to the left of the operator indicates that this lambda expression takes no arguments, while...
  17. Replies
    3
    Views
    378

    Re: Sythetic Lights

    Binaries are both useless and unsafe If there's a bug a description and the relevant code snippet should be plenty to diagnose the issue.


    yeah, I gotta admit that you make some good points,...
  18. Replies
    3
    Views
    378

    Re: Sythetic Lights

    Boy, you sure keep your cards close to the vest ... you don't offer a lot of information.

    You've hit the Trifecta !

    1. You don't describe the problem(s) you're having.
    2. Aside from "//end of...
  19. Replies
    11
    Views
    523

    Re: [RESOLVED] Returning a Value

    Regex("^\\s*(?<firstName>[a-zA-Z]+)");

    There are two components to this Regex string: the match and the capture


    The string above asks the Regex engine to find a match for a series of...
  20. Replies
    11
    Views
    523

    Re: Returning a Value

    In the case where the names do NOT change order, then we're good.

    That Regex definition is a "capture". It essentially asks the engine to skip over any leading spaces it sees, then begin...
  21. Replies
    11
    Views
    523

    Re: Returning a Value

    Hmmm, I see ...

    you're saying that the first and last names may change position within "nameString" ?

    So in one case I might be looking at names like "Steve Jensen" and then in another case I'd...
  22. Replies
    11
    Views
    523

    Re: Returning a Value

    Perhaps it would be possible to eliminate the FOR loop and just use a regular expression to take what you want ...



    Regex firstNameBasis = new Regex("^\\s*(?<firstName>\\w+)");
    ...
  23. Re: Can we create object of class with private constructor?

    I would think that if the constructor is private, then no non-member could access the constructor. However, class members including static members would still be able to do so.

    so one might build...
  24. Replies
    2
    Views
    508

    Re: Coding help

    I dunno ... maybe sumthin' like

    bool ln = !string.IsNullOrEmpty(LastNameTextBox.Text);


    Actually, there's a wealth of information available to you via the VS Help section. Just click on the...
  25. Re: Best way to validate time from user?

    how about the Timespan struct ... have you considered that ? might work for ya.





    string[] time1, time2;
    string result;
Results 1 to 25 of 355
Page 1 of 15 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center