PDA

Click to See Complete Forum and Search --> : Visual C++,, callin' another app...


hazel
Sep 2nd, 2002, 08:22 PM
Hi. i'm a newbie here!!

can u all pls help me solve my problems??
1. does anybody know how to read from txt file in Visual C++???
and
2. how to go and open other applications when you click a button??? (eg, opening another word application or sth like that)

(can u all pls explain in beginner terms also .... =P)

i'm using MFC Dialog Projects....


thanks a lot!!!
hope kind souls out there will reply me,,,, i need it urgently 4 my project!! thxxx.....

CyberCarsten
Sep 3rd, 2002, 12:54 AM
2) To open another program:

ShellExecute(m_hWnd, "open", "c:\\yourfile.exe",NULL,NULL,SW_SHOWNORMAL);

hazel
Sep 3rd, 2002, 01:43 AM
thanks a lot!!!!
it works!!!

:p

CornedBee
Sep 3rd, 2002, 05:34 AM
1) The FAQ is back online.

hazel
Sep 4th, 2002, 12:38 AM
but tat FAQ section doesn't seem to hav answers to my problem!!!

i've seen da questions, they all askin' about posting messages,,,,

haiz....

HELP!!
SOS!!

CornedBee
Sep 4th, 2002, 02:17 AM
The FAQ of this forum - the topmost post here.

CornedBee
Sep 4th, 2002, 02:18 AM
And for MFC files, look at CFile and derived classes, as well as CFileDialog

hazel
Sep 9th, 2002, 08:52 PM
hi does anyone know how to get a specific directory name
instead of specifying da exact path????

like , in vb, we have
sDemoPath = Environ("yourDirectoryName");

but wat abt in VC??
:confused:

CornedBee
Sep 10th, 2002, 04:10 AM
GetSpecialDirectory retrieves directories such as the local user files, the program files etc.

hazel
Sep 10th, 2002, 10:38 AM
thank u cornedbee...
you're very helpful!!!

=o)