Recent

Author Topic: data2pas 0.4.0 released  (Read 13577 times)

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: data2pas 0.4.0 released
« Reply #15 on: May 29, 2014, 05:15:03 pm »
Nice... but I'll give it a pass - manually copying works for me with about 3 repos and a file that changes infrequently...
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

CaptBill

  • Sr. Member
  • ****
  • Posts: 435
Re: data2pas 0.4.0 released
« Reply #16 on: May 29, 2014, 05:54:58 pm »
Hi Yamer,
Do you or anyone know all the steps to embed executables, so we can 'wrap' a program and add a layer of features?

I want to do this for a microcontroller bootloader/rom flasher utility app called 'bossac', if possible.

I found:
http://forum.lazarus.freepascal.org/index.php/topic,8730.msg42197.html#msg42197

Is it that simple?

Thanks

yamer

  • Jr. Member
  • **
  • Posts: 87
Re: data2pas 0.4.0 released
« Reply #17 on: May 29, 2014, 07:17:58 pm »
Do you or anyone know all the steps to embed executables, so we can 'wrap' a program and add a layer of features?

With my data2pas program you can embed any data you want in a pascal program. It should work with a dynamic library or un object file. But the problem is to run the embeded code. This is probably very system dependant and I have no idea on how to do that.   

CaptBill

  • Sr. Member
  • ****
  • Posts: 435
Re: data2pas 0.4.0 released
« Reply #18 on: May 29, 2014, 07:36:41 pm »
Hi Yamer,
As a matter of fact, data2pas would be good to do what I want with bossac: copy it to a directory and process files there with one click. Could I make a feature request to simply process all found files in a directory?

That way you can work on graphics for skinning type stuff and copy data2pas to the directory and double click and process all found files.

Thanks,
Bill

yamer

  • Jr. Member
  • **
  • Posts: 87
Re: data2pas 0.4.0 released
« Reply #19 on: May 29, 2014, 11:36:09 pm »
As a matter of fact, data2pas would be good to do what I want with bossac: copy it to a directory and process files there with one click. Could I make a feature request to simply process all found files in a directory?
I see no reason to add such a feature. You can already do this with a script.

Code: [Select]
data2pas *.d2t

Unfortunately it will not work under Windows. But I have already corrected that and I will soon release a new version.

Roland57

  • Sr. Member
  • ****
  • Posts: 423
    • msegui.net
Re: data2pas 0.4.0 released
« Reply #20 on: May 30, 2014, 02:15:38 pm »
Nice program! I compiled it and executed it successfully under Windows 8.1.
My projects are on Gitlab and on Codeberg.

yamer

  • Jr. Member
  • **
  • Posts: 87
Re: data2pas 0.4.0 released
« Reply #21 on: May 31, 2014, 08:33:29 am »

vfclists

  • Hero Member
  • *****
  • Posts: 1013
    • HowTos Considered Harmful?
Re: data2pas 0.4.0 released
« Reply #22 on: June 24, 2014, 11:52:44 am »
According to the data2pas docs integer constants are limited from 0 - 255. Is there some reason why?

Quote
Integer constants are limited in the range [0..255]. Like in pascal they can be written in decimal format, hexadecimal format (with $), octal format (with &) and binary format (with %).
Lazarus 3.0/FPC 3.2.2

yamer

  • Jr. Member
  • **
  • Posts: 87
Re: data2pas 0.4.0 released
« Reply #23 on: June 24, 2014, 02:22:31 pm »
According to the data2pas docs integer constants are limited from 0 - 255. Is there some reason Why?

Yes. Data generated by data2pas can be : strings, arrays of char, arrays of byte. For these 3 types, the smallest element is in range [0..255].


vfclists

  • Hero Member
  • *****
  • Posts: 1013
    • HowTos Considered Harmful?
Re: data2pas 0.4.0 released
« Reply #24 on: June 24, 2014, 05:00:01 pm »
According to the data2pas docs integer constants are limited from 0 - 255. Is there some reason Why?

Yes. Data generated by data2pas can be : strings, arrays of char, arrays of byte. For these 3 types, the smallest element is in range [0..255].

Thinking of it that makes sense, as data2pas is for encoding strings and binary data which are 8-bit character or byte based types.
Lazarus 3.0/FPC 3.2.2

 

TinyPortal © 2005-2018