Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ VC++
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 25-Dec-12 20:42pm
Kumar 091.2K
Comments
Sergey Alexandrovich Kryukov at 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 at 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 at 26-Dec-12 3:07am
   
Why?!
—SA
Kumar 09 at 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 at 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?
Kumar 09 at 26-Dec-12 3:26am
   
just i gave the example of the gmail. but i need to create my own web browser with username and password and after entering username and password i want to launch the .exe.
Mohibur Rashid at 26-Dec-12 3:56am
   
You want your browser to be password protected? do you know that Firefox has its own password protection. Most probably Chrome also has the same feature. Would it do?
Mohibur Rashid at 26-Dec-12 3:56am
   
one more note, firefox source is downloadable from firefox website
Kumar 09 at 26-Dec-12 4:00am
   
ok thank u but how to launch an .exe
Mohibur Rashid at 26-Dec-12 4:12am
   
http://msdn.microsoft.com/en-us/library/ms682425%28v=vs.85%29.aspx
 
look at the above link. I found it on google
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Using VC++ or MFC Application, the following way you can start or execuite the application,
 
STARTPROCESS ps;
ShellExecute
WinExc
 
...
 
Regards
Ranjith
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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]
  Permalink  
v2
Comments
Kumar 09 at 26-Dec-12 4:00am
   
any sample example? can i have
Dominic Abraham at 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
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Hi
 
There is a sample code, you can download from the link
 

[Create ActiveX in NET Step by Step]
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 432
1 OriginalGriff 250
2 CPallini 240
3 Abdul Samad KP 145
4 George Jonsson 119
0 OriginalGriff 6,329
1 Sergey Alexandrovich Kryukov 5,700
2 CPallini 4,940
3 George Jonsson 3,469
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web04 | 2.8.140916.1 | Last Updated 26 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100