Ok, sorry for the double post, but I have both solved it and encountered a new problem with it.
It didn't work because the filename had spaces in it, which I guess is a problem. Eliminating that cause it to recognize the function call, but for some reason constantly tells me that I have used an unrecognized array. I know it is related to the #include command because when I rem it out, the program compiles fine (except for the missing command).
I eliminated the possibility of an array in the function that isn't in the generated code by copy and pasting the function into the generated file and reming out the #include command. It compiled fine, so I am not exactly sure what the problem is.
[Edit]
Solved it. The problem wasn't in the function I needed, it was the use of arrays in OTHER function in the file (that I wasn't using anyway) that didn't exist in the new file. To fix it I just copied over the dim statements and it works fine.
Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?