How write DLL routine with PB wich check if the calling program
run into Visual Basic IDE ?
- For example
myProgram.frm call the myPBDll.dll
if myProgram run into VB Ide
then myPBDll return True
else
return False
---
if myProgram.exe call the muPBDll.dll
then myPBDll return false
I find this in VB KB
>Public Function ASC_IsIDE() As Boolean
> ' trap error
> On Error GoTo IsIDE
> ' error line
> Debug.Print 1 / 0
> ' exit sub without error, the debug.print was not execute
> Exit Function
>
> IsIDE:
> ' if error, I am on IDE 'cause debug.print was called
> ASC_IsIDE = True
>
> End Function
------------------
run into Visual Basic IDE ?
- For example
myProgram.frm call the myPBDll.dll
if myProgram run into VB Ide
then myPBDll return True
else
return False
---
if myProgram.exe call the muPBDll.dll
then myPBDll return false
I find this in VB KB
>Public Function ASC_IsIDE() As Boolean
> ' trap error
> On Error GoTo IsIDE
> ' error line
> Debug.Print 1 / 0
> ' exit sub without error, the debug.print was not execute
> Exit Function
>
> IsIDE:
> ' if error, I am on IDE 'cause debug.print was called
> ASC_IsIDE = True
>
> End Function
------------------
Comment