Frederik wrote:
Well for myself I have no issues with the program, so i don't know where the mistakes could be.

What I meant with that i don't use the libraries directly is that I don't know API and stuff like that yet; I just use the ICE commands:

Code:
CloseAll()
OpenVar(PRGMNAME,"w",TYPE) //slot is 1
Write(DATA,SIZE,1,1)
SetArchiveSatus(1,1)


That is incorrect. OpenVar returns an opaque handle that should be passed to other functions: you cannot just use the value of '1' as the internals of the library may change at any point, causing your code to crash immediately. Additionally, you need to verify that the return of OpenVar is not zero, as 0 means it failed to open.
Thank you, I want to rewrite folders now and I have three questions.
Does anyone know how to execute code from an appvar in ICE?
Until now the packed folder stores the data in itself (in the program), would you store it somwhere else for example in an appvar?
Can I get the name of the program I'm executing?
I found a strange bug:
This just archives A but not B
Code:
iB
CloseAll()
Open("FOLDERS","r")→F
OpenVar("B","w",6)→B
OpenVar ("A","w",5)→A
SetArchiveSatus (1,A)
SetArchiveSatus (1,B)


But this works well?!?

Code:
iB
CloseAll()
OpenVar("B","w",6)→B
Open("FOLDERS","r")→F
OpenVar ("A","w",5)→A
SetArchiveSatus (1,A)
SetArchiveSatus (1,B)


Does anyone know why this happens?
The new version is uploaded. I hope it works now.
how do i make a new folder
Isaiah_Idiot wrote:
how do i make a new folder

Its in the file archive page
here is a direct link to the GIF: https://www.cemetech.net/media/archives/screenshots/2022/06/Demo_cesium_TJUOU5x.png
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 3 of 3
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement