PC Review


Reply
Thread Tools Rate Thread

asp.net C# calling VB dll function

 
 
ray
Guest
Posts: n/a
 
      11th May 2010
Hi All,

I have a DLL created by VB.net with the following function:

Public Shared Function Upload(ByRef thePage As Page) As String

I have no problem calling from a VB.net ASPX page, but having problem
with C# page with the following call:

protected void Page_Init(object sender, EventArgs e)
{
string msg = "";
msg = UploadLIB.Upload(ref Page);
}

Compiler Error Message: CS0206: A property or indexer may not be passed
as an out or ref parameter

Thanks for help.

Ray
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Method of calling a function where function name is stored in a variable or control Tony Vrolyk Microsoft Access VBA Modules 9 12th Jul 2007 07:20 PM
Method of calling a function where function name is stored in a variable or control Bob Quintal Microsoft Access 2 11th Jul 2007 08:49 PM
Calling EXE Function Getting handle to calling exe Abhishek Microsoft VC .NET 1 25th Sep 2006 01:58 PM
Calling managed function from unmanaged function in mixed mode dll slugster@gmail.com Microsoft VC .NET 1 25th Jul 2005 07:30 AM
Calling DoCmd.RunCommand acCmdSaveRecord, after calling an API function Savvoulidis Iordanis Microsoft Access Form Coding 2 19th Mar 2005 06:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:28 AM.