Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I am Working with web browser, where i want to launch an application
(VC++ application .exe) when i enter the Username and Password in the
web browser and click enter the window application should be launch on the browser page.

I tried with Registry like

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\DemoApp]
@="URL:Open YourApp Protocol"
"URL Protocol"=""
"EditFlags"=dword:00000002

[HKEY_CLASSES_ROOT\DemoApp\DefaultIcon]
@="D:\\shravan\\Login\\Debug\\Login.exe,1"

[HKEY_CLASSES_ROOT\DemoApp\Shell]

[HKEY_CLASSES_ROOT\DemoApp\Shell\Open]

[HKEY_CLASSES_ROOT\DemoApp\Shell\Open\Command]
@="D:\\shravan\\Application\\Debug\\Application.exe\" \"%1\""

i set the registry.

but after this what should i do i am unable to go futher.

can anyone guide me on this, i am struck in middle.

As i am new to web browser implementation.

Kindly help me out on this issue.
Posted
Comments
Sergey Alexandrovich Kryukov 26-Dec-12 2:49am    
Not clear. Username/password of what? Why doing something with the registry at all? Does it have to be the application prescribed in Registry, or it can be anything? Where the user indicates which one to run? Why doing all that? Any reasonable goal?
—SA
Kumar 09 26-Dec-12 3:05am    
main aim is that, suppose gmail where we are entering the username and password for login in to the account after entering the username and password i want to launch my own application (vc++.exe) for extra security reasons.
Sergey Alexandrovich Kryukov 26-Dec-12 3:07am    
Why?!
—SA
Kumar 09 26-Dec-12 3:22am    
after the entering the username and password i need to call the .exe where face recognition of particular user has to be done then only login user can check his mail. It is for security purpose and malware.
Mohibur Rashid 26-Dec-12 3:21am    
gmail is a web based application. Using example of gmail compared with exe is miss leading. Now, the issue is you want to know is not clear enough. Do you want to create your own web-browser?

Using VC++ or MFC Application, the following way you can start or execuite the application,

STARTPROCESS ps;
ShellExecute
WinExc

...

Regards
Ranjith
 
Share this answer
 
v2
Hi
There is a sample code, you can download from the link


[Create ActiveX in NET Step by Step]
 
Share this answer
 
Hi
I think you can use ActiveX to launch an 'exe' from a webbrowser.

To understand ActiveX, you can refer the below url.


[Create ActiveX in NET Step by Step]
 
Share this answer
 
v2
Comments
Kumar 09 26-Dec-12 4:00am    
any sample example? can i have
Dominic Abraham 26-Dec-12 4:29am    
Hi
There is a sample code, you can download from the link


http://www.codeproject.com/Articles/24089/Create-ActiveX-in-NET-Step-by-Step

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900