Click here to Skip to main content
15,891,248 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem running while and scanf Pin
«_Superman_»15-Jun-09 19:24
professional«_Superman_»15-Jun-09 19:24 
Questionoffice automation - I want to use 'MS-WORD' and 'MS-EXCEL' together? Pin
soosun115-Jun-09 14:18
soosun115-Jun-09 14:18 
AnswerRe: office automation - I want to use 'MS-WORD' and 'MS-EXCEL' together? Pin
Stuart Dootson15-Jun-09 14:59
professionalStuart Dootson15-Jun-09 14:59 
AnswerRe: office automation - I want to use 'MS-WORD' and 'MS-EXCEL' together? Pin
«_Superman_»15-Jun-09 16:24
professional«_Superman_»15-Jun-09 16:24 
GeneralRe: office automation - I want to use 'MS-WORD' and 'MS-EXCEL' together? [modified] Pin
soosun116-Jun-09 4:49
soosun116-Jun-09 4:49 
GeneralRe: office automation - I want to use 'MS-WORD' and 'MS-EXCEL' together? Pin
«_Superman_»16-Jun-09 19:37
professional«_Superman_»16-Jun-09 19:37 
QuestionFile Read / Write etc Pin
egerving15-Jun-09 13:18
egerving15-Jun-09 13:18 
AnswerRe: File Read / Write etc Pin
Green Fuze15-Jun-09 21:34
Green Fuze15-Jun-09 21:34 
Hey

Well, if you need to use forms I would suggest for you to use C# instead.
If there are things I have to do in C++ than you can always create a DLL with exports or COM DLL... depends on your requirements.

Anyway, if you want to create forms in C++ I would suggest using MFC (just follow the wizard in visual studio). Explaining exactly what is going on over there is a bit big for a that forum, but there are plenty of articles out there. Besides, I always believe that some trial and error is a good experience with new environments.

about reading and writing a file, you have several options:
- If you're using MFC, the easiest thing is to use MFC's CFILE class (I hardly use MFC so I can't really tell you much about that class, but I am sure it is easy to use this class).

- Another option is to use CATLFile, which is a class that literally wraps WIN32's read/write functions.

- You can use win32's read/write functions:
CreateFile()
ReadFile()
WriteFile()
you can see their signatures in MSDN (F1). There are some options for these functions and MSDN explain what each option means, if it gets a bit complicated, just ask...

- If you want a portable code (that will compile on windows and unix as well) you can use plain good old C functions: fopen() fread() fwrite().
QuestionDifference between OLE and COM ??? Pin
Green Fuze15-Jun-09 12:50
Green Fuze15-Jun-09 12:50 
AnswerRe: Difference between OLE and COM ??? Pin
Stuart Dootson15-Jun-09 14:57
professionalStuart Dootson15-Jun-09 14:57 
GeneralRe: Difference between OLE and COM ??? Pin
Green Fuze15-Jun-09 21:23
Green Fuze15-Jun-09 21:23 
GeneralRe: Difference between OLE and COM ??? Pin
Stuart Dootson15-Jun-09 22:02
professionalStuart Dootson15-Jun-09 22:02 
GeneralRe: Difference between OLE and COM ??? Pin
Green Fuze15-Jun-09 23:29
Green Fuze15-Jun-09 23:29 
Questionhow do i find who has focus? Pin
xchen199815-Jun-09 12:46
xchen199815-Jun-09 12:46 
AnswerRe: how do i find who has focus? Pin
Stuart Dootson15-Jun-09 14:55
professionalStuart Dootson15-Jun-09 14:55 
QuestionDesktop wallpaper/background Pin
daavena15-Jun-09 12:27
daavena15-Jun-09 12:27 
AnswerRe: Desktop wallpaper/background Pin
«_Superman_»15-Jun-09 16:37
professional«_Superman_»15-Jun-09 16:37 
GeneralRe: Desktop wallpaper/background Pin
daavena16-Jun-09 6:30
daavena16-Jun-09 6:30 
QuestionHow can I access a document member variable from a dialog window? Pin
Darryl Bryk15-Jun-09 11:05
Darryl Bryk15-Jun-09 11:05 
AnswerRe: How can I access a document member variable from a dialog window? Pin
Stuart Dootson15-Jun-09 14:53
professionalStuart Dootson15-Jun-09 14:53 
GeneralRe: How can I access a document member variable from a dialog window? Pin
Darryl Bryk17-Jun-09 13:41
Darryl Bryk17-Jun-09 13:41 
QuestionStatic function variable problem Pin
alikalik15-Jun-09 8:18
alikalik15-Jun-09 8:18 
AnswerRe: Static function variable problem Pin
David Crow15-Jun-09 10:03
David Crow15-Jun-09 10:03 
AnswerRe: Static function variable problem Pin
Chris Losinger15-Jun-09 10:04
professionalChris Losinger15-Jun-09 10:04 
GeneralRe: Static function variable problem Pin
alikalik15-Jun-09 18:43
alikalik15-Jun-09 18:43 

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.