Search found 86 matches

by Golfy
Sun May 16, 2021 6:21 pm
Forum: Coding Questions
Topic: Trying 32 bits apps to access mariaDB database without success...
Replies: 1
Views: 750

Trying 32 bits apps to access mariaDB database without success...

Hi there,
I'm trying to access a remote mariadb database with this code (password is hidden but is ok) :
UseMySQLDatabase()

chrono$="2021-04-20 15:25:00"
capteur$="01-1"
temperature$="18.5"

idBDD = OpenDatabase(1, "host=192.168.168.248 port=3306 dbname=velbus", "Velbus", "******")
Debug idBDD
er ...
by Golfy
Sat Nov 24, 2018 4:06 pm
Forum: Feature Requests and Wishlists
Topic: Direct support for USB HID devices
Replies: 11
Views: 7374

Re: Direct support for USB HID devices

Is this request completed ? no way to know where it is ? it's 6 years ago...
by Golfy
Mon Jul 30, 2018 8:43 am
Forum: Coding Questions
Topic: [Resolved] Structure and list in structure
Replies: 5
Views: 4745

Re: [Resolved] Structure and list in structure

blueb wrote:Hi Golphy,
I'm not sure where your GPS data is derived from, but
couldn't FLOATS possibly create problems?

I'd be tempted to use doubles if any accuracy is needed.
Yes, you're right, it was a "virtual" example and I didin't look at real needed type. Thanks for the correction :)
by Golfy
Sat Jul 28, 2018 4:58 pm
Forum: Coding Questions
Topic: [Resolved] Structure and list in structure
Replies: 5
Views: 4745

Re: list in structure containing an structure

I've tried a example in side of my mainprogram. It works perfectly !!!

Here is my example
Structure GPS
x.f
y.f
a.f
EndStructure

Structure VILLE
villeName.s
List coordonnees.GPS()
EndStructure

NewList lesVilles.VILLE()

AddElement(lesvilles())
lesVilles()\villeName="Valence"
AddElement ...
by Golfy
Sat Jul 28, 2018 4:47 pm
Forum: Coding Questions
Topic: [Resolved] Structure and list in structure
Replies: 5
Views: 4745

Re: Structure and list or array in structure

