COM & Extension DLL

1. what is the limitation of regular dll compared with extension dll?
I've read some articles. they stated that regular dll cannot export c++ class, only c funx. is it true or i've missundaztood? coz i've tried to exprot mfc derived class with __declspec(dllexport), and no errors happen. Can i get some error someday?
2. Is it possible to use Extension dll as COM server? how is the reg/unreg mechanisme, where did the dllcanunloadnow etc go? any reference?

many thanks..:wave:
[511 byte] By [Bayu Ardianto] at [2007-11-19 6:41:25]
# 1 Re: COM & Extension DLL
Hi,

First of all, we don't belong to some sort of streetgang, so you can speak normal english ;)

A COM dll is using ATL and can be used by every programming language such as VB, C++ and java. Compare it to CORBA.

A normal DLL can be used by all languages too. A MFC extension dll can only be used by MFC (this means only C++). It's easier to write a extension dll, as it is easier to write MFC applications then the "real" win32 applications.

For COM dll, you shoulduse ATL COM AppWizard in the File -> New menu in Visual Studio.
Tischnoetentoet at 2007-11-11 0:30:13 >