I'd like to create a myprogram.exe without a windows interface that can be called by another exe program .
as an example: run = "c:\myprogram.exe variable1, variable2 , variable3"
or a main function as in C++ Main()
I've searched but cannot find any examples that don't have a Procedure Win() with ...
Search found 30 matches
- Sat Aug 04, 2018 9:37 pm
- Forum: Coding Questions
- Topic: Can you create an MyProgram.exe without windows interface?
- Replies: 3
- Views: 1178
- Thu Oct 19, 2017 7:14 pm
- Forum: Coding Questions
- Topic: Help With Converting C Pointer code To PB Code
- Replies: 5
- Views: 2312
Re: Help With Converting C Pointer code To PB Code
Many thanks to Kenmo. Here is the final conversion of the KendallTauFast C Code to PB
EnableExplicit
Structure DD
d.d[0]
EndStructure
;================KendallTauSlow from WFME=================
Procedure.d KendallTaux(Array dArrIn.d(1), lNum.l)
; Kendall tau algorithm from numerical receipes in ...
EnableExplicit
Structure DD
d.d[0]
EndStructure
;================KendallTauSlow from WFME=================
Procedure.d KendallTaux(Array dArrIn.d(1), lNum.l)
; Kendall tau algorithm from numerical receipes in ...
- Mon Apr 03, 2017 8:45 pm
- Forum: Coding Questions
- Topic: Help With Converting C Pointer code To PB Code
- Replies: 5
- Views: 2312
Re: Help With Converting C Pointer code To PB Code
Many thanks for your help Kenmo! Both work. Now to convert the rest of the C code. Will post when done.
- Mon Apr 03, 2017 8:19 pm
- Forum: Coding Questions
- Topic: Help With Converting C Pointer code To PB Code
- Replies: 5
- Views: 2312
Re: Help With Converting C Pointer code To PB Code
Thanks Jack. This sub is easily to convert and do away with pointers but this sub is part of a larger group of c routines that use pointers and compute the fast Kendall Tau statistic with O(N log N) speed instead of O(N^2) speed. As you can see from the C code below these group of functions are not ...
- Mon Apr 03, 2017 7:01 pm
- Forum: Coding Questions
- Topic: Help With Converting C Pointer code To PB Code
- Replies: 5
- Views: 2312
Help With Converting C Pointer code To PB Code
I'm trying to convert a C pointer code subroutine into a PB pointer sub. Although I read the the help file material, I'm not familiar with pointer manipulation in PB .
Below is the C code followed by my PB code that compiles and runs but doesn't compute correctly. I'd be appreciative for any help ...
Below is the C code followed by my PB code that compiles and runs but doesn't compute correctly. I'd be appreciative for any help ...
- Sat Nov 14, 2015 10:48 pm
- Forum: Coding Questions
- Topic: Tabbing through EditorGadgets How?
- Replies: 12
- Views: 1805
Re: Tabbing through EditorGadgets How?
Here is an easy solution to selection, highlighting and tabbing that works with StringGadget. This includes skipping tabs on buttons.
Credit jassing for RemoveTabStop and AddTabStop procedures.
Credit byo with #PB_EventType_Focus routine ...
Credit jassing for RemoveTabStop and AddTabStop procedures.
Credit byo with #PB_EventType_Focus routine ...
- Sat Nov 14, 2015 6:12 pm
- Forum: Coding Questions
- Topic: Tabbing through EditorGadgets How?
- Replies: 12
- Views: 1805
Re: Tabbing through EditorGadgets How?
When you tab to a new EditorGadget and select the text with SendMessage_ how do you tab to the next EditorGadget without the text that was selected in the previous editor box being deleted? If I put the cursor at the of the text, the text is not longer selected.
In addition, when the EditorGadget is ...
In addition, when the EditorGadget is ...
- Tue Nov 10, 2015 7:35 pm
- Forum: Coding Questions
- Topic: Tabbing through EditorGadgets How?
- Replies: 12
- Views: 1805
Re: Tabbing through EditorGadgets How?
Many thanks to ts-soft, RASHAD and mk-soft for your help. Much appreciated.
Buttons are automatically Tabbed to. In RASHAD's code and the modified by mk-soft version, tabbing not only tabs to the EditorGadget but also to the ButtonGadget. The Buttons are not skipped.
Buttons are automatically Tabbed to. In RASHAD's code and the modified by mk-soft version, tabbing not only tabs to the EditorGadget but also to the ButtonGadget. The Buttons are not skipped.
- Mon Nov 09, 2015 11:51 pm
- Forum: Coding Questions
- Topic: Tabbing through EditorGadgets How?
- Replies: 12
- Views: 1805
Re: Tabbing through EditorGadgets How?
The following code works with the routine TabIt and gives more control of where the next Tab should go to.
EnableExplicit
Enumeration FormGadget
#WinMain
#Text_0
#Text_1
#Text_3
#Text_4
#Text_6
#text_7
#txtInDir
#txtOutDir
#txtStub
#txtUID
#txtiStart
#txtiEnd
#CB_EXIT
#CB_Stop ...
EnableExplicit
Enumeration FormGadget
#WinMain
#Text_0
#Text_1
#Text_3
#Text_4
#Text_6
#text_7
#txtInDir
#txtOutDir
#txtStub
#txtUID
#txtiStart
#txtiEnd
#CB_EXIT
#CB_Stop ...
- Mon Nov 09, 2015 10:56 pm
- Forum: Coding Questions
- Topic: Tabbing through EditorGadgets How?
- Replies: 12
- Views: 1805
Re: Tabbing through EditorGadgets How?
Many thanks MK-Soft and TSBasic.
In searching I found this simple code and it tabs buttongadgets and editorgadget but I don't know why this works because the above solutions require a lot more code.
If OpenWindow(0, 0, 0, 220, 180, "TabDaGadgets...", #PB_Window_SystemMenu | #PB_Window ...
In searching I found this simple code and it tabs buttongadgets and editorgadget but I don't know why this works because the above solutions require a lot more code.
If OpenWindow(0, 0, 0, 220, 180, "TabDaGadgets...", #PB_Window_SystemMenu | #PB_Window ...
- Mon Nov 09, 2015 8:56 pm
- Forum: Coding Questions
- Topic: Tabbing through EditorGadgets How?
- Replies: 12
- Views: 1805
Tabbing through EditorGadgets How?
How do you tab through EditorGadgets. I want to be able to hit the tab key and have the cursor move to the next editor gadget in the series. When I hit the tab Key it stays in the same editor gadget. Below is my code.
Thanks for any help with this.
EnableExplicit
Enumeration FormGadget ...
Thanks for any help with this.
EnableExplicit
Enumeration FormGadget ...
- Sun Oct 18, 2015 6:12 pm
- Forum: Coding Questions
- Topic: runtime EditorGadget window not updating with SetGadgetText?
- Replies: 15
- Views: 4030
Re: runtime EditorGadget window not updating with SetGadgetT
Said: A comparison correction. When I compared my PB to my Powerbasic routines, the powerbasic routines did much more in processing the 20 files. i.e sorting 2D arrays, combining ,etc. When I finally coded all the routines into PB, PB took 3.6 sec to complete and Powerbasic took 3.6 seconds to ...
- Thu Oct 15, 2015 9:07 pm
- Forum: Coding Questions
- Topic: runtime EditorGadget window not updating with SetGadgetText?
- Replies: 15
- Views: 4030
Re: runtime EditorGadget window not updating with SetGadgetT
Said: I finally tried your pb Split routine and it reduced the Reading and Parsing of the 20 files to 1.5sec!
Just for the sake of comparison I recoded my routines in C++ with Visual Studio 12. After finding the best C++ parse routine on the web, the same PB code, coded into C++, took 11 sec. It ...
Just for the sake of comparison I recoded my routines in C++ with Visual Studio 12. After finding the best C++ parse routine on the web, the same PB code, coded into C++, took 11 sec. It ...
- Wed Oct 07, 2015 4:55 am
- Forum: Coding Questions
- Topic: runtime EditorGadget window not updating with SetGadgetText?
- Replies: 15
- Views: 4030
Re: runtime EditorGadget window not updating with SetGadgetT
many thanks said, I'll try it
- Tue Oct 06, 2015 5:36 pm
- Forum: Coding Questions
- Topic: runtime EditorGadget window not updating with SetGadgetText?
- Replies: 15
- Views: 4030
Re: runtime EditorGadget window not updating with SetGadgetT
Good idea. PowerBasic uses Windows APIs and ASM code in there functions.Keya wrote:doesnt Powerbasic also create native executables like Purebasic? if thats the case you could look at what it's doing with a debugger and replicate it?