Click here to Skip to main content
15,885,278 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: SetWindowPos don't accept values Pin
SandipG 21-Sep-08 23:58
SandipG 21-Sep-08 23:58 
GeneralRe: SetWindowPos don't accept values Pin
baerten22-Sep-08 4:23
baerten22-Sep-08 4:23 
QuestionRe: SetWindowPos don't accept values Pin
Mark Salsbery22-Sep-08 5:37
Mark Salsbery22-Sep-08 5:37 
QuestionCopy Byte information to structure Pin
nitin321-Sep-08 23:29
nitin321-Sep-08 23:29 
AnswerRe: Copy Byte information to structure Pin
SandipG 21-Sep-08 23:50
SandipG 21-Sep-08 23:50 
AnswerRe: Copy Byte information to structure Pin
CPallini21-Sep-08 23:53
mveCPallini21-Sep-08 23:53 
AnswerRe: Copy Byte information to structure Pin
Alan Balkany22-Sep-08 3:55
Alan Balkany22-Sep-08 3:55 
AnswerRe: Copy Byte information to structure [modified] Pin
cmk22-Sep-08 12:29
cmk22-Sep-08 12:29 
Aside from needing to pack the structure:
#pragma pack(push, 1)
typedef ...;
#pragma pack(pop)

and copying 8 bytes, not 6:
memcpy(..., 8);

you may also need to swap the WORD values after the copy depending on their represenstation in Buf and meaning in mystruct:
memcpy(...);
_swab(&Buf[2], &st.wValue1, 2);
_swab(&Buf[5], &st.wValue2, 2);

...cmk

The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.
- John Carmack

modified on Monday, September 22, 2008 6:37 PM

QuestionWindows Mail plugin : IStoreFolder/IStoreNamespace Fails on Vista Pin
dolly21-Sep-08 23:27
dolly21-Sep-08 23:27 
Questionvirtual function call issue [modified] Pin
George_George21-Sep-08 22:25
George_George21-Sep-08 22:25 
QuestionHow to uniquely identify or distinguish windows that have no window name, same class name and resource id is zero [modified] Pin
georgekjolly21-Sep-08 22:16
georgekjolly21-Sep-08 22:16 
AnswerRe: How to uniquely identify or distinguish windows that have no window name, same class name and resource id is zero Pin
CPallini22-Sep-08 3:20
mveCPallini22-Sep-08 3:20 
QuestionChange the bold effect when create a control. Pin
nguyenbinh0721-Sep-08 21:54
nguyenbinh0721-Sep-08 21:54 
AnswerRe: Change the bold effect when create a control. Pin
_AnsHUMAN_ 21-Sep-08 22:03
_AnsHUMAN_ 21-Sep-08 22:03 
GeneralRe: Change the bold effect when create a control. [modified] Pin
nguyenbinh0721-Sep-08 22:41
nguyenbinh0721-Sep-08 22:41 
GeneralRe: Change the bold effect when create a control. Pin
_AnsHUMAN_ 21-Sep-08 23:35
_AnsHUMAN_ 21-Sep-08 23:35 
AnswerRe: Change the bold effect when create a control. Pin
shubhi21-Sep-08 23:19
shubhi21-Sep-08 23:19 
QuestionRe: Change the bold effect when create a control. Pin
David Crow22-Sep-08 2:30
David Crow22-Sep-08 2:30 
AnswerRe: Change the bold effect when create a control. Pin
Mark Salsbery22-Sep-08 5:39
Mark Salsbery22-Sep-08 5:39 
QuestionFlash Window Pin
tanmay.kol21-Sep-08 21:16
tanmay.kol21-Sep-08 21:16 
AnswerRe: Flash Window Pin
Cedric Moonen21-Sep-08 21:20
Cedric Moonen21-Sep-08 21:20 
AnswerRe: Flash Window Pin
_AnsHUMAN_ 21-Sep-08 21:23
_AnsHUMAN_ 21-Sep-08 21:23 
QuestionRe: Flash Window Pin
Rajesh R Subramanian21-Sep-08 21:24
professionalRajesh R Subramanian21-Sep-08 21:24 
AnswerRe: Flash Window Pin
Hamid_RT22-Sep-08 19:12
Hamid_RT22-Sep-08 19:12 
QuestionInstalling drivers and Inno Setup Pin
AnithaSubramani21-Sep-08 21:15
AnithaSubramani21-Sep-08 21:15 

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.