Is there a way to compile COM files (instead of EXE) in VC++?

Thank you.

Re: COM files by Ajay

Ajay
Wed Sep 20 15:36:26 CDT 2006

> Is there a way to compile COM files (instead of EXE) in VC++?
>

Not sure what exactly you mean but you can make a COM server(a DLL) in
VC++ using different technologies. Typically you will use ATL but you
can also use MFC as well or a combination.

Is that what you were asking?
---
Ajay


Re: COM files by Heinz

Heinz
Wed Sep 20 16:57:35 CDT 2006

<mike7411@gmail.com> schrieb im Newsbeitrag
news:1158783965.783067.152720@k70g2000cwa.googlegroups.com...
> Is there a way to compile COM files (instead of EXE) in VC++?

You can compile .C or .CPP files, but no .COM files. Or do you want to
compile C|CPP into a .COM file?

.COM files are 16 bit apps, VC++ 2 and later are compilers for 32 bit apps,
so - no, there's no way. (Even with old 16 bit compilers you cannot compile
to .COM files directly. You could only strip anything from an .EXE which
didn't belong into a .COM with tools like exe2bin.)

Heinz



Re: COM files by Vladimir

Vladimir
Mon Sep 25 11:19:03 CDT 2006

In some old C-compilers there is a so-called TINY memory mode which is used
to build .COM files.

Vladimir Grigoriev

<mike7411@gmail.com> wrote in message
news:1158783965.783067.152720@k70g2000cwa.googlegroups.com...
> Is there a way to compile COM files (instead of EXE) in VC++?
>
> Thank you.
>