Hi,

I would like to create a dll (lets call it newHD.dll) that imports functions from an existing dll (called hd.dll).

I have been reading literature on creating dlls but most of what I have found explains how to create a single dll that exports functions, and the end-application which imports them.

Is it possible to write in newHD.c something like:
__declspec(dllimport) functionA();
__declspec(dllexport) functionA();
where functionA() belongs to hd.dll? And is then exported from newHD.dll? Or is there some other way of doing this?

My intention is to create this newHD.dll that encompasses the functions from hd.dll and also exports a few additional functions (not included in hd.dll) which I need to use for callbacks.

Any help would be greatly appreciated.

Mike