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

Search:

Type: Posts; User: VictorN

Page 1 of 80 1 2 3 4

Search: Search took 0.85 seconds; generated 1 minute(s) ago.

  1. Replies
    2
    Views
    169

    Re: "Embedding a method" refactoring method

    I never heard about "Embedding a method" nor about "refactoring method". :confused:
    What type of "method" is here meant ? A Class method, a mathematical/physical/... method?
    What does it have to do...
  2. Replies
    1
    Views
    243

    Re: changing color in TRACE macro

    Not sure whether it will help you... but try!
    https://marketplace.visualstudio.com/items?itemName=MikeWard-AnnArbor.VSColorOutput
  3. Re: How to capture the screen of a window that contains transparency?

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/fc6a9c54-6109-4fe4-b249-c1262fb0b632/how-can-i-capture-a-semi-transparent-window?forum=vbgeneral
    Could it help?
  4. Re: Get all tables under a database in Postgre

    Sorry, Postgre is like a dark forest for me. :cry:
  5. Re: Get all tables under a database in Postgre

    Is it possible to create/have a table not belonging to any database? :confused:
  6. Re: Get all tables under a database in Postgre

    I replied here.
  7. Replies
    14
    Views
    1,031

    Re: New file inclusion problem on legacy code

    What prevents you to return the CSimulator instance rather than the pointer to a temporary created object? :confused:
  8. Replies
    14
    Views
    1,031

    Re: New file inclusion problem on legacy code

    Sometimes the order of #includes and also the order of declarations does matter.
    However, without seeing your code it's hard to guess.
  9. Re: Occcont.cpp error when migrating old VS2005 application to Visual Studio

    I guess it is a design flaw of the Microsoft MFC team: rather than show the real path on the user machine they output the path of the file stored on some their developer machine.
    The same was in VS...
  10. Re: How to "FormatMessage()" my "WSAGetLastError()"

    Well, did you try any of suggestion from these discussions in CG:
  11. Re: How to "FormatMessage()" my "WSAGetLastError()"

    Sorry, I never used this flag (FORMAT_MESSAGE_FROM_HMODULE).
    Have a look at these threads:
    https://forums.codeguru.com/showthread.php?268480-API-FormatMessage-w-FORMAT_MESSAGE_FROM_HMODULE-argument...
  12. Re: How to "FormatMessage()" my "WSAGetLastError()"

    This code worked for me:

    DWORD dwErr = GetLastError();
    LPVOID lpMsgBuf;
    FormatMessage(
    FORMAT_MESSAGE_ALLOCATE_BUFFER |
    FORMAT_MESSAGE_FROM_SYSTEM | ...
  13. Replies
    4
    Views
    881

    Re: Float point number simple arithmetic.

    Take your calculator and perform the following actions:
    1. convert decimal 0,1 to binary (OK, in HEX)
    2. truncate it to the max available length for the float
    3. multiply to itself
    4. convert the...
  14. Re: Is it safe to locally use arrays, vectors and calloc when multi-threading

    I agree with 2kaud.
    You schuld leave the using calloc (or a simillar alloc operation) in c-code.
    In C++ you have to use new/delete. Better - some already implemented (std) container classes.
  15. Thread: ZVT, EC-Cash

    by VictorN
    Replies
    6
    Views
    2,161

    Re: ZVT, EC-Cash

    Well, if the OP is so patient to wait for a possible solution for almost 18 months then yep, it could help him! :D
  16. Replies
    2
    Views
    952

    Re: HeapAlloc memory manipulation

    HeapAlloc just allocates some block of memory, it has no idea what type of data is about to be stored there,
    It's up to you to cast the returned LPVOID pointer to the type you need. Like

    LPSTR...
  17. Replies
    10
    Views
    3,954

    Re: Extend width of Drop-down list of Combo Box

    See Setting the width of the dropdown list
  18. Replies
    2
    Views
    632

    Re: MFC CRectTracker

    I never user this class and have no idea how and why should it be used.
    however, you could start with the Microsoft sample Tracker
  19. Replies
    20
    Views
    4,067

    Re: How do I get rid of "Ready" in Status Bar

    :thumb::thumb::thumb:
  20. Replies
    20
    Views
    4,067

    Re: How do I get rid of "Ready" in Status Bar

    I never needed to set the status bar text before status bar has been created.


    Yes! If it is already developed/created and does work, then why not? ;)


    Because it worked for me since decades...
  21. Replies
    20
    Views
    4,067

    Re: How do I get rid of "Ready" in Status Bar

    Just test it!
  22. Replies
    20
    Views
    4,067

    Re: How do I get rid of "Ready" in Status Bar

    Well, why reinvent the wheel? :rolleyes::confused:
    Why not just use the WM_SETMESSAGESTRING?
  23. Replies
    10
    Views
    974

    Re: wait .. no blocking

    Because std::threads did NOT exist when we had begonnen using multithreading in MS Windows applications.
    We had _beginthread(ex)/_endthread(ex) to use in a plain c++/Win32 applications and a little...
  24. XML Re: Xpath expression to extract value from a node/element

    1. Please, post every code/script.xml block to be properly formatted and indented. Use Code tags for this.
    Example: you write:

    some code ...
    indentation ...
    and we will see
    some code...
  25. Replies
    10
    Views
    974

    Re: wait .. no blocking

    Well, both "condition variables" that you meant (std::mutex) and MS Event Objects (Synchronization) are synchronization objects. So I do not see any difference.
    However, I never used std::threads,...
Results 1 to 25 of 1991
Page 1 of 80 1 2 3 4





Click Here to Expand Forum to Full Width

Featured