Sign in to follow this  
Drakk

GerProcAddress / DLL Export inside a EXE

Recommended Posts

Drakk    122
I have this macro:
[code]
#define ADD_ENTITY( EntityName, EntityClass ) \ extern "C" _declspec( dllexport ) CBaseEntity &EntityName( void ); \ CBaseEntity &EntityName( void ) { CBaseEntity *Ent = new EntityClass; return *(Ent); }
[/code]

That I use to export a function (the name of the entity i want to allocate) and when I want to load all my entity's I call a function.
Which then calls all the functions exported (example: func_door) and returns the created class.

I have no idea how to call the exported function (or if its even possible, since it's all inside the same .exe).
Is there anyway I can do this?

Thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this