Click here to Skip to main content
15,913,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Better way to validate Edit control Pin
Maximilien3-Apr-07 5:31
Maximilien3-Apr-07 5:31 
QuestionRe: Better way to validate Edit control Pin
Super Hornet3-Apr-07 5:45
Super Hornet3-Apr-07 5:45 
QuestionRe: Better way to validate Edit control Pin
David Crow3-Apr-07 5:53
David Crow3-Apr-07 5:53 
AnswerRe: Better way to validate Edit control Pin
David Crow3-Apr-07 5:51
David Crow3-Apr-07 5:51 
QuestionRe: Better way to validate Edit control Pin
Super Hornet3-Apr-07 6:14
Super Hornet3-Apr-07 6:14 
QuestionRe: Better way to validate Edit control Pin
David Crow3-Apr-07 7:16
David Crow3-Apr-07 7:16 
AnswerRe: Better way to validate Edit control Pin
ThatsAlok18-Apr-07 20:35
ThatsAlok18-Apr-07 20:35 
Questionerror C2065: 'AfxBeginThread' Pin
Nandu_77b3-Apr-07 5:03
Nandu_77b3-Apr-07 5:03 
Hi,

I have copied the winsocket program form the url::::http://www.codeproject.com/internet/winsockintro01.asp.

When I tried the build the copied code i am getting the following error

WinSock.cpp
D:\MAHA\DLG TEST\WinSock\WinSock.cpp(26) : error C2065: 'AfxBeginThread' : undeclared identifier
D:\MAHA\DLG TEST\WinSock\WinSock.cpp(108) : error C2065: 'sprintf' : undeclared identifier
Error executing cl.exe.

I have googled for this error, some one suggested to include the #include<afxwin.h> or #include<afx.h>..I tried for this and got the below error

D:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Release\WinSock.sbr': No such file or directory

Can any one guide me how to aviod this error.


nandu
AnswerRe: error C2065: 'AfxBeginThread' Pin
David Crow3-Apr-07 5:55
David Crow3-Apr-07 5:55 
GeneralRe: error C2065: 'AfxBeginThread' Pin
Nandu_77b4-Apr-07 0:04
Nandu_77b4-Apr-07 0:04 
QuestionRe: error C2065: 'AfxBeginThread' Pin
David Crow4-Apr-07 2:44
David Crow4-Apr-07 2:44 
AnswerRe: error C2065: 'AfxBeginThread' Pin
Nandu_77b4-Apr-07 2:51
Nandu_77b4-Apr-07 2:51 
GeneralRe: error C2065: 'AfxBeginThread' Pin
David Crow4-Apr-07 3:04
David Crow4-Apr-07 3:04 
GeneralRe: error C2065: 'AfxBeginThread' Pin
Nandu_77b5-Apr-07 3:35
Nandu_77b5-Apr-07 3:35 
AnswerRe: error C2065: 'AfxBeginThread' Pin
ThatsAlok18-Apr-07 20:30
ThatsAlok18-Apr-07 20:30 
AnswerRe: error C2065: 'AfxBeginThread' Pin
ThatsAlok18-Apr-07 20:34
ThatsAlok18-Apr-07 20:34 
QuestionHANDLE Problem Pin
micutzu3-Apr-07 3:51
micutzu3-Apr-07 3:51 
QuestionShared memory with CreateDIBSection Pin
phieu3-Apr-07 3:43
phieu3-Apr-07 3:43 
AnswerRe: Shared memory with CreateDIBSection Pin
KaЯl3-Apr-07 4:42
KaЯl3-Apr-07 4:42 
AnswerRe: Shared memory with CreateDIBSection Pin
Mark Salsbery3-Apr-07 7:32
Mark Salsbery3-Apr-07 7:32 
GeneralRe: Shared memory with CreateDIBSection Pin
phieu3-Apr-07 18:29
phieu3-Apr-07 18:29 
GeneralRe: Shared memory with CreateDIBSection Pin
Mark Salsbery3-Apr-07 19:43
Mark Salsbery3-Apr-07 19:43 
GeneralRe: Shared memory with CreateDIBSection Pin
Mark Salsbery3-Apr-07 19:51
Mark Salsbery3-Apr-07 19:51 
GeneralRe: Shared memory with CreateDIBSection Pin
phieu4-Apr-07 1:15
phieu4-Apr-07 1:15 
GeneralRe: Shared memory with CreateDIBSection Pin
Mark Salsbery4-Apr-07 7:24
Mark Salsbery4-Apr-07 7:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.