473,321 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

TypeForwardedTo in VB.NET

Hello,

I'm trying to get the TypeForwardedTo attribute working on visual basic, but
when I move my type to another type library, recompile both type libraries
(but not the client app, of course), the client application still complaints
that it cannot find the 'moved' type.

On the Internet there are lots of examples, all in c# but somebody somewhere
also complains about the fact that it seems to have no effect on vb...

Here is my attribute declaration:

<Assembly:
TypeForwardedTo(GetType(segonallibreriadeproves.Cl asseDeLlibreriesDeProvesALeiter))>

And here's the simple type I moved:

Public Class ClasseDeLlibreriesDeProvesALeiter

Dim _missatge As String

Sub New(ByVal missatge As String)
_missatge = missatge
End Sub

Public Property missatge() As String
Get
Return _missatge
End Get

Set(ByVal value As String)
_missatge = value
End Set

End Property

Public Sub MostraMissatge()
MsgBox(missatge)
End Sub

End Class

--
Roger
..NET 2005 and DB developer
Mar 27 '07 #1
4 2117
>On the Internet there are lots of examples, all in c# but somebody somewhere
also complains about the fact that it seems to have no effect on vb...
I believe this feature requires some support from the compiler, which
might not be there in VB. As I recall, this feature was added pretty
late in the 2.0 dev cycle.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Mar 28 '07 #2
Ok thanks, but it seems dreadful to me that the whole MSDN stuff does mention
that this is really available on vb too.. also it appears in the book "self
paced training kit for exam 70-536" without mentioning this little point...

Thanks,
--
Roger
"Mattias Sjögren" wrote:
>
On the Internet there are lots of examples, all in c# but somebody somewhere
also complains about the fact that it seems to have no effect on vb...

I believe this feature requires some support from the compiler, which
might not be there in VB. As I recall, this feature was added pretty
late in the 2.0 dev cycle.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Mar 28 '07 #3
Hello,

the documentation (MSDN) states that this attribute is not supported with
VB.NET 2005.

Best regards,
Henning Krause

"Mattias Sjögren" <ma********************@mvps.orgwrote in message
news:OR**************@TK2MSFTNGP02.phx.gbl...
>
>>On the Internet there are lots of examples, all in c# but somebody
somewhere
also complains about the fact that it seems to have no effect on vb...

I believe this feature requires some support from the compiler, which
might not be there in VB. As I recall, this feature was added pretty
late in the 2.0 dev cycle.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Mar 28 '07 #4
Oh, I'm so sorry for that. You know, None are more blind than those who
refuse to see.

Thanks a lot again,

Roger
--
Roger
..NET 2005 and DB developer
"Henning Krause [MVP - Exchange]" wrote:
Hello,

the documentation (MSDN) states that this attribute is not supported with
VB.NET 2005.

Best regards,
Henning Krause

"Mattias Sjögren" <ma********************@mvps.orgwrote in message
news:OR**************@TK2MSFTNGP02.phx.gbl...
>On the Internet there are lots of examples, all in c# but somebody
somewhere
also complains about the fact that it seems to have no effect on vb...
I believe this feature requires some support from the compiler, which
might not be there in VB. As I recall, this feature was added pretty
late in the 2.0 dev cycle.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Mar 28 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: CaffieneRush | last post by:
Hi, TypeForwardedToApp is one of the attributes covered in the MS upgrade exam 70-553 http://www.microsoft.com/learning/exams/70-553.asp. I've tried to code a short example in vb.net to test...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.