Re: FXJSON

"John Selverian" <[email protected]>
Newsgroups gmane.comp.lib.fox-toolkit.user
Organization JAHM Software
Message-ID <[email protected]>

I'm trying this:

 

              FXString fn = "test.xml";

              FXlong fileSize = FXStat::size(fn);

              FXchar* fileContents = new FXchar[fileSize];

              Utilities_jhs1::readFile(fn, fileContents);

              FXJSON json = FXJSON(fileContents, fileSize, FXJSON::Load);

              

 

But I get this compiler error:

 

1>C:\....\src\Main.cpp(896,15): error C2248: 'FX::FXJSON::FXJSON': cannot
access private member declared in class 'FX::FXJSON'

1>C:\FOX\fox-1.7.50\include\FXJSON.h(90): message : see declaration of
'FX::FXJSON::FXJSON'

1>C:\FOX\fox-1.7.50\include\FXJSON.h(33): message : see declaration of
'FX::FXJSON'

 

 

 

Which is strange because when I look at the header file the FXJSON call is
public

 

If I try this call instead:

 

FXJSONFile jsonf = FXJSONFile(fileContents, FXJSON::Load, fileSize);

 

 

I get this error:

 

1>C:\....\src\Main.cpp(892,1): error C2280:
'FX::FXJSONFile::FXJSONFile(const FX::FXJSONFile &)': attempting to
reference a deleted function

1>C:\FOX\fox-1.7.50\include\FXJSONFile.h(80): message : compiler has
generated 'FX::FXJSONFile::FXJSONFile' here

1>C:\FOX\fox-1.7.50\include\FXJSONFile.h(80,3): message :
'FX::FXJSONFile::FXJSONFile(const FX::FXJSONFile &)': function was
implicitly deleted because a base class invokes a deleted or inaccessible
function 'FX::FXJSON::FXJSON(const FX::FXJSON &)'

 

 

In the source files this function is declared public and has a body

 

I'm running fox 1.7.50 on windows 10

_______________________________________________
Foxgui-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/foxgui-users
image002.gif (image/gif, 70 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.