FDK 9 will not open file
I have a c api I created to create a book with a template it copies FM files from a templete folder and renames the book and documents form a text file with the name it will be using. The problem is the api will not open the text file, I keep getting an error saying it cannot open the file. This is working in FDK 8. I have look at the FDK 9 documents to see if anything has changed with the F_ChannelOpen and it looks the same. The source code compiles fine with no errors using the FDK 9 libs and includes. I am using MS Visual c++ 6.0 to compile the code.
What am I missing?
AllocStrings();
F_ApiBailOut();
F_FdeInit();
ChannelT chan2;
FilePathT *path2 = F_PathNameToFilePath((StringT)"C:\\Tools\\config\\CAconfig.xml", NULL, FDefaultPath);
if ((chan2 = F_ChannelOpen(path2,"r")) == NULL)
{
F_ChannelClose(chan2);
F_FilePathFree(path2);
return 0; // file does not exist
}
F_ChannelClose(chan2);
F_FilePathFree(path2);
return 1; // file does exist
}
