Re: Making an ActiveX control out of an executable

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



On Tue, 12 Jul 2005 10:03:23 -0700, "Alexander Nickolov"
<agnickolov@xxxxxxxx> wrote:

>No, you are on the wrong path. ActiveX Controls cannot
>be implemented in executables - only in DLLs. Instead,
>consider an ActiveX Document server. It is usually in an
>executable, it requires a host, but since it's an executable
>it can also contain bundling for a regular application, and
>it can only be viewed as the entire client space of IE. If
>you are interested in ActiveX Documents, you need to
>learn all the nitty gritty details about OLE first, then expand
>into ActiveX Documents. For the former you can read
>"Inside OLE" by Kraig Brockschmidt (you can find in the
>Books section of MSDN Library shipping with VC 6).
>For the latter I only know the MSDN Library docs. Look
>for the IOleDocument interface and friends.

Thanks for the tips. Would this mean I would have to have a separate
executable than the one I have now, or could I have all this in one
single executable? If not, I'm fine with just creating a separate DLL
with basically the same code as the executable.

Do you know the technical reasons why an ActiveX control can't be
embedded in an executable? I thought it would just be a matter of
exporting DllRegisterServer() and friends. LoadLibrary() seems to be
able to map an executable into another process' address space. I haven't
played with anything like this before, though, so I don't really know
much about the differences between DLLs and executables.

--
Be seeing you.
.



Relevant Pages

  • Re: Delphi to take advantage of multiple threads within the compiler>
    ... > relocation info from executables and makes them much smaller. ... Only dlls need to be rebased; Since the .exe is the first module that gets ... Chances are you only used StripReloc on .exe files, ...
    (borland.public.delphi.non-technical)
  • Re: binmod.exe, NK.bin files and other beginner questions
    ... I never even heard about Platform Builder ... my main concern is over the added executables and dlls ... having to rewrite the entire application (which consists of about a ...
    (microsoft.public.windowsce.embedded)
  • Re: Loading an application (with .DLLs) into memory for later use
    ... As I've always learned it, loaded binaries are just memory-mapped files, which means that Windows can choose to discard pages and page them in as needed. ... I don't know whether the loader can detect executables being launched from removable drives to take special action, but I'd assume it doesn't, certainly not on all versions of Windows. ... Paging can happen even if the application imports no further DLLs. ...
    (microsoft.public.dotnet.general)
  • Re: Visual Studio 2005 problems.. "...the application configuration is incorrect..."
    ... You have to embed the manifest in your executable... ... C-runtime DLLs in your application's local folder. ... > Is anyone using Visual Studio 2005, and has anyone been able to ... > successfully transfer executables to their WinXP embedded images? ...
    (microsoft.public.windowsxp.embedded)
  • Re: py2exe 0.6.1 released
    ... > * py2exe can now bundle binary extensions and dlls into the ... > finally build real single-file executables. ... > The bundled dlls and pyds are loaded at runtime by some special ...
    (comp.lang.python)