User Profile

Collapse

Profile Sidebar

Collapse
mdavidjohnson
mdavidjohnson
Last Activity: Sep 23 '10, 04:24 AM
Joined: Sep 16 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mdavidjohnson
    replied to Corrupt MSWSOCK.dll
    in C
    SOLVED Corrupt MSWSOCK.dll

    Thanks -

    I linked on MSWSOCK.Lib instead of MSWSOCK.dll.

    [Build] succeded.
    [Debug|Start Without Debugging] worked.

    This is indeed a very minimal shell to which I intend to add many other features as I learn more and more about Winsock2 programming. That's why I added MSWSOCK even though the program compiles and works without it.

    Thanks again....
    See more | Go to post
    Last edited by mdavidjohnson; Sep 23 '10, 03:29 AM. Reason: SOLVED

    Leave a comment:


  • mdavidjohnson
    replied to Corrupt MSWSOCK.dll
    in C
    Apparently, even though I type in the "[/Code]" line properly, the system insists on displaying it as "{/CODE]" instead, i.e. using a leading brace instead of the leading bracket.

    The mechanism also doesn't appear to do anything.

    What am I doing wrong?

    M. David Johnson
    See more | Go to post

    Leave a comment:


  • mdavidjohnson
    started a topic Corrupt MSWSOCK.dll
    in C

    Corrupt MSWSOCK.dll

    In trying to learn Winsock2 programming with Visual C++ 2005 Pro on Windows XP Pro SP3, I've run into a problem with an apparently corrupt MSWSOCK.dll.

    Here's what I've tried so far:

    Code:
    // This is my second attempt at Winsock2 programming
    // A console program built from the code given at 
    // http://www.tenouk.com/Winsock/visualstudio2008ncnwinsock2.html
    // MDJ 2010/09/22
    
    // Run on Windows
    ...
    See more | Go to post
    Last edited by Banfa; Sep 22 '10, 05:49 PM. Reason: Corrected code tags

  • mdavidjohnson
    replied to Visual C++ .NET 2005 Bitmap problem
    in C
    Thanks to Viorel at social_dot_msdn _dot_microsoft_ dot_com, the solution is to replace the TempColor assignment line with:

    TempColor = Color::FromArgb (cArg,cRed,cGre en,cBlue);

    I’ve tested this and it works.

    M. David Johnson
    mdj@bds-soft.com
    See more | Go to post

    Leave a comment:


  • mdavidjohnson
    replied to Visual C++ .NET 2005 Bitmap problem
    in C
    TempBitmap->SetPixeli,j,Te mpColor);

    should read

    TempBitmap->SetPixel(i,j,T empColor);

    Odd, the "(" is there in the snippet I copied, I don't know how it got lost. :-(
    See more | Go to post

    Leave a comment:


  • mdavidjohnson
    started a topic Visual C++ .NET 2005 Bitmap problem
    in C

    Visual C++ .NET 2005 Bitmap problem

    I'm trying to learn how to modify Bitmaps programatically .

    As a first attempt, I'm trying to simply create a blank bitmap, programatically change it to all red, and display it in a pictureBox.

    The following code builds without error and, under "Start Without Debugging" runs without error except the blank pictureBox remains blank - no red bitmap is displayed in it. Any suggestions?
    private: System::Void
    ...
    See more | Go to post
No activity results to display
Show More
Working...