VC++ .NET equivalent to a VB.NET Declaration??

mooman_fl

Centurion
Joined
Nov 3, 2002
Messages
193
Location
Florida, USA
Ok... really hope someone can answer this for me....

I am trying to explain my plugin architecture to someone that uses VC++ .NET so that they can make a plugin for my program.

The definition for the Sub in VB.NET is:

Visual Basic:
Public Sub GetGUI(ByRef hostcontrol as System.Windows.Forms.Control, ByRef displaycontrol as System.Windows.Forms.Control)

Can someone show me what that declaration would look like in VC++?
 
I'm not completely sure on this one, (have VC++, have yet to use it):

C#:
void GetGUI(System::Windows::Forms::Control * hostcontrol, System::Windows::Forms::Control * displaycontrol)
{
//Insert code here
}

Byref is just like declaring an argument as a pointer,
I hope this helps
 
yeah... I knew about the whole ByRef/pointer thing... just wasn't sure how to go about it.

Turns out he wants me to make a header file for him with all the declarations he will need :eek:
 
Back
Top