Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unresolved externals

Status
Not open for further replies.

joeGrammar

Programmer
Jun 4, 2001
162
CA
Hey,

Is there any way to tell this compiler to resolve certain symbols that are going to be dynamically loaded at runtime?

example:

I'm creating a dll which provides the framework for several processes. In the framework I have a pure virtual class with pure virtual functions which are defined seperately with the loading of each process. (each process has its own code for each pure virtual function) The framework is useless without the processes so why can't I tell the compiler to ignore the unresolved symbols?

P.S.

UNIX environments rule
 
You can't instantiate directly pure virtual classes(you can sa abstract classes). If you want to do it, use pointers.
pure_virtual_class *not_a_problem_if_exists_a_forward_declaration;
not_a_problem_if_exists_a_forward_declaration=LoadOneFromADll();
not_a_problem_if_exists_a_forward_declaration->CallAMethod();//not a problem
pure_virtual_class a_problem_if_is_not_a_pointer;//will not compille

By the way, why you don;t study COM or CORBA? Theese tehnologies are based on above ideas. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top