Frage

How can I tell whether my RealBasic code is running inside a Console or desktop application?

War es hilfreich?

Lösung

You can use this conditional sentence:

#if TargetHasGUI then     
    ' It's running in a desktop app
#else
    ' It's running in a console app
#endif
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top