C++ convert to VB.net (1 Viewer)

sloty32

MP Donator
  • Premium Supporter
  • September 21, 2006
    345
    25
    Home Country
    Germany Germany
    Hello,

    someone knows what this would be in VB.net?

    public Class1()
    {
    // get ID of windowplugin belonging to this setup
    // enter your own unique code
    GetID = 5678;
    }

    Im trying to get this example from the wiki runinng in VB.net, and so far, its running, but only as process plugin. Think its because i cant set this property.

    Can anyone help?

    Thnx,

    sloty
     

    Inker

    Retired Team Member
  • Premium Supporter
  • December 6, 2004
    2,055
    318
    Hmm, why don't you use C# if your more familiar with C-style language, especially if you have trouble with "simple" statements like this in VB?

    Anyways, I guess this should work:

    PHP:
    Class Class1
       Public Sub New()
         ' get ID of windowplugin belonging to this setup
         ' enter your own unique code
         GetID = 5678
       End Sub
    End Class
     

    sloty32

    MP Donator
  • Premium Supporter
  • September 21, 2006
    345
    25
    Home Country
    Germany Germany
    Hi,

    thnx, but im not familar to C, and got this just from the wiki, and wanted to play around with vb.net, since i can programm a bit. never did anything with classes and deep windows programming.

    And the problem is, that i tried it that way. And it seem not to work, since the plugin is allways recognized as a process plugin, and couldnt start the xml file...

    thnx,
    sloty
     

    patrick

    Portal Pro
    April 20, 2005
    608
    45
    Southeast
    Home Country
    United States of America United States of America
    Hi,

    For window plugins make sure your class derives from GUIWindow and implements ISetupForm and is placed in the plugins\windows folder.

    HTH,
    patrick
     

    sloty32

    MP Donator
  • Premium Supporter
  • September 21, 2006
    345
    25
    Home Country
    Germany Germany
    Thanx Inker, that was it:) I did NOT tried it the way u discribed.

    The Public Sub New make it.

    So, now on with the rest of the wiki examples.
    I try to get myKino, that i wrote as a .my file generator for myHTPC, working as a plugin in MP.
    So when it comes to real windows programming, i have a lot to learn.

    Thnx for your answers.

    Sloty
     

    eagle

    Portal Pro
    September 25, 2004
    603
    79
    Unterfranken
    Home Country
    Germany Germany
    hi sloty,

    nice to hear that you want to implement mykino as a plugin, so I can get rid of the detour round myProgram

    eagle
     

    Users who are viewing this thread

    Top Bottom