Marook-Online
* 06.Feb.2012, 15:05 UTC+1
Welcome, Guest. Please login or register.
Username:
Password:

News: Back again Wink
Main Menu
  Navigation
   Downloads
     Tools
     Music Discs
     SMF Mods
     Trainer & Patches
     EgoShare Uploader
   Guestbook
   NoPaste
   User Map
   Gallery
  
   Malware Scan
   Hacker Blacklist
   Find Abusemail
Top Downloads
Support Me !
Help me by donating a small amount!



Advanced search

Google


Pages: [1]   Go Down
0 Members and 1 Guest are viewing this topic. Topic Tools  
Read
22-Nov-2007 13:18
Marook
Administrator
*****
Offline Offline

Joined: 01-Jan-2005
Posts: 224


If you want to know, whether your program runs currently in the IDE or as exe in runtime mode, you can do it like this :

Code
GeSHi (vb):
  1. Private Function IsInIDE() As Boolean
  2.    'Disable errorhandling
  3.    On Error Resume Next
  4.    'This is only executed in ide...
  5.    Debug.Print 1 / 0
  6.    '... and it throws out an error ;)
  7.    Select Case err.Number
  8.        Case 0
  9.            'If there is no error, we are in runtime mode
  10.            IsInIDE = False
  11.        Case Else
  12.            'else we're in ide mode
  13.            IsInIDE = True
  14.    End Select
  15.    'Enable errorhandling and clear the error
  16.    On Error GoTo 0
  17.    err.Clear
  18. End Function
  19.  
Created by GeSHI 1.0.7.20
Logged
 

Pages: [1]   Go Up
Jump to:  

Theme by webtechnica.net

MHD v2.1 © 2oo8 by Marook
32116 hacking attempts defended!