Click here to Skip to main content
15,917,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Printing bitmap to PDF, but it gets clipped because of virtual printer's paper size Pin
sashoalm4-Aug-08 23:39
sashoalm4-Aug-08 23:39 
GeneralRe: Printing bitmap to PDF, but it gets clipped because of virtual printer's paper size Pin
SandipG 4-Aug-08 23:48
SandipG 4-Aug-08 23:48 
QuestionConverting ASCII file format to unicode file format. Pin
Ahmad Zubair4-Aug-08 21:08
Ahmad Zubair4-Aug-08 21:08 
AnswerRe: Converting ASCII file format to unicode file format. Pin
sudhir_Kumar4-Aug-08 22:03
sudhir_Kumar4-Aug-08 22:03 
AnswerRe: Converting ASCII file format to unicode file format. Pin
krmed5-Aug-08 0:52
krmed5-Aug-08 0:52 
GeneralRe: Converting ASCII file format to unicode file format. Pin
Ahmad Zubair5-Aug-08 1:02
Ahmad Zubair5-Aug-08 1:02 
GeneralRe: Converting ASCII file format to unicode file format. Pin
krmed5-Aug-08 7:48
krmed5-Aug-08 7:48 
Questionproblem with ReceiveFrom() function Pin
sunny_vc4-Aug-08 20:38
sunny_vc4-Aug-08 20:38 
Hi all,
I am working on TFTP server application.
When A client is requested for a file, My OnReceive() function is called.
In the OnReceive(),I am unable to get the data requested. I used the function like

CListenSocket::OnReceive(int nErrorCode)
{
char buff[100];
memset(buff,0,sizeof(buff));
CAsyncSocket::OnReceive(nErrorCode);
if (nErrorCode)
{
Message.Format("OnReceive nErrorCode: %i", nErrorCode);
AfxMessageBox(Message);
return;
}
int Size = ReceiveFrom(buff, 100,IPAddress,Port);
}

Here I am able to get the IPAddress and Port correctly.
But Unable to get data in the buff variable.But Size value is not zero.
So what could be the problem?
Please help me.

Regards,
Sunil Kumar

AnswerRe: problem with ReceiveFrom() function Pin
Varghese Paul M4-Aug-08 21:23
Varghese Paul M4-Aug-08 21:23 
GeneralRe: problem with ReceiveFrom() function Pin
sunny_vc4-Aug-08 21:27
sunny_vc4-Aug-08 21:27 
AnswerRe: problem with ReceiveFrom() function Pin
sudhir_Kumar4-Aug-08 22:11
sudhir_Kumar4-Aug-08 22:11 
GeneralRe: problem with ReceiveFrom() function Pin
sunny_vc4-Aug-08 22:19
sunny_vc4-Aug-08 22:19 
GeneralRe: problem with ReceiveFrom() function Pin
sudhir_Kumar4-Aug-08 22:37
sudhir_Kumar4-Aug-08 22:37 
GeneralRe: problem with ReceiveFrom() function Pin
sunny_vc4-Aug-08 22:48
sunny_vc4-Aug-08 22:48 
AnswerRe: problem with ReceiveFrom() function Pin
Mark Salsbery5-Aug-08 6:09
Mark Salsbery5-Aug-08 6:09 
QuestionCompiler Error Pin
john56324-Aug-08 20:35
john56324-Aug-08 20:35 
AnswerRe: Compiler Error Pin
T.RATHA KRISHNAN4-Aug-08 23:01
T.RATHA KRISHNAN4-Aug-08 23:01 
AnswerRe: Compiler Error Pin
Mark Salsbery5-Aug-08 6:23
Mark Salsbery5-Aug-08 6:23 
QuestionHow to get camera properties? Pin
Shivarudrayya H4-Aug-08 20:30
Shivarudrayya H4-Aug-08 20:30 
AnswerRe: How to get camera properties? Pin
Mark Salsbery5-Aug-08 6:26
Mark Salsbery5-Aug-08 6:26 
Questiontry-catch dynamic memory cleanup Pin
x87Bliss4-Aug-08 20:21
x87Bliss4-Aug-08 20:21 
AnswerRe: try-catch dynamic memory cleanup Pin
pallaka4-Aug-08 20:39
pallaka4-Aug-08 20:39 
AnswerRe: try-catch dynamic memory cleanup Pin
Cedric Moonen4-Aug-08 20:39
Cedric Moonen4-Aug-08 20:39 
AnswerRe: try-catch dynamic memory cleanup Pin
not_in_use5-Aug-08 8:33
not_in_use5-Aug-08 8:33 
GeneralRe: try-catch dynamic memory cleanup Pin
x87Bliss5-Aug-08 11:25
x87Bliss5-Aug-08 11:25 

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.