User Profile

Collapse

Profile Sidebar

Collapse
sin
sin
Last Activity: Mar 13 '08, 06:39 PM
Joined: Sep 21 '06
Location: Lithuania, Vilnius
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • You were right, now it works as it should.

    Thank you...
    See more | Go to post

    Leave a comment:


  • Help - Picturebox on picturebox, both pictures transparent

    Hello,
    I have small problem, here's the situation:

    There are a windows form - Form1;
    And two picturebox'es - pictureBox1 and pictureBox2;
    Those two pictures are transparent in some areas;

    I put pictureBox1 all over the Form1, make form size = picture box size
    and it makes nice transparent window;
    But I need to put pictureBox2 on pictureBox1;

    And there's a problem - transparent...
    See more | Go to post

  • sin
    replied to Determine if there's any text selection in Windows
    in C
    Thanks for the post.
    Maybe anyone have this book in electronic format ? :)

    I'm interested not only in textbox'es, but anywhere in window.
    Maybe I'll change the question.
    Text is only what I need, but I, first of all, want know if anything is selected at all....
    See more | Go to post

    Leave a comment:


  • sin
    started a topic Determine if there's any text selection in Windows
    in C

    Determine if there's any text selection in Windows

    Hello,
    does anyone knows how to determine if there's in Windows any selected text in active window ? Language doesn't matter, but C# would be better.
    Thanks for the answer
    See more | Go to post

  • sin
    started a topic Determine if there's any text selection in active window
    in C

    Determine if there's any text selection in active window

    Hello.
    Sorry if I'm asking an old question,
    but I couldn't find it anywhere. If there is some link, please paste it.

    I want to know how to determine in Windows if there is any text selection in window. Actually, doesn't matter in what language, but C# would be best.
    Thank you for any answer.
    See more | Go to post

  • sin
    replied to Search a word from text file in C++
    in C
    The code would be:

    Code:
    ....
    char*    search = "eat"; // search pattern
    int    offset; // where it was found (or not (-1))
    
    // arg 2 (0) specifies the offset from where to begin seach
    if ((offset = line.find(search, 0)) != string::npos) {
        cout << "found '" << search << "' @ offset " << offset << endl;
    }
    .....
    See more | Go to post

    Leave a comment:


  • sin
    replied to convert string to integer
    in C
    When I read first post by azrael, I assumed that he wants to convert "numeric part only" to an interger (one integer).
    Actually, there was a time when I needed precisely the same behaviour of program (pick all numbers from char[] and convert to int), so I gave an answer to him.
    And there wasn't any steam from my ears at all =)
    With gcc 3.3.5 I have no complains about that code. And I don't think that anyone must use...
    See more | Go to post

    Leave a comment:


  • sin
    replied to convert string to integer
    in C
    Risby, actually I can allocate str2 like this in C.
    Did you tried that code ?
    and it won't be 12 and 21
    the result in str2 will be 1221
    you can see that if you look closer in the program loop
    See more | Go to post

    Leave a comment:


  • sin
    replied to Search a word from text file in C++
    in C
    =)
    no, that system() was a joke =)

    you can use
    line.find(patte rn,0);
    if it's result != string::npos, your string is found
    See more | Go to post

    Leave a comment:


  • sin
    replied to Search a word from text file in C++
    in C
    system("grep text file");

    =)

    Have you even bothered to start writing that program ?
    See more | Go to post

    Leave a comment:


  • sin
    replied to i need urgent help pleaaaase
    in C
    I hope that will help

    Code:
    #include <iostream>
    
    using    namespace std;
    
    int
    main()
    {
        int n;
        int i, j, x;
    
        cout << ": ";
        cin >> n;
    
        // you said this must be an odd number between 1 and 10, right ?
        if ((n % 2) == 0 || n < 1 || n > 10) {
            cerr << "bad
    ...
    See more | Go to post

    Leave a comment:


  • sin
    replied to convert string to integer
    in C
    You can filter all the numbers into another char[] and then do atoi();
    For example

    int i, ii;
    int result;
    char str1[] = "R12R21";
    char str2[strlen(str1)];

    memset(str2, 0, sizeof str2);

    for (ii = 0, i = 0; i < strlen(str1); i++)
    if (isdigit(str1[i]))
    str2[ii++] = str1[i];

    result = atoi(str2);

    ----------------...
    See more | Go to post

    Leave a comment:


  • sin
    replied to Java is too vast
    in Java
    I don't think that you will be able to becoma a "good java professional" very fast. I can see that this title of you is maybe more important than programming itself.
    Or maybe I'm wrong ;)
    I suggest you to learn to enjoy the process of learning. Then maybe you'll stop writing 'wannabe' questions.
    Sorry for my opinion, I don't want to insult anyone.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...