Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: calling vb.net function referenced by project from within a c# project.

Started 1 month, 1 week ago by hazz
as per  http://cid-1bffe163b94b63d6.skydrive.live.com/self .aspx/.Public/using%20vb.net%20within%20c%5E3.jpg  . how can I achieve this?   'processPacketVB' is a 'variable' but is used like a 'method'   is the error I'm getting with these references to the project and class and function. using VBProcessPacket; namespace UIST { public partial class FormActionMenu : ...
Site: MSDN Forums  MSDN Forums - site profile
Forum: Visual Basic General  Visual Basic General - forum profile
Total authors: 5 authors
Total thread posts: 6 posts
Thread activity: no new posts during last week
Domain info for: microsoft.com

Other posts in this thread:

kaymaf replied 1 month, 1 week ago
what is  the methods in that library (VBProcessPacket)? processPacketVB is a variable, so it have to be processPacketVB.some method you want to use kaymaf

DeborahK replied 1 month, 1 week ago
You are setting the processPacketVB variable to an instance of the ProcessRX class in the line above. Then you are trying to call it as a function: processPacketVB("test") Is there a function in the  ProcessRX class that you mean to call instead? processPacketVB.MyMethod("test") Hope this helps.

bdbodger replied 1 month, 1 week ago
That is not VB code so why are you posting it on a VB forum ?

hazz replied 1 month, 1 week ago
there is vb code if you follow the link. Bb.net and c# both run on top of the same runtime.  A successful .NET solutions provider needs to work with both languages. By my question, you can tell I'm not a currently successful .Net solutions provider.  ;-)   My boss is writing his functions in vb.net cuz of string handling routines.  I need to be able to consume that in my c# project.   My c# ...

A.m.a.L - aditi.com - Think Product replied 1 month, 1 week ago
You need to do something like this processPacketVB.ProcessPacket( "test" ); What you was doing wrong was. You created the object "processPacketVB". And to that object you tried to pass some parameter. Basically, you was trying to call the method "ProcessPacket", which is a method of the object "ProcessPacketVB". Hope this helps.

 

Top contributing authors

Name
Posts
hazz
2
user's latest post:
calling vb.net function...
Published (2009-11-14 12:51:00)
there is vb code if you follow the link. Bb.net and c# both run on top of the same runtime.  A successful .NET solutions provider needs to work with both languages. By my question, you can tell I'm not a currently successful .Net solutions provider.  ;-)   My boss is writing his functions in vb.net cuz of string handling routines.  I need to be able to consume that in my c# project.   My c# posting did not result in an answer. ...
DeborahK
1
user's latest post:
calling vb.net function...
Published (2009-11-13 23:09:00)
You are setting the processPacketVB variable to an instance of the ProcessRX class in the line above. Then you are trying to call it as a function: processPacketVB("test") Is there a function in the  ProcessRX class that you mean to call instead? processPacketVB.MyMethod("test") Hope this helps.
bdbodger
1
user's latest post:
calling vb.net function...
Published (2009-11-14 03:01:00)
That is not VB code so why are you posting it on a VB forum ?
kaymaf
1
user's latest post:
calling vb.net function...
Published (2009-11-13 23:07:00)
what is  the methods in that library (VBProcessPacket)? processPacketVB is a variable, so it have to be processPacketVB.some method you want to use kaymaf
A.m.a.L - aditi.com - Think Product
1
user's latest post:
calling vb.net function...
Published (2009-11-14 13:39:00)
You need to do something like this processPacketVB.ProcessPacket( "test" ); What you was doing wrong was. You created the object "processPacketVB". And to that object you tried to pass some parameter. Basically, you was trying to call the method "ProcessPacket", which is a method of the object "ProcessPacketVB". Hope this helps.

Related threads on "MSDN Forums":

Related threads on other sites:

Thread profile page for "calling vb.net function referenced by project from within a c# project." on http://msdn.microsoft.com. This report page is a snippet summary view from a single thread "calling vb.net function referenced by project from within a c# project.", located on the Message Board at http://msdn.microsoft.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity