Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
CPP with dynamic lib
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Paras Sharma, post: 1452205"] Hi One question regarding CPP w.r.t dynamic libary . I can understand w.r.t C where get the handle and call the function using function ptr. How to use CPP virtual funcitons when we are using dynamic library. Bacically . 1 How to organise two drived classes in dynamic library . where to place base class 2 How to create instance of derived class ,Like user if specify first library ( from cmd line a.out libd1.so ) , D1 should be instancitated and so on. Class B { .... virtual foo() =0 ; virtual foo1() {...} ; } Class D1 { .... foo() {...} ; foo1() {..} ; } Class B { .... foo() {...}; foo1(){...} ; } main () { // With Respect to C how to get CPP handle = dlopen fnctPTR = dlsym(handle..) .... } Any pointers will be helpful Thanks Paras [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
CPP with dynamic lib
Top