Thanks to all for the answers.
Regards,
Mark
Search found 5 matches
- Wed Apr 23, 2025 5:49 pm
- Forum: Coding Questions
- Topic: Syntax for accessing an element of a (pointer) array ?
- Replies: 6
- Views: 968
- Mon Apr 21, 2025 7:18 am
- Forum: Coding Questions
- Topic: Syntax for accessing an element of a (pointer) array ?
- Replies: 6
- Views: 968
Syntax for accessing an element of a (pointer) array ?
I have this:
Define *Buffer
*Buffer = AllocateMemory(100)
....
Result = ReadSerialPortData(1, *Buffer, Len)
I want to search for char 13, carriage return.
Problem: syntax for testing value of elements in the array.
While (*Buffer[Index] <> 13)
Index = Index + 1
...
Is it possible to access ...
Define *Buffer
*Buffer = AllocateMemory(100)
....
Result = ReadSerialPortData(1, *Buffer, Len)
I want to search for char 13, carriage return.
Problem: syntax for testing value of elements in the array.
While (*Buffer[Index] <> 13)
Index = Index + 1
...
Is it possible to access ...
- Fri Apr 18, 2025 4:57 pm
- Forum: Coding Questions
- Topic: Do tcp/ip sockets block my program ?
- Replies: 10
- Views: 443
Re: Do tcp/ip sockets block my program ?
I understand. But this target application is only displaying information. There is no user input.
Thanks for your advice.
BTW, is there a way to get rid of the pointervariable *buffer in ReceiveNetworkData(ClientID, *Buffer, 100)
I want to get the data immediately in the stringvariable Buf ...
Thanks for your advice.
BTW, is there a way to get rid of the pointervariable *buffer in ReceiveNetworkData(ClientID, *Buffer, 100)
I want to get the data immediately in the stringvariable Buf ...
- Fri Apr 18, 2025 4:22 pm
- Forum: Coding Questions
- Topic: Do tcp/ip sockets block my program ?
- Replies: 10
- Views: 443
Re: Do tcp/ip sockets block my program ?
Thanks for your help. I added 3 lines of coding after the SetGadgetText function:
Now it works good.
Code: Select all
Repeat
Event = WaitWindowEvent(1)
Until Event = #PB_Event_None
- Fri Apr 18, 2025 8:13 am
- Forum: Coding Questions
- Topic: Do tcp/ip sockets block my program ?
- Replies: 10
- Views: 443
Do tcp/ip sockets block my program ?
I just discovered Purebasic. I want to make a GUI, the data is coming from a C-program on Raspberry Pi via TCP.
My testprogram receives every second a character and should display it in a TexGadget.
Problem: then TextGadget and the Window are frozen as long as the Tcp-connection is open.
There is ...
My testprogram receives every second a character and should display it in a TexGadget.
Problem: then TextGadget and the Window are frozen as long as the Tcp-connection is open.
There is ...