Search:

Type: Posts; User: NetCoder

Search: Search took 0.01 seconds.

  1. is this the way you answer a question? this is...

    is this the way you answer a question?

    this is the way you are helping others on forum. If you don't know the answer why you always try to answer that.
  2. Change Network Configuration using win32 VC++

    I want to change my system IP, subnet mask, host name etc. using win32 VC++.
    I've tried AddIPAddress function but that's not persistent.
    I want to change it that it should be change without...
  3. Replies
    5
    Views
    2,036

    I took the reference from these two topics and...

    I took the reference from these two topics and started writing my own code-
    CreateStreamOnHGlobal function (Windows)
    Image.FromStream method (Windows)

    and on S_OK the value is zero on debugging,...
  4. Replies
    5
    Views
    2,036

    Ok... IStream* pstream = NULL; ...

    Ok...



    IStream* pstream = NULL;
    if(SUCCEEDED(CreateStreamOnHGlobal(NULL, TRUE, &pstream)))
    {

    ULONG lreal = 0;
    if(S_OK)
  5. Replies
    5
    Views
    2,036

    Displaying Image from stream

    I'm trying to display an image from a stream data.
    But there is no image when getting image::from stream.
    It's my source code:



    IStream* pstream = NULL;
    ...
  6. @novacain,, I get through this and implemented...

    @novacain,,
    I get through this and implemented this on WM_PAINT but when I apply this code,,,
    on executing the program there is no window?
  7. @salem,, I did trying according to your code...

    @salem,,


    I did trying according to your code but there is nothing....
    and also unable to write the image to check the data...
    >MAX_SIZE is undefined and after defining it there is nothing,, is...
  8. This is my code for WM_PAINT: case WM_PAINT:...

    This is my code for WM_PAINT:


    case WM_PAINT:
    {
    HDC hdc;
    PAINTSTRUCT ps;
    HGDIOBJ hobj;

    hdc = BeginPaint(hWnd,&ps);
  9. But i tried writing an image using fwrite and...

    But i tried writing an image using fwrite and that is correct- if recv is wrong then how's that possible.
    Thanks!
  10. Bitmap Display from Buffer received by TCP socket

    I want to display my image on window without saving it.
    When data is received window size changes but there is no display
    on window.
    My Code is:


    int iBufferLength;
    int iEnd;
    int...
  11. The thing is when I'm trying to read the buffer...

    The thing is when I'm trying to read the buffer finally for a bitmap,
    Bitmap is not being created.

    This is my code to read the buffer for a bitmap..



    std::ifstream is;

    ...
  12. @Salem, Sir I actually did according to you in...

    @Salem,

    Sir I actually did according to you in my program and now
    when I'm trying to do this then everything goes right beside the thing that server side hangs.

    Thanks!
  13. Thanks for this,,its really helpful! Now I got...

    Thanks for this,,its really helpful!

    Now I got it,,How to receive it but after that how to store is also a problem..
    Can you help me in that too....
  14. I was getting stuck in this so I tried with this...

    I was getting stuck in this so I tried with this new approach:


    int i=256;
    BYTE* data = new BYTE[256*i];
    int packetsize, num;
    int newWidth, newHeight;
    int recvimgsize=0;

    ...
  15. TCP Server: Recieve Images and show on window without saving

    Hello All,
    I'm working on a project in which I'm making a TCP server that receives the images from a client and shows them on window without saving.


    case WM_SOCKET:
    {
    ...
Results 1 to 15 of 15