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

Search:

Type: Posts; User: @EE@

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Thread: postmessage

    by @EE@
    Replies
    8
    Views
    850

    Re: postmessage

    victor and 2Kaud, thank you for very kind help. I learned a lot.
  2. Thread: postmessage

    by @EE@
    Replies
    8
    Views
    850

    Re: postmessage

    what is difference between these two?:
    ::PostMessage( dlghandle , WM_SOMEMSG , (WPARAM)&s, 0 );
    PostMessage( WM_SOMEMSG , (WPARAM)&s, 0 );
  3. Thread: postmessage

    by @EE@
    Replies
    8
    Views
    850

    postmessage

    Hi All,
    sorry for asking newbie questions. trying to learn the concept: Calling PostMessage from inside a thread function which could be member of a dialog class. When to omit the first parameter?....
  4. Thread: corrupted string

    by @EE@
    Replies
    3
    Views
    747

    Re: corrupted string

    I have no access to the code for the function1. it is part of a library with no source.

    when I pass:
    char c[20];
    function1(c);

    then s = std::string(c),
    then i can use the s inside a map to...
  5. Thread: corrupted string

    by @EE@
    Replies
    3
    Views
    747

    corrupted string

    Hi,
    string s;

    function(char* GetChArr);
    function(&s[0])
    what is the side effect of this?. s becomes nonassignable after return.
  6. Replies
    1
    Views
    2,478

    system driver file on windows

    how to know if a .sys file is for 64 or 32 bit system?.
  7. Replies
    3
    Views
    553

    Re: question on structures

    any input?.
  8. Replies
    4
    Views
    402

    Re: running processes in library

    what i liked to verify was weather to use the actual code or its library call inside a thread should be the same. code is code, it does not matter if it is a library call. Just place it in inside a...
  9. Replies
    3
    Views
    553

    fixed width variables

    hi,
    can i use int8_t, int16_t, int32_t, int64_t, and uint8_t, uint16_t, uint32_t, uint64_t,to make sure the widths do not change from different versions of visual studio?. Like one version might...
  10. Replies
    4
    Views
    402

    Re: running processes in library

    it is an imported library function that communicates with IO and have no source for it. Include the library function call inside a worker std::thread and wait till it is done?.
  11. Replies
    4
    Views
    402

    running processes in library

    hi,
    my console program calls a c++ library function which does IO data exchange?. best way to optimize the throughput?.
  12. Thread: DWORD size in VS

    by @EE@
    Replies
    6
    Views
    546

    Re: DWORD size in VS

    missed that.
    thanks.
  13. Thread: DWORD size in VS

    by @EE@
    Replies
    6
    Views
    546

    Re: DWORD size in VS

    DWORD dw;
    dw = CalcAvgOfArray(...)
    when I move mouse over the dw in debug mode i see dw like 3465238465. this is 5 bytes not 4 bytes.
    cout << sizeof(DWORD); shows 4.
    can't open Victor's...
  14. Thread: DWORD size in VS

    by @EE@
    Replies
    6
    Views
    546

    DWORD size in VS

    in visual studio when moving mouse over a DWORD variable, it shows 5 bytes. I expected to see 4 bytes. Not sure why i see extra byte there?. sizeof(DWORD) shows 4 bytes. this happens in x64 , do not...
  15. Thread: stop a thread

    by @EE@
    Replies
    6
    Views
    1,077

    Re: stop a thread

    that link has good information on thread controls. However, it does not cover cases when thread is running and by click of a button, thread is terminated which is not recommended by many. Usually...
  16. Thread: stop a thread

    by @EE@
    Replies
    6
    Views
    1,077

    stop a thread

    a thread is running. how to cleanly stop m_thread from running regardless what it is doing.


    m_thread=AfxBeginThread(RunThread, (aDlg*)this);
    if (m_thread)
    {
    DWORD dwRet;
    do
    {
    dwRet =...
  17. Thread: refresh dialog

    by @EE@
    Replies
    7
    Views
    970

    Re: refresh dialog

    thanks for the link. useful.
  18. Thread: refresh dialog

    by @EE@
    Replies
    7
    Views
    970

    Re: refresh dialog

    Victor:

    1. And what are the reasons you "can not use worker thread for this function"?

    need something more deterministic. The thread operation does not quite sync with operation in the library...
  19. Thread: refresh dialog

    by @EE@
    Replies
    7
    Views
    970

    refresh dialog

    Have a function as part of a dialog class which has some loops and so on and works. But during its run, the dialog needs its controls , etc. refreshed and update. For reasons can not use worker...
  20. Thread: App crash

    by @EE@
    Replies
    15
    Views
    1,649

    Re: App crash

    1. yes, this thread simply returns. No even driven exit is used.
    2. Like may typical examples, this library is Initialized for providing callback function. library has exit routine that gets called...
  21. Thread: App crash

    by @EE@
    Replies
    15
    Views
    1,649

    Re: App crash

    the thread includes a series of steps till it returns. The first step is to initialize the library. I moved it out of the thread and seems to resolve it. Not 100% sure yet. Need to do more testing....
  22. Thread: App crash

    by @EE@
    Replies
    15
    Views
    1,649

    Re: App crash

    this is the code i use to check for thread exit.

    void CMyDlg::OnBnClickedButton()
    {
    m_pWinThread = AfxBeginThread(MyThreadFunc, (LPVOID)this);

    DWORD ret;
    do
    {
    ret =...
  23. Thread: App crash

    by @EE@
    Replies
    15
    Views
    1,649

    Re: App crash

    How many threads are started in your application?

    in one of the tabs only when a button is clicked on.

    Does the every tab dialog start the thread?

    click on a button

    How did you check...
  24. Thread: App crash

    by @EE@
    Replies
    15
    Views
    1,649

    Re: App crash

    only one thread get started in one of the tabs by clicking on a button. the rest are regular buttons.
  25. Thread: App crash

    by @EE@
    Replies
    15
    Views
    1,649

    Re: App crash

    my application is multi tab application which uses tab tree control. The APPCRASH may not be related to start of the thread. I could not see any memory lean risk code. I use CREATE for each dialog in...
Results 1 to 25 of 60
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured