🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by santeku Fri, 17 Apr 1998 00:00
$B%W%m%0%i%`$NJ#?t5/F0$NM^;_$NJ}K!(J
#343
Author: santeku
Date: Fri, 17 Apr 1998 00:00
17 lines
942 bytes
WindowsNT3.51 $B$G(J VC++4.0 $B$r;H$C$F%W%m%0%i%`$7$F$$$^$9!#(J

at$B%3%^%s%I$G5/F0$7$?%P%C%/%0%i%&%s%I$G<B9T$7$F$$$k%W%m%0%i%`$r(J
$BJ#?t5/F0$7$J$$$h$&$K$7$?$$$N$G$9$,J}K!$,J,$+$j$^$;$s!#(J

$B%&%#%s%I%&$,$"$k%W%m%0%i%`$G$O(J FindWindow $B$G5/F0$5$l$F$$$k$+(J
$B$I$&$+D4$Y$k$3$H$,$G$-$k$N$G$9$,!"%&%#%s%I%&$,$J$$>l9g$O(J
$B$I$&$9$l$P$$$$$N$G$7$g$&$+!#(J

$B$I$J$?$+65$($F2<$5$$!#(J


($B3t(J)$B%5%s%F%/(J $B%7%9%F%`It(J $B%7%9%F%`0l2](J
$BEDCf9,5*(J
santeku_system@pop11.odn.ne.jp
Plibate:kouki@comel.or.jp
Re: プログラムの複数起動の抑止の方法
#344
Author: Sato Masahiro
Date: Fri, 17 Apr 1998 00:00
23 lines
1487 bytes
fj.os.ms-windows.programming のほうが回答が得やすいと
思いますので、followup to fj.os.ms-windows.porgramming 
です。

santeku wrote:
> WindowsNT3.51 で VC++4.0 を使ってプログラムしています。
> 
> atコマンドで起動したバックグラウンドで実行しているプログラムを
> 複数起動しないようにしたいのですが方法が分かりません。
> 
> ウィンドウがあるプログラムでは FindWindow で起動されているか
> どうか調べることができるのですが、ウィンドウがない場合は
> どうすればいいのでしょうか。
> 
> どなたか教えて下さい。

Mutex を使用してはいかがでしょうか。Win32 API ならば、
CreateMutex などを調べてみてください。

-- 
Computer Institute of Japan, Ltd.
佐藤正宏 masahiro@cij.co.jp
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads