Search found 455 matches

by grindstone
Jul 21, 2018 20:32
Forum: Documentation
Topic: sub/function as datatype
Replies: 42
Views: 1073

Re: sub/function as datatype

I fully agree, this pleases all. :-)
by grindstone
Jul 21, 2018 19:58
Forum: Documentation
Topic: sub/function as datatype
Replies: 42
Views: 1073

Re: sub/function as datatype

fxm wrote:In your above example, 'parray()' is useless
Correct. :-)
by grindstone
Jul 21, 2018 19:21
Forum: Documentation
Topic: sub/function as datatype
Replies: 42
Views: 1073

Re: sub/function as datatype

@fxm: Please excuse my criticism, but IMHO the examples are much too complicated for only to explain the operating principle of a callback pointer. I'm afraid especially a beginner will be confused rather than enlightened. I guess the example you posted above (if slightly modified) would do the job ...
by grindstone
Jul 20, 2018 7:05
Forum: Community Discussion
Topic: Compiled reality
Replies: 20
Views: 594

Re: Compiled reality

deltarho[1859] wrote:Yep, we cannot "make a silk purse of a sow's ear".
Unless you accomplish to breed a silk sow. <grin>
by grindstone
Jul 16, 2018 9:13
Forum: Beginners
Topic: rs232 communication with microcontroller
Replies: 5
Views: 180

Re: rs232 communication with microcontroller

stacker wrote:But i think i need more help with fb :( :(
You're always welcome :-)
by grindstone
Jul 15, 2018 22:55
Forum: Beginners
Topic: rs232 communication with microcontroller
Replies: 5
Views: 180

Re: rs232 communication with microcontroller

In a trice: This snippet tests the port if connected to a loopback plug: ScreenRes 300,300,32 'Open Com "com4: 9600, N, 8, 1,cs0,ds0,cd0,rs" As #1 Open "c:\test.txt" For Binary As #1 Dim As String Puffer, Taste Do Taste = InKey If (Taste <> "") Then Put #1, , Taste End ...
by grindstone
Jul 15, 2018 22:40
Forum: Beginners
Topic: rs232 communication with microcontroller
Replies: 5
Views: 180

Re: rs232 communication with microcontroller

Hello stacker and welcome to the forum!

The serial port is accessed by OPEN COM.

If the µC provides a regular dataflow, you can communicate with it via the PRINT # and INPUT # statements.
by grindstone
Jul 11, 2018 21:24
Forum: Beginners
Topic: return array
Replies: 1
Views: 115

Re: return array

Code: Select all

Sub test(x As Integer, y As Integer, return_() As String)
   return_(0)=Str(x)
   return_(1)=Str(y)
End Sub

Dim return_(0 To 1) As String

test(1, 2, return_())
Print return_(0)
Print return_(1)

Sleep

The array has to be passed in the parameter list (arrays are always passed ByRef)
by grindstone
Jul 10, 2018 9:48
Forum: Beginners
Topic: Another program icon via command line
Replies: 66
Views: 1338

Re: Another program icon via command line

@newbieforever:
Only for me to know if I got you right: Your intention is that your launcher inherits the icon of the exe it launches. Correct?
by grindstone
Jul 09, 2018 23:10
Forum: Beginners
Topic: Another program icon via command line
Replies: 66
Views: 1338

Re: Another program icon via command line

newbieforever wrote:Tiny font means:
All these weird and wonderful nerds here make life difficult for the newbieforever with their childish quirks.
The nerd newbieforever has to take revenge somehow.

It's not a good idea to bully people you want to get help from.
by grindstone
Jul 08, 2018 22:34
Forum: Beginners
Topic: Another program icon via command line
Replies: 66
Views: 1338

Re: Another program icon via command line

To get the "file-association-icon", look at SHGetFileInfo https://docs.microsoft.com/de-de/windows/desktop/api/shellapi/nf-shellapi-shgetfileinfoa To get the default-Icon of the EXE, look at ExtractIconEx (index 0) https://docs.microsoft.com/de-de/windows/desktop/api/shellapi/nf-shellapi-e...
by grindstone
Jul 07, 2018 15:55
Forum: Beginners
Topic: Another program icon via command line
Replies: 66
Views: 1338

Re: Another program icon via command line

@newbieforever: It's not quite clear to me what you are intended to do: Do you want to manipulate an existing exe-file, or do you want to embed multiple icons in an exe-file compiled by yourself and then choose one of that icons at runtime? If the latter, maybe this could be helpful: https://msdn.mi...
by grindstone
May 22, 2018 12:29
Forum: General
Topic: What does imagedestroy do?
Replies: 24
Views: 698

Re: What does imagedestroy do?

sancho3 wrote:How about setting the imgA ptr contents (as integer) to 0 after imageDestroy and before assigning imgA = 0?
Noone ever suggested that FB is foolproof. If you intend to produce bugs, you will most likely accomplish it.

Go to advanced search