TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Joel Donelson
from: Edwin Groothuis
date: 1994-07-25 21:44:00
subject: Code has no effect-warning (solved)

Hallo Joel,

07-22-94 20:28, Joel Donelson wrote to Edwin Groothuis:

 JD> if (strcmp(Address[i],"")!=0)
 JD> if(Address) {  /* Address not NULL? */

euh... Yes, I know these little tricks, but I'm always a bit scary for
them. I know strcmp() works always and think (Address) doesn't work for
char[]-declared strings.

 JD> WinInsertLboxItem(hwndLb,LIT_END,Address[i]);
 JD> Again, try the {} in for loops. I've found that if's are usually
 JD> OK, but for's need the brackets. In my experience, that is.

Nope, they didn't work. Did you knew what worked? Allocating a long
Dummy and everywhere replacing WinInsertLboxItem() with
Dummy=WinInsertLboxItem(). No more problems. I think it has something to
do with the fact that these routines are macros which call WinSendMsg.
Maybe.
The roads of a compiler are inscrutable ;-)

 JD> future. I also use BC 1.0 at the moment. I'm sick of it. I
 JD> bought 1.0 about 10 days before 1.5 shipped, and I was told
 JD> $99.00 to upgrade. Boo.

I would return it to the supplyer and tell him that I wasn't satisfied
with it. Let your little brother buy version 1.5 then ;-)

Edwin
/\/\ /\ \/!

..."Captain, why not just give the Borg Windows 3.1?" - Worf
--- FNNR 17+


* Origin: MavEtJu rules! (2:284/205.1)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 413 430
SEEN-BY: 711/807 808 809 934 942 712/353 623 713/888 800/1
@PATH: 284/205 2 1 280/0 801 24/24 396/1 3615/50 229/2 12/2442
@PATH: 711/409 54/54 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™.