How to create Wrapper class in c++
-
My project contain 5 dll and 4 dll are win32 and one dll is MFC shared dll.These dll are written in c language.our task is redesign project and convert these code in c++ language (means use object oriented concept).One main dll is IProfile that contains exported function and that exported function are called from another dll.In c language they are use extern.But in c++ i have to create wrapper class for that.But i dont know how to create wrapper class.can anyone please tell me how to create wrapper class in c++. Thanks in advance
-
My project contain 5 dll and 4 dll are win32 and one dll is MFC shared dll.These dll are written in c language.our task is redesign project and convert these code in c++ language (means use object oriented concept).One main dll is IProfile that contains exported function and that exported function are called from another dll.In c language they are use extern.But in c++ i have to create wrapper class for that.But i dont know how to create wrapper class.can anyone please tell me how to create wrapper class in c++. Thanks in advance
jadhavjitendrar wrote:
.But i dont know how to create wrapper class.can anyone please tell me how to create wrapper class in c++
Do you know
C++
well? You probably should create a facade, see "Facade Pattern" at Wikipedia. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
jadhavjitendrar wrote:
.But i dont know how to create wrapper class.can anyone please tell me how to create wrapper class in c++
Do you know
C++
well? You probably should create a facade, see "Facade Pattern" at Wikipedia. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]Yes sir,can u explain me in details
-
Yes sir,can u explain me in details
No, I can't do it here, since the facade pattern is a quite large topic and good
C++
languaqe knowledge is a pre-requisite. Anyway I may suggest you reading some goodC++
books (see this thread [^] for hints), and the GoF's "Design Patterns" one. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]