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:
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.