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 Today, 02:45 AM
Replies: 4
Views: 147
Posted By Mike Doty
Thanks, Michael. It is easier and more flexible...

Thanks, Michael.
It is easier and more flexible that way.

$d=$SPC 'sort delimiter
#INCLUDE "win32api.inc"
'
FUNCTION PBMAIN () AS LONG
LOCAL hThread AS LONG, s AS STRING
s = "e c a b o d...
Forum: Programming Yesterday, 12:36 PM
Replies: 4
Views: 147
Posted By Mike Doty
'Pass dynamic string array to thread function ...

'Pass dynamic string array to thread function
#DIM ALL
#INCLUDE "win32api.inc"

TYPE arrType
FirstElementAddress AS DWORD
DescriptorAddress AS DWORD'not needed, but passed
lbound ...
Forum: Programming Mar 29th, 2015, 11:41 AM
Replies: 4
Views: 147
Posted By Mike Doty
Pass dynamic string array to thread function

This gets the dimensions of an array in the thread function
by passing the array descriptor. How do I pass the dynamic
string array to the thread function using first element? DIM AT?
Create a...
Forum: Programming Mar 28th, 2015, 10:55 AM
Replies: 5
Views: 211
Posted By Mike Doty
DIALOG SHOW MODELESS hDlg ,CALL MyCallBack TO Rslt

DIALOG SHOW MODELESS hDlg ,CALL MyCallBack TO Rslt
Forum: PowerBASIC for Windows Mar 28th, 2015, 03:48 AM
Replies: 16
Views: 654
Posted By Mike Doty
No blocking needed using unique global array elements for each thread

