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, 08:55 AM
Replies: 9
Views: 184
Posted By Mike Doty
My original tests did return values, should have...

My original tests did return values, should have posted that.
Anyway, BYREF also receives run-time error 5 in VB6 after returning.

Only correct way found: sReturn$ = Test(sPass$)

These produce...
Forum: Programming Yesterday, 03:31 PM
Replies: 9
Views: 184
Posted By Mike Doty
All calls are BYVAL not BYREF. Without using...

All calls are BYVAL not BYREF.
Without using the return value error 5.
Using "CALL" or () does not avoid it.
Private Declare Function TEST Lib "string.dll" (ByVal s As String) As String
Forum: Programming Yesterday, 11:33 AM
Replies: 9
Views: 184
Posted By Mike Doty
Michael, yes SUB works. Returning a LONG to VB6...

Michael, yes SUB works.
Returning a LONG to VB6 without using it in VB6 also works without a problem (at least no error immediately, detected.)
PB6: FUNCTION TEST (z AS ASCIIZ) EXPORT AS LONG
...
Forum: Programming Sep 2nd, 2015, 11:44 PM
Replies: 9
Views: 184
Posted By Mike Doty
Already did, above. TEST "Two" 'cause...

Already did, above.
TEST "Two" 'cause error
Forum: Programming Sep 2nd, 2015, 11:24 PM
Replies: 9
Views: 184
Posted By Mike Doty
It appears s$ = Test("something") syntax should...

It appears s$ = Test("something") syntax should always be used with VB6 to avoid an error?
I don't have that many VB6 programs, but I'll have to go back and look at them.
Forum: Programming Sep 2nd, 2015, 11:11 PM
Replies: 9
Views: 184
Posted By Mike Doty
VB6 return function value must be used to prevent error?

VB6 produces an error if return value of function is not specified.
Example: Test "something" instead of s = Test("something")

PB doesn't require using the return value of a function.
Is this a...
Forum: Programming Sep 2nd, 2015, 02:39 PM
Replies: 32
Views: 481
Posted By Mike Doty
Calling from VB6: Call MySub(s as string)...

Calling from VB6:
Call MySub(s as string) 'nothing needs to be done in PowerBASIC
Call MySub(BYVAL s as string) 'the functions are necessary to get the correct value in VB6.

This method...
Forum: Programming Sep 2nd, 2015, 11:47 AM
Replies: 32
Views: 481
Posted By Mike Doty
Both functions work as expected. Please...

Both functions work as expected.
Please remember VB6 BYVAL STRING is ASCIIZ in PowerBASIC.

When caller is VB6 and BYVAL(s) is needed in PowerBASIC and VB6.

#EXPORT PB1,PB2
#COMPILE DLL
...
Forum: Programming Aug 31st, 2015, 12:42 PM
Replies: 32
Views: 481
Posted By Mike Doty
If function could be called from VB6 and PB needs...

If function could be called from VB6 and PB needs BYVAL. Chris Nichols post #36 http://www.powerbasic.com/support/pbforums/showthread.php?t=38894

