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.93 seconds; generated 9 minute(s) ago.

  1. Replies
    2
    Views
    166

    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...
  2. 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.
  3. Thread: ZVT, EC-Cash

    by VictorN
    Replies
    6
    Views
    1,831

    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
  4. Replies
    2
    Views
    416

    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...
  5. Replies
    10
    Views
    3,624

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

    See Setting the width of the dropdown list
  6. Replies
    2
    Views
    487

    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
  7. Replies
    20
    Views
    3,701

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

    :thumb::thumb::thumb:
  8. Replies
    20
    Views
    3,701

    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...
  9. Replies
    20
    Views
    3,701

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

    Just test it!
  10. Replies
    20
    Views
    3,701

    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?
  11. Replies
    10
    Views
    747

    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...
  12. 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...
  13. Replies
    10
    Views
    747

    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,...
  14. Replies
    10
    Views
    747

    Re: wait .. no blocking

    What " condition variables" do you mean?
  15. Replies
    10
    Views
    747

    Re: wait .. no blocking

    Using Worker Threads
    Using User-Interface Threads
  16. Replies
    3
    Views
    386

    Re: TRACE MACRO problem in MFC

    Wouldn't you like to change this to something like

    {
    tri = TriBuf->m_listoftriangles.GetAt(pos);
    res = tri->depth;
    TRACE("\ngetnext distance %lf \n", res);
    }
  17. Replies
    3
    Views
    386

    Re: TRACE MACRO problem in MFC

    And what value did you expect to be printed with this TRACE?
  18. Replies
    14
    Views
    1,135

    Re: array of objects

    Just debug your code step-by-step, also stepping in the std::vector ctor!
  19. Replies
    14
    Views
    1,135

    Re: array of objects

    In your sample code there is no any array/vector of MyClass. :confused:
  20. Replies
    14
    Views
    1,135

    Re: array of objects

    What does (in this context) mean "works OK"?
    And when it would be assumed to be "not OK"?
  21. Re: openFileDialog - AccessViolationException was unhandled

    This code:

    using namespace System;
    using namespace System::Windows;
    using namespace Forms;

    [STAThread]
    int main(array<System::String ^> ^args)
    {
    String^ MyExcelFile = String::Empty;
  22. Replies
    2
    Views
    395

    Re: Creating a popup window above an another.

    Have a look at SetWindowPos function and its second parameter
  23. Re: openFileDialog - AccessViolationException was unhandled

    What is openFileDialog1?
    What is MyExcelFile?
    Which line causes the exception?
  24. Replies
    1
    Views
    367

    Re: How to not display a UI?

    There is a SW_HIDE value. See ShowWindow function:
  25. Replies
    1
    Views
    463

    Re: Reverse String in Python

    How about using one of the examples from https://stackoverflow.com/questions/931092/reverse-a-string-in-python ?
Results 1 to 25 of 1991
Page 1 of 80 1 2 3 4





Click Here to Expand Forum to Full Width

Featured