But to be sure, is this code correct then ?
; No module. This message is the first. We've to create it !
AddElement(VMBModule())
VMBModule()\modClass = GetClassName(Octet(2))
VMBModule()\modPartNumber = GetPartNumber(Octet(2))
For t=0 To VMBModule()\modPartNumber-1
AddElement(VMBModule ...
by Golfy
Sat Jul 28, 2018 3:05 pm
Forum: Coding Questions
Topic: [Resolved] Structure and list in structure
Replies: 5
Views: 4745

[Resolved] Structure and list in structure

Hi everybody,

working on Velbus house automation, the object concept would have helped me but Purebasic isn't good at that.
I've module with attributes : class, address, type, NumberPart, and...
I've part with attributes : name, partID, status, etc.

My problem is that a kind of module have only ...
by Golfy
Sat Jul 28, 2018 2:39 pm
Forum: Feature Requests and Wishlists
Topic: IDE : Adding vue (see 2 codes at same time)
Replies: 12
Views: 3498

Re: IDE : Adding vue (see 2 codes at same time)

Thanks Josh and Mistrel but could you use PM messages to avoid flooding on my proposition ? you're each constructive but seems to have a different on the way to be helpful :wink:

@Marc56us thanks for the workaround but it would be better if not yellow or red backcolored. You're right with Notepad ...
by Golfy
Thu Jul 26, 2018 7:58 am
Forum: Feature Requests and Wishlists
Topic: IDE : Adding vue (see 2 codes at same time)
Replies: 12
Views: 3498

IDE : Adding vue (see 2 codes at same time)

I use many IDE (Visual Code Editor, Visual Studio, Bracket, Atom, CodeLobster and Notepad++ ) and there is a great function to see 2 codes, side-by-side.
It would be great if the Purebasic's IDE could manage a similar option. Maybe 2 windows, maybe a split windows, or anything else.

Many thanks ...
by Golfy
Wed Dec 20, 2017 10:28 pm
Forum: Feature Requests and Wishlists
Topic: PB 6.0 - ideas
Replies: 82
Views: 40913

Re: PB 6.0 - ideas

Wasn't here since long time.
I've to work with POO (computing teacher), so I know Java and C#. They're big differences between them and Purebasic. As Fred is mainly the major coder, it's hard to rivalize, however :
- A better Form Designer : align, autospace, grid, copy/past, etc
- A better Form ...
by Golfy
Tue Dec 19, 2017 10:42 pm
Forum: Coding Questions
Topic: D2XX by FTDI with Purebasic 5.60+
Replies: 13
Views: 3582

Re: D2XX by FTDI with Purebasic 5.60+

Yes, only one.
And yes again, the string permit to search for COM port by description.

I prefer to be structured with procedures. My upper code is only a linear draft.

Enum and some constantes have been prepared at the beginning of the code :
Enumeration
#FT_OK
#FT_INVALID_HANDLE
#FT_DEVICE ...
by Golfy
Tue Dec 19, 2017 10:07 pm
Forum: Coding Questions
Topic: D2XX by FTDI with Purebasic 5.60+
Replies: 13
Views: 3582

Re: D2XX by FTDI with Purebasic 5.60+

*yups* :cry:
Maybe I need a little bit more help. The following code isn't working.
Global.i FTD2xx_dll
#SPI_DLL_PATH$ = "c:\windows\system32\"
#SPI_DLL_FTD2XX$ = "ftd2xx.dll"
;;FTD2XX_APIFT_STATUS WINAPI FT_Open(int deviceNumber,FT_HANDLE *pHandle);
Prototype.l FT_Open(deviceNumber.l,*pHandle_l ...
by Golfy
Tue Dec 19, 2017 9:14 pm
Forum: Coding Questions
Topic: D2XX by FTDI with Purebasic 5.60+
Replies: 13
Views: 3582

Re: D2XX by FTDI with Purebasic 5.60+

Thanks for your explanations Skywalk : not totally clear but I've to apply if I want to understand, isn't it ? :D
Thanks for your example Helle : my project is a Teleinfo equipement with two way (need SetBitMode() to switch). Teleinfo is a protocol with powercounter from Enedis provider. :)
by Golfy
Tue Dec 19, 2017 6:18 pm
Forum: Coding Questions
Topic: D2XX by FTDI with Purebasic 5.60+
Replies: 13
Views: 3582

Re: D2XX by FTDI with Purebasic 5.60+

I hope my last question, because the following line disturb me :
Global FT_GetLibraryVersion.FT_GetLibraryVersion = GetFunction(FTD2xx_dll, "FT_GetLibraryVersion")
Why do you write twice time the same function "FT_GetLibraryVersion.FT_GetLibraryVersion" ? one is for prototype (the first or the ...
by Golfy
Tue Dec 19, 2017 5:33 pm
Forum: Coding Questions
Topic: D2XX by FTDI with Purebasic 5.60+
Replies: 13
Views: 3582

Re: D2XX by FTDI with Purebasic 5.60+

However, I'm not sure to be able to use this form :
1) I try to open the dll file ?
FTD2xx_dll = OpenLibrary(#PB_Any, #SPI_DLL_PATH$ + #SPI_DLL_FTD2XX$)
If FTD2xx_dll

2) I create all my functions needed ?
Prototype.l FT_Open(deviceNumber.l,*pHandle_l)
Global FT_Open.FT_Open = GetFunction(FTD2xx ...
by Golfy
Tue Dec 19, 2017 4:52 pm
Forum: Coding Questions
Topic: D2XX by FTDI with Purebasic 5.60+
Replies: 13
Views: 3582

Re: D2XX by FTDI with Purebasic 5.60+

Waouh, not the same job for me (and my level)... but thanks a lot a lot to have done a big part of the work)
Any idea why import and importC aren't working right ?