Results 1 to 7 of 7

Thread: Adding Control Panel Applet

  1. #1

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011

    Adding Control Panel Applet

    Hi

    is it possible to create a control panel applet using VB6?
    a search suggested me that a cpl is a renamed standard dll which implements 2 methods DllMain() and CPIApplet() ... well... as we cannot create standard dll in vb6...
    is there any workaround?
    or in worst case... any third party tool?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Adding Control Panel Applet

    You can shell most of the features provided by the Control Panel from VB, so you could actually "build" a Control Panel using a Form and some icons.

  3. #3

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011

    Re: Adding Control Panel Applet

    Quote Originally Posted by Hack
    You can shell most of the features provided by the Control Panel from VB, so you could actually "build" a Control Panel using a Form and some icons.
    u got me wrong buddy... i have created a service in VB.. now i want to provide a applet in control panel for that service...how about that?

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Adding Control Panel Applet

    Quote Originally Posted by moinkhan
    well... as we cannot create standard dll in vb6...
    Not true! I just made some the other day, and called their functions using Declare statements... I was excited !

    One of the more helpful articles I've read on VB here.

    Basically what you need to do is create a wrapper for the VB6 linker, and add an exports command. The article explains it all.

    Due to the limitations of VB you still need at least 1 class module in your dll, but all the rest can be straight .bas modules.

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Adding Control Panel Applet

    Couldnt you just control your service from the Services CP Applette?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  6. #6

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011

    Re: Adding Control Panel Applet

    Quote Originally Posted by RobDog888
    Couldnt you just control your service from the Services CP Applette?
    Nops! my service depends upon parameters which i have to set through my suggested control panel applet..

  7. #7

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011

    Re: Adding Control Panel Applet

    Quote Originally Posted by penagate
    Not true! I just made some the other day, and called their functions using Declare statements... I was excited !

    One of the more helpful articles I've read on VB here.

    Basically what you need to do is create a wrapper for the VB6 linker, and add an exports command. The article explains it all.

    Due to the limitations of VB you still need at least 1 class module in your dll, but all the rest can be straight .bas modules.
    lolz... you have caught me twice on the same point...
    well... when i said VB can't do it... means.. out-of-the-box VB doesn't support this thing... (well... the secret is .. despite of believing that VB can do ANYTHING, i didn't know about this Win32 DLL creation capability of VB)

    Thanx a lot buddy... you solved me a huge problem...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width