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.02 seconds.

  1. Replies
    5
    Views
    1,763

    Re: function call in background

    Thank You Igor.
  2. Replies
    5
    Views
    1,763

    library function call

    Hi,
    My dialog class needs to make some third party library calls that runs efficiently in the background. The SDK has .h, .lib and .dll files that my dialog app can make calls but need the calls...
  3. Replies
    12
    Views
    9,488

    Re: control task handler

    VictorN thanks.

    Seems like Microsoft stopped doing such CView message handlers stuff in CDialog and kept them separate. Long back when I was doing MFC before I left it, I would think it was...
  4. Replies
    12
    Views
    9,488

    Re: control task handler

    yes, that works. I could not explain why WindowProc would not catch its message handler ID inside.
  5. Replies
    12
    Views
    9,488

    Re: control task handler

    1. Please ignore the CStatic. I only use static text control on mfc dialog.
    2. This code is called in the OnInitDialog of cdialog:
    CMyView is drived from CScrollView for zooming and scrolling.
    ...
  6. Replies
    12
    Views
    9,488

    Re: control task handler

    CScrollView object displays image in this static text control which is on the main dialog. CStatic has a scrollbar.

    this is the code I used to capture scroll event. When I move the scrollbar, no...
  7. Replies
    12
    Views
    9,488

    Re: control task handler

    although, do not have the actual code:

    LRESULT MyDLg::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
    {
    switch (message)
    {
    .
    .
    case WM_VSCROLL: // is this...
  8. Replies
    12
    Views
    9,488

    control task handler

    Hi,
    I have a MFC dialog with the static text control. I like to get access to its static text control. scrollbar when i move its scrollbar. I could not. Used windowProc , no luck. any code example??
  9. Thread: sendmessage

    by @EE@
    Replies
    4
    Views
    2,137

    Re: sendmessage

    if I make one of them postmessage, the sendmessage on other would work. Or, if I make both postmessage, then they each work too.
    If I keep both sendmessage, then 2nd sendmessage waits for ever.
  10. Thread: sendmessage

    by @EE@
    Replies
    4
    Views
    2,137

    sendmessage

    hi,

    this works as it launches Child Dialog.

    sendmessage(hParentChildBtn, BN_CLICK,0,0)

    however, this does not work as it does not close the child dialog.

    sendmessage(hChildOKBtn,...
  11. Thread: CRCs

    by @EE@
    Replies
    4
    Views
    1,232

    Re: CRCs

    traced the code,; somewhere before calling the VerifyAndCalcStat it was setting a field. Very tiny step. crc1 and crc2 seem to be the same and match. thanks for the hints.


    unsigned int crc1,...
  12. Thread: CRCs

    by @EE@
    Replies
    4
    Views
    1,232

    Re: CRCs

    meant to be a sudo code:


    void VerifyAndCalcStat(DataStruct * d)
    {
    //DataStruct contains char strings and unsigned integers.
    CRC2=CrcOf((unsigned char*)d);

    .
    .
  13. Thread: CRCs

    by @EE@
    Replies
    4
    Views
    1,232

    bundle data integrity

    Hi,
    Got structure DataStruct:

    DataStruct d1;
    //fill d1;
    FilldDataStruct((unsigned char*)&d1);
    CRC1=CrcOf((unsigned char*)d1);
    void (DataStruct * d)
    {
    CRC2=CrcOf((unsigned char*)d);
  14. Thread: postmessage

    by @EE@
    Replies
    8
    Views
    1,871

    Re: postmessage

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

    by @EE@
    Replies
    8
    Views
    1,871

    Re: postmessage

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

    by @EE@
    Replies
    8
    Views
    1,871

    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?....
  17. Thread: corrupted string

    by @EE@
    Replies
    3
    Views
    3,397

    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...
  18. Thread: corrupted string

    by @EE@
    Replies
    3
    Views
    3,397

    corrupted string

    Hi,
    string s;

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

    system driver file on windows

    how to know if a .sys file is for 64 or 32 bit system?.
  20. Replies
    3
    Views
    3,185

    Re: question on structures

    any input?.
  21. Replies
    4
    Views
    2,851

    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...
  22. Replies
    3
    Views
    3,185

    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...
  23. Replies
    4
    Views
    2,851

    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?.
  24. Replies
    4
    Views
    2,851

    running processes in library

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

    by @EE@
    Replies
    6
    Views
    1,429

    Re: DWORD size in VS

    missed that.
    thanks.
Results 1 to 25 of 73
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured