Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSocketfile

Status
Not open for further replies.

Legolas

Programmer
Feb 14, 2002
2
0
0
US
Hello,

I have a problem with the command : "CSocketFile.open" , the problem, it does not work! If one call this command the programm crashes with an "exceptional kernel32 failure"

a part of the sourcecode is:
.
.
.
CSocketFile file(&sockRecv);

file.Open("c:\\source.txt",CFile::modeCreate|CFile::modeWrite);
.
.
.

Can anybody help me? is it possible, that the open command isn't available for a CSocketfile?
Maybe one has to try another command to open the file.
I want to link the CSocketfile with a CArchive. PLEASE HELP ME!
 
Hi

What are you trying to do ? Opening a file or sending data over a network using socket ?

If you just want to open a file, use CFile.
If you want to send a file using socket, you need to open a socket and associate a CSocketFile instance to use the CArchive mechanism

Could tell more once you'll say more

Thierry
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top