Skip to content

Instantly share code, notes, and snippets.

@fushnisoft
Created August 29, 2013 17:01
Show Gist options
  • Select an option

  • Save fushnisoft/6380701 to your computer and use it in GitHub Desktop.

Select an option

Save fushnisoft/6380701 to your computer and use it in GitHub Desktop.
OcxIsRegistered concept... NOTE: code not compiled or tested. I am mostly not sure if the second call to OleDirectory appends or replaces the contents of the QUEUE
OcxIsRegistered PROCEDURE(STRING pName) ! ,BYTE
resultQ QUEUE(oleQ)
END
CODE
OleDirectory(resultQ, 0, 3) ! <-- OLE Servers
OleDirectory(resultQ, 1, 3) ! <-- OLE Controls
Get(pResultQ, 0)
LOOP
Get(pResultQ, Pointer(pResultQ)+1)
IF ErrorCode()
BREAK
END
IF Upper(pResultQ.progid) = pName
RETURN TRUE
END
END
RETURN FALSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment