Click here to Skip to main content
15,915,864 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: multi threading Pin
Ravi Bhavnani21-Jun-05 15:12
professionalRavi Bhavnani21-Jun-05 15:12 
GeneralRe: multi threading Pin
Blake Miller22-Jun-05 5:06
Blake Miller22-Jun-05 5:06 
GeneralRe: multi threading Pin
Ravi Bhavnani22-Jun-05 7:59
professionalRavi Bhavnani22-Jun-05 7:59 
GeneralMaking Menu Selections through Program Pin
Abhishek Karnik21-Jun-05 10:01
Abhishek Karnik21-Jun-05 10:01 
Generalstructs in C++ Pin
LCI21-Jun-05 8:40
LCI21-Jun-05 8:40 
GeneralRe: structs in C++ Pin
FlyingTinman21-Jun-05 8:58
FlyingTinman21-Jun-05 8:58 
GeneralRe: structs in C++ Pin
GDavy21-Jun-05 8:58
GDavy21-Jun-05 8:58 
GeneralRe: structs in C++ Pin
John R. Shaw21-Jun-05 15:11
John R. Shaw21-Jun-05 15:11 
If you're programming in C++, you can use the C++ templated string classes.
typedef struct _mystruct
{
    typedef std::basic_string<TCHAR> mystring_type;
    mystring_type Name;
    mystring_type Addres;
} MyInfo;
// Then you could do stuff like this
pInfo->Name = _T("Mark");
pInfo->Address = _T("Marks's Address");

Of cource saving the data to a file is a totaly different subject; you cann't do anything like write(hFile,pInfo,sizeof(MyInfo)), because it would not make since with this structure (or any structure that contains pointers).

INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
QuestionHow to know running task? Pin
lewislewis_lewis21-Jun-05 8:37
lewislewis_lewis21-Jun-05 8:37 
AnswerRe: How to know running task? Pin
Blake Miller21-Jun-05 9:22
Blake Miller21-Jun-05 9:22 
Generalthanks Pin
lewislewis_lewis21-Jun-05 9:26
lewislewis_lewis21-Jun-05 9:26 
QuestionWhat is LPCTSTR? &amp; how to convert 2 a char? Pin
tomek1821-Jun-05 6:57
tomek1821-Jun-05 6:57 
AnswerRe: What is LPCTSTR? & how to convert 2 a char? Pin
David Crow21-Jun-05 7:11
David Crow21-Jun-05 7:11 
AnswerRe: What is LPCTSTR? &amp; how to convert 2 a char? Pin
TheGreatAndPowerfulOz21-Jun-05 7:18
TheGreatAndPowerfulOz21-Jun-05 7:18 
AnswerRe: What is LPCTSTR? &amp; how to convert 2 a char? Pin
John R. Shaw21-Jun-05 8:23
John R. Shaw21-Jun-05 8:23 
QuestionHOW TO: Timer / tic function in C woes Pin
kevingpo21-Jun-05 6:18
kevingpo21-Jun-05 6:18 
AnswerRe: HOW TO: Timer / tic function in C woes Pin
BlackDice21-Jun-05 6:20
BlackDice21-Jun-05 6:20 
GeneralRe: HOW TO: Timer / tic function in C woes Pin
kevingpo21-Jun-05 7:58
kevingpo21-Jun-05 7:58 
GeneralRe: HOW TO: Timer / tic function in C woes Pin
BlackDice21-Jun-05 8:10
BlackDice21-Jun-05 8:10 
GeneralRe: HOW TO: Timer / tic function in C woes Pin
Blake Miller21-Jun-05 9:14
Blake Miller21-Jun-05 9:14 
GeneralWIndows Controls Pin
Ross White21-Jun-05 5:15
Ross White21-Jun-05 5:15 
GeneralRe: WIndows Controls Pin
Blake Miller21-Jun-05 5:43
Blake Miller21-Jun-05 5:43 
GeneralRe: WIndows Controls Pin
James Brown21-Jun-05 7:30
James Brown21-Jun-05 7:30 
GeneralRe: WIndows Controls Pin
Andy Moore21-Jun-05 7:35
Andy Moore21-Jun-05 7:35 
GeneralRe: WIndows Controls Pin
Ross White21-Jun-05 8:08
Ross White21-Jun-05 8:08 

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.