User Profile

Collapse

Profile Sidebar

Collapse
shortyzms
shortyzms
Last Activity: Jul 11 '09, 02:13 AM
Joined: Jan 24 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Thanks for the tip JoS, it worked like a charm!




    I was given the impression that 'long' always meant 64 bits. I didn't know that the standard only requires 'unsigned long' to support numbers in the range of an unsigned 32-bit integer.



    Thanks for this tip!...
    See more | Go to post

    Leave a comment:


  • assigning 64-bit hex values to unsigned long variables

    I'm having a problem with assigning 64-bit hex values to unsigned long variables in MS VS2005 c++ compiler.

    Code:
    unsigned long Number;
    Number = 0x1000000000000000UL;
    After this declaration and assignment, the value in Number is always 0. However, if the hex value is 0x0000000000000 001, then the value is 1 as expected. It seems like the compiler is truncating the most significant 32 bits. How can I make this wor...
    See more | Go to post

  • shortyzms
    started a topic Question About glut and OpenGL
    in C

    Question About glut and OpenGL

    I have been trying to write a small glut program that uses popup context menus on right clicks to draw objects. However, every time I do this, the area underneath the submenu item I clicked does not refresh.

    Here's a helpful test program I've found from Mindf**k's glut tutorial...

    Code:
    #include <iostream>
    #include <GL/glut.h>
    #include <cstdlib>
    using namespace std;
    
    void
    ...
    See more | Go to post

  • shortyzms
    started a topic Need help merging 4 rows into 1.

    Need help merging 4 rows into 1.

    Hello Experts,

    Let's say I have 4 lines in a child table that point to a line in a parent table. Right now I'm INNER JOINing them on the parent table's primary key, and it's giving me 4 records that look like this...

    Key | child1val
    Key | child2val
    Key | child3val
    Key | child4val

    What I'd like to do is merge these all into 1 row that looks like this...

    Key | child1val...
    See more | Go to post
No activity results to display
Show More
Working...