Click here to Skip to main content
15,889,877 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to remove a handle HFONT from memory? Pin
Daed11-Dec-02 2:58
Daed11-Dec-02 2:58 
GeneralRe: How to remove a handle HFONT from memory? Pin
Ted Ferenc11-Dec-02 5:11
Ted Ferenc11-Dec-02 5:11 
GeneralRe: How to remove a handle HFONT from memory? Pin
Ted Ferenc11-Dec-02 5:13
Ted Ferenc11-Dec-02 5:13 
GeneralRe: How to remove a handle HFONT from memory? Pin
Daed11-Dec-02 6:04
Daed11-Dec-02 6:04 
GeneralRe: How to remove a handle HFONT from memory? Pin
Ted Ferenc11-Dec-02 6:27
Ted Ferenc11-Dec-02 6:27 
GeneralProfiling Tools Pin
Steve Thresher11-Dec-02 0:00
Steve Thresher11-Dec-02 0:00 
GeneralRe: Profiling Tools Pin
Andreas Saurwein11-Dec-02 2:09
Andreas Saurwein11-Dec-02 2:09 
GeneralSocket Program Problem!!! Pin
John Bosko10-Dec-02 23:10
John Bosko10-Dec-02 23:10 
Hi,
I am doing a very basic thing of sending data to a server and getting the reply back.
For which first I have to send in a Login request and get authenticated, once authenticated, I have to send the actual data.

The problem I am facing is when I send the data, it embeds some funny characters before the actual text, which is causing the problem.
Upon further investigation, it was found that if I send the data without the login, it gets to the server correctly.

Is there some kind of REFRESH!!! for the second time when the data is sent so that it has correct values?

[CODE]
=========================================
for login authentication:

e = sendto(sd,"<req><loginid>8888\n",89,0,(struct sockaddr *)&saServer,sizeof(saServer));

For sending Data:

e = sendto(sd,"<req><loginid>8888<reqtype>08<broadcast><messagetype>M<no>5359846<message>Test+Value\n");
==========================================
[CODE]

The second sendto, does not send the data correctly.
Is there some refresh after we do the first sendto?

Kindly Help!!!
Best Regards,
JohnCry | :((
GeneralRe: Socket Program Problem!!! Pin
jhwurmbach10-Dec-02 23:42
jhwurmbach10-Dec-02 23:42 
GeneralRe: Socket Program Problem!!! Pin
John Bosko10-Dec-02 23:44
John Bosko10-Dec-02 23:44 
GeneralRe: Socket Program Problem!!! Pin
jhwurmbach10-Dec-02 23:54
jhwurmbach10-Dec-02 23:54 
GeneralRe: Socket Program Problem!!! Pin
John Bosko11-Dec-02 19:06
John Bosko11-Dec-02 19:06 
GeneralRe: Socket Program Problem!!! Pin
Rage11-Dec-02 0:06
professionalRage11-Dec-02 0:06 
GeneralRe: Socket Program Problem!!! Pin
Rage10-Dec-02 23:58
professionalRage10-Dec-02 23:58 
GeneralRe: Socket Program Problem!!! Pin
John Bosko11-Dec-02 0:00
John Bosko11-Dec-02 0:00 
GeneralRe: Socket Program Problem!!! Pin
Rage11-Dec-02 0:17
professionalRage11-Dec-02 0:17 
GeneralEnableMenuItem Pin
Sunnygirl10-Dec-02 22:52
Sunnygirl10-Dec-02 22:52 
GeneralRe: EnableMenuItem Pin
jhwurmbach10-Dec-02 23:46
jhwurmbach10-Dec-02 23:46 
GeneralRe: EnableMenuItem Pin
Sunnygirl10-Dec-02 23:52
Sunnygirl10-Dec-02 23:52 
GeneralRe: EnableMenuItem Pin
jhwurmbach11-Dec-02 0:03
jhwurmbach11-Dec-02 0:03 
GeneralRe: EnableMenuItem Pin
Sunnygirl11-Dec-02 0:10
Sunnygirl11-Dec-02 0:10 
GeneralRe: EnableMenuItem Pin
jhwurmbach11-Dec-02 0:32
jhwurmbach11-Dec-02 0:32 
GeneralRe: EnableMenuItem Pin
Sunnygirl11-Dec-02 1:11
Sunnygirl11-Dec-02 1:11 
GeneralRe: EnableMenuItem Pin
jhwurmbach11-Dec-02 1:19
jhwurmbach11-Dec-02 1:19 
GeneralRe: EnableMenuItem Pin
Ted Ferenc11-Dec-02 3:04
Ted Ferenc11-Dec-02 3:04 

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.