![]() |
Why I can't create socket ? |
Post Reply
|
| Author | |
lipper
Newbie
Joined: 27 June 2008 Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Topic: Why I can't create socket ?Posted: 27 June 2008 at 5:05am |
|
I am using xtp pro 11, VC6
I want to create a SOCKET on the MDI window ,when the program running ,it reported socket create error !!
In my project, I create a MDI window which is inherited from CXTPMDIFrameWnd, but ,when I wanted created a socket on the child window , although the building is passed , running error displayed !! It was: Can't create socket successfully!The code followed here:
CAsyncSocket*pSocket=new CAsyncSocket;
int nPort=27; if (pSocket->Create(nPort,SOCK_DGRAM)) { AfxMessageBox("passed"); }else { AfxMessageBox("SOCKET_ERROR"); } Why I can't create socket ?
Created socket in the child window ,the error displayed as the same.
If anyone has the solution ,please send email to me:
thanks
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 June 2008 at 4:19pm |
|
Hi,
How it related to codejock controls ?
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
ABuenger
Newbie
Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 June 2008 at 7:44am |
|
You have to add fluxcapacitor.vbx to your project
![]() |
|
|
Codejock support
|
|
![]() |
|
lipper
Newbie
Joined: 27 June 2008 Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 June 2008 at 3:49am |
|
Thank you and what does the fluxcapacitor.vbx meaning ?
How can I do with my VC 6 project ?
Thanks again.
|
|
![]() |
|
lipper
Newbie
Joined: 27 June 2008 Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 June 2008 at 4:25am |
|
How to deal with the problem ? |
|
![]() |
|
lipper
Newbie
Joined: 27 June 2008 Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 June 2008 at 5:17am |
|
Sorry for my poor English.
|
|
![]() |
|
lipper
Newbie
Joined: 27 June 2008 Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 June 2008 at 5:27am |
|
I didn't initialize !
I forgot add the support of winsock!
Manual call : AfxSocketInit
It was done!
The toolkit is so good that I can't mean that I should do some basic working.
OK, keep touching with me : zlipper@gmail.com
|
|
![]() |
|
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 June 2008 at 1:48pm |
![]() |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |