Where do I start..... C/C++ need to create DLLs.

  • Thread starter Thread starter RajS
  • Start date Start date
R

RajS

Hi All,

I have had worked with Powerbuilder for so long time... Now
I have a project in C++, I was playing with VC++ 6.0 tool. I am lost.

Can anybody recomend me a book or CBT ....etc...

I have good OOPs concepts.

In this project I have to create a bunch of DLLs to be called from
various applications like PB, VB, VBA and DELPHI.

Thanks a lot,
-RajS
 
RajS said:
I have had worked with Powerbuilder for so long time... Now
I have a project in C++, I was playing with VC++ 6.0 tool. I am lost.

Can anybody recomend me a book or CBT ....etc...

I have good OOPs concepts.

In this project I have to create a bunch of DLLs to be called from
various applications like PB, VB, VBA and DELPHI.

In their simplest form, DLLs are nothing more than a collection of library
functions that get linked to an executable at runtime. You might look at it
as a flavor of "late-binding".

This is the source to a trivial DLL.

BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID pv)
{
return TRUE;
}

__declspec(__dllexport) int foo()
{
return 42;
}

Now, you say you have good OOP concepts. That's a good thing. Unfortunately,
sharing objects across language/environment boundaries is a hard thing to
do. So, often DLLs are used to contain COM objects so that those objects can
be consumed by code written in a COM-aware language.

COM is a huge topic. Much bigger than plain vanilla DLLs. One of the best
things about .Net by the way, is that all .Net languages share the same
object model so sharing objects comes for free.

Regards,
Will
 
Its true COM is the huge topic, but it’s very elegant concept and can be called from any Microsoft and Borland (and hell knows who else’s) environment. I recommend you to reed the book: “COM+ Programming†by Pradeep Tapadiya

Regard

n
 
Back
Top