PowerBASIC Peer Support Forums
 

Go Back   PowerBASIC Peer Support Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.08 seconds.
Search: Posts Made By: Mike Doty
Forum: Programming Apr 24th, 2015, 07:24 PM
Replies: 2
Views: 164
Posted By Mike Doty
FOR/NEXT statements

FOR/NEXT statements
Forum: PowerBASIC for Windows Apr 23rd, 2015, 03:53 PM
Replies: 6
Views: 243
Posted By Mike Doty
wm_showwindow ...

wm_showwindow
https://msdn.microsoft.com/en-us/library/windows/desktop/ms632645(v=vs.85).aspx

The PostMessage is probably better since it assures the window was displayed.

The WM_SHOWWINDOW...
Forum: Programming the Internet Apr 20th, 2015, 08:24 AM
Replies: 7
Views: 293
Posted By Mike Doty
A few checks in another server: lsFileName =...

A few checks in another server:

lsFileName = UCASE$(lsFileName)
IF INSTR(lsFileName, ":") OR INSTR(lsFileName, "..") OR LEFT$(lsFileName, 1) = "\" THEN
EXIT FUNCTION
END IF
'Now check for...
Forum: SDK Programming Apr 19th, 2015, 06:01 PM
Replies: 8
Views: 459
Posted By Mike Doty
In the middle of processing update a global, post...

In the middle of processing update a global, post a private message, write to a file or do something that is monitored by the main thread.

Example: Show progress of each thread in a listbox.
...
Forum: Programming Apr 17th, 2015, 10:34 AM
Replies: 7
Views: 480
Posted By Mike Doty
Also found Norberts's code interesting listing...

Also found Norberts's code interesting listing all named pipes.
Had problems reposting the code with the \\'s (file://\\'s) within a code block.
There were a couple of duplicate types not needed...
Forum: PowerBASIC for Windows Apr 17th, 2015, 10:31 AM
Replies: 15
Views: 1,614
Posted By Mike Doty
Thank you Norbert for the code! Had some...

Thank you Norbert for the code!

Had some problem getting the code to repost.
Just removed a couple of duplicate type statements
and see kludge below to get to post on this bbs.

'Display...
Forum: Test Forums Apr 17th, 2015, 10:17 AM
Replies: 4
Views: 173
Posted By Mike Doty
Code here, last posting works okay without kludge...

Code here, last posting works okay without kludge
http://www.powerbasic.com/support/pbforums/showthread.php?t=42374
Forum: Test Forums Apr 17th, 2015, 10:11 AM
Replies: 4
Views: 173
Posted By Mike Doty
''Display all named pipes #COMPILE EXE #DIM...

''Display all named pipes
#COMPILE EXE
#DIM ALL
'code block doesn't like this in a quoted string so this kludge
$t1 = "\\."
$t2 = "\pipe\"
$t3 = "\"
$t4 = $t1 + $t2 + $t3

