ATOUTFOX
COMMUNAUTÉ FRANCOPHONE DES PROFESSIONNELS FOXPRO
Visual FoxPro : le développement durable

Forum AtoutFox : Re: OLE IDispatch 901   

Sujet

rss Flux RSS des derniers messages

Vous devez vous identifier pour pouvoir poser une question ou répondre.

jeu. 20 août 2015, 19h01
eddymaue
atoutfox.public.association

Re: OLE IDispatch 901

http://www.universalthread.com/wconnect/wc.dll?2,54,33,9807



And here is the code:



DECLARE INTEGER CreateEvent IN WIN32API ;
INTEGER lpEventAttributes, ;
SHORT bManualReset, ;
SHORT bInitialState, ;
STRING @ lpName
DECLARE INTEGER GetLastError IN Win32API
DECLARE CloseHandle IN Win32API INTEGER hObject
nEh = CreateEvent(0,0,1, PROGRAM(0) + '.EVENT')
IF GetLastError() = 183 OR nEh = 0
* There's an instance running already (183) or the Event can't be
defined
* So don't do it; do release the handle, since it's harmless and
should
* be done rather than relying on Windows to clean up after itself
=CloseHandle(nEh)
QUIT
ENDIF

--
Merci de partager avec moi votre immense savoir que je me ferai plaisir
d'absorber...
il va de soi que je vais vous en laisser un peu
Politesse et savoir vivre oblige ;0)
Permalink : http://www.atoutfox.org/nntp.asp?ID=0000016663
20 286 messages dans le forum • Liste complète des messages

www.atoutfox.org - Site de la Communauté Francophone des Professionnels FoxPro - v3.4.0 - © 2004-2026.
Cette page est générée par un composant COM+ développé en Visual FoxPro 9.0-SP2-HF3