Click here to Skip to main content
12,350,451 members (24,285 online)

C / C++ / MFC

 
Generalmail through outlook Pin
nazerudeen13-Jul-04 23:53
membernazerudeen13-Jul-04 23:53 
GeneralRe: mail through outlook Pin
Antony M Kancidrowski14-Jul-04 0:31
memberAntony M Kancidrowski14-Jul-04 0:31 
GeneralUTF8 to Unicode conversion Pin
Sivaji13-Jul-04 23:25
memberSivaji13-Jul-04 23:25 
GeneralMy main .cpp file is getting too big Pin
sweep12313-Jul-04 22:58
membersweep12313-Jul-04 22:58 
GeneralRe: My main .cpp file is getting too big Pin
Alok the programmer13-Jul-04 23:08
memberAlok the programmer13-Jul-04 23:08 
GeneralRe: My main .cpp file is getting too big Pin
sweep12313-Jul-04 23:42
membersweep12313-Jul-04 23:42 
GeneralRe: My main .cpp file is getting too big Pin
Alok the programmer14-Jul-04 0:42
memberAlok the programmer14-Jul-04 0:42 
GeneralRe: My main .cpp file is getting too big Pin
sweep12314-Jul-04 1:39
membersweep12314-Jul-04 1:39 
GeneralRe: My main .cpp file is getting too big Pin
Alok the programmer14-Jul-04 2:08
memberAlok the programmer14-Jul-04 2:08 
GeneralRe: My main .cpp file is getting too big Pin
sweep12314-Jul-04 3:02
membersweep12314-Jul-04 3:02 
GeneralRe: My main .cpp file is getting too big Pin
*Dreamz14-Jul-04 0:44
member*Dreamz14-Jul-04 0:44 
GeneralRe: My main .cpp file is getting too big Pin
kryt0n8-Oct-04 5:51
memberkryt0n8-Oct-04 5:51 
GeneralRe: My main .cpp file is getting too big Pin
sweep12311-Oct-04 6:17
membersweep12311-Oct-04 6:17 
QuestionC++ - A scenario - any recommendations please? Pin
chuawenching13-Jul-04 22:50
memberchuawenching13-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
va'Lery14-Jul-04 5:45
memberva'Lery14-Jul-04 5:45 
Generalproblem in movement of the group control Pin
maxsteel13-Jul-04 22:19
membermaxsteel13-Jul-04 22:19 
GeneralPopulating Tree Control with files and folder from specified directory Pin
AnaDin13-Jul-04 22:11
memberAnaDin13-Jul-04 22:11 
GeneralRe: Populating Tree Control with files and folder from specified directory Pin
Alok the programmer13-Jul-04 22:25
memberAlok the programmer13-Jul-04 22:25 
GeneralNo bady can Kill my application Process my Application using Task Manager Pin
Zeeshan Bilal13-Jul-04 21:44
memberZeeshan Bilal13-Jul-04 21:44 
GeneralRe: No bady can Kill my application Process my Application using Task Manager Pin
Alok the programmer13-Jul-04 22:24
memberAlok the programmer13-Jul-04 22:24 
GeneralHow can i do that Pin
Zeeshan Bilal13-Jul-04 23:03
memberZeeshan Bilal13-Jul-04 23:03 
GeneralRe: How can i do that Pin
Alok the programmer13-Jul-04 23:21
memberAlok the programmer13-Jul-04 23:21 
General(Beginner) unsigned int x : 2 Pin
Rafferty Uy13-Jul-04 21:19
memberRafferty Uy13-Jul-04 21:19 
GeneralRe: (Beginner) unsigned int x : 2 Pin
Santosh M. P.14-Jul-04 1:21
memberSantosh M. P.14-Jul-04 1:21 
GeneralRe: (Beginner) unsigned int x : 2 Pin
parths14-Jul-04 1:50
memberparths14-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
memberRafferty Uy14-Jul-04 15:27 
GeneralNeed a 3d shape class Pin
d00_ape13-Jul-04 20:56
memberd00_ape13-Jul-04 20:56 
GeneralRe: Need a 3d shape class Pin
V.13-Jul-04 21:14
memberV.13-Jul-04 21:14 
GeneralRe: Need a 3d shape class Pin
Johann Gerell13-Jul-04 21:23
memberJohann Gerell13-Jul-04 21:23 
GeneralRe: Need a 3d shape class Pin
d00_ape13-Jul-04 22:30
memberd00_ape13-Jul-04 22:30 
GeneralRe: Need a 3d shape class Pin
cmk14-Jul-04 1:02
membercmk14-Jul-04 1:02 
GeneralRe: Need a 3d shape class Pin
d00_ape14-Jul-04 2:05
memberd00_ape14-Jul-04 2:05 
GeneralRe: Need a 3d shape class Pin
va'Lery14-Jul-04 5:29
memberva'Lery14-Jul-04 5:29 
GeneralRe: Main Window Title Pin
Johann Gerell13-Jul-04 20:51
memberJohann Gerell13-Jul-04 20:51 
GeneralRe: Main Window Title Pin
V.13-Jul-04 20:56
memberV.13-Jul-04 20:56 
GeneralRe: Main Window Title Pin
Jeff Walton14-Jul-04 12:44
memberJeff Walton14-Jul-04 12:44 
Generalhelp reg voice chat Pin
M.kailasam13-Jul-04 20:47
memberM.kailasam13-Jul-04 20:47 
GeneralMain Window Title Pin
Santosh M. P.13-Jul-04 20:26
memberSantosh M. P.13-Jul-04 20:26 
General_T, _TCHAR and TCHAR Pin
Normus13-Jul-04 20:24
sussNormus13-Jul-04 20:24 
GeneralRe: _T, _TCHAR and TCHAR Pin
Josh Gray13-Jul-04 20:38
memberJosh Gray13-Jul-04 20:38 
GeneralRe: _T, _TCHAR and TCHAR Pin
Johann Gerell13-Jul-04 20:57
memberJohann Gerell13-Jul-04 20:57 
GeneralRe: _T, _TCHAR and TCHAR Pin
Johann Gerell13-Jul-04 21:10
memberJohann Gerell13-Jul-04 21:10 
GeneralRe: _T, _TCHAR and TCHAR Pin
Normus13-Jul-04 22:46
sussNormus13-Jul-04 22:46 
GeneralRe: _T, _TCHAR and TCHAR Pin
Johann Gerell14-Jul-04 0:39
memberJohann Gerell14-Jul-04 0:39 
GeneralRe: _T, _TCHAR and TCHAR Pin
Normus14-Jul-04 3:16
sussNormus14-Jul-04 3:16 
GeneralRe: _T, _TCHAR and TCHAR Pin
Johann Gerell14-Jul-04 3:57
memberJohann Gerell14-Jul-04 3:57 
QuestionHow to interface System to External Hardware Pin
zahoor ahmed13-Jul-04 20:08
memberzahoor ahmed13-Jul-04 20:08 
AnswerRe: How to interface System to External Hardware Pin
jhorstkamp13-Jul-04 23:24
memberjhorstkamp13-Jul-04 23:24 
QuestionWhen to use PostQuitMessage ? Pin
hspc13-Jul-04 19:47
memberhspc13-Jul-04 19:47 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 22 Jun 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid