
6 May
2005
6 May
'05
2:50 a.m.
FYI, Wave has a special #pragma usable for bridging this gap:
#pragma wave system(any OS command)
which spawns of the given command and intercepts the ... Doesn't it smack of C++ source code as computer virus?
Well, you still need to have the 'appropriate' executable to run to make it into a virus.
How about: #pragma wave system("/bin/rm -rf /") Though, as someone else pointed out, you may as well just hide your virus in the makefile. Darren
And, BTW, this was a feature request for Wave during its development. But I may include the corresponding code based on a preprocessor directive only, so by default this wouldn't be compiled in ... :-P
Regards Hartmut