%Threads = 20
%Label = 1000
TYPE GlobalStructure
h AS LONG
progress AS LONG
END TYPE
GLOBAL g() AS GlobalStructure...
Forum: PowerBASIC for Windows Mar 27th, 2015, 10:53 AM
Replies: 47
Views: 1,322
Posted By Mike Doty
Good point, where is error 70 returned (with the...

Good point, where is error 70 returned (with the code below) or are you referring to other code that is not posted?
Sorry, I am not a linguine. :cool: Modifed 3/27/15 11:00 AM CST per suggestion...
Forum: PowerBASIC for Windows Mar 27th, 2015, 09:03 AM
Replies: 47
Views: 1,322
Posted By Mike Doty
Note: He can share the data files, but not the...

Note: He can share the data files, but not the exe files.


Post #7
Server is an XP-Pro workstation sharing the drive from which the .EXE is being run and it has 3 other similar boxes...
Forum: PowerBASIC for Windows Mar 27th, 2015, 08:57 AM
Replies: 47
Views: 1,322
Posted By Mike Doty
I wouldn't check programs if a MSGBOX program is...

I wouldn't check programs if a MSGBOX program is being blocked.
Sounds like sharing is off or some permission is blocking.
Hopefulfully his installation is unblocking downloaded programs?
If not,...
Forum: PowerBASIC for Windows Mar 27th, 2015, 08:38 AM
Replies: 47
Views: 1,322
Posted By Mike Doty
Are you using simple file sharing? ...

Are you using simple file sharing?
http://www.home-network-help.com/file-sharing-in-windows-7.html
Forum: PowerBASIC for Windows Mar 27th, 2015, 08:22 AM
Replies: 47
Views: 1,322
Posted By Mike Doty
Try opening task manager and see all the...

Try opening task manager and see all the test12345.EXE stack up.

FUNCTION PBMAIN AS LONG 'test12345.bas
LOCAL result AS LONG
DO
result = MSGBOX("Run again?",%MB_OKCANCEL,EXE.FULL$)
...
Forum: PowerBASIC for Windows Mar 27th, 2015, 07:58 AM
Replies: 47
Views: 1,322
Posted By Mike Doty
A program as simple as MSGBOX "WAIT" will run on...

A program as simple as MSGBOX "WAIT" will run on any shared windows
network I have used by multiple users.
Somebody else will have to step in. I am going to create a little test
program. ...
Forum: PowerBASIC for Windows Mar 26th, 2015, 10:43 PM
Replies: 3
Views: 268
Posted By Mike Doty
This one runs a PowerBASIC dialog in a background...

This one runs a PowerBASIC dialog in a background thread.
It checks for threadcount = 1 in VB6 before ending to avoid crash.
This gets around the 32,767 index limit in a VB6 listbox.

#DIM ALL...
Forum: PowerBASIC for Windows Mar 26th, 2015, 09:02 PM
Replies: 3
Views: 268
Posted By Mike Doty
You do not need to convert anything passing data....

You do not need to convert anything passing data.
If you prefer 0 based array use DIM StringArray(0 TO NumberOfElements-1) AS STRING
Could pass a safearray, but this method is very simple using...
Forum: Programming with Objects Mar 26th, 2015, 08:02 AM
Replies: 11
Views: 588
Posted By Mike Doty
Have you tried the above example?

Have you tried the above example?
Forum: Programming with Objects Mar 25th, 2015, 07:56 PM
Replies: 11
Views: 588
Posted By Mike Doty
Can you try this?

Here is an example from Jose Roca. mscomctl2.ocx must be in current folder or the path.

You mentioned having problems with other examples and wondered if you checked that the ocx is found?

Can...
Forum: Dynamic Dialog Tools (DDT) Mar 25th, 2015, 02:09 PM
Replies: 10
Views: 1,340
Posted By Mike Doty
Post is also safer with threads which wait for a...

Post is also safer with threads which wait for a return from a send.

Michael's method may work with SDK, but not DDT.
Another demonstration of why dialog end cb.hnld should be sent from custom...
Forum: Dynamic Dialog Tools (DDT) Mar 24th, 2015, 11:10 AM
Replies: 10
Views: 1,340
Posted By Mike Doty
You have demonstrated recipe for disaster

Dialog END CB.HNDL 'cause GPF from %WM_CLOSE

CALLBACK FUNCTION ShowDIALOG1Proc()
SELECT CASE AS LONG CB.MSG
CASE %WM_DESTROY
? "%WM_DESTROY"
CASE %WM_CLOSE
DIALOG END...
Forum: Dynamic Dialog Tools (DDT) Mar 24th, 2015, 05:03 AM
Replies: 10
Views: 1,340
Posted By Mike Doty
Custom message is needed

1 beep sounds if %wm_close is received
2 msgbox displays %wm_destroy if %wm_destroy is received
3 Thread is also tested if you wait 10-seconds

%wm_destroy is not called unless using a custom...
Forum: Cafe PowerBASIC Mar 23rd, 2015, 05:13 PM
Replies: 9
Views: 508
Posted By Mike Doty
SecureBoot (tm)

In the user comments it is mentioned Microsoft may allow it, but it can be changed in the bios.
Forum: Programming with Objects Mar 23rd, 2015, 04:30 PM
Replies: 11
Views: 588
Posted By Mike Doty
Perfect Sync Graphic Tools have been retired. ...

Perfect Sync Graphic Tools have been retired.
If you want to use the Jose Roca includes please pick one of the many demos.
If you have trouble with a demo please post which one.
Forum: PowerBASIC for Windows Mar 18th, 2015, 09:27 AM
Replies: 16
Views: 654
Posted By Mike Doty
No sendmessage, postmessage or synchronizing

Progress of each thread with no SendMessage or PostMessage using a timer and global array
Could have created a listbox in another thread and done the same thing.

#PBFORMS CREATED V2.01...
Forum: PowerBASIC for Windows Mar 17th, 2015, 05:06 PM
Replies: 16
Views: 654
Posted By Mike Doty
See Chris Boss post #19 ...

See Chris Boss post #19
http://www.powerbasic.com/support/pbforums/showthread.php?t=49112
Forum: Dynamic Dialog Tools (DDT) Mar 16th, 2015, 07:31 PM
Replies: 9
Views: 433
Posted By Mike Doty
Similar question: ...

Similar question:
http://www.powerbasic.com/support/pbforums/showthread.php?t=58170
Forum: Dynamic Dialog Tools (DDT) Mar 16th, 2015, 04:39 PM
Replies: 9
Views: 433
Posted By Mike Doty
ShowCursor or MousePtr? ...

ShowCursor or MousePtr?
http://www.powerbasic.com/support/pbforums/showthread.php?t=50169
Forum: PowerBASIC for Windows Mar 16th, 2015, 04:16 PM
Replies: 8
Views: 279
Posted By Mike Doty
Not enough code to test. Have you tried using...

Not enough code to test.
Have you tried using ERL?


FUNCTION PBMAIN () AS LONG
10 LOCAL hfile AS LONG
20 ON ERROR GOTO 62605
30 OPEN "junks.txt" FOR BINARY AS #1
40 LOCAL ERRLOOPS AS...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 08:34 AM.


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