RAM-ÁLDÓKI. Posted Június 9, 2009 Share Posted Június 9, 2009 Delphi 7 rendszerben csinálok egy büntető rúgásos játékot, és amikor a kódhoz hozzáírtam a mentésfájlt (ami egy .txt file) kezelő eljárásokat a program az alábbi képen látható hibaüzenetet küldi. Már korábban is volt hasonló hiba, amikor a pályát tartalmazó képfájlt töltöttem be, de akkor a projekthez tartozó package1-be beraktam a vcljpg-t és megoldódott a probléma. Úgy gyanítom, hogy itt is hasonló a gond. Ha tudtok segítsetek! Idézés Link to comment Share on other sites More sharing options...
SixHouse Posted Június 9, 2009 Share Posted Június 9, 2009 Hi, ha nem látunk kódot nme tudjuk mi a hiba Hidden Content Give reaction or reply to this topic to see the hidden content. Hidden Content Give reaction or reply to this topic to see the hidden content. Idézés Link to comment Share on other sites More sharing options...
RAM-ÁLDÓKI. Posted Június 9, 2009 Author Share Posted Június 9, 2009 Itt a kód! A grafikát ne nézd, kissé kezdetleges. Hidden Content Give reaction or reply to this topic to see the hidden content. Jelszó : blablabla Idézés Link to comment Share on other sites More sharing options...
SixHouse Posted Június 9, 2009 Share Posted Június 9, 2009 2 dolog amire azért illik odafigyelni: 1.) Amíg egy form create eseménye nem zajlik le, ne bántsuk a nem létező controljait: a form1 create- ben meghívod a még nem is létező form2 colorbox controlt, erre nálam rögtön kiakad (d2007), nálad nem tudom hogyan nem, én a helyedbe ezeket már az OnShow eseménybe tenném ahol is már a formok léteznek Egyébként a fájlt tökéletesen megnyitja, a hiba nem ott van hanem, ahol színt szeretnél adni a colorbox-nak.(az előző okból kifolyólag) 2.) Feleslegesen ne bonyolítsuk a saját életünket Hidden Content Give reaction or reply to this topic to see the hidden content. Idézés Link to comment Share on other sites More sharing options...
RAM-ÁLDÓKI. Posted Június 10, 2009 Author Share Posted Június 10, 2009 Kösz a segítséget! Így már nekem is működik. Idézés Link to comment Share on other sites More sharing options...
SixHouse Posted Június 11, 2009 Share Posted Június 11, 2009 Én a helyedben nem is így dolgoznám fel az adatokat. Sokkal egyszerűbb dolgod lenne ha nem fájlkezeléssel szenvednél Egy példa: Ez menne a form close (vagy bezárás) eseménybe: Hidden Content Give reaction or reply to this topic to see the hidden content. Ez pedig az OnShow eseménybe: Hidden Content Give reaction or reply to this topic to see the hidden content. és máris egyszerűbb a dolgunk, nem nyitottunk meg fájlt amit le kell zárni meg végig kell olvasni. Csinálhatod úgy is hogy a data globális és akkor ha módosítanak a programban akkor rögtön ott módosítod és így a formclose-ban csak a savetofile parancsot kell kiadni. csoki Idézés Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.