Click here to Skip to main content
15,881,204 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: My main .cpp file is getting too big Pin
ThatsAlok14-Jul-04 0:42
ThatsAlok14-Jul-04 0:42 
GeneralRe: My main .cpp file is getting too big Pin
sweep12314-Jul-04 1:39
sweep12314-Jul-04 1:39 
GeneralRe: My main .cpp file is getting too big Pin
ThatsAlok14-Jul-04 2:08
ThatsAlok14-Jul-04 2:08 
GeneralRe: My main .cpp file is getting too big Pin
sweep12314-Jul-04 3:02
sweep12314-Jul-04 3:02 
GeneralRe: My main .cpp file is getting too big Pin
*Dreamz14-Jul-04 0:44
*Dreamz14-Jul-04 0:44 
GeneralRe: My main .cpp file is getting too big Pin
kryt0n8-Oct-04 5:51
kryt0n8-Oct-04 5:51 
GeneralRe: My main .cpp file is getting too big Pin
sweep12311-Oct-04 6:17
sweep12311-Oct-04 6:17 
QuestionC++ - A scenario - any recommendations please? Pin
Chua Wen Ching13-Jul-04 22:50
Chua Wen Ching13-Jul-04 22:50 
Hi there,

I had a very tough scenario, and seriously i had no idea how to solve this. It will be long as i tried to explain in detail. I need a good solution based on those who coded c++ and writes dlls.

Before this:

There is a dll called by UtilityA.dll. It was called by a UtilityMain SDK. In UtilityA.dll, it actually calls a 3rd party dll called 3rdPartyv1.dll. The main reason of UtilityA.dll existence is to write a wrapper and simplies stuff. So the UtilityMain SDK can call it easier. No idea why it is done like that.

Now:

We had released a new hardware. The new hardwares uses the new 3rdPartyv2.dll. There are 19 functions inside the 3rdPartyv2.dll if compare to 3rdPartyv1.dll which only contains 15 functions. But the names are roughly the same, but in some functions, there are additional paremeters and return different data types.

I need to write a wrapper for the 3rdPartyv2.dll that will called the new UtilityB.dll instead of UtilityA.dll with additional new 4 functions (19 - 15). So my SDK can called my UtilityB.dll.

The problems now:
1) We had many SDKs, around 20 versions. On different companies and countries.
2) If we use a different wrappers name, we had to recompile the SDK. Which is kind of tough!
3) If we stick the same called UtilityA.dll, but just say in future, the hardware already more advanced and a different modal. We can't just use UtilityA.dll again and again.

Real example:

Reader - Utility435.dll which calls the MXM435.dll which MXM435 is a reader device. Now there is a new model called MXM467 reader. If i use back the same Utility435.dll, which is misleading, does not represent anything. No choice the previous coders, never think of this problem.

4) There are many applications already being developed in VB6. We can't ask all the clients to recompile their apps because the SDK had been modified. Very very tough deployment.

How can we solve this scenario? Now is between the wrapper and the SDK.

Is there anyway to write a plugin to the SDK. As what i know from C#, you can write a library that exposes some interfaces, so you can write a plugin to it. But now the SDK had existed, and it was badly done i suppose. I not even sure it can have plugin enabled.

I was hoping to write something, that can add on to the SDK on run time or dynamically without recompiling any existing codes, and won't affect any parties. But of course I had to change the new 3rdPartyv2.dll and the new wrapper. Just don't want to recompile the SDK.

3rdPartyv1.dll and 3rdPartyv2.dll - C dlls.
UtilityA.dll and UtilityB.dll -> C++ dlls.
SDK - C++
Application layer - VB6, C++, ASP

Any help please?

Thanks.


Regards,
Chua Wen Ching
AnswerRe: C++ - A scenario - any recommendations please? Pin
vmaltsev14-Jul-04 5:45
vmaltsev14-Jul-04 5:45 
Generalproblem in movement of the group control Pin
maxsteel13-Jul-04 22:19
maxsteel13-Jul-04 22:19 
GeneralPopulating Tree Control with files and folder from specified directory Pin
AnaDin13-Jul-04 22:11
AnaDin13-Jul-04 22:11 
GeneralRe: Populating Tree Control with files and folder from specified directory Pin
ThatsAlok13-Jul-04 22:25
ThatsAlok13-Jul-04 22:25 
GeneralNo bady can Kill my application Process my Application using Task Manager Pin
Zeeshan Bilal13-Jul-04 21:44
Zeeshan Bilal13-Jul-04 21:44 
GeneralRe: No bady can Kill my application Process my Application using Task Manager Pin
ThatsAlok13-Jul-04 22:24
ThatsAlok13-Jul-04 22:24 
GeneralHow can i do that Pin
Zeeshan Bilal13-Jul-04 23:03
Zeeshan Bilal13-Jul-04 23:03 
GeneralRe: How can i do that Pin
ThatsAlok13-Jul-04 23:21
ThatsAlok13-Jul-04 23:21 
General(Beginner) unsigned int x : 2 Pin
Rafferty Uy13-Jul-04 21:19
Rafferty Uy13-Jul-04 21:19 
GeneralRe: (Beginner) unsigned int x : 2 Pin
«_Superman_»14-Jul-04 1:21
professional«_Superman_»14-Jul-04 1:21 
GeneralRe: (Beginner) unsigned int x : 2 Pin
parths14-Jul-04 1:50
parths14-Jul-04 1:50 
GeneralRe: (Beginner) unsigned int x : 2 Pin
volum14-Jul-04 3:11
sussvolum14-Jul-04 3:11 
GeneralRe: (Beginner) unsigned int x : 2 Pin
Rafferty Uy14-Jul-04 15:27
Rafferty Uy14-Jul-04 15:27 
GeneralNeed a 3d shape class Pin
anderslundsgard13-Jul-04 20:56
anderslundsgard13-Jul-04 20:56 
GeneralRe: Need a 3d shape class Pin
V.13-Jul-04 21:14
professionalV.13-Jul-04 21:14 
GeneralRe: Need a 3d shape class Pin
Johann Gerell13-Jul-04 21:23
Johann Gerell13-Jul-04 21:23 
GeneralRe: Need a 3d shape class Pin
anderslundsgard13-Jul-04 22:30
anderslundsgard13-Jul-04 22:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.