🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.win32
Article #2151

Re: Calling a ActiveX function from a console application

#2151
From: K_Lee
Date: Mon, 27 Oct 2003 14:27
17 lines
2081 bytes
"Boris Dynin" <spam@noplease.com> wrote in message news:<s6Ymb.542$Wy2.8824@typhoon.sonic.net>...
> Nils,
> 
> If you need an object without GUI, you could just create a COM Component. In
> "New ATL Object" (I assume you use VC++ 6.0) you should choose "Simple
> Object"; the add some interfaces to your object. COM component like the one
> above can be easily created from console apps. You'll have to call:
> CoCreateInstance() - to instantiate your component.


Here's an example of how Tcl8.4.4 use it to create implement the 
ResolveShortcut() function.

http://www.slink-software.com/W/SrcDoc_Top/tcl8.4.4/tcl8.4.4.sdoc/N_72


http://www.slink-software.com/W/SL_TopGetSL/tcl8.4.4/tcl8.4.4.slk/ID_TclWinResolveShortcut/FILE_win/tclWinFile.c/L_1900/LN_1879#L_1876
Technical Details
Message-ID: <394af34.0310270627.6c8aca84@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
References: <cdb31147.0310260913.670c875a@posting.google.com> <s6Ymb.542$Wy2.8824@typhoon.sonic.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 105ce5,684751479369e3bb
X-Google-Attributes: gid105ce5,public
X-Google-Thread: f9701,684751479369e3bb
X-Google-Attributes: gidf9701,public
X-Google-Thread: 113dfb,684751479369e3bb
X-Google-Attributes: gid113dfb,public
X-Google-Thread: 11100c,684751479369e3bb
X-Google-Attributes: gid11100c,public
X-Google-ArrivalTime: 2003-10-27 06:27:56 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: Google_Post@slink-software.com (K_Lee)
Newsgroups: comp.os.ms-windows.programmer.win32,borland.public.cppbuilder.activex,comp.os.ms-windows.programmer.tools.misc,microsoft.public.vc.activex.templatelib
Subject: Re: Calling a ActiveX function from a console application
Date: 27 Oct 2003 06:27:56 -0800
Organization: http://groups.google.com
Lines: 17
Message-ID: <394af34.0310270627.6c8aca84@posting.google.com>
References: <cdb31147.0310260913.670c875a@posting.google.com> <s6Ymb.542$Wy2.8824@typhoon.sonic.net>
NNTP-Posting-Host: 68.121.173.129
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1067264876 4612 127.0.0.1 (27 Oct 2003 14:27:56 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 27 Oct 2003 14:27:56 +0000 (UTC)