Re: Console application exporting COM interface?



Well...thanks brian for the shakeup. Anyway, I dont have a choice since
I already have some C code that I want to use from a VB script. Given
that situation, I would clearly have to make a COM wrapper for my C
code. Anyway, who said that I want to understand everything that
happens in COM?? I just want to get that wrapper running and want a
kind of tutorial that would get me started. I think it would be better
to start with an ATL project and then port my C app into the COM
environment. Can you pls guide me to a tutorial abt starting an ATL
project with .NET compiler?? I have not searched extensively over the
net but hope to find some nice tut. If u know ne, pls point me to it.

regards
harry

Brian Muth wrote:
> Constructing a COM object is not a quick one or two day job if you have
> never done it before. I'm afraid you may be underestimating the effort
> required. My first COM object took me two weeks to write, but another 6
> months before I really understood how it worked.
>
> If you think this is a worthwhile project for you, then I strongly recommend
> that you purchase a book to guide you. Since you are posting in an ATL
> group, I would suggest Beginning ATL COM Programming by Grimes et al, but
> there are others.
>
> If you are familiar with MFC, then that might be a better way to go since it
> does a better job at hiding the COM plumbing.
>
> Sorry to give you this reality shakeup.
>
> Brian
>
> "harry" <arijit.bee@xxxxxxxxx> wrote in message
> news:1131448217.130160.321160@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> > Hi
> >
> > I have a Win32 console application which is more or less written in C.
> > I would like to call some functions of this app from a VB script. I
> > have read a bit abt it and it seems that I need to create a COM
> > interface for my console application. However, I have not been able to
> > find the details since all the tutorials point to the inner workings of
> > making a MFC app as a COM object. Can anyone pls guide me to a tutorial
> > from where I can get some info abt how I can create a COM interface for
> > an already existing Win32 Console application??
> >
> > Thanks in advance
> >
> > regards
> > Harry
> >

.



Relevant Pages

  • Re: "pool" a tightly controlled set of Excel instances
    ... Brian, microsoft has acknowledged the problem, and provided ... an actX object to call the api, ... possibility, I suggest using DynaWrap, which will allow ... you to call api's from script. ...
    (microsoft.public.scripting.vbscript)
  • Re: Sending Events to VB6 Using Implements Keyword - debugging
    ... > There are basically two ways of getting events from an ATL dll to vb: ... > Now it isnt really that difficult to undertstand, is it, Brian? ... > / atl app crashes when complied and not in the IDE", ... For debugging purposes, I tend to use the C++ debugger, which works quite ...
    (microsoft.public.vc.atl)
  • Re: Script Error
    ... Brian, Thank you for your responce, it is very helpfull, I am learning here ... with the script for Internet Exployer thanks to you. ... You are right about the restore point I should have thought about ...
    (microsoft.public.windowsxp.basics)
  • Re: [PHP] strange include path error
    ... On Wed, June 27, 2007 6:59 pm, brian wrote: ... Looking at the error log, i found that the DB connection script that's ... i recieved the mail after my client split for a long ...
    (php.general)
  • Re: initializing private member variables
    ... Thanks for the pointers J. W. and Brian. ... class's definition and how could I tell ATL that I wanted to initialize some ... member variables. ...
    (microsoft.public.vc.atl)