Vorheriges Thema anzeigen :: Nächstes Thema anzeigen |
Autor |
Nachricht |
Otacom
Anmeldungsdatum: 18.06.2006 Beiträge: 45
|
Verfasst am: 22.06.2006, 19:58 Titel: Aklib 1.5 CHAIN Problem |
|
|
I have created 2 files. In the first file i have write:
Code: |
CALL XSCREEN (&H111)
CALL SET.PICTURE (0, 0, "C:\WINDOWS\TEMP\WORLD.BMP")
DO
LOOP WHILE INKEy$=""
CHAIN "C:\WINDOWS\TEMP\BEGIN.BAS"
|
in the second file i have write:
Code: |
CALL XSCREEN (&H111)
CALL SET.PICTURE (0, 0, "C:\WINDOWS\TEMP\END.BMP")
|
>My problem is, in the second file, "CALL XSCREEN" is in error... |
|
Nach oben |
|
 |
A.K.

Anmeldungsdatum: 02.05.2005 Beiträge: 467 Wohnort: HH
|
Verfasst am: 22.06.2006, 20:30 Titel: |
|
|
Hi,
in the second file, which error is reported? Can you post the error-message?
WFG A.K. _________________
http://forum.IconSoft.de
http://www.pnpbb.de - hol dir jetzt dein eigenes kostenloses Forum *NEU* |
|
Nach oben |
|
 |
jb

Anmeldungsdatum: 14.01.2005 Beiträge: 2010
|
Verfasst am: 22.06.2006, 20:31 Titel: |
|
|
Why do you call the XSCREEN-Function twice? I think one will do, too....
jb _________________ Elektronik und Programmieren |
|
Nach oben |
|
 |
A.K.

Anmeldungsdatum: 02.05.2005 Beiträge: 467 Wohnort: HH
|
Verfasst am: 22.06.2006, 20:38 Titel: |
|
|
the second XSCREEN-call in the second file is necessary.
At the Chain-Command, QB erase all existings variables; but XSCREEN is dependent on initial-vars otherwise the graphic-routines don't work.
WFG A.K. _________________
http://forum.IconSoft.de
http://www.pnpbb.de - hol dir jetzt dein eigenes kostenloses Forum *NEU* |
|
Nach oben |
|
 |
jb

Anmeldungsdatum: 14.01.2005 Beiträge: 2010
|
Verfasst am: 22.06.2006, 20:41 Titel: |
|
|
Well, I assumed AKLIB uses sort of COMMON SHARED variables...
jb _________________ Elektronik und Programmieren |
|
Nach oben |
|
 |
Otacom
Anmeldungsdatum: 18.06.2006 Beiträge: 45
|
Verfasst am: 22.06.2006, 21:31 Titel: |
|
|
I have not understood, me fairies an example??  |
|
Nach oben |
|
 |
A.K.

Anmeldungsdatum: 02.05.2005 Beiträge: 467 Wohnort: HH
|
Verfasst am: 22.06.2006, 22:04 Titel: |
|
|
fairies? Zitat: | dict.cc translated that with "Elfen"? |
Can you post an error-message from your program when the error raised? You can ignore the posts after the startthread. These posts are general topic to the ak-lib.
WFG A.K. _________________
http://forum.IconSoft.de
http://www.pnpbb.de - hol dir jetzt dein eigenes kostenloses Forum *NEU* |
|
Nach oben |
|
 |
Otacom
Anmeldungsdatum: 18.06.2006 Beiträge: 45
|
Verfasst am: 23.06.2006, 17:37 Titel: |
|
|
Excuse me, but i want an example... |
|
Nach oben |
|
 |
Otacom
Anmeldungsdatum: 18.06.2006 Beiträge: 45
|
Verfasst am: 23.06.2006, 17:54 Titel: |
|
|
The Error in qbasic is:
Zitat: |
Illegal function call
In Quick library module: AK15NK
At offset: A292 ERL: 13600
|
|
|
Nach oben |
|
 |
A.K.

Anmeldungsdatum: 02.05.2005 Beiträge: 467 Wohnort: HH
|
Verfasst am: 23.06.2006, 20:00 Titel: |
|
|
hm, this errormessage is not meaningful.
Can you test the second picture alone? Maybe the second Picture ("end.bmp") has an dataerror inside.
Which width has the second picture in pixel and is it a 256c-pic or a RGB-colored pic? (16,7M colors)
The error can raised by a low-memory-problem.
WFG A.K. _________________
http://forum.IconSoft.de
http://www.pnpbb.de - hol dir jetzt dein eigenes kostenloses Forum *NEU* |
|
Nach oben |
|
 |
Otacom
Anmeldungsdatum: 18.06.2006 Beiträge: 45
|
Verfasst am: 24.06.2006, 14:42 Titel: |
|
|
Why, in the second file, i kill XSCREEN and not report error? |
|
Nach oben |
|
 |
A.K.

Anmeldungsdatum: 02.05.2005 Beiträge: 467 Wohnort: HH
|
Verfasst am: 24.06.2006, 23:17 Titel: |
|
|
hi,
you mean, if you deactivate the XSCREEN-Call in the second file, than the error not raised?
wgf A.K. _________________
http://forum.IconSoft.de
http://www.pnpbb.de - hol dir jetzt dein eigenes kostenloses Forum *NEU* |
|
Nach oben |
|
 |
Otacom
Anmeldungsdatum: 18.06.2006 Beiträge: 45
|
Verfasst am: 25.06.2006, 10:43 Titel: |
|
|
Yes...but the bitmap, in the second file, not appears...  |
|
Nach oben |
|
 |
A.K.

Anmeldungsdatum: 02.05.2005 Beiträge: 467 Wohnort: HH
|
Verfasst am: 25.06.2006, 12:08 Titel: |
|
|
hi,
that the second pic not appears is a problem with variable-takeover at the chain-command. Look therefore at the threads after your startthread.
With the AK-LIB V1.5 its impossible to make a chain.
The alternativ is the AK-LIB V1.6. There you can without problems do a CHAIN.
BUT, the V1.6 is only a TEST-Version. The documentation of this version is not ready but you can use it like the V1.5.
The only thing that you care is that ALL color-variables now NOT INTEGER(%) but LONG(&).
Furthermore now you have 16,7Mc-Modes. For the modenumbers look here:
http://www.iconsoft.de/?show=aklib_hilfe
ak16test.qlb Download:
http://www.iconsoft.de/temp/ak16test.qlb
wfg A.K. _________________
http://forum.IconSoft.de
http://www.pnpbb.de - hol dir jetzt dein eigenes kostenloses Forum *NEU* |
|
Nach oben |
|
 |
Otacom
Anmeldungsdatum: 18.06.2006 Beiträge: 45
|
Verfasst am: 27.06.2006, 16:39 Titel: |
|
|
Wow, thank you very much...  |
|
Nach oben |
|
 |
|