#COMPILE DLL
SUB PBFUNCTION (BYVAL commandout AS...
Forum: Programming Aug 31st, 2015, 12:39 AM
Replies: 32
Views: 481
Posted By Mike Doty
Here is an example with VB6 to avoid crashes...

Here is an example with VB6 to avoid crashes using threads.

http://www.powerbasic.com/support/pbforums/showthread.php?t=41675
Forum: PowerBASIC for Windows Aug 28th, 2015, 09:15 PM
Replies: 24
Views: 544
Posted By Mike Doty
Might try advanced search for AES in source code...

Might try advanced search for AES in source code forum which gives a page full of links.
Forum: PowerBASIC for Windows Aug 28th, 2015, 04:38 PM
Replies: 24
Views: 544
Posted By Mike Doty
These might help: ...

These might help:
http://www.powerbasic.com/support/pbforums/search.php?searchid=7887

http://www.devotechs.com/DeepCoderMain.html
Forum: Cafe PowerBASIC Aug 26th, 2015, 04:31 AM
Replies: 23
Views: 782
Posted By Mike Doty
Wayne, Those are tremendous speeds as of this...

Wayne,
Those are tremendous speeds as of this writing.
Those drives are $449.99 with 480GB on Amazon.
The smaller M.2. half-height 240GB are $239.99 and full height $219.99.
The 240GB are rated...
Forum: PowerBASIC for DOS Aug 22nd, 2015, 02:47 PM
Replies: 1
Views: 311
Posted By Mike Doty
Run as Administrator and in options tab Quick...

Run as Administrator and in options tab Quick Edit Mode must be unchecked.
Logitech mouse would not work with Quick Edit Mode.
Program is started with a batch file so this might not apply to some....
Forum: Programming Aug 21st, 2015, 03:51 PM
Replies: 7
Views: 280
Posted By Mike Doty
Drop/reorder columns discussion SQLitening

http://www.powerbasic.com/support/pbforums/showthread.php?t=59714
Forum: Programming Aug 21st, 2015, 03:48 PM
Replies: 37
Views: 1,112
Posted By Mike Doty
Different subject so started a new thread in...

Different subject so started a new thread in source code.
Drop columns or change order of columns in SQLitening:
http://www.powerbasic.com/support/pbforums/showthread.php?t=59714
Forum: Source Code Aug 21st, 2015, 03:45 PM
Replies: 0
Views: 267
Posted By Mike Doty
Drop columns - SQLitening

FUNCTION Restructure(sNewCreateStatement AS STRING) AS LONG

LOCAL startpos,endpos AS LONG
LOCAL sTableName,sColumnsToKeep AS STRING

startpos = INSTR(LCASE$(sNewCreateStatement),"table...
Forum: PowerBASIC for DOS Aug 20th, 2015, 10:17 AM
Replies: 1
Views: 311
Posted By Mike Doty
16-bit compatibility Windows 10 32-bit

Finally got 16-bit programs to work by not checking Run as Administator.
The "Use Legacy Console" check box now works.
Have everything working except Logitech M185 mouse support within 16-bit...
Forum: Programming Aug 19th, 2015, 01:55 AM
Replies: 4
Views: 180
Posted By Mike Doty
Message only windows are explained in the echo...

Message only windows are explained in the echo client examples.
http://www.powerbasic.com/support/pbforums/showthread.php?t=41648
Forum: Programming Aug 18th, 2015, 11:41 PM
Replies: 2
Views: 206
Posted By Mike Doty
TCP OPEN TIMEOUT is for amount of time to wait...

TCP OPEN TIMEOUT is for amount of time to wait for send/receives.
This code quickly checks if port is open before optionally connecting.


#DIM ALL
REM %USE_JOSE_ROCA_INCLUDE_FILES=1
'
TYPE...
Forum: Programming Aug 18th, 2015, 07:29 PM
Replies: 15
Views: 478
Posted By Mike Doty
Ok. This was about shelling to avoid...

Ok.
This was about shelling to avoid threading.
Make functions threadsafe if global or static variables are used.
Forum: Programming Aug 18th, 2015, 06:21 PM
Replies: 15
Views: 478
Posted By Mike Doty
http:/www.powerbasic.com/support/pbforums/showthre...

http:/www.powerbasic.com/support/pbforums/showthread.php?t=39418 (http://www.powerbasic.com/support/pbforums/showthread.php?t=39418)
There are many reasons to use threads, but writing small programs...
Forum: Programming the Internet Aug 14th, 2015, 02:26 PM
Replies: 7
Views: 658
Posted By Mike Doty
The code I posted was everything in one large...

The code I posted was everything in one large file, but so much code made it look complicated.
Here is the basic code summarized.

GLOBAL gMainSock(),gSock(),gThread(),gThreadRunning(),gActive AS...
Forum: Programming the Internet Aug 13th, 2015, 11:44 PM
Replies: 7
Views: 658
Posted By Mike Doty
#PBFORMS CREATED V1.51 'Original code with...

#PBFORMS CREATED V1.51
'Original code with include files at http://www.greatwebdivide.com/files/rserver2.zip
'
' rserver.bas
'
' multi-threaded, multi-homed, tcp-based, remote binary data...
Forum: Programming Aug 12th, 2015, 11:03 AM
Replies: 8
Views: 387
Posted By Mike Doty
If no recursion the entire sub/function can also...

If no recursion the entire sub/function can also be protected this way.

GLOBAL gs AS STRING, gCounter AS LONG

FUNCTION PBMAIN () AS LONG
LOCAL x, hThread AS LONG
FOR x=1 TO 10
...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 09:07 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