Click here to Skip to main content
15,918,050 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Is it possible to draw on dialog Pin
led mike20-Jun-07 5:53
led mike20-Jun-07 5:53 
GeneralRe: Is it possible to draw on dialog Pin
shivditya20-Jun-07 5:56
shivditya20-Jun-07 5:56 
GeneralRe: Is it possible to draw on dialog Pin
led mike20-Jun-07 6:13
led mike20-Jun-07 6:13 
GeneralRe: Is it possible to draw on dialog Pin
shivditya20-Jun-07 6:22
shivditya20-Jun-07 6:22 
GeneralRe: Is it possible to draw on dialog Pin
led mike20-Jun-07 6:35
led mike20-Jun-07 6:35 
GeneralRe: Is it possible to draw on dialog Pin
Mark Salsbery20-Jun-07 7:18
Mark Salsbery20-Jun-07 7:18 
GeneralThank you very much Pin
shivditya22-Jun-07 7:57
shivditya22-Jun-07 7:57 
QuestionA beginer's qustion Pin
Xiaoming Qian20-Jun-07 3:10
Xiaoming Qian20-Jun-07 3:10 
Hi everybody. I'm developing an IC card handset device application with standard C language.I'm a new comer to C language.I have a question
Look at the funtion definition :
<br />
unsigned short dt_recv(unsigned char *data, int *datalen)<br />
Input parameters: 	<br />
Data :	to receive data buffer<br />
Output parameters: Datalen:receive data buffer size<br />
Return values: none.<br />
<br />
Communication Protocol :<br />
  data[0]=command head;	<br />
  ...<br />
  data[3]=high of length;						<br />
  data[4]=low of length;<br />
  ...<br />


Data[3] and Data[4] store a Int16 value.I have problem when I try to get the value.Here is my code:
<br />
  short i;<br />
  memcpy(&Data[3],&i,2);<br />


But it seems that I did not get the right value.I guess I'm in the wrong way.I'm not familiar with memory operation.

Can any one give me the right way?Any idea will be appropriate.
AnswerRe: A beginer's qustion Pin
xyecloudy20-Jun-07 3:16
xyecloudy20-Jun-07 3:16 
AnswerRe: A beginer's qustion Pin
kakan20-Jun-07 4:14
professionalkakan20-Jun-07 4:14 
QuestionRe: A beginer's qustion Pin
David Crow20-Jun-07 4:55
David Crow20-Jun-07 4:55 
AnswerRe: A beginer's qustion Pin
Mark Salsbery20-Jun-07 5:27
Mark Salsbery20-Jun-07 5:27 
AnswerRe: A beginer's qustion Pin
Shatak Gurukar20-Jun-07 7:35
Shatak Gurukar20-Jun-07 7:35 
GeneralRe: A beginer's qustion Pin
David Crow20-Jun-07 7:56
David Crow20-Jun-07 7:56 
AnswerRe: A beginer's qustion [modified] Pin
Erik Midtskogen20-Jun-07 7:54
Erik Midtskogen20-Jun-07 7:54 
GeneralRe: A beginer's qustion Pin
David Crow20-Jun-07 7:57
David Crow20-Jun-07 7:57 
GeneralRe: A beginer's qustion Pin
Erik Midtskogen20-Jun-07 8:09
Erik Midtskogen20-Jun-07 8:09 
QuestionService problem Pin
david bagaturia20-Jun-07 3:05
david bagaturia20-Jun-07 3:05 
JokeRe: Service problem Pin
Matthew Faithfull20-Jun-07 3:46
Matthew Faithfull20-Jun-07 3:46 
AnswerRe: Service problem Pin
david bagaturia20-Jun-07 4:13
david bagaturia20-Jun-07 4:13 
GeneralRe: Service problem Pin
david bagaturia20-Jun-07 4:31
david bagaturia20-Jun-07 4:31 
GeneralRe: Service problem Pin
BadKarma20-Jun-07 4:52
BadKarma20-Jun-07 4:52 
GeneralRe: Service problem Pin
david bagaturia20-Jun-07 19:35
david bagaturia20-Jun-07 19:35 
QuestionRe: Service problem Pin
David Crow20-Jun-07 4:58
David Crow20-Jun-07 4:58 
AnswerRe: Service problem Pin
led mike20-Jun-07 5:14
led mike20-Jun-07 5:14 

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.