"Arnaud Debaene" <adebaene@club-internet.fr> wrote in message
news:%23poFCcZ$EHA.3124@TK2MSFTNGP11.phx.gbl...[color=blue]
> Fredrik Wahlgren wrote:[color=green]
> > "Arnaud Debaene" <adebaene@club-internet.fr> wrote in message
> > news:%23tyMXou%23EHA.1524@TK2MSFTNGP09.phx.gbl...[color=darkred]
> >> Fredrik Wahlgren wrote:
> >>> Hi
> >>>
> >>> I have used ATL a couple of times to make excel autoamtion add-ins.
> >>> So far, I have only made functions that take simple arguments like
> >>> strings or integers. I now want to do so something a little more
> >>> complicted. What I have in mind requires that one of the parameters
> >>> is an Excel Range object. But I don't know how to do this.
> >> use #import on the Excel tlb to generate a wrapper class around all
> >> Excel types, including Range.
> >>
> >> Arnaud
> >> MVP - VC
> >>
> >>[/color]
> >
> > How do Igenerate wrapper classes? Is there a site which explains how
> > to proceed?[/color]
>
> As i said, use the #import directive. The doc is here :
>[/color]
http://msdn.microsoft.com/library/de...asp?frame=true[color=blue]
>[color=green]
> >I assume this means I have to use MFC, right?[/color]
> You assume wrongly...
>
> Arnaud
> MVP - VC
>[/color]
I think I know how to do this know. I managed to implement an interface
written in C#. And sure enough, there was my Range parameter. I suppose that
if I wanted to create a function "Manually", using the wixzard, I would
select an IDsipatch pointer and then manually change it to Excel::Range. I
think that in VC6, you had to deal with the idl file as well.
/Fredrik