Click here to Skip to main content
15,911,789 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can I convert the JPEG files to thumbnails? Pin
ElizabethC12-Nov-03 12:57
ElizabethC12-Nov-03 12:57 
AnswerRe: How can I convert the JPEG files to thumbnails? Pin
Andrew Walker12-Nov-03 18:40
Andrew Walker12-Nov-03 18:40 
GeneralRe: How can I convert the JPEG files to thumbnails? Pin
ElizabethC13-Nov-03 6:09
ElizabethC13-Nov-03 6:09 
GeneralRe: How can I convert the JPEG files to thumbnails? Pin
Prakash Nadar13-Nov-03 16:08
Prakash Nadar13-Nov-03 16:08 
GeneralRe: How can I convert the JPEG files to thumbnails? Pin
ElizabethC17-Nov-03 5:57
ElizabethC17-Nov-03 5:57 
GeneralSendInput / keyb_event in a keyboard hook Pin
OddArne12-Nov-03 12:38
OddArne12-Nov-03 12:38 
Generalbmp save file question gdi+ Pin
ptharso12-Nov-03 11:05
ptharso12-Nov-03 11:05 
GeneralReceive vs ReceiveFrom... Pin
NewHSKid12-Nov-03 9:53
NewHSKid12-Nov-03 9:53 
Hi everyone,

I posted this question earlier today but i didn't get a response. I am a mini jam here, so I decided to ask it again. To the people who read my first post, SORRY!

I need to look into a UDP buffer but just peek at it. I have read that I can use MSG_PEEK with ReceiveFrom, but can I use it was Receive? I use Receive(,,MSGPEEK) with a TCP implementation and it works perfectly. How would I do this in UDP?

Here is what I have;

unsigned int temp;

int rVal = Receive(&temp, sizeof(temp), MSG_PEEK);
if(rVal < 0)
{
   int err = GetLastError();
}

else
{
   unsigned int RecvBuf;
   int rVal2 = Receive(&RecvBuf, sizeof(RecvBuf));   //No peek!
   ...
}


Any help would be appreciated greatly. If you have code that does this, i would also appreciate that too.

Jimmy

Just cause I am 15, doesn't mean I'm dumb! (I'll really be 4 on Feb. 29...the year 2004)
GeneralRe: Receive vs ReceiveFrom... Pin
Alexander M.,13-Nov-03 8:11
Alexander M.,13-Nov-03 8:11 
GeneralRe: Receive vs ReceiveFrom... Pin
Steve S13-Nov-03 22:11
Steve S13-Nov-03 22:11 
GeneralRe: Receive vs ReceiveFrom... Pin
Alexander M.,13-Nov-03 22:56
Alexander M.,13-Nov-03 22:56 
GeneralRe: Receive vs ReceiveFrom... Pin
NewHSKid14-Nov-03 1:02
NewHSKid14-Nov-03 1:02 
GeneralNM_CLICK problems Pin
ns12-Nov-03 9:30
ns12-Nov-03 9:30 
GeneralRe: NM_CLICK problems Pin
Joaquín M López Muñoz12-Nov-03 10:18
Joaquín M López Muñoz12-Nov-03 10:18 
GeneralRe: NM_CLICK problems Pin
ns13-Nov-03 2:30
ns13-Nov-03 2:30 
GeneralRe: NM_CLICK problems Pin
David Crow12-Nov-03 10:55
David Crow12-Nov-03 10:55 
GeneralRe: NM_CLICK problems Pin
ns13-Nov-03 2:49
ns13-Nov-03 2:49 
GeneralCD-ROM Pin
Alexander M.,12-Nov-03 9:26
Alexander M.,12-Nov-03 9:26 
GeneralRe: CD-ROM Pin
Joaquín M López Muñoz12-Nov-03 10:22
Joaquín M López Muñoz12-Nov-03 10:22 
GeneralUnhandled Exception Pin
mcquilkenm12-Nov-03 7:27
mcquilkenm12-Nov-03 7:27 
GeneralRe: Unhandled Exception Pin
John M. Drescher12-Nov-03 8:35
John M. Drescher12-Nov-03 8:35 
GeneralLaunching mail client, open new message and add attachments Pin
Daniel 'Tak' M.12-Nov-03 7:23
Daniel 'Tak' M.12-Nov-03 7:23 
GeneralRe: Launching mail client, open new message and add attachments Pin
David Crow12-Nov-03 8:02
David Crow12-Nov-03 8:02 
GeneralRe: Launching mail client, open new message and add attachments Pin
Daniel 'Tak' M.12-Nov-03 8:21
Daniel 'Tak' M.12-Nov-03 8:21 
GeneralRe: Launching mail client, open new message and add attachments Pin
David Crow12-Nov-03 9:36
David Crow12-Nov-03 9:36 

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.