splendid, thank you very much for your answers. I thought it would be simpler, but it wasn't. I tell you why. Yesterday I downloaded the code in this topic, https://users.freebasic-portal.de/mod/download/MD5Checksum.zip and all hashing functions work with string. I am thinking of using those functio...
Hi mates, good morning. Please, I'm trying to make my code written in FB work in c++, but everything was fine, until I got the following question. If I have a function in a lib or dll that returns a string in FB, how can I execute it in my C++ or C code? example: function hello() as string dim text ...
Without having tested it, translated to the best of my knowledge: #Inclib "jfwapi" #Ifndef JFWAPI_H_INCLUDED #define JFWAPI_H_INCLUDED #Ifndef JFWAPI #define JFWAPI __declspec(dllimport) #EndIf Extern "c" Declare Sub JFWRunScript (ByVal lpszScriptName As ZString Ptr) Declare Fun...
Hello colleagues, good morning. I'm here today to ask for your help with a small translation of a C header, an interface for the JAWS screen reader. there are two or three functions, one to pass it a string to make it talk, and the other to make it crash. I was reading the wiki on how to translate C...
Hello partners. I'm here today to ask you about UDTS pointers, which I've already read a lot about, I've tried a lot but it doesn't work for me. remember my UDT sounds? Type sonidos Dim As Byte Ptr memoria dim buffer as sfSoundBuffer ptr dim sonido as sfSound ptr End Type what I am looking for, is t...
Hello colleagues, good morning. In the development of my little audio game, I noticed a small detail that I didn't know how to answer. My executable combining sdl and csfml audio 2, is 51 KB, (52224 bits), and as I add more code and function calls and all that, when I check how the size has changed,...
Hi, I have never worked with csfml and the code below is untested (probably does not even compile), but: There are apparently 2 two things to keep track of: A buffer and a sound object. A freebasic cannot return 2 values like e.g. python in the form a, b = return_multiple() So a way to do it is to ...
Hello colleagues, good morning. I need your help to solve this little question with my code. I am using csfml, the version 2 that was shared here, and I am trying to simplify my code to load the audios from files, with a function. This is what I came up with. In the sound.bi file: Function cargar ( ...
Hello colleagues,. Please, I continue with the development of my audio game, and now it is time for the keystrokes. I am using the old version of SDL, and its handling of keyboard events. Although I can code everything well, I need the keys to have different durations, but to be able to do multiple ...
@maurosebastian91 Even at 1MB of data we are only talking about 4.5 milliseconds for 32-bit. I am getting old and impatient, but I reckon I could wait that long. https://deltarho.org.uk/Downloads/smile.png I don't have the PCG32II.BAS file, should it be in the include folder? I wanted to avoid bein...
Instead of populating a string, I thought about populating an array. #include "PCG32II.bas" Sub EncDecFile( a() As Byte, ByVal flag As Long ) ' flag = 1 for encryption, = -1 for decryption or vice versa Dim As Long i, temp pcg.MyRandomize( Ubound(a), Ubound(a) ) 'For j As Long = 1 To 3 ' ...