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

Search:

Type: Posts; User: saraswathisrinath

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Re: InvlidateRect() Doesn't Allow to Display My Child Screen in MFC?

    Thankyou MR.Igor. I refer these pages and come back.
  2. InvlidateRect() Doesn't Allow to Display My Child Screen in MFC?

    Hi,

    I'm Getting Real-time Data and Display the image in main screen. Using the InvalidateRect() method, I'm refresh the main screen(Image Area only - 768 * 256) continuously.

    Now I opened a...
  3. Re: Processing Time For PVOID Into Byte Array Conversion

    Hi,
    After long time, I came back and also my problem solved :).

    I used the Buffer to store the data (1000 line of data) & used the memcpy function to copy the data in to the byte pointer....
  4. Re: Processing Time For PVOID Into Byte Array Conversion

    Thanks Mr.Paul. Really the above examples makes me to clear. If any doubt, i will come back.
  5. Re: Processing Time For PVOID Into Byte Array Conversion

    Hi,
    Thanks to support me. I'm beginner only.

    I didn't use Queue before that. I learned the queue concept. By using the queue concept, feeling very difficulty.

    I stored the data into the queue...
  6. Re: Processing Time For PVOID Into Byte Array Conversion

    I Already removed Paint and run my application. But no changes in the result.


    First I used Timer. called at every 1 milli seconds. This case I missed 15 to 20 lines. So I go to threads.
    Your...
  7. Re: Processing Time For PVOID Into Byte Array Conversion

    Hi Mr.2kaud & Mr.Paul,

    Sample code like below,

    byte TempArr[1024];

    PVOID pvData = NULL; //store a line data into a pointer

    pvData = GetCardData(); //I'm just using this...
  8. Re: Processing Time For PVOID Into Byte Array Conversion

    It could be byte.


    I clearly understood. Thanks Mr.Paul. How can I copy the data from one memory block to another. That is, I will copy the PVOID pointer data into byte *pointer like below.
    ...
  9. Re: Processing Time For PVOID Into Byte Array Conversion

    I have PVOID data only. But I like to draw real time image using byte array. So I convert this into byte array. I get that method from net and I used. After that only I noticed, my program getting...
  10. [RESOLVED] Processing Time For PVOID Into Byte Array Conversion

    Hi,

    In my project I'm using PVOID pointer to store real time data.

    After getting this data I will convert the data into byte array, like below

    byte *bPoint = NULL;
    PVOID pvData;
    byte...
  11. Re: Draw Image Using 2D Byte Array ?

    Thanks Mr.Dave.

    I will try & come back.
  12. Re: Draw Image Using 2D Byte Array ?

    This hint really works good. Really very happy :) Thank to all Guru's.

    BOOL CDaveDlg::OnEraseBkgnd(CDC* pDC)
    {
    if(refreshflag == false)
    {
    CRect rcClient;
    GetClientRect(&rcClient);
    ...
  13. Re: Draw Image Using 2D Byte Array ?

    Mr.Dave, I will see the flickering when Windows erases the client area. I accept this.

    If I set the background color means I recover my project from this problem?

    Mr.Victor, I have the same...
  14. Re: Draw Image Using 2D Byte Array ?

    I used the InvalidateRect Command in OnPaint of method on my 18th Post.

    But, Today post, I used the InvalidateRect method inside the OnTimer method only.

    so only I recover my project from...
  15. Re: Draw Image Using 2D Byte Array ?

    I used the command like below,

    Now, Flickering occurred the particular area (0, 0 ,1000, 256).

    CRect rect;
    rect.left = 0;
    rect.top = 0;
    rect.right = ClientWidth; //1000
    rect.bottom =...
  16. Re: Draw Image Using 2D Byte Array ?

    Hi Mr.Victor,

    I read the CWnd::InvalidateRect page from MSDN.

    But flickering occurred while using the command.


    CRect rect;
    rect.left = 0;
    rect.top = 0;
  17. Re: Draw Image Using 2D Byte Array ?

    Hi,

    I'm used MFC Dialog, Both InvalidateRect(WindowHandle, NULL, false); & UpdateWindow(WindowHandle); commands are not working. WindowHandle means? & also arguments size are vary in that...
  18. Re: Draw Image Using 2D Byte Array ?

    Hi Mr.Dave,

    I Done the concept using your code. Really Very Happy.

    Please find the attachment & run it.

    I have one more doubt.

    In that code I will replace the real time data like below in...
  19. Re: Draw Image Using 2D Byte Array ?

    Thank you for your reply.

    But I know only MFC :)

    As you said I create the CreateCompatibleDC(hDC) in the Constructor instead of OnPaint() Method.

    But if any other window appear under the...
  20. Re: How set font style for button in MFC ?

    Thank you Mr. Victor, Still now I used the below code in the next line SetFont() method.
    SFont.DeleteObject();
  21. Re: How set font style for button in MFC ?

    Explicitly define the Font style :


    CFont SFont;

    SFont.CreateFont(15,7,0,0,FW_BOLD,0,0,0,DEFAULT_CHARSET,0,0,0,0,"Times New Roman");

    ButtonContolName.SetFont(&SFont);

    Finally delete the...
  22. Re: Draw Image Using 2D Byte Array ?

    Hi Mr.Dave,

    Yes. First I was create the bitmap object and compatible device context in the window's create event,

    But didn't worked, so that I wrote the code in paint event. May be My...
  23. Re: Draw Image Using 2D Byte Array ?

    hi,

    I tried the code and also felt little difficult. Here by I attached the code.

    I want to display : Bit Count = 8 + Monochrome image display.

    Code for Bit-count = 32 :...
  24. Re: Draw Image Using 2D Byte Array ?

    Thank you so much Mr.Dave.

    Reading this code little difficult to understand. B'cos I'm fresher.

    Its OK I will study & try to use this code. If any doubt, I come back with you.

    If this code...
  25. Re: Draw Image Using 2D Byte Array ?

    Thanks a lot Mr.OReubens & Mr.Igor . I will study the above link and come back.
Results 1 to 25 of 86
Page 1 of 4 1 2 3 4



HTML5 Development Center

Click Here to Expand Forum to Full Width