| Artur Mustaifn 的个人资料.NET Tips and Tricks日志列表网络 | 帮助 |
|
12月16日 Saturday morningMy hoildays started so good, that I wrote a poem for my lovely wife:
Indira is my house wife
She cooks me every morning
I've never seen in all my life
More beaty than she's scoring
The deepest thought can break apart
When morning sun in shining...
Or when Indira comes, my heart
Is beating like a lightning! 12月15日 Working HistoryHello, geeks! Problem with ProxyGen: ProxyGen.exe Error: 0 : Error: Generics are not supported. Type IParent`1 contains generic parameters and will be excluded. Its occurrences will be replaced by This is a real-world sample:
Solution: if someone have generics interfaces, and even classes, it is possible to create an addditional assembly (non-generics to generics layer), strong named it and add a reference to original assembly in proxy configuration. I my case it simply adds an an additional surface. Bisimilla! Shown below:
So my VSTA proxy uses Data Proxy Layer, not a Data Layer due to the generics and therefore ProxyGen.exe generates a TypeInfrastructureManager class in a ordinal way. All we need to do is to cast back each time we are using a ...Proxy version of an interface or impement GetInterface() in each of interfaces for safely typecasting of this references ;) Now I'm thinking about desighn for beautify my code. But it really works, in cost of additional casting. Most of them must be eliminated by the comiler if classes and interface will be properly desighned. This is not a lot of work to do, in fact. Bye! VSTA SDK and VMHello, geeks!
I just got the running instance of WinXP SP2 with VS2005 an August VS2005 SDK installed!
So I love virtual machines!
If someone interested in my history of creating and using Visual Studin Tools for Application, contact me, or leave the message :) 12月14日 VSTA DocumentationHi, phanks you for all your help, but I got a serious trouble lanching VSTA Help. Before I get this issue, I had all Visual Studio SDKs installed on host machine. Actually, I had all-in-one system, including VS2005 Enterprise/Developer/Tester/Architector/Premier Partner Editions, Visual Source Safe 2005, MSDN Library 2005, Virtual Server 2005 R2, VSTO, VSTA, NF3.0, WPF, VS2005 Extension for WPF, ODP for .NET 2.0, Oracle Developers Tools VS2005 10.2, IE7, VS2005 Team Explorer, Microsoft Espression Desighn, SQL Server 2005 Enterprise, e.t.c. I'm a Pro Developer, and started to I did not expect that something is working as not expected except VSTA and VSTA docs. I deinstalled all VS SDK, VSTA, VSTO, all documentation libraries, it makes my tiers running on my heart :~(. See my next blogs |
|
|