PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2 3 ... 10
 1 
 on: Today at 03:33:49 PM 
Started by Dennis Allen - Last post by Josť Roca
It is part of my Windows headers package.

https://forum.powerbasic.com/forum/jose-s-corner/downloads/61213-windows-api-headers-iii-v-1-07

Link for the help file in post #5 of that thread.

 2 
 on: Today at 03:24:15 PM 
Started by Dennis Allen - Last post by Dennis Allen
Hi,
GraphCTX look like the way to go for me. Where does one get it?
Is there documentation?
I appreciate you fast response and help.
Ron

 3 
 on: Today at 02:44:19 PM 
Started by Dennis Allen - Last post by TechSupport
Maybe these two links may be of help for you?
http://www.planetsquires.com/protect/forum/index.php?topic=2134.msg16973#msg16973
http://www.planetsquires.com/protect/forum/index.php?topic=2300.msg17971#msg17971

 4 
 on: Today at 01:59:32 PM 
Started by Dennis Allen - Last post by Josť Roca
If you mean a PowerBASIC graphic control, then no. PB graphic control, and in general almost everything related with DDT, can't be used with SDK applications. Mr. Zale did choose to make DDT incompatible with SDK.

 5 
 on: Today at 01:55:18 PM 
Started by Robert Eaton - Last post by Josť Roca
> Knowing that using byref should be all I need to forward a pointer is a big help. (And much simpler.)

Passing a variable by reference is the same that passing a pointer to it by value.

Also be careful when translating a declare, because you haven't used neither BYVAL nor BYREF, and, in BASIC te default is BYREF, so you were passing all the values by reference. Therefore, when you passed ip_PC_ptr using your declare, you weren't passing a pointer to the ip_PC variable, but a pointer to the ip_PC_ptr variable. In your declare, you should have declared all the parameters BYVAL (which is the default for C).



 6 
 on: Today at 01:55:07 PM 
Started by Dennis Allen - Last post by Dennis Allen
Hi All,
I don't see where to post a question, so forgive me if this is in the wrong place.
Is it possible to place a graphic control on a Midi Client window?
I can't seem for the life of me to see how, I have looked all over.
Any help would be greatly appreciated.
Ron

 7 
 on: Today at 01:47:09 PM 
Started by Robert Eaton - Last post by Josť Roca
This one should be at least 13

Dim ip_Mach As StringZ * 13

In general, I would use 260, e.g. Dim ip_Mach As StringZ * 260, instead of having to count characters.

 8 
 on: Today at 01:28:30 PM 
Started by Robert Eaton - Last post by Robert Eaton
Thanks so much Jose for your input and clarity!
Knowing that using byref should be all I need to forward a pointer is a big help. (And much simpler.)
They did mention in an email that the dll was written in C.

Unfortunately it still doesn't work but it returns a different error (#71).

The documentation is confusing  (at least to me).
It originally was used with a second dll (gnet.dll). but they told me it was not longer needed because you easily find the IP on the turntable display.
The example C code (in another section of the doc) doesn't put any data in the  "vector" array but it seems like it would be needed so I added it.
(But why send the same IP addresses in two different variables?)

You can also control the turntable with raw UDP packets and they sent some info on that. I've never done that before either but I am going to give it a try.

Thanks,
Bob

 9 
 on: Today at 12:54:59 PM 
Started by Josť Roca - Last post by Richard Kelly
Thank you Jose. I'm always downloading the latest version, and, have not yet had any issues with the project I'm working on.

Rick

 10 
 on: Today at 12:22:46 AM 
Started by Robert Eaton - Last post by Josť Roca
Everything looks wrong and confusing (with so many xxx_ptr). Sorry.

This will be closer:

Code: [Select]
   Declare Function apri_macchina CDECL Lib "Basert.dll" Alias "apri_macchina" ( _
                BYREF socket As Byte, _
                BYREF socket_addr_in As BYTE, _
                BYREF Char_IP_PC As ASCIIZ, _
                BYREF Char_IP_OL As ASCIIZ, _
                BYVAL Porta As Word, _
                BYREF Char_Desc As ASCIIZ, _
                BYREF Stato As Long, _
                BYREF Char_Vector As Byte, _
                BYREF DHCP As Long ) As Long

Dim b?, x&

Dim stato As Long     
Dim Result As Long
Dim socketA(1 TO 32) As Byte
Dim saA(1 TO 32) As Byte

Dim ip_PC As StringZ * 12
ip_PC = "192.168.1.1"
Dim ip_Mach As StringZ * 12
ip_Mach = "192.168.1.34"

Dim desc As StringZ * 10
desc = "Basert"
 
Dim porta As Word   
porta = 6668

Dim dhcp As Long
dhcp = 1

Data 255, 255, 255, 0, 192, 168, 1, 250, &h12, &h34, &h45, &h78, &h9A, &hCD, 192, 168, 1, 1, 192, 168, 1, 34

Dim vector(1 To 23) As Byte
' // 23 (?) - you're filling 22
For x = 1 To 23
    b? = Val(Read$(x))
    vector(x)  = b?
Next

result = apri_macchina (socketA(1), _
                        saA(1), _
                        ip_PC, _
                        ip_Mach, _
                        porta, _
                        desc, _
                        stato, _
                        vector(1), _
                        dhcp)

? Str$(result)

If it is a C dll, it probably will use the CDECL convention, but you should check it in the documentation.

Pages: [1] 2 3 ... 10