Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Why I can't create socket ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Why I can't create socket ?

 Post Reply Post Reply
Author
Message
lipper View Drop Down
Newbie
Newbie


Joined: 27 June 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote lipper Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 27 June 2008 at 4:19pm
Hi,
How it related to codejock controls ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 28 June 2008 at 7:44am
You have to add fluxcapacitor.vbx to your project 

Codejock support
Back to Top
lipper View Drop Down
Newbie
Newbie


Joined: 27 June 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote lipper Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
lipper View Drop Down
Newbie
Newbie


Joined: 27 June 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote lipper Quote  Post ReplyReply Direct Link To This Post Posted: 29 June 2008 at 4:25am

How to deal with the problem ?

Back to Top
lipper View Drop Down
Newbie
Newbie


Joined: 27 June 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote lipper Quote  Post ReplyReply Direct Link To This Post Posted: 29 June 2008 at 5:17am
Sorry for my poor English.
Back to Top
lipper View Drop Down
Newbie
Newbie


Joined: 27 June 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote lipper Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
SuperMario View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 30 June 2008 at 1:48pm
Originally posted by ABuenger ABuenger wrote:

You have to add fluxcapacitor.vbx to your project 




Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.