Search:

Type: Posts; User: Peter5897

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Raw Input Registration Problems, RegisterRawInputDevices()

    Hi,

    I've never worked with raw input before and I'm having trouble even getting to a situation where I can receive WM_INPUT messages. I've been reading the MSDN page on raw input (link) but I'm...
  2. Replies
    1
    Views
    2,996

    Two seconds later I remember what I'm doing...

    Two seconds later I remember what I'm doing wrong...


    template <typename T>
    const typename OAHashTable<T>::OAHTSlot* OAHashTable<T>::GetTable(void) const
    {
    }
  3. Replies
    1
    Views
    2,996

    Template Warnings/Errors... C4346

    Hello folks,

    I've had this warning (that creeps up to an error) multiple times and I thought I finally had templates ingrained in my brain so that it would never come back to haunt me again, but...
  4. Replies
    5
    Views
    1,599

    Alright I feel stupid but for some reason I got...

    Alright I feel stupid but for some reason I got my original method of using atoi() working in this dialog box while it still doesn't work perfectly in the other one. How? I'm not sure but since...
  5. Replies
    5
    Views
    1,599

    I tried sending a std::string in to the...

    I tried sending a std::string in to the SendDlgItemMessage() but it won't compile because I can't convert it to an LPARAM. I do send in a character string with another dialog box I'm using and I...
  6. Replies
    5
    Views
    1,599

    Getting Integers from an Edit Control

    Hi,

    I’m making a “map maker” type program and I’m having some trouble getting information from Dialog Box edit controls. I know how to use EM_GETLINE to get text from an edit control (which I...
  7. Thank you, you were very helpful, that worked...

    Thank you, you were very helpful, that worked like a charm.
  8. Hello again, I'm afraid I'm missing something...

    Hello again,

    I'm afraid I'm missing something in steps 1-3 (as for 4 my dialog box doesn't have room for more than 3 characters and cuts the user off if they try and enter more but thanks for the...
  9. Looking For a GetWindowLongPtr() Type Function (or workaround) for Dialog Boxes

    Hi,

    I’m trying to find a couple functions along the lines of the GetWindowLong(), SetWindowLong() variety except for dialog boxes. It’s my understanding that there’s no HWND created for a dialog...
  10. Replies
    19
    Views
    2,131

    Post your .h where your class is defined. If...

    Post your .h where your class is defined.

    If your GetMarkerCount(void) function is defined within the BMLDrawable class you need to say...



    int BMLDrawable::GetMarkerCount(void)
    {
    // stuff...
  11. Replies
    19
    Views
    2,131

    This probably isn't causeing that error but I can...

    This probably isn't causeing that error but I can see two places where you're returning a bool instead of an int.
  12. Replies
    3
    Views
    857

    Student *sa[3]; sa[0] = new...

    Student *sa[3];

    sa[0] = new Student("James");
    sa[1] = new Student("Jason");
    sa[2] = new Student("Frank");



    You should be able to figure out how to supply the name at run-time unless...
  13. Replies
    3
    Views
    1,413

    Not positive (just started working with...

    Not positive (just started working with iterators) but I think you want to do (**ci).getType();

    The only reason I'm not positive is because I'm not sure what you're doing with it but I'm positive...
  14. Problem 1, it does matter if ch is an int or...

    Problem 1, it does matter if ch is an int or char. It needs to be a char.

    Problem 2 you define your variables twice. The ones you are using in the loop are different than the ones you are...
  15. Yeah but that's the problem, I want a NULL before...

    Yeah but that's the problem, I want a NULL before I hit enter. In an ideal world I'd have a NULL after I enter my name so that it acts as a normal C string and then I would have a NULL in my...
  16. Buffer Overrun Project, Problem Entering NULL in to stream

    I’ve got a strange assignment from a class in which I’m supposed to initiate a buffer overrun to see how easy it is for someone to take advantage of the gets() function.

    The basic program that I’m...
  17. That makes sense... it also made a little light...

    That makes sense... it also made a little light click on in my head.

    Currently when I'm replacing words I free() my string and then the node which is completely unnecessary I'm assuming. All I...
  18. Thanks for the advice but I'm actually able to do...

    Thanks for the advice but I'm actually able to do all that. I can insert a word, add a word, delete a word, print words, all fine with no memory allocation/deallocation errors. The only problem I...
  19. I've decided to just go ahead and post all the...

    I've decided to just go ahead and post all the code I've written since I'm getting no where on my own. I've re-written these functions multiple times now and I either end up making things worse or...
  20. /*************************************************...

    /******************************************************************************/
    /*!

    Adds a word to a WordNode linked list, or creates a new WordNode list.

    \param words
    A pointer to a...
  21. First Time Using Linked Lists, Having Trouble Replacing First Node

    Hi,

    This is the first time I've used linked lists before and I'm having trouble replacing the first "node" of my list. I have a function that takes a node, an old word, and a new word (both...
  22. Replies
    2
    Views
    1,088

    I think I've figured it out... well actually I...

    I think I've figured it out... well actually I haven't figured it out but I just kept on messing with code and currently I have what I want occuring.
  23. Replies
    2
    Views
    1,088

    Problems Clearing Portion of Screen

    Hi,

    I'm trying to make a simple tool to create maps for a game I'm making. The goal is to be able to create the maps visually in this program and then save them to a binary or text file which I...
  24. Replies
    9
    Views
    1,319

    Thanks for the info, I've learned a bunch from...

    Thanks for the info, I've learned a bunch from this whole post. I'll take a look at my error handling now that I think I've got all the decoding working.

    Thanks again everyone!
  25. Replies
    9
    Views
    1,319

    thanks! I've taken out my hideous for loop and...

    thanks!

    I've taken out my hideous for loop and I'm now using fseek() and fgets()

    thanks again!
Results 1 to 25 of 30
Page 1 of 2 1 2