B
Bit byte
I have an application which consists of several (approx 40 C/C++ dlls).
I want to provide a C (Win32 Dll) API to these Dlls. However, I
want to partion the API at a different level of abstraction. I need som
advice on the best practise on doing this. the following may help
explain the situation better:
'Core' Low level C/C++ DLLs
=============================
foo_1.dll
foo_2.dll
foo_3.dll
foo_4.dll
foo_5.dll
foo_6.dll
foo_7.dll
foo_8.dll
foo_9.dll
foo_10.dll
....
Higher level 'C' Win32 Dll public 'C' Interface
================================================
foobar_1.dll (uses functions exported in foo_1.dll, foo_3.dll and
foo_8.dll)
foobar_2.dll (uses functions exported in foo_7.dll and foo_8.dll)
foobar_3.dll (uses functions exported in foo_3.dll, foo_4.dll and
foo_5.dll)
.... etc
I know I'll have to use DllLoad and GetProcAddress() etc (at least I
think I know that is ONE option), but I would be grateful if someone
could provide more details on the best way to do this (i.e. expose a
higher level abstraction C DLL)
I want to provide a C (Win32 Dll) API to these Dlls. However, I
want to partion the API at a different level of abstraction. I need som
advice on the best practise on doing this. the following may help
explain the situation better:
'Core' Low level C/C++ DLLs
=============================
foo_1.dll
foo_2.dll
foo_3.dll
foo_4.dll
foo_5.dll
foo_6.dll
foo_7.dll
foo_8.dll
foo_9.dll
foo_10.dll
....
Higher level 'C' Win32 Dll public 'C' Interface
================================================
foobar_1.dll (uses functions exported in foo_1.dll, foo_3.dll and
foo_8.dll)
foobar_2.dll (uses functions exported in foo_7.dll and foo_8.dll)
foobar_3.dll (uses functions exported in foo_3.dll, foo_4.dll and
foo_5.dll)
.... etc
I know I'll have to use DllLoad and GetProcAddress() etc (at least I
think I know that is ONE option), but I would be grateful if someone
could provide more details on the best way to do this (i.e. expose a
higher level abstraction C DLL)