TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: MICHAEL RATHBURN
from: JARI LAAKSONEN
date: 1998-01-25 19:56:00
subject: winexec()

MR>>> Is there any way I can pass WinExec a file pointer so that
MR>>> pbrush executes with a specific file loaded ?
jl>> Use ShellExecute();
MR> I Have tried ShellExecute(); But is comes up with an error, I have
MR> also looked for some help on it but can't seem to find any ?.
Does your compilers on-line help really say nothing about ShellExecute?
MR> Do I need to include a specific header file to use it ?.
shellapi.h
MR> what type and how many arguments do you pass to it ?.
HINSTANCE WINAPI ShellExecute(
  HWND hwnd,
  LPCSTR lpOperation,
  LPCSTR lpFile,
  LPCSTR lpParameters,
  LPCSTR lpDirectory,
  int iShowCmd);
        // Albert                      email: jla@to.icl.fi
--- GoldED/2 2.50+
---------------
* Origin: Albert's Point/2 in Finland, Europe (2:221/360.20)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.