Pass by Reference in Managed C++ Class Library

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a Managed C++ class Library wrapper; this DLL will be called from
VB.NET project.

If a function parameter passed by reference, I cannot see this function from
VB.NET. Otherwise, it works great.

void ICCompress(int &iFileSize, int &iKeySize, BOOL &isKEYFRAME)
{
....
}

How can I make it work? Thanks.
 
How can I make it work? Thanks.

Try something like

void ICCompress(int __gc& iFileSize, int __gc& iKeySize, BOOL __gc&
isKEYFRAME)

or

void ICCompress(Int32 &iFileSize, Int32 &iKeySize, Boolean
&isKEYFRAME)



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top