Search found 158 matches

by RobertHK
Fri Jul 14, 2017 2:36 am
Forum: General Development
Topic: TinyXML2
Replies: 6
Views: 4852

Re: TinyXML2

I do not use any parser. I do not even use XML declarations. The output file * .xml (works even after renaming the suffix) serves only as a container for saved data. But back to the problem solved: this is a command to get text from a <name> node that is already working for me: const char *x_name = ...
by RobertHK
Thu Jul 13, 2017 5:34 pm
Forum: General Development
Topic: TinyXML2
Replies: 6
Views: 4852

Re: TinyXML2

Hello. The code '8' is on this line: const char* x_name; x_name = pElement->Attribute("name"); // ??? if (x_name == 0) { int index = XML_ERROR_PARSING_ATTRIBUTE; wxLogMessage(wxT("%i"), index); } // error no. 8 This is a report from tinyxml2.h: enum XMLError { XML_SUCCESS = 0, XM...
by RobertHK
Thu Jul 13, 2017 3:52 pm
Forum: General Development
Topic: TinyXML2
Replies: 6
Views: 4852

Re: TinyXML2

When I write for the file save function: ...... XMLDocument xmlDoc; XMLNode * pRoot = xmlDoc.NewElement("Root"); xmlDoc.InsertFirstChild(pRoot); XMLElement * pElement = xmlDoc.NewElement("IntValue"); pElement->SetText(10); pRoot->InsertEndChild(pElement); pElement = xmlDoc.NewEle...
by RobertHK
Thu Jul 13, 2017 7:49 am
Forum: General Development
Topic: TinyXML2
Replies: 6
Views: 4852

TinyXML2

Hello. Would anyone be so nice and provided me some simple sample for loading xml from file using tinyxml2? I already have the file I have saved, but I can not retrieve it and process it. I renamed the xml output file to fbmrx, is it bad?
by RobertHK
Thu Jul 13, 2017 7:38 am
Forum: C++ Development
Topic: wxWebView,how to set the text style
Replies: 11
Views: 3301

Re: wxWebView,how to set the text style

Hello. I use successfully Kompozer ver. 0.8.b3. There I visually design a page: font size,font color (and background), table, indent - just everything. On the "Source Code" tab, I copy this into my function and modify the code so that it is usable for viewing (in the MyFrame constructor): ...
by RobertHK
Sun Jul 09, 2017 6:28 am
Forum: C++ Development
Topic: how to output filename in win
Replies: 9
Views: 2669

Re: how to output filename in win

It works, thanks very much. :D
by RobertHK
Sat Jul 08, 2017 3:06 pm
Forum: C++ Development
Topic: how to output filename in win
Replies: 9
Views: 2669

Re: how to output filename in win

So I wanted to find a procedure that opens a file from MyApp :: OnInit () but did not find
by RobertHK
Sat Jul 08, 2017 3:03 pm
Forum: C++ Development
Topic: how to output filename in win
Replies: 9
Views: 2669

Re: how to output filename in win

When I run the program, apriory it's empty. Then I will run "NewFile or OpenFile ... When I wanted to run OnOpenFile (event) from myApp :: OnInit (), I got an error message that 'event' was not declared in this scope ... #-o
by RobertHK
Sat Jul 08, 2017 2:23 pm
Forum: C++ Development
Topic: how to output filename in win
Replies: 9
Views: 2669

Re: how to output filename in win

Doublemax, hi. Message is: arg 1 = D:\A1.FBMR. This is OK, it's true. :) And how do I load the current A1 file into my program?
by RobertHK
Sat Jul 08, 2017 11:47 am
Forum: C++ Development
Topic: wxWebView,how to set the text style
Replies: 11
Views: 3301

Re: wxWebView,how to set the text style

Hi, I use an intuitive "Kompozer" where I set everything I need (table...etc.) and then convert the html code to c ++. If you want. I'll send a sample.
by RobertHK
Sat Jul 08, 2017 11:46 am
Forum: C++ Development
Topic: wxWebView,how to set the text style
Replies: 11
Views: 3301

Re: wxWebView,how to set the text style

Hi, I use an intuitive "Kompozer" where I set everything I need (table...etc.) and then convert the html code to c ++. If you want. I'll send a sample.
by RobertHK
Sat Jul 08, 2017 11:27 am
Forum: C++ Development
Topic: how to output filename in win
Replies: 9
Views: 2669

Re: how to output filename in win

Hello, Doublemax. Thank you very much for your answer. Can I ask for some instructions (example)? I'm worried about the different options, and my head is getting around. I'm trying different things, and nothing makes sense to me. I wanted to paste the vector m_filesFromCmdLine into MyApp :: OnInit (...
by RobertHK
Sat Jul 08, 2017 9:41 am
Forum: C++ Development
Topic: how to output filename in win
Replies: 9
Views: 2669

how to output filename in win

Hello everyone. Finally, my program (* .exe) will output the output file (* .fbmr). I double-click the output file icon but (badly) open the empty program. Example: wxFormBuilder is a (very good) program. Project is an output file (* .fbp). I, as a user, click on the project icon and open the file. ...
by RobertHK
Thu Jul 06, 2017 6:59 pm
Forum: C++ Development
Topic: wxImage Icon for output file
Replies: 5
Views: 1843

Re: wxImage Icon for output file

Hi doublemax. I want with my program (budget.exe) to create an output file (for example budget_01.fbmr). And I want to run the main program - budget.exe by double-clicking the file icon 'budget_01.fbmr'. I do this with 2 functions: 'void BaseApp :: OnInitCmdLine (wxCmdLineParser & parser)' and '...
by RobertHK
Wed Jul 05, 2017 5:26 pm
Forum: C++ Development
Topic: wxImage Icon for output file
Replies: 5
Views: 1843

Re: wxImage Icon for output file

I have WIN 10 Pro x64