#INCLUDE...
Forum: Test Forums Apr 17th, 2015, 09:59 AM
Replies: 4
Views: 173
Posted By Mike Doty
hPipe=CreateFile("", %GENERIC_READ, _ ...

hPipe=CreateFile("", %GENERIC_READ, _
%FILE_SHARE_READ OR %FILE_SHARE_WRITE OR %FILE_SHARE_DELETE, BYVAL %NULL, %OPEN_EXISTING, 0, %NULL)
Forum: Test Forums Apr 17th, 2015, 09:52 AM
Replies: 4
Views: 173
Posted By Mike Doty
[code] "

[code]

"
Forum: Test Forums Apr 17th, 2015, 09:52 AM
Replies: 4
Views: 173
Posted By Mike Doty
Truncates if leading quote

\\.\\pipe (file://\\.\\pipe)\\"
Forum: Programming Apr 15th, 2015, 08:24 AM
Replies: 12
Views: 494
Posted By Mike Doty
smtp.cox.net Thank you Rick. Added this to...

smtp.cox.net

Thank you Rick.
Added this to show what one of Rick's traces looks like (from post #3 below.)

2015.04.15 04:39:54.514 Trace logging started.
2015.04.15 04:39:54.514 Connecting to...
Forum: Cafe PowerBASIC Apr 14th, 2015, 08:49 AM
Replies: 81
Views: 11,177
Posted By Mike Doty
250 GB for $99 ...

250 GB for $99
http://www.newegg.com/Product/Product.aspx?Item=N82E16820147372
Forum: Third-Party Addons Apr 13th, 2015, 01:43 PM
Replies: 10
Views: 565
Posted By Mike Doty
I updated the code above and the minibar sales...

I updated the code above and the minibar sales should be on same page.
Forum: Third-Party Addons Apr 13th, 2015, 01:09 PM
Replies: 10
Views: 565
Posted By Mike Doty
COMPILE EXE #DIM ALL #INCLUDE "win32api.inc ...

COMPILE EXE
#DIM ALL
#INCLUDE "win32api.inc
#INCLUDE "sqlitening.inc"
#INCLUDE "ddoc_p32.inc"
'DDOC
' Needed Color Constants (Vb compatible)...
Forum: Third-Party Addons Apr 12th, 2015, 10:54 AM
Replies: 10
Views: 565
Posted By Mike Doty
Fredrick, I hope you found the problem, but if...

Fredrick,
I hope you found the problem, but if not this might help.

select key1,key2,key3 from t1,t2,t3 where key1=key2 and key1=key3

If duplicate key names then using alias:
select t1.key AS...
Forum: Third-Party Addons Apr 10th, 2015, 10:35 PM
Replies: 10
Views: 565
Posted By Mike Doty
Without data it is hard to find a problem. You...

Without data it is hard to find a problem.
You might put in foreign key constraints to be sure keys match.

#INCLUDE "sqlitening.inc"
FUNCTION PBMAIN () AS LONG
LOCAL s() AS STRING
slOpen...
Forum: PowerBASIC for Windows Apr 9th, 2015, 09:30 AM
Replies: 36
Views: 2,681
Posted By Mike Doty
No problem with gbGrid! The program...

No problem with gbGrid!

The program gbcsveditor.exe doesn't correctly parse any of the
demo files in the data directory. Not sure if it is supposed to be there?
The original fake data created...
Forum: Cafe PowerBASIC Apr 6th, 2015, 09:23 AM
Replies: 13
Views: 801
Posted By Mike Doty
.. Restrictions You may use the licensed...

..

Restrictions
You may use the licensed software to create and maintain any form of target computer program for your own use. However, if you publish any target computer program, freeware or...
Forum: PowerBASIC 2014 Apr 3rd, 2015, 01:44 AM
Replies: 22
Views: 3,082
Posted By Mike Doty
Aleksander, It is a term even used by some...

Aleksander,
It is a term even used by some cartoon characters like Charlie Brown.
...
Forum: PowerBASIC Console Compiler Apr 1st, 2015, 10:23 PM
Replies: 4
Views: 305
Posted By Mike Doty
CreateProcess ...

CreateProcess
http://www.powerbasic.com/support/pbforums/showthread.php?t=42128
http://www.powerbasic.com/support/pbforums/showthread.php?t=42721

Discussion of ShellExecute...
Forum: Programming Apr 1st, 2015, 05:23 PM
Replies: 1
Views: 165
Posted By Mike Doty
Thread finished detection (source code comments)

http://www.powerbasic.com/support/pbforums/showthread.php?t=59178
Forum: Programming Apr 1st, 2015, 05:18 PM
Replies: 22
Views: 503
Posted By Mike Doty
5-ways ...

5-ways
http://www.powerbasic.com/support/pbforums/showthread.php?t=59178
Forum: Source Code Apr 1st, 2015, 05:14 PM
Replies: 0
Views: 179
Posted By Mike Doty
Thread finished detection

The question was asked how to know what threads have finished.
Here are 5 ways using polling and non-polling.
Feel free to add more ways using source code.

Comments here:...
Forum: Programming Apr 1st, 2015, 03:13 PM
Replies: 22
Views: 503
Posted By Mike Doty
hThread4 must be another global. Highly suggest...

hThread4 must be another global.
Highly suggest renaming globals with something like ghThread4.
hThread4 is not a buffer handle which I'm sure you know.


THREAD FUNCTiON
...
...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 06:26 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Copyright 1999-2011 PowerBASIC, Inc. All Rights Reserved.
Error in my_thread_global_end(): 1 threads didn't exit