Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.NET dll intellisense not working
Message
From
11/06/2010 09:19:07
 
 
To
11/06/2010 07:17:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01468446
Message ID:
01468501
Views:
33
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform