|
-
May 24th, 2005, 07:01 AM
#1
Thread Starter
Frenzied Member
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?
-
May 24th, 2005, 07:03 AM
#2
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.
-
May 24th, 2005, 08:28 AM
#3
Thread Starter
Frenzied Member
Re: Adding Control Panel Applet
 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?
-
May 24th, 2005, 12:06 PM
#4
Re: Adding Control Panel Applet
 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.
-
May 24th, 2005, 12:20 PM
#5
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
May 25th, 2005, 02:49 AM
#6
Thread Starter
Frenzied Member
Re: Adding Control Panel Applet
 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..
-
May 25th, 2005, 03:08 AM
#7
Thread Starter
Frenzied Member
Re: Adding Control Panel Applet
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|