Click here to Skip to main content
16,005,491 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalmodify the height of header of a list control Pin
Member 166038517-Jan-05 0:35
Member 166038517-Jan-05 0:35 
GeneralRe: modify the height of header of a list control Pin
Martin Koorts17-Jan-05 1:55
Martin Koorts17-Jan-05 1:55 
Questionhow to convert BYTE to String Pin
doneirik17-Jan-05 0:18
doneirik17-Jan-05 0:18 
AnswerRe: how to convert BYTE to String Pin
Mahendra_78617-Jan-05 0:38
Mahendra_78617-Jan-05 0:38 
AnswerRe: how to convert BYTE to String Pin
doneirik17-Jan-05 2:24
doneirik17-Jan-05 2:24 
GeneralSave part of Bitmap in File / Crop Pin
guf-cryptkeeper17-Jan-05 0:15
guf-cryptkeeper17-Jan-05 0:15 
GeneralRe: Save part of Bitmap in File / Crop Pin
guf-cryptkeeper17-Jan-05 23:04
guf-cryptkeeper17-Jan-05 23:04 
Generalclient-server Pin
Alka7516-Jan-05 22:29
Alka7516-Jan-05 22:29 
i am trying to design a client-server application
the code for sending & receiving is as follows
void CSocketDlg::OnBsend()
{
int iLen,iSent;
UpdateData(TRUE);
if (m_strMessage=="")
AfxMessageBox("Please type the name of the file");
else if (m_strMessage!=" ")
{
iLen=m_strMessage.GetLength ();
iSent=m_sConnectSocket.Send (LPCTSTR(m_strMessage),iLen);
if(iSent==SOCKET_ERROR)
{
}
else
{
CFile file(m_strMessage,CFile::modeRead|CFile::typeBinary);
char s[1025];
int totalBytesRead,bytesRead,len,flag=0;
//strcpy(s,"c:\\program files\\microsoft visual studio\\my projects\\Alka.txt");
//len=strlen(s);
totalBytesRead=0;
int length=file.GetLength();
//iSent=m_sConnectSocket.Send (LPCTSTR(s),len);
flag=1;
while(totalBytesRead<=length && iSent != SOCKET_ERROR && flag==1)
{
bytesRead=file.Read(s,1024);
s[bytesRead]='\0';
totalBytesRead+=bytesRead;
//m_ctlSent.AddString (s);
iSent=m_sConnectSocket.Send (LPCTSTR(s),bytesRead);
UpdateData(FALSE);
}
}
}

}

but iam unable to design for multiple requests. application is a MFC Dialog based application

Alka Kashyap
QuestionHow to use TRACE() in Win32 Applications Pin
LiYS16-Jan-05 22:29
LiYS16-Jan-05 22:29 
AnswerRe: How to use TRACE() in Win32 Applications Pin
Roger Allen16-Jan-05 23:20
Roger Allen16-Jan-05 23:20 
AnswerRe: How to use TRACE() in Win32 Applications Pin
Martin Koorts17-Jan-05 1:06
Martin Koorts17-Jan-05 1:06 
AnswerRe: How to use TRACE() in Win32 Applications Pin
David Crow17-Jan-05 3:55
David Crow17-Jan-05 3:55 
GeneralConvert Count in Milliseconds to Date and Time format(dd:mm:yy hours:min:sec:milliseconds) Pin
sam_software16-Jan-05 22:11
sam_software16-Jan-05 22:11 
GeneralRe: Convert Count in Milliseconds to Date and Time format(dd:mm:yy hours:min:sec:milliseconds) Pin
Martin Koorts16-Jan-05 23:22
Martin Koorts16-Jan-05 23:22 
GeneralRe: Convert Count in Milliseconds to Date and Time format(dd:mm:yy hours:min:sec:milliseconds) Pin
David Crow17-Jan-05 4:02
David Crow17-Jan-05 4:02 
Generalquestion about NetUserGetInfo Pin
busisbus16-Jan-05 19:13
busisbus16-Jan-05 19:13 
GeneralSplitter Window Pin
Mahendra_78616-Jan-05 18:56
Mahendra_78616-Jan-05 18:56 
GeneralRe: Splitter Window Pin
Iain Clarke, Warrior Programmer17-Jan-05 0:39
Iain Clarke, Warrior Programmer17-Jan-05 0:39 
GeneralRe: Splitter Window Pin
Mahendra_78617-Jan-05 14:19
Mahendra_78617-Jan-05 14:19 
GeneralRe: Splitter Window Pin
Mahendra_78617-Jan-05 14:42
Mahendra_78617-Jan-05 14:42 
Questionhow to delete class from workspace Pin
Ritu Kwatra16-Jan-05 18:41
Ritu Kwatra16-Jan-05 18:41 
AnswerRe: how to delete class from workspace Pin
geo_m16-Jan-05 20:16
geo_m16-Jan-05 20:16 
GeneralRe: how to delete class from workspace Pin
Ritu Kwatra16-Jan-05 22:37
Ritu Kwatra16-Jan-05 22:37 
AnswerRe: how to delete class from workspace Pin
eli1502197916-Jan-05 22:22
eli1502197916-Jan-05 22:22 
GeneralOpen With... Pin
dSolariuM16-Jan-05 18:27
dSolariuM16-Jan-05 18:27 

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.