Hi Cetin,
It works now, after a quit-restart of VFP.
So, I guess it may have worked for a while?
An oTest = null and CreateObject.. are not enough to get rid of a previous compile / registration in .NET?
How can I make sure I'm looking at the correct version?
TIA
Peter
>>I believe we did as described in
http://www.devx.com/codemag/Article/22404/1763/page/2 by, if memory serves me right, Claudio Lassale along with articles by Rick Strahl, but I don't get intellisense.
>>
>>Well, strictly speaking, I guess I do - but not quite what I expected.
>>
>>I also run:
>>%systemroot%\Microsoft.NET\Framework\v1.1.4322\regasm.exe comtest.dll /tlb:.\Com.comtest.tlb
>>%systemroot%\Microsoft.NET\Framework\v1.1.4322\gacutil /if comtest.dll
>>
>>Regardless, the intellisense popup always only displays Equals, GetHashCode, GetType and ToString, which appear to be some sort of default.
>>
>>TIA
>>
>>Peter
>
>Peter,
>I haven't checked the article but seeing regasm I assume you are talking about .Net COM. Then you need to have some attributes to make it visible. Something like this:
>
>
> [ProgId("DotNetUtils.CB")]
> [ClassInterface(ClassInterfaceType.AutoDual)]
> [ComVisible(true)]
> public class SecLib
>//...
>
>With in these attributes almost none of the articles say that but ClassInterface is important, otherwise I don't get intellisense either.
>Cetin
Peter Pirker
Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?
(Woody Allen)