cindafuzzy
asked on
how dll detect whether i run in runtime or ide
i have a dll which i've with visual basic and i've make other project that call this dll...
all i want is, the dll which i've called can differenciate whether i running my project in ide or in runtime?
all i want is, the dll which i've called can differenciate whether i running my project in ide or in runtime?
ASKER
Adjusted points from 150 to 200
ASKER
ok... it is orait then to detect whether the program is running in ide or not
but may be i should clearify it...
i have made the dll using visual basic, the main objective of the dll is to detect whether the program calling him is running in ide or not.
but may be i should clearify it...
i have made the dll using visual basic, the main objective of the dll is to detect whether the program calling him is running in ide or not.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
On Error GoTo ErrHandler
'because debug statements are ignored when
'the app is compiled, the next statment will
'never be executed in the EXE.
Debug.Print 1 / 0
IsIDE = False
Exit Function
ErrHandler:
'If we get an error then we are
'running in IDE / Debug mode
IsIDE = True
End Function
Cheers