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....
User Profile
Collapse
-
-
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 JohnsonLeave a comment:
-
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
-
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.comLeave a comment:
-
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. :-(Leave a comment:
-
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...
No activity results to display
Show More
Leave a comment: