Click here to Skip to main content
15,916,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to scroll to a row in a CListCtrl Pin
Mike Dunn10-Jul-00 6:26
Mike Dunn10-Jul-00 6:26 
Generalneed help with PJNaughter's CSerialPort class Pin
acidmarco9-Jul-00 23:13
acidmarco9-Jul-00 23:13 
GeneralRe: need help with PJNaughter's CSerialPort class Pin
Remus Lazar10-Jul-00 22:23
Remus Lazar10-Jul-00 22:23 
GeneralWindows Address Book Pin
Cirmu Nicolae9-Jul-00 22:53
sussCirmu Nicolae9-Jul-00 22:53 
GeneralFederated Databases vs. Distributed Access Pin
Member 11569-Jul-00 11:50
Member 11569-Jul-00 11:50 
GeneralFederated Databases vs. Distributed Access Pin
Member 11569-Jul-00 11:49
Member 11569-Jul-00 11:49 
Questioncan any body help me Pin
David9-Jul-00 10:11
David9-Jul-00 10:11 
AnswerRe: can any body help me Pin
phoenix11-Jul-00 0:17
phoenix11-Jul-00 0:17 
GeneralWith external resourcefile dialog with Custom Control not loaded Pin
M.Vo.9-Jul-00 3:24
M.Vo.9-Jul-00 3:24 
GeneralRe: With external resourcefile dialog with Custom Control not loaded Pin
Paolo Messina9-Jul-00 7:13
professionalPaolo Messina9-Jul-00 7:13 
GeneralRe: With external resourcefile dialog with Custom Control not loaded Pin
M.Vo.9-Jul-00 10:12
M.Vo.9-Jul-00 10:12 
GeneralRe: With external resourcefile dialog with Custom Control not loaded Pin
Paolo Messina9-Jul-00 11:47
professionalPaolo Messina9-Jul-00 11:47 
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 

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.