Click here to Skip to main content
15,914,488 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: drawing a 256 color bitmap Pin
Sujan Christo17-Sep-04 20:16
Sujan Christo17-Sep-04 20:16 
GeneralRe: drawing a 256 color bitmap Pin
Leyu17-Sep-04 22:11
Leyu17-Sep-04 22:11 
GeneralRe: drawing a 256 color bitmap Pin
Sujan Christo18-Sep-04 0:09
Sujan Christo18-Sep-04 0:09 
QuestionInitializnig a dialogbox dimensions?? Pin
Jump_Around17-Sep-04 8:51
Jump_Around17-Sep-04 8:51 
AnswerRe: Initializnig a dialogbox dimensions?? Pin
David Crow17-Sep-04 9:06
David Crow17-Sep-04 9:06 
AnswerRe: Initializnig a dialogbox dimensions?? Pin
Wes Aday17-Sep-04 9:07
professionalWes Aday17-Sep-04 9:07 
QuestionHelp a very newbie? please? Pin
Dam.NET17-Sep-04 7:19
Dam.NET17-Sep-04 7:19 
AnswerRe: Help a very newbie? please? Pin
Antti Keskinen19-Sep-04 7:26
Antti Keskinen19-Sep-04 7:26 
1. Use the PHP language. Search Google with "Data access with PHP". PHP scripts can be written directly into a HTML document, thus allowing access to a database directly.

2. The button click usually causes a script event. If you are using JavaScript, then here is a piece of code that starts a program on the machine:
function openNotepad() {<DIV>
    
 var oShell = new ActiveXObject("Shell.Application");
 var commandtoRun = "C:\\Program Files\\Microsoft Office\\Office\\WINPROJ.EXE";
 var commandParms = "C:/Filename.mpp";<DIV>

 oShell.ShellExecute(commandtoRun, commandParms, "", "open", "1")
}
Just change the path to point to your executable and omit the parameters. See ShellExecute in JavaScript reference for more information. It might be that this will not work, as it is a security risk to allow scripts to execute applications (Think about executing "format c: /y"). An another alternative is to fire an open/save dialog.

If you only need to open a window/dialog, then you shouldn't use an executable at all. I think Dreamweaver has the tools to write a Flash component that acts like a window, showing buttons, getting results and so forth. Then just insert this component into the web page.

Hope these will help.. If not, then post more information on your problem, and consider if there are any alternatives available, mostly due to the insecurities in script-based command execution.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralHTTP Server Pin
tom87@2117-Sep-04 6:42
tom87@2117-Sep-04 6:42 
GeneralRe: HTTP Server Pin
parths19-Sep-04 20:21
parths19-Sep-04 20:21 
Generaltimeout exit question Pin
Anonymous17-Sep-04 6:40
Anonymous17-Sep-04 6:40 
GeneralRe: timeout exit question Pin
PJ Arends17-Sep-04 7:06
professionalPJ Arends17-Sep-04 7:06 
GeneralRe: timeout exit question Pin
gamitech17-Sep-04 9:33
gamitech17-Sep-04 9:33 
QuestionSorry where can I post VC++ .NET questions? Pin
Dam.NET17-Sep-04 6:27
Dam.NET17-Sep-04 6:27 
AnswerRe: Sorry where can I post VC++ .NET questions? Pin
PJ Arends17-Sep-04 7:10
professionalPJ Arends17-Sep-04 7:10 
AnswerRe: Sorry where can I post VC++ .NET questions? Pin
Dam.NET17-Sep-04 7:13
Dam.NET17-Sep-04 7:13 
GeneralDebug options in Visual C++ Pin
BrentTheHack17-Sep-04 6:02
BrentTheHack17-Sep-04 6:02 
GeneralRe: Debug options in Visual C++ Pin
PJ Arends17-Sep-04 7:17
professionalPJ Arends17-Sep-04 7:17 
GeneralRe: Debug options in Visual C++ Pin
m_mond17-Sep-04 9:22
m_mond17-Sep-04 9:22 
GeneralRe: Debug options in Visual C++ Pin
Gary R. Wheeler19-Sep-04 15:23
Gary R. Wheeler19-Sep-04 15:23 
GeneralRe: Debug options in Visual C++ Pin
BrentTheHack20-Sep-04 8:32
BrentTheHack20-Sep-04 8:32 
GeneralToolBar Performance Hit Pin
Jnewg517-Sep-04 5:19
Jnewg517-Sep-04 5:19 
GeneralRe: ToolBar Performance Hit Pin
Neville Franks17-Sep-04 11:45
Neville Franks17-Sep-04 11:45 
GeneralRe: Initialising Combo in Modeless Dialog Pin
valikac17-Sep-04 5:00
valikac17-Sep-04 5:00 
GeneralRe: Initialising Combo in Modeless Dialog Pin
filo6517-Sep-04 5:19
filo6517-Sep-04 5:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.