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

Search:

Type: Posts; User: Yves M

Page 1 of 5 1 2 3 4

Search: Search took 0.18 seconds.

  1. Replies
    16
    Views
    949

    Re: Passing an STL array by reference - help

    Hi Paul,

    Did you try running it again? I'm just curious whether it's the same issue or something else.

    Regards,

    Yves
  2. Replies
    3
    Views
    365

    Re: Can't instantiate absstract class

    When you overwrite a pure virtual function, it has to have the same signature. Otherwise you haven't actually overwritten it, you just have declared an unrelated virtual function.


    virtual T...
  3. Re: [RESOLVED] Validity of new/delete pair (or malloc/free) after pointer casting

    That's not entirely correct. When you use delete [], the destructors for each individual object are called first. If you replace char and float by car and bike classes, it's obvious that using the...
  4. Replies
    16
    Views
    949

    Re: Passing an STL array by reference - help

    For the deallocation speed, did you try running your program outside of the IDE? Just open a CMD window, go to the release directory and run it from there. The thing is that Visual Studio since 2003...
  5. Replies
    2
    Views
    509

    Re: Help with Valentine's day special worm

    This forum is for computer programming professionals, not for malware writers. This type of questions is not condoned.
  6. Re: How to check the result returned from an iterator

    stdext::hash_map<std::string, CObjects*> m_SparseMap;

    Just a mention that putting pointers to objects inside STL containers is not generally a good idea, precisely because you run into problems...
  7. Re: Need Help with Visual Basic Questions, willing to give a reward for answers to Q'

    [ redirected from the Visual C++ forum ]
  8. Replies
    7
    Views
    1,392

    Re: Memory corruption with std::map and malloc

    I think you are probably having issues with re-entrant code. If I understand your design correctly, multiple connections can be active at any time, so your program is running listeners concurrently....
  9. Replies
    2
    Views
    461

    Re: Named locks (mutexes)

    That makes sense, thanks. So I guess I'll have to implement it on my own then.

    Thanks,

    Yves
  10. Replies
    2
    Views
    461

    Named locks (mutexes)

    Hi everyone,

    I'd like to run a design by you and ask on how to implement it. Here is the basic problem:
    I have a servelet A that returns full JPG images.
    I have a servelet B that returns JPG...
  11. Replies
    2
    Views
    1,494

    Re: Compiler complains about shobjidl.h

    Have you installed the platform SDK?
    http://www.microsoft.com/downloads/en/details.aspx?FamilyID=0baf2b35-c656-4969-ace8-e4c0c0716adb
  12. Replies
    16
    Views
    1,347

    Re: compare two files

    You could use unix commands for this.


    grep ':CME,' filename | sed -e 's/expression to parse out what you want/\1/' | uniq

    The grep selects the lines you're interested in from the source file....
  13. Re: Additional library needed to develop templates?

    It's in the FAQ.

    Basically, templates need the source code.
  14. Replies
    10
    Views
    846

    Re: vector private inheritance

    1) Well, you are safe, because the lack of a virtual destructor is not a problem when there is no way to actually use it.

    2) Basically yes. However, you should write a big comment at the start of...
  15. Re: All combinations of 0's and 1's in 128 bit character array?

    Hi,

    You can simply use next_permutation from STL algorithms. This is an example of how you would use it. The data structures are not the same as yours, but you should be able to adapt that with a...
  16. Re: mathematical tools for calculation of similarity of the objects

    If you can define your "similarity" mathematically, then you're halfway there. If you can't then you should probably try to find out what you think of when you think of your "similarity". Statistical...
  17. Replies
    4
    Views
    561

    Re: Regex search & replace

    Search for
    \[MSG_74{[^\]]*}\]
    Replace with
    \["MSG_74\1"\]
  18. Replies
    9
    Views
    854

    Re: Template declaration issue with the scope

    I guess the name lookup is a bit weird in this case. Maybe try using


    const _Ty& operator *() const
    {
    return (Acc::Value(iterator::_Ptr));
    }
  19. Thread: 32bit or 64 bit

    by Yves M
    Replies
    8
    Views
    673

    Re: 32bit or 64 bit

    No, the memory issue is an aside (that can be very helpful of course, but still).
    64 bit code is faster in these situations:

    Your program has integer arithmetic takes advantage of 64 bit values....
  20. Thread: 32bit or 64 bit

    by Yves M
    Replies
    8
    Views
    673

    Re: 32bit or 64 bit

    It's pretty much the same speed on most processors.

    However, why don't you also add a 64bit executable? If it's a new project, I think that would definitely make sense and then you could have...
  21. Replies
    34
    Views
    2,540

    Re: C++ new line HELP

    [ moderator note ]
    Please leave personal differences aside when posting on a technical forum. This forum is meant for helping with or solving precise questions that are stated by the original...
  22. Replies
    7
    Views
    2,764

    Re: C++ File Comparison

    That's exactly how I read his question.
  23. Re: Visual Studio. Debug. Copying large vectors to spreadsheet

    If you can modify the code a little bit, I would add a function that dumps the vector into a csv file and then open that with Excel. It means that you will have to add the function call to those...
  24. Re: How do I implement this? Coordinate lookup....

    Your program probably crashes because you tried to allocate your array on the stack and the program runs out of stack space. 10 000 x 10 000 = 100 000 000 (i.e. 100 MB). Using this array is probably...
  25. Replies
    5
    Views
    768

    Re: POSIX for Windows

    You basically just need cygwin1.dll on the target computer. That is the cygwin part. For the other dependencies, you need the appropriate dlls, just as with any Windows program. So it's not really...
Results 1 to 25 of 116
Page 1 of 5 1 2 3 4



HTML5 Development Center

Click Here to Expand Forum to Full Width