| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Structures |
G'Day Keith,
-=> Quoting Keith Fowler to Frank Adam <=-
Did i reply to this yet ? I'm so confused :)
KF> Yeah, i was just outlining what command i used :-)
There is no need to do that , it just confuses things.
KF> Actually, it did work with just byte firstname; dunno how though
I'd say just lucky, but remember that the area past that byte is not
allocated, so some other part of the program could come along and
over-write it, and that'll lead to some interesting results.
KF> Thanks.. When opening a file with "wb", how come when i print a
KF> normal string to it ( strcpy(name,"Keith") ) it prints
it to the file
KF> in text mode??, do you need a special string or something??..
Nah, it's because you do print a text string, try fwrite() with a number as
Paul suggested and you won't be able to actually read the number, but you
will be able to open it as text within Xtree.
I reckon Xtree looks at the header of the file and if it's an executable it
won't let you edit in textmode for safety reasons.
Dos' Edit will happily read in an exe and edit it(quite stupid really).
L8r Frank (fadam{at}ozemail.com.au).
___ Blue Wave/DOS v2.21
--- Maximus 3.01
* Origin: The Software Parlour (3:635/544)SEEN-BY: 50/99 78/0 620/243 623/630 632/349 635/503 544 727 711/401 409 410 SEEN-BY: 711/413 430 808 809 932 934 712/515 713/888 714/906 800/1 7877/2809 @PATH: 635/544 50/99 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.