Click here to Skip to main content
15,895,256 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: With external resourcefile dialog with Custom Control not loaded Pin
Paolo Messina9-Jul-00 12:17
professionalPaolo Messina9-Jul-00 12:17 
GeneralRe: With external resourcefile dialog with Custom Control not loaded Pin
Blake Miller10-Jul-00 12:14
Blake Miller10-Jul-00 12:14 
GeneralRe: With external resourcefile dialog with Custom Control not loaded Pin
bidoon10-Jul-00 15:05
bidoon10-Jul-00 15:05 
GeneralSolved: With external resourcefile dialog with Custom Control not loaded Pin
M.Vo.11-Jul-00 9:49
M.Vo.11-Jul-00 9:49 
GeneralIs there any CodeWright forum??? i really need help Pin
Yaron8-Jul-00 22:58
Yaron8-Jul-00 22:58 
GeneralRe: Is there any CodeWright forum??? i really need help Pin
GeVanCo9-Jul-00 0:06
GeVanCo9-Jul-00 0:06 
GeneralRe: Is there any CodeWright forum??? i really need help Pin
Yaron9-Jul-00 0:40
Yaron9-Jul-00 0:40 
GeneralRe: Is there any CodeWright forum??? i really need help Pin
Chris10-Jul-00 5:37
Chris10-Jul-00 5:37 
Yaron,

Here is an AppBasic Macro that will do what you want. Create a file in Codewright, paste in the code below and then save it with filename of yourfile.cwb. To use it goto app basic tab and open the file. To use it press the run button. Then goto the API command dialog and type 'ExecMyUtil' (no quotes) and hit enter. It will then prompt you for an address to ping and it will then ping that address in the shell window. Once you see it works you can modify the code to ask for the parameters you would like and then Execute the command. To use the macro from a toolbar just use the function name directly. To load the cwb file so you do not need to every time you start codewright, goto the to Tools - Appbasic Macros - Load Macros menu item and in the lower section of the dialog that appears click add and then find the cwb file you created and then just click OK, now the macro will be loaded (but will no show in the AppBasic window) and be available for your toolbar.

Chris

**start of code**
Attribute VB_Name = "ExecMyUtil"
Private Sub ExecMyUtil()
Dim FunctionToExec As String
Dim Param1 As String
Param1 = InputBox("Please enter address to ping")
If Len(Param1) = 0 Then
Exit Sub
End If
LibPreLoad "cwdosbox" 'Make sure Shell window is in place
If LibFunctionExists("DosBoxExec") Then
FunctionToExec = "DosBoxExec 'ping " & Param1 & "'"
LibFunctionExec "DosBoxCurrent" ' Make Shell tab Current
LibFunctionExec FunctionToExec
Else
MsgBox "Error Loading Shell Window"
End If
End Sub

'{{CWBASIC_LOADERINFO
' cwbAddHandler 'Private Sub ExecMyUtil()', '%F'
'}}CWBASIC_LOADERINFO
**end of code**


GeneralAccess a dialog.listbox from a member class Pin
Tony8-Jul-00 12:15
Tony8-Jul-00 12:15 
GeneralRe: Access a dialog.listbox from a member class Pin
Paolo Messina9-Jul-00 0:53
professionalPaolo Messina9-Jul-00 0:53 
GeneralRe: Access a dialog.listbox from a member class Pin
Tony9-Jul-00 17:56
Tony9-Jul-00 17:56 
GeneralDDE to IPC or an new way Pin
bulent8-Jul-00 12:04
bulent8-Jul-00 12:04 
GeneralRe: DDE to IPC or an new way Pin
Sam Hobbs8-Jul-00 15:16
Sam Hobbs8-Jul-00 15:16 
QuestionHow do you print a CRichEditView ??? Pin
Mike Newberry8-Jul-00 5:12
sussMike Newberry8-Jul-00 5:12 
GeneralHOWTO : Get a CPropertySheet pointer from a CPropertyPage !?!?!?! Pin
Luc Bergeron6-Jul-00 5:33
Luc Bergeron6-Jul-00 5:33 
GeneralRe: HOWTO : Get a CPropertySheet pointer from a CPropertyPage !?!?!?! Pin
Paolo Messina6-Jul-00 7:07
professionalPaolo Messina6-Jul-00 7:07 
GeneralRe: HOWTO : Get a CPropertySheet pointer from a CPropertyPage? Pin
Mike Dunn6-Jul-00 9:27
Mike Dunn6-Jul-00 9:27 
GeneralRe: HOWTO : Get a CPropertySheet pointer from a CPropertyPage !?!?!?! Pin
Steve Driessens7-Jul-00 18:19
Steve Driessens7-Jul-00 18:19 
GeneralRe: HOWTO : Get a CPropertySheet pointer from a CPropertyPage !?!?!?! Pin
Luc Bergeron10-Jul-00 5:00
Luc Bergeron10-Jul-00 5:00 
QuestionDo u know? Pin
atif6-Jul-00 5:13
atif6-Jul-00 5:13 
QuestionHow To: Bold the Text on the Property Page Tab when the page is active Pin
Lori6-Jul-00 4:47
Lori6-Jul-00 4:47 
AnswerRe: How To: Bold the Text on the Property Page Tab when the page is active Pin
Mike Dunn6-Jul-00 9:32
Mike Dunn6-Jul-00 9:32 
GeneralBackStyle (ATL) Pin
Chris6-Jul-00 4:31
Chris6-Jul-00 4:31 
GeneralAbout CHttpFile Pin
Tenacious6-Jul-00 0:17
Tenacious6-Jul-00 0:17 
GeneralExchanging DLLs Pin
Thomas Freudenberg5-Jul-00 23:36
Thomas Freudenberg5-Jul-00 23:36 

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.