Free Web Hosting by Netfirms
Web Hosting by Netfirms | Free Domain Names by Netfirms

/////////////////////////////////////////////////////////////////////// MapQuiz.c starts after the next row of slashes /////////////////////////////////////////////////////////////////////// #include short _stdcall BenStrComp( char *guess, char *truth ) { char ch = ' '; short result; char *ttruth = truth, *pdest, temp[100] = "Not the whole length";// *trav = truth; if( strlen( guess ) < 1 || strlen( truth ) < 1 ) return 0; pdest = strchr( ttruth, ch ); result = pdest - ttruth; if( result > 0 && result < 110 ) { strncpy( temp, ttruth, result ); *(temp + result) = '\0'; } //------------------------------------It works up to here----------------------!!!!!!!!!! while( pdest ) { if( !strstr( guess, temp) ) return 0; ttruth += strlen( temp ) + 1; pdest = strchr( ttruth, ch ); result = pdest - ttruth; } if( !strstr( guess, ttruth ) ) return 0; return 1; } //--------yeahhhhhh!!!!!!!!-------!!!!! /////////////////////////////////////////////////////////////////////// Now comes MapQuiz.def which you need for linking purposes /////////////////////////////////////////////////////////////////////// ; The DEF File LIBRARY MapQuiz DESCRIPTION "MapQuiz Auxilary DLL to compare strings. Copyright 1999 Ben Collins" CODE PRELOAD MOVEABLE DISCARDABLE DATA PRELOAD MOVEABLE EXPORTS BenStrComp @1 /////////////////////////////////////////////////////////////////////// (note) the slashes have nothing to do with the files (note) these are actually TWO distinct files here, folks