Vortigano
DIV Regular
Posts: 237
Registered: 12-1-2017
Location: Ciudad de Buenos Aires, Argentina
Member Is Offline
|
|
time dll proyect
Hi, this is my work, dll, source, doc, examples. I hope someone would find this useful to control the time from divdx.
---------------------------------------------------------------
Hola, así va mi trabajo, dll, fuente, doc, ejemplos. Espero que alguien pueda encontrarlo útil para controlar el tiempo desde divdx.
Saludos, Vortigano.
zip-sha256 41413070eb0f27b2c65ee655353075a73920606338d1f70d3607ab1317b83043
Attachment: divdx_time_dll_002.zip (100kB) This file has been downloaded 973 times
[Edited on 16-11-2018 by Vortigano]
|
|
Vortigano
DIV Regular
Posts: 237
Registered: 12-1-2017
Location: Ciudad de Buenos Aires, Argentina
Member Is Offline
|
|
*time dll project
Code: |
get_time_str(str_argument, size_of_string_to_print_time, string_to_print_time);
returns: If the resulting string in less than size_of_string_to_print_time
(which includes the terminating null-character), the total number of characters
copied to "string_to_print_time" (not including the terminating null-character)
is returned, otherwise it returns 0.
If str_argument is void "" , get_time_str returns -1
Example program:
program example:
import "test2.dll"
private
string system_time;
begin
get_time_str( "The time is %x - %I:%M%p",255,system_time);
write(0,160,100,4,system_time);
while (!key(_esc))
frame;
end
end |
Attachment: some_information.txt (645B) This file has been downloaded 949 times
[Edited on 31-10-2018 by Vortigano]
I changed the <,> symbols to "," because div only works with
import "...";
[Edited on 9-5-2019 by Vortigano]
|
|
MikeDX
|
|
Very nice indeed. Great example of a DLL extension.
If it's ok with you I will add this to the main div code. Actually, if you are feeling up to it, you can add this to the main div source on github and
send a pull request. We already have dll and example program files in the source tree.
|
|
Vortigano
DIV Regular
Posts: 237
Registered: 12-1-2017
Location: Ciudad de Buenos Aires, Argentina
Member Is Offline
|
|
Thank you very much, it would be great if this contribution is part of div. Still, I would like to continue adding other functions to the library,
plus I would like to add some protection against errors because I would like it to be as immune as possible to errors without overloading the process
speed. Also, I would like to use function macros for the library in the near future.
For now I dont know how to use github, so if you have time you can do it, thanks.
Un saludo muy grande!
Vortigano.
|
|
CicTec
DIV Pro
Posts: 471
Registered: 6-8-2016
Member Is Offline
|
|
Hi Vortigano
Good job, I have not yet had time to try the code that you've gone through, I hope to do it this weekend, if you have any questions or problems, as
you always know where to find me , keep it up and thanks for the contribution.
------------------------------------------------------------------------------------------------------------------------------------------------------
---
Hola Vortigano,
Buen trabajo, aun no he tenido tiempo de probar el codigo que ma has pasado, espero hacerlo este fin de semana, si tienes alguna duda o problema, como
siempre sabe donde encontrarme , sigue asi y gracias por el aporte.
|
|
Vortigano
DIV Regular
Posts: 237
Registered: 12-1-2017
Location: Ciudad de Buenos Aires, Argentina
Member Is Offline
|
|
Muchas gracias Cictec, sigo trabajando, paso a paso como me aconsejaste siempre. Saludos
|
|
MikeDX
|
|
Cictec can you message me when you have time please?
|
|
CicTec
DIV Pro
Posts: 471
Registered: 6-8-2016
Member Is Offline
|
|
Hello Mike,
I have time today, i will message you on our contact on facebook.
|
|
MikeDX
|
|
Thank you
|
|
CicTec
DIV Pro
Posts: 471
Registered: 6-8-2016
Member Is Offline
|
|
You are welcome.
|
|
Vortigano
DIV Regular
Posts: 237
Registered: 12-1-2017
Location: Ciudad de Buenos Aires, Argentina
Member Is Offline
|
|
I have finished the library functions, I have tested them in several ways. I am writing the documentation and preparing some simple examples of each
function.
-------------------------------------------------------------------------------------------------------------------------------------------
Terminé las funciones de la biblioteca, las verifiqué de muchas maneras. Estoy escribiendo la documentación y preparando algunos ejemplos de cada
función.
Vortigano
|
|
MikeDX
|
|
Very nice. I am looking forward to seeing it!
|
|
CicTec
DIV Pro
Posts: 471
Registered: 6-8-2016
Member Is Offline
|
|
Congratulations for the creation of the library.
-----------------------------------------------------
Felicitaciones por la creación de la biblioteca.
|
|
Vortigano
DIV Regular
Posts: 237
Registered: 12-1-2017
Location: Ciudad de Buenos Aires, Argentina
Member Is Offline
|
|
He resubido mi trabajo / My work is updated.
http://div-arena.co.uk/forum2/viewthread.php?tid=332&got...
|
|