Alright, I fixed my window problem. Turns out I forgot to load the common-control library. Now the app is running smoothly except for scanning strings in the file. The cache-file contains lines like "A3270VBKJGIGFCGJL-01=Package.ut2". I want to scan everything before the equal-sign into one buffer, and everything after into another. My current method is "fscanf(pFile, "%s=%s
", pBufferA, pBufferB);", but it scans the entire string into the first buffer, and the second is empty. Any ideas?