Re: [AD] END_OF_MAIN, again

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 8/2/05, Chris <chris.kcat@xxxxxxxxxx> wrote:
Allegro only does proper checking when compiling the C++ test. If the C++ test
fails, it simply skips building it. However, since using C++ symbols for
_mangled_main would require a C++ compiler when building Allegro, I don't
think that will be acceptable.
 
We could check in makefile if cpptest is build and compile C++ version of wmain, or use C version if not.
 

However, I did just get an extremely evil idea. I would assume MSVC has a way
to run a function before main/WinMain? As I understand it, there should be a
way to dynamicly load the executable being run (like if you call
dlopen(NULL, ...) in Unix), and get access to its symbols.
 
But what if user strips symbols from executable?

 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/