Click here to Skip to main content
15,904,023 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Accessing a Variable from another function. Pin
T.RATHA KRISHNAN22-Sep-08 0:46
T.RATHA KRISHNAN22-Sep-08 0:46 
AnswerRe: Accessing a Variable from another function. Pin
CPallini22-Sep-08 1:41
mveCPallini22-Sep-08 1:41 
AnswerRe: Accessing a Variable from another function. Pin
_AnsHUMAN_ 22-Sep-08 0:27
_AnsHUMAN_ 22-Sep-08 0:27 
QuestionDifference b/w strlen(NULL) and strlen("") Pin
SRKSHOME22-Sep-08 0:18
SRKSHOME22-Sep-08 0:18 
AnswerRe: Difference b/w strlen(NULL) and strlen("") Pin
CPallini22-Sep-08 0:23
mveCPallini22-Sep-08 0:23 
AnswerRe: Difference b/w strlen(NULL) and strlen("") Pin
toxcct22-Sep-08 21:30
toxcct22-Sep-08 21:30 
Questionoption button in tree control Pin
VCProgrammer21-Sep-08 23:37
VCProgrammer21-Sep-08 23:37 
Questionhow to create and run a webserver in VC++(MFC) Pin
tns_ranjith21-Sep-08 23:32
tns_ranjith21-Sep-08 23:32 
RantRe: how to create and run a webserver in VC++(MFC) Pin
Rajesh R Subramanian22-Sep-08 0:10
professionalRajesh R Subramanian22-Sep-08 0:10 
AnswerRe: how to create and run a webserver in VC++(MFC) Pin
enhzflep22-Sep-08 0:36
enhzflep22-Sep-08 0:36 
AnswerRe: how to create and run a webserver in VC++(MFC) Pin
Mark Salsbery22-Sep-08 5:53
Mark Salsbery22-Sep-08 5:53 
QuestionSetWindowPos don't accept values Pin
baerten21-Sep-08 23:31
baerten21-Sep-08 23:31 
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 

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.