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

Search:

Type: Posts; User: Cambalinho

Page 1 of 40 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: [RESOLVED] how make a multithread synchronization correctly?

    i found the book.. thanks.
    i will share it, if i have permition(the link where i download it)
    to be honest that class is working great and i had tested. i'm using it on read() and write(). it's...
  2. Re: [RESOLVED] how make a multithread synchronization correctly?

    sorry... on your test do you use SingleThreadAtTime(true)? yes these make sure that waits until the last thread is finished
  3. Re: how make a multithread synchronization correctly?

    i was getting several problems for make a shyncronization multithread. so, finally, i finish my own multithread class:

    class Multithread
    {
    private:
    HANDLE hThread=NULL;
    DWORD...
  4. Re: how make a multithread synchronization correctly?

    i'm so sorry.. don't be mad with me, but can you tell me what is confuse me on code, please?
    the code seems fine from what i readed :(
  5. Re: how make a multithread synchronization correctly?

    see these update:

    void multi_read(char *chr, string *str, double *dbl)
    {
    pthread_mutex_lock(&myMutex);
    if (blnread==true)
    pthread_cond_wait( &condition_var,...
  6. Re: how make a multithread synchronization correctly?

    using an infinite loop, i can test the keyboard input and if was the enter key. but i must let the cpu send the result(see the keyup code).
    i'm sorry, your articles are using MFC, i don't use it.
  7. Re: how make a multithread synchronization correctly?

    now they are protected but i continue with problems :(
    heres the correct debug output:
    "before read: 0x28facc
    before read2: 0x28fac4
    before read3: 0x28fac0
    on function1: 0x28facc
    on function2:...
  8. [RESOLVED] how make a multithread synchronization correctly?

    i'm making my own input using the richedit win32 class.
    for that i must use a structure for not lose the variable adress...

    struct arg_readmultithread
    {
    consolewindow...
  9. how save a structure object on a file and read it?

    see these code:

    struct user
    {
    string name;
    string adress;
    image foto;//i must overloading ofstream and ifstream operators
    int age=0;
    };
  10. Replies
    6
    Views
    1,182

    Re: why my image don't return HBITMAP?

    i'm sorry Igor Vartanov, are you tell me that my code or what i need is confused? i must elaborate more about it?
  11. Replies
    6
    Views
    1,182

    Re: why my image don't return HBITMAP?

    true but i fixed that. now see these function on my Menu class:

    void bitmap(const image &imgImage)
    {
    //assignment imgImage to imgMenu
    imgMenu=imgImage;
    ...
  12. Replies
    4
    Views
    1,048

    Re: how use the printer?

    seems now that i have the problem resolved:

    long ConvertPixelsToTwips(long *x, long *y)
    {
    long RetVal;

    const int LogPixelsX = 88;
    const int LogPixelsY = 90;
    const int...
  13. Replies
    4
    Views
    1,048

    Re: how use the printer?

    honestly i'm very confused....
    "if you don't change anything, then the printer is set to MM_TEXT mapping mode, which means your coordinates are printer pixel coordinates since printers are...
  14. Replies
    4
    Views
    1,048

    how use the printer?

    i'm trying print a window DC, but seems that i mistake on scale mode between HDC(pixels) and printer(?):(

    void print()
    {
    //getting the default printer name
    char...
  15. Replies
    6
    Views
    1,182

    why my image don't return HBITMAP?

    heres my BitmapDC and MemoryDC class's:

    class MemoryDC
    {
    private:
    HDC memoryDC;

    public:
    MemoryDC ()
    {
  16. Replies
    1
    Views
    1,846

    Re: how using DIB's?

    that line it's corrected now, but seems not working :(

    COLORREF GetDIBPixel(HDC hdcImage, long posX, long posY, HDC destination)
    {
    //get the bitmap from HDC and HDC dimensions
    BITMAP...
  17. Replies
    1
    Views
    1,846

    how using DIB's?

    i'm trying use the GetDIBits() and StretchDIBits() for create functions more faster than GetPixel() and SetPixel().

    COLORREF GetDIBPixel(HDC hdcImage, long posX, long posY)
    {
    //get the...
  18. Re: [win32] - avoid flicker and do a correct redraw

    don't be mad with me. i was trying.... and we fix it ;)
  19. Re: [win32] - avoid flicker and do a correct redraw

    finally i came with 1 thot. i did 1 temp image for draw the background with image in scroll way:

    case WM_ERASEBKGND:
    {
    return TRUE;
    }
    ...
  20. Re: [win32] - avoid flicker and do a correct redraw

    now see these code:

    case WM_ERASEBKGND:
    {
    return TRUE;
    }
    break;

    case WM_PAINT:
    {
  21. Re: [win32] - avoid flicker and do a correct redraw

    case WM_PAINT:
    {
    PAINTSTRUCT ps;
    BeginPaint(inst->hwnd, &ps);

    //draw a background on inst->imgForm
    ...
  22. Re: [win32] - avoid flicker and do a correct redraw

    i fix another flicker. but see these code:

    case WM_ERASEBKGND:
    {
    return TRUE;
    }
    break;

    case WM_PAINT:
    ...
  23. Re: [win32] - avoid flicker and do a correct redraw

    Igor sorry if i make you think on that way. i hear everyone. i'm trying to understand more.
    finally i understand why the WS_EX_COMPOSITED was not working.... for avoid a flicker i must do:

    1...
  24. Re: [win32] - avoid flicker and do a correct redraw

    by some reason i can't put the WS_EX_COMPOSITED working :(
    but see these: the Invalidate() TRUE or FALSE(for clean the background or not) redraw the entire window inclued the child controls make...
  25. Re: [win32] - avoid flicker and do a correct redraw

    anotherthing: if the windows(parent window) is too big i will get flickers :(
    can you give me more information, please?
    yes i use a timer animation for refresh the window
Results 1 to 25 of 986
Page 1 of 40 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a Codeguru.com survey!


HTML5 Development Center