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

Search:

Type: Posts; User: JohnyDog

Page 1 of 9 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: Syntax error C2144 - 'bool' should be preceded by ';'

    You're missing semicolon after


    bool IS_MULTI_EQUIP)
  2. Replies
    4
    Views
    637

    Re: i want rgb details from .bmp

    Also, you're writing all the chars to same location.(imageByte[0]) Change this:


    fin.read(imageByte+index,1);
  3. Replies
    6
    Views
    962

    Re: Render OpenGL direct to Bitmap

    So is every function that transfers data from hardware buffer (GPU onboard RAM) to system RAM. But that is exactly what he needs to do, slow or not :)

    Depends on what he is trying to do. If my...
  4. Replies
    6
    Views
    962

    Re: Render OpenGL direct to Bitmap

    The easiest way is to simply draw as usual, then use glReadPixels to get the screen image. Or, if you want only part of the screen, you can use one of glCopyTex* functions to copy part of the...
  5. Replies
    17
    Views
    1,763

    Re: The difference between C and C++

    C doesn't have operator overloading (or more likely any overloading at all) nor virtual methods.
  6. Replies
    9
    Views
    747

    Re: Strange compiler warning

    Note that when using recursion, you can imagine it as the functions being stacked on top of each other as they execute - meaning when you finally end the recursion by using return -


    // 10th...
  7. Replies
    51
    Views
    4,082

    Re: Problem with make in linux

    On linux, current directory isn't usually in the PATH, so you have to run it as './command'. Also check if the file has execute permissions.
  8. Replies
    7
    Views
    1,295

    Re: Macro, casts and ternary operator

    How should the compiler know what will be the result of '?' operator ? It result depends on runtime - the code has to be compilable for both cases of the condition. What are you trying to achieve ?
  9. Replies
    51
    Views
    4,082

    Re: Problem with make in linux

    Post all the errors you're getting (or better, the whole compile log) and also version of the compiler you're using on the machine where you're getting the errors.
  10. Replies
    2
    Views
    586

    Re: My game won't complile

    The error is exactly what the compiler is telling you - you're missing semicolon after that enum declaraion in gameenvironment.h.
  11. Replies
    21
    Views
    2,584

    Re: set, sort and qsort

    It is also matter of the data itself - quicksort is very slow for unfavorable data sets (worst case scenario O(n^2) ). std::sort tends to use introsort (is this guaranteed or just in my...
  12. Replies
    10
    Views
    806

    Re: beginer with generic problem

    Yep, if nothing else, the leading underscore should be warning sign :) You can use getchar() though.
  13. Replies
    9
    Views
    644

    Re: compiling 1.0/0

    ash343> Both codes compile under gcc 4.1.2. At the first. compiler will print warning, as it can evaluate the expression directly and detect the zero division.
  14. Replies
    9
    Views
    718

    Re: Simple conversion problem

    Sure, lets wait :) Anyway,from the code he got from the documentation shows printing the time as hexadecimal (%X), yet it gives correct (decimal time) results. And he says my formula's working :D I...
  15. Replies
    9
    Views
    718

    Re: Simple conversion problem

    VladimirF> i have no idea what the 3rd party struct the OP's using is intended for, but from the code sample he posted it is clear that it is decimal number encoded in hexa in a way so it looks like...
  16. Re: Professional placement of derefencing operator

    As Calculator already told you, it doesn't really matter :) For my projects i'm using 'int *a' as i've found that most prevalent in the tons of existing code i was dealing with in my career.
  17. Re: Variable definition within "switch-case" statements

    http://docs.freebsd.org/info/g++FAQ/g++FAQ.info.jump_crosses_initialization.html
  18. Re: Professional placement of derefencing operator

    If you are working on project with multiple people, follow their coding style. If you are writing program by yourself, use the style that suits you best. The purpose of indentation is to make the...
  19. Replies
    9
    Views
    718

    Re: Simple conversion problem

    If i understand the coding correctly, the proper way to convert is


    x = ((num / 16) * 10) + (num % 16)
  20. Thread: 64-bit system

    by JohnyDog
    Replies
    9
    Views
    637

    Re: 64-bit system

    This interests me. I always thought VC is using the backwards-compatible LLP64 model (eg. both int and longs 32bit) ?
  21. Replies
    11
    Views
    14,224

    Re: convert vmlinuz to vmlinux

    Yes thats right. As a side note, if you want to recompile the kernel you should use sources provided by your distribution, as they usually differ from the ones in official kernel at kernel.org (added...
  22. Replies
    7
    Views
    2,214

    Re: Programming Logic Test

    The algorithm you came up with is correct, i can't see any simpler way. Of course as the assignment says the input stream is possibly infite, you'll have to implement some sort of buffer instead of...
  23. Replies
    3
    Views
    522

    Re: opengl problems with texturing

    You have to disable texturing when you draw non-textured colored polygons. Then, enable it again for textured polygons.
  24. Replies
    7
    Views
    623

    Re: why won't this work

    more like he zeroes the array - a[0]..a[5]

    Again, here the OP populates cguess array with 5 random numbers.


    The e should really be initialized before use, but i don't see reason why it...
  25. Replies
    11
    Views
    14,224

    Re: convert vmlinuz to vmlinux

    If your distribution puts the config under /boot, i'd say its preffered method. After all, the config file should be identical to the one in /proc/config.gz.
Results 1 to 25 of 208
Page 1 of 9 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center