Symbian
Symbian OS Library

FAQ-0513 Why do my RLibrary calls fail under a WINS console?

[Index][spacer] [Previous] [Next]



 

Classification: C++ Category: Emulator
Created: 08/10/2000 Modified: 06/13/2001
Number: FAQ-0513
Platform: Not Applicable

Question:
Why do my RLibrary calls fail under a WINS console?

Answer:
If you're using a simple console application under WINS, any calls to RLibrary related functions, e.g.:
RLibrary lib;

lib.Load(.....)

may fail. This is because no file system has been initialised - the easiest way to solve it is to simply do:

#ifdef __WINS__


    RFs fs;

    fs.Connect();
    #endif

    somewhere in your code before you use RLibrary.