Re: calling COM objects



On Thu, 20 Mar 2008 17:11:33 -0700, worlman385@xxxxxxxxx wrote:

Is COM objects are like Java Beans implemented in C++?

Then COM is just like other static library (.Lib) in VC++ ?

When we use a COM object first we load the COM object binary file,
then we call functions inside the COM object just like calling
standard library functions?

The only difference is COM can be called by VB or C# ... etc (so it's
some kind of generic library) ??

you are correct in your assumption that java beans are like COM; same
concept however implermented differently.

yes, when you load COM objects you normally import the .DLL where the
COM object definitions are. Using this information, you create the
objects from the DLL. You can also connect to out of process COM
servers i.e. .EXE's to create objects.

the main difference is that COM is a microsoft thing, java beans is a
SUN/java thing. whether to call it "generic", that is dependent
whether you are a MS- or Java person.

hth/Anders.
--
A: People bitching about top-posting

Q: What's the most annoying thing on USENET?
.



Relevant Pages

  • Re: running a service/driver/application upon startup
    ... debug version of the image is too large to load onto the device. ... I ran dumpbin/exports on the finger dll and saw the required function names: ... > theories as to why it's not getting loaded but just doing 'services load ...
    (microsoft.public.windowsce.embedded)
  • RE: binding failure on 3rd party assembly - works in Debug, not in
    ... and in Release build regasm also fails trying to load ... it works in Debug builds. ... I have 5 different x64 versions of this dll. ... Use this to trace the file system behaviors of your applicaiton. ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Unable to load custom driver on WinCE 6
    ... I'm trying to make and load a simple DLL on WinCE 6 by following the ... I've made a subproject at PB project to include the simple DLL ... At the target device, the mydriver.dll file is in the Windows ... I wrote a simple application to load the driver dynamically ...
    (microsoft.public.windowsce.embedded)
  • Re: Cannot activate sbcl
    ... but I think what happens is that Windows sees that your executable has a DATA section that might overlap a DLL's address space then it would reallocate that DLL to different address space. ... VirtualAlloc dynamically in your code is that your program and all its ... What can be done here is to have many tiny executables with different BSS sections in them, which then load a bigger executable in the form of a DLL. ...
    (comp.lang.lisp)
  • Re: DLL load should be easy, but errors
    ... But I cant load even the simple DLL I ... Just supply the exe with the path to the DLL I showed. ... foreach (Type typ in types) ... 'typ.GenericParameterAttributes' threw an exception of type ...
    (microsoft.public.dotnet.languages.csharp)