Executable in .cpl VIsual Basic

Oppital
Oppital used Ask the Experts™
on
I wonder how to create an executable file in VB6 in the format ".cpl"
I saw several models in delphi, but not in VB.
Now, thank you.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
It can't be done in VB6 - you have to use C++
Top Expert 2014

Commented:
Try renaming the file type from EXE to CPL

Commented:
.cpl files are renamed .dll files, not .exe files (and they are not ActiveX dll's, so can't be created from VB)

http://www.viksoe.dk/code/cplapplet.htm
Acronis in Gartner 2019 MQ for datacenter backup

It is an honor to be featured in Gartner 2019 Magic Quadrant for Datacenter Backup and Recovery Solutions. Gartner’s MQ sets a high standard and earning a place on their grid is a great affirmation that Acronis is delivering on our mission to protect all data, apps, and systems.

Top Expert 2014

Commented:
In the linked article:
Windows Vista finally breaks free of the DLL limitation and allows you to embed the Control Panel functionality in your .exe file.

Author

Commented:
If you try to rename failed, and the link above does the information on how to create in vb: (
Top Expert 2014

Commented:
Try a wrapper for your VB6 program, like this one:
Control Panel Wrapper 1.0:
http://www.vorck.com/windows/software.html 

Author

Commented:
:(
Top Expert 2014

Commented:
Click on the request attention link and ask for more expert participation.
Commented:
Hi!

There are many sources for this, it's a simple shell trick

http://www.thescarms.com/vbasic/rundll.aspx

And some more:
http://www.justvb.net/tips/Shell/Shell_-_Launching_Windows_Control_Panel_Applets_in_Visual_Basic.html

Other sites might list more aplet names to use on Google "run control panel aplet visualbasic"

Matti

Commented:
Hi!

If it's your own applet that goes to system32 folder and note this:

Legacy CPL elevated mode

http://forums.techarena.in/vista-help/792928.htm

Regards!
Matti

Author

Commented:
no solution

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial