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

Search:

Type: Posts; User: Miran

Search: Search took 0.02 seconds.

  1. Replies
    8
    Views
    1,926

    Preprocessor tricks

    Let's suppose that we have defined following macros:


    #define AAA 'a'
    #define BBB 8


    Is it possible somehow to define a macro CCC which will be the string of AAA duplicated BBB times?
  2. Replies
    11
    Views
    1,440

    Re: STL: choosing appropriate data structure

    Thank You to all of you for the answers.

    JVene's approach is probably fastest one among suggestions.
    But it will uselessly eat a memory if many objects are deleted.
    Actually the speed is not...
  3. Replies
    11
    Views
    1,440

    Re: STL: choosing appropriate data structure

    There is no such a requirement. But in the case if your ID range is small it might be relevant. So I suppose to fill the gaps first, then look for max + 1.



    But if the gap is in the middle, how...
  4. Replies
    11
    Views
    1,440

    Re: STL: choosing appropriate data structure

    Is it really simpler than using vector?
    When new object is to be created I should iterate from the begining to check whether the key of the current node is greater than key of the previous node by...
  5. Replies
    11
    Views
    1,440

    STL: choosing appropriate data structure

    I have to manage some object list including object creation, deletion. Each object in the list has an unique ID of type unsigned long. When object is created an unique ID should be generated and the...
  6. Replies
    5
    Views
    10,474

    Re: ATL project (simple COM server)

    It seems the problem is solved. Actually it was not a problem.
    ATL COM Wizard made a proxy/stub DLL project, I just needed to build the DLL and register it.
    And now I'm wondering why ATL COM Wizard...
  7. Replies
    5
    Views
    10,474

    Re: ATL project (simple COM server)

    Thank You for your answer.
    Actually I don't want to implement my own marshaling.
    I want to use standard marshaling.
    As I know for dual interfaces (the interfaces inherited from IDispatch)...
  8. Replies
    5
    Views
    10,474

    ATL project (simple COM server)

    I created simple COM out-of-proc EXE server (CLSCTX_LOCAL_SERVER) using ATL project in Microsoft Visual Studio 2008. Also I added my class and my interface to the project. I don't need Automation, so...
  9. Toolbar: How to Add bitmaps with different width

    I want to add into Toolbar control the buttons with bitmaps of different width.
    According to MSDN:


    But if you will see, for example, Google toolbar you can find out that it has buttons with...
  10. I appreciate your help Paul McKenzie. Thank you.

    I appreciate your help Paul McKenzie.
    Thank you.
  11. Thank you r.muehlbauer.

    Thank you r.muehlbauer.
  12. Thanks all for the answers. I'm sorry but I...

    Thanks all for the answers.
    I'm sorry but I still have a question.
    Let we have following situation.
    As wrote Paul McKenzie we add objects to the list, not a pointers:



    #include <list>...
  13. STL question: Is it necessary to delete an object from std::list

    I have a question regarding to STL std::list objects.
    Let we have a definition of own structure:



    struct MYSTRUCT
    {
    std::string strFile;
    DWORD dwSize;
    BOOL bFlag;
Results 1 to 13 of 13





Click Here to Expand Forum to Full Width

Featured