VB - OLE to Notes help.. Basic question

I am helping with a VB program to access Notes. We need to use OLE and not COM because we need to get to the front end. The question is:

We need to check to see if an instance of notes is running before we execute our OLE code. What is the VB 6.0 code to accomplish this?

Any help is much appreciated!

JB Dunmyer

Subject: Couple of ways to do that

a) your app could check if the specific file ~notes.lck exists in the notes data directory. If the exists, the client or designer or admin is running and OLE is available (The notes code writes this file when it starts and removes the file when it ends)

b) your app could enumerate the windows via the W32 API via GetWindowClass() etc. and check if a window class “NOTES” exists. If so, the Notes client is running. Search google for “VB GetWindow” and you’ll find enough sample code.

Thomas - IBM

Subject: RE: Couple of ways to do that

Thank you Thomas! I will follow your advise!

JB Dunmyer