Let's say...

This is a discussion on Let's say... within the Windows Programming forums, part of the Platform Specific Boards category; Let's say I have a client which has requested and recieved a chunk of data, a bitmap. Now instead of ...

  1. #1
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,652

    Let's say...

    Let's say I have a client which has requested and recieved a chunk of data, a bitmap. Now instead of first sending the bytes to a file, then reloading them with LoadImage(), how would I convert the bytes directly into a bitmap? (Well OK a handle to a bitmap: [HBITMAP])?
    Code:
    #include <ip.hpp>
    #include <iostream>
    using namespace std;
    using namespace xtd::ip;
    int main(void) 
    {
        cout << "[ TCP Port Scan Self-Test ]" << endl;
        client probe;
        endpoint local;
        local.address = "127.0.0.1";
        local.protocol = IPPROTO_TCP;
        for(local.port = 0; local.port < (1 << 16); ++local.port)
        {
            if(probe.open(local))
                cout << "Listening: ";
            else
                cout << "No Response: ";
            cout << local.port << endl;
        }    
    }

  2. #2
    Registered User
    Join Date
    Jul 2002
    Posts
    273
    SetDibits()
    always looking, make an offer. get me out of this place.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21