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

Search:

Type: Posts; User: Cyanide

Page 1 of 5 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: fwrite gives bad file size when writing value '10'

    But of course, now I feel really stupid! I knew that, I always use "wb" mode, but for some reason I just happend to use "w" this time. Looking at your own code sometimes makes you blind, so I did not...
  2. [RESOLVED] fwrite gives bad file size when writing value '10'

    Hello friends

    I have a very peculiar problem in a VS2008 MFC-program. I wrote a function dumping the contents of a 1280*1024*USHORT buffer to a file, but to my surprise the file size was never...
  3. Re: Using string table in resource file DIALOG/MENU statement

    Thank you VictorN. I was afraid that was the only way to use the string table for this... Regrettably, that sounds like a poor solution to me, lot's of extra steps!

    I am also thinking about...
  4. Using string table in resource file DIALOG/MENU statement

    Hi!

    I am planning on preparing an MFC application (written in VS2005) for translation, and I want to move all hard coded strings to a string table. I have two types of strings in my application:...
  5. Replies
    10
    Views
    977

    Re: Plzz Help me In C++. Its Very Important

    :d
  6. Replies
    10
    Views
    977

    Re: Plzz Help me In C++. Its Very Important

    Well, this is still a very easy program... follow these steps and you will do just fine:


    1a) Loop all 6 subjects, for each subject loop all 35 students
    1b) Let user input the mark of the...
  7. Replies
    10
    Views
    977

    Re: Plzz Help me In C++. Its Very Important

    1) Sounds like homework, meaning that you should do it yourself in order to learn properly.
    2) What have you done so far? Where are you stuck?
    3) Why is this so much more important than other...
  8. Replies
    4
    Views
    1,654

    Re: Core 2 duo problem

    Will try that, thanks!Yes, the app is multi-threaded. But the threads are designed to wait for one another when necessary, so they should not mess things up...?
  9. Replies
    4
    Views
    1,654

    Core 2 duo problem

    Hi folks.

    We sell a measurement system that use a framegrabber card to collect images, then performs a bunch of calculations.

    There has never been any problems whatsoever with this this...
  10. Re: need explaining and comments about my coding please..

    No, definitely not. To answer your questions, take a look at your first post:Looking at those lines, you'll see that the initial value of s is 0, and that s is the final output of the program, this...
  11. Re: need explaining and comments about my coding please..

    I take it that you didn't write that code by yourself. You need to think about what is going on here, step by step. Say that the user has entered a = 12345. Then the for loop starts by setting n =...
  12. Re: need explaining and comments about my coding please..

    Yes, that loop should give you a correct result. Please use // rather than >> when commenting your code.

    This is the same thing as
    a = a/4;
  13. Replies
    4
    Views
    800

    Re: converting 8 bits into 11 bits

    Actually, the user must have meant that if the number is a 9 bit number (>255) he wants to append 2 bits, otherwise if it is an 8 bit number he wants to append 3 bits, so it will have a total of 11...
  14. Replies
    2
    Views
    698

    Re: need some assistance

    Well your code does most of the work allready. As you noticed, you just need to keep track of when you loop past the specific lines that mark the start and end of the area are interested in, then you...
  15. Re: StackOverflowException when counting pixels recursively

    Thank you for advice. I did and I am satisfied with my new solution. Now I simply loop over the image once, reusing the marker of nearest neighbour if available, otherwise starting with a new marker....
  16. StackOverflowException when counting pixels recursively

    Hi.
    I've designed a recursive function in order to count the number of objects and the size of each object in a 512x512 image. When the function finds a pixel belonging to an object it recursively...
  17. Replies
    8
    Views
    7,951

    Re: Help with C++ Tic-Tac-Toe game

    Great! Good luck with the learning!This surprises me, I cannot think of any reasonable use of break inside a loop without putting it inside an if structure??? To me, that is the whole point of the...
  18. Replies
    8
    Views
    7,951

    Re: Help with C++ Tic-Tac-Toe game

    The reason why the computer can make two moves is that you only have a break for the column loop, you need a break for the row loop as well. Otherwise the computer will be allowed to put one 'O' per...
  19. Replies
    4
    Views
    1,279

    Re: C++ Needed fast!

    I think I've never seen so many errors in a single line of code...! :eek: Hint: there are 5 different kinds of errors in this line, whereof 3 are frequently repeated.
    You really need to take a look...
  20. Thread: C++ arrays

    by Cyanide
    Replies
    4
    Views
    1,096

    Re: C++ arrays

    Q1: You have implemented a sort algorithm, however your code is not a "Selection sort". Please have a look at this Wikipedia link, there you will find a Pseudo code of the Selection sort algorithm. A...
  21. Replies
    2
    Views
    865

    Re: C++; please check errors...

    Somehow it seems like the amount of "please help me with my homework"-posts has rocketed recently. :confused:
  22. Replies
    19
    Views
    2,031

    Re: New Help with a problem

    Please use the code tags to make your code readable. I also suggest you think a little while about what will happen to your variable "divisor" when you run the code.
  23. Replies
    21
    Views
    4,561

    Re: Recursion depth

    You are right! :thumb:
    Please edit your first post and mark it [RESOLVED]. And please rate the posts you found helpful! ;)
  24. Replies
    21
    Views
    4,561

    Re: Recursion depth

    Exactly that was my point, but I wanted the poster to figure that out by himself/herself. I think "harder to maintain" is a matter of opinion. Personally I prefer the "one extra decrement" approach...
  25. Replies
    21
    Views
    4,561

    Re: Recursion depth

    Well, that was actually what I intended with my post. If you just use the static count variable correctly, this could be easily accomplished using the static variable approach. Given, of course, that...
Results 1 to 25 of 115
Page 1 of 5 1 2 3 4





Click Here to Expand Forum to Full Width

Featured