hello all.
I need some help to convert this little part from c++ to powerbasic (topic: class)
I need some help to convert this little c++ part to pbwin :) I am not very familiar with c++, sorry..
namespace fbLib
{
CLASS fbFile
{
PRIVATE: ' ?
std::STRING mt_filename; ///< NAME OF the current file.
...
public: ' ?
'/// Default constructor which exists only for the sake of allowing to construct files without filenames.
fbFile();
'' function, ok :)
'/// Initializes a fbFile with a filename
EXPLICIT fbFile(CONST std::STRING strFlename);
'/// Returns the name of the current file.
std::STRING getFileName() CONST;
'/// Changes the name of the current file.
void setFileName(std::STRING strFilename);
''pbwin: Function setFileName(byval strFilename as string) as string ' ?
void readmyDirectory() throw (Exceptions::CannotOpenFile, Exceptions::InvalidFormat, std::exception);
' what is "throw" ?
...
};
}
I am not very familiar with c++ so I am asking here for help, thanks in advance, best regards, frank
Bookmarks