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

Search:

Type: Posts; User: JaySoyer

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,130

    Re: strtol is ambiguous error

    Unfortunately I can't give the full code for multiple reasons. However monarch sent me on the right track. Fixed the problem. Eclipse offered two ways to link with header's outside the project...
  2. Replies
    4
    Views
    1,130

    Re: strtol is ambiguous error

    void RemovePhrase()
    {
    string input;
    long int num;

    cout << "Enter phrase ID number to delete (0 cancel): ";
    getline(cin, input);

    num = strtol(input.c_str(), 0, 10);
  3. Replies
    9
    Views
    1,477

    Re: Map Comparison Fails in Function Const

    So you mean the subscripting takes away from the fact its a Red Black tree? I didn't think you could get more efficient then O(Log N) access with that type of tree.

    I always here so many...
  4. Replies
    4
    Views
    1,130

    strtol is ambiguous error

    Anyone know how to fix this semantic error or why its screaming at me?



    long int num = strtol(input.c_str(), 0, 10);
    Causes a semantic error: 'strtol' is ambiguous.
    Not sure if its more an...
  5. Replies
    12
    Views
    1,445

    Re: C - Realloc, Linked Lists, and pointers

    Thanx for all the help guys. I went ahead and just did another malloc and then memcpy everything over and free the old memory block. However this still failed as those addresses which were...
  6. Replies
    12
    Views
    1,445

    Re: C - Realloc, Linked Lists, and pointers

    Bare with me. Say I do this initially. Variables have global scope.



    void* mBuffer = malloc(size); //Start of the memory buffer
    void* mBuffFree = mBuffer; //Points to next available...
  7. Replies
    12
    Views
    1,445

    Re: C - Realloc, Linked Lists, and pointers

    We seem to be having a communication problem.

    I know that. You're referring to a reply in which, I still didn't feel like explaining why I wasn't actually using structs. The given question was...
  8. Replies
    12
    Views
    1,445

    Re: C - Realloc, Linked Lists, and pointers

    Ok, I'm being critique in something I was just trying to dumb down for the purpose of my REAL question. Which was what happens to the internal pointers and not am I programming this correctly. ...
  9. Replies
    12
    Views
    1,445

    Re: C - Realloc, Linked Lists, and pointers

    Oh, forgot to mention that each Node struct would be variable in size so an array is out of the question.
  10. Replies
    12
    Views
    1,445

    C - Realloc, Linked Lists, and pointers

    So I'm creating a simple memory buffer in C. Lets say I create the buffer of memory:



    void* pBuffer = malloc(1024);


    This buffer will be used to hold a bunch of structs.
  11. Replies
    9
    Views
    1,477

    Re: Map Comparison Fails in Function Const

    Well that's a sneaky little devil. I'm so used to checking for null pointers that way, I neglected to see that there was a find method for maps.


    Oh I changed that data type for readability. ...
  12. Replies
    9
    Views
    1,477

    Map Comparison Fails in Function Const

    So I'm very confused on why I'm getting an error here. I've dumbed down my code for simplicity and removed irrelevant code. Hopefully it doesn't take away the issue.



    class Foo
    {
    public:...
Results 1 to 12 of 12


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