Click here to Skip to main content
16,006,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to take first character from edit box text and add it to list box? Pin
Mark Salsbery28-Sep-07 21:02
Mark Salsbery28-Sep-07 21:02 
GeneralRe: How to take first character from edit box text and add it to list box? Pin
freebird7371729-Sep-07 7:08
freebird7371729-Sep-07 7:08 
GeneralRe: How to take first character from edit box text and add it to list box? Pin
Mark Salsbery29-Sep-07 7:49
Mark Salsbery29-Sep-07 7:49 
GeneralRe: How to take first character from edit box text and add it to list box? Pin
freebird7371729-Sep-07 8:22
freebird7371729-Sep-07 8:22 
QuestionHelp on extracting/importing e-mail from outlook express? Pin
ankoump28-Sep-07 10:51
ankoump28-Sep-07 10:51 
AnswerRe: Help on extracting/importing e-mail from outlook express? Pin
Sameerkumar Namdeo28-Sep-07 17:55
Sameerkumar Namdeo28-Sep-07 17:55 
QuestionC data structure question Pin
tjohnson197028-Sep-07 10:11
tjohnson197028-Sep-07 10:11 
AnswerRe: C data structure question Pin
Waldermort28-Sep-07 14:27
Waldermort28-Sep-07 14:27 
A struct should always have the same size and never be resizable. If you have the need to store items of an unkown size, store the pointer/offset to the data in the struct and write the data where the struct can find it.

For example:
struct MyStruct
{
    DWORD szText;
    char szSoreText[ 28 ];
    struct UnknownStruct
    {
         ...
    }
} foo;


When writing this to a file you would set the szText to sizeof( MyStruct ). This indicates that the string is stored right after the struct. To get the text you would do something like:
char* szStructsText = (char*)( &foo + foo.szText );


Waldermort

AnswerRe: C data structure question Pin
Neo Andreson30-Sep-07 18:42
Neo Andreson30-Sep-07 18:42 
QuestionSending asynchronous IOCTL from user to kernel Pin
Shay Harel28-Sep-07 9:58
Shay Harel28-Sep-07 9:58 
AnswerRe: Sending asynchronous IOCTL from user to kernel Pin
JudyL_MD28-Sep-07 10:06
JudyL_MD28-Sep-07 10:06 
QuestionCompletely novice to Visual Studio Pin
Aloha200728-Sep-07 9:51
Aloha200728-Sep-07 9:51 
QuestionRe: Completely novice to Visual Studio Pin
David Crow28-Sep-07 9:58
David Crow28-Sep-07 9:58 
AnswerRe: Completely novice to Visual Studio Pin
Aloha200728-Sep-07 11:04
Aloha200728-Sep-07 11:04 
AnswerRe: Completely novice to Visual Studio Pin
Hamid_RT28-Sep-07 19:46
Hamid_RT28-Sep-07 19:46 
QuestionHow to get all MFC MDI child windows Pin
Californian228-Sep-07 8:56
Californian228-Sep-07 8:56 
AnswerRe: How to get all MFC MDI child windows Pin
Mark Salsbery28-Sep-07 9:10
Mark Salsbery28-Sep-07 9:10 
GeneralRe: How to get all MFC MDI child windows Pin
Californian228-Sep-07 17:09
Californian228-Sep-07 17:09 
Questionerror LNK2001: unresolved external symbol _pinstX Pin
Calvin Streeting28-Sep-07 8:26
Calvin Streeting28-Sep-07 8:26 
AnswerRe: error LNK2001: unresolved external symbol _pinstX Pin
Karim Mribti28-Sep-07 8:38
Karim Mribti28-Sep-07 8:38 
GeneralRe: error LNK2001: unresolved external symbol _pinstX Pin
Calvin Streeting28-Sep-07 9:03
Calvin Streeting28-Sep-07 9:03 
GeneralRe: error LNK2001: unresolved external symbol _pinstX Pin
Calvin Streeting28-Sep-07 9:54
Calvin Streeting28-Sep-07 9:54 
AnswerRe: error LNK2001: unresolved external symbol _pinstX Pin
David Crow28-Sep-07 10:01
David Crow28-Sep-07 10:01 
QuestionregisterHotKey dont work Pin
jokop28-Sep-07 7:24
jokop28-Sep-07 7:24 
AnswerRe: registerHotKey dont work Pin
David Crow28-Sep-07 7:45
David Crow28-Sep-07 7:45 

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.