Re: Share .cpp and .h along projects

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Mon, 13 Aug 2007 12:12:51 -0700, "Alexander Nickolov"
<agnickolov@xxxxxxxx> wrote:

COM is for binary compatibility. DLLs are binary objects
and it fits with them naturally. C++ classes are _not_ binary
entities and thus should _never_ be exported from DLLs -
period. It's a terrible deployment practice eclipising any bad
coding habits you might have! The proper way to export
C++ classes is using a static library. This signifies they are
part of your program, not part of a separate deployment unit.

This use of DLLs is not what you're calling "deployment". If you consider
it to be a poor attempt at COM and not equivalent to static linking, well,
of course you're going to feel that way. That's what I was getting at in my
original message. It is mistaken expectations that cause people to say
things like this. You've mistaken it for something it's not, and anyone who
recognizes it for what it is and uses it correctly and successfully just
doesn't know what they're doing.

--
Doug Harrison
Visual C++ MVP
.



Relevant Pages

  • Re: Deployment Question
    ... > use those core DLLs. ... > in the system folder and just share them between the two applications. ... deployment method. ... locating assemblies is concerned. ...
    (microsoft.public.vstudio.general)
  • Re: Deployment Question
    ... >> applications that use those core DLLs. ... >> .DLLs in the system folder and just share them between the two ... I would go ahead with the simple XCopy deployment. ...
    (microsoft.public.vstudio.general)
  • Re: Deployment Question
    ... > applications that use those core DLLs. ... Put the assemblies in the bin folders of their respective apps. ... I would go ahead with the simple XCopy deployment. ...
    (microsoft.public.vstudio.general)
  • Enterprise Service Deployment
    ... Business Logic Layer is a Serviced Component and has been ... Application Proxy and installed on a client machine. ... these dlls are dependencies for the Business Logic Layer. ... deployment procedure, but this did not work either: ...
    (microsoft.public.dotnet.distributed_apps)
  • RE: .NET dll config file
    ... a suitable deployment scenario. ... The Application A, uses my dlls, via a COM dll. ... B.Dll will load Common.C.Dll from the common subfolder ...
    (microsoft.public.dotnet.framework)