Re: idl questions



ok, now I've gone and done it <g>
rewrote my idl
created new guids
changed version number but left interface name the same (maybe a mistake?)
recompiled
un-referenced existing tlb
saved vbg
un-registered existing tlb
registered new tlb
re-referenced new tlb

now I get type mismatch on setting the object to the interface
'------------------------
in cProjectSpecConcrete:
Implements IProjectSpec
'------------------------
'in class using project spec
'for interface properties
Private moIProjectSpec as IProjectSpec
'for concrete properties
Private moCProjectSpec as cProjectSpecConcrete
'------------------------
'in creation routine
Set moIProjectSpec = New cProjectSpecConcrete '<----------- now i get type
mismatch here
Set moCProjectSpec = moIProjectSpec
'------------------------

so even though I un-referenced the interface, unregistered the tlb,
recompiled, reregistered, re-referenced, the vbp must be looking at the old
guid????

all the new properties/methods showed up in the ide so I thought all was
well, but i guess not???

or do you have to change the name any time you change the interface(with a
version number or something?)

thanks
mark



"MP" <NoSpam@xxxxxxxxxx> wrote in message
news:ubLPC6kqIHA.2256@xxxxxxxxxxxxxxxxxxxxxxx
Hi
I've been using a tlb created from idl and want to add some stuff to it.
Original help obtained here from Ralph, etal .... thanks again.


.



Relevant Pages

  • Re: How to? COM class library Property pass-by-reference for TypeLib [propput] ?
    ... I think Nicholas misunderstood your problem. ... trying to EXPORT a .NET class as a COM interface to emulate an older VB6 ... What I had to do is manually create my own IDL and my own TLB and, ... calling regasm /tlb, swap out the regasm-generated TLB with my homebrew TLB. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Interop Interface from .Net to VB6
    ... The tlb I get is not generated by the .net Compiler, but by my build process step of calling regasm ... implement the interface ICommand. ... Again since, in my original system, the interface is created in .Net and then the tlb is generated from it, perhaps this is a side effect of doing things in a different order or a different dependancy chain. ... I was kinda expecting that my .Net dll would still be the same but that the tlb would effectively include better info that would have been generated with my other method. ...
    (microsoft.public.dotnet.framework.interop)
  • Re: object as parameter
    ... Interfaces Type Library Version 1.0" in the list of references. ... interface IDatabaseData: IDispatch ... I have a question on composing tlb at this point ... its similar to the issue with a dll and compatibility settings when you add ...
    (microsoft.public.vb.general.discussion)
  • Re: idl questions
    ... rewrote my idl ... changed version number but left interface name the same ... un-referenced existing tlb ...
    (microsoft.public.vb.general.discussion)
  • Re: How to Repubilsh the user defined datatypes in Atl component ?
    ... > Thank you for your answer, but I have only *.tlb and binarie files. ... You can get by with importlib alone: ... You seem to misunderstand how type libraries work. ... things happen if the same interface is defined in more than one TLB. ...
    (microsoft.public.vc.atl)

Loading