Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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:

 

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++?

"Programmers are tools for converting caffeine into code."

 

Madcow Inventions -- Software for the Sanity Challenged.

Posted

I'm not completely sure on this one, (have VC++, have yet to use it):

 


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

Posted

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:

"Programmers are tools for converting caffeine into code."

 

Madcow Inventions -- Software for the Sanity Challenged.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...