Loading a text file problem...
Posted: Sat Jun 18, 2005 6:44 am
I have a file called "vendor.dat" that contains two lines in ASCII. The first line is a "trigger" and the second line is a "URL."
Basically, it contains this:
In my program, it has three logos, and it will display the logo corresponding to the vendor based in the vendor.dat file, and activate the URL upon clicking on it.
This works in Windows, but the PocketPC always defaults to the middle one, regardless of setting. Why is that?
Basically, it contains this:
- Code: Select all
pocketgear
http://www.pocketgear.com/software_detail.asp?id=17928
In my program, it has three logos, and it will display the logo corresponding to the vendor based in the vendor.dat file, and activate the URL upon clicking on it.
- Code: Select all
FILE *arq = fopen("vendor.dat", "r");
strcpy(vendorname,"pocketgear");
strcpy(vendorurl,"http://www.pocketgear.com/software_detail.asp?id=17928&associateid=326");
if(arq)
{
fgets(vendorname, 255, arq);
fgets(vendorurl, 255, arq);
}
fclose(arq);
if (strcmp(vendorname,"handango")>0) ChangeAnimation("vendor","handango",FORWARD);
if (strcmp(vendorname,"pdatopsoft")>0) ChangeAnimation("vendor","pdatopsoft",FORWARD);
if (strcmp(vendorname,"pocketgear")>0) ChangeAnimation("vendor","pocketgear",FORWARD);
This works in Windows, but the PocketPC always defaults to the middle one, regardless of setting. Why is that?