Search found 30 matches

by Anthony11
Thu Jul 16, 2015 5:26 pm
Forum: C++ Development
Topic: set icon?
Replies: 5
Views: 966

Re: set icon?

i also have another question, how can i init an image handler (wxInitAllImageHandlers), but just for a PNG
by Anthony11
Thu Jul 16, 2015 5:04 pm
Forum: C++ Development
Topic: set icon?
Replies: 5
Views: 966

Re: set icon?

hmm, i've double checked the path and also tried the absolute path, still doesn't work, and the icon is has only the 16×16 size

edit: i checked IsOk and it returns false
by Anthony11
Thu Jul 16, 2015 3:10 pm
Forum: C++ Development
Topic: set icon?
Replies: 5
Views: 966

set icon?

this is under a form constructor void.

Code: Select all

wxIcon mainicon;
    mainicon.LoadFile("res\\icon.ico");
    SetIcon(mainicon);
doesnt work.
by Anthony11
Tue Jul 14, 2015 1:50 pm
Forum: C++ Development
Topic: can someone help me fix my script pls?
Replies: 4
Views: 553

Re: can someone help me fix my script pls?

omg it worked, i don't even know how to express my gratitude and contentment now, but seriously, thank you for all of your help and support you've provided me on this forum
by Anthony11
Tue Jul 14, 2015 1:37 pm
Forum: C++ Development
Topic: can someone help me fix my script pls?
Replies: 4
Views: 553

Re: can someone help me fix my script pls?

the problem is that the error doesnt occur anywhere. i've already tried setting this up with .txt, i've created several dummy text files: a.txt = aaaa b.txt = bbbb_ c.txt = _cccc + newLine d.txt = .... files.ini: p_d.txt=a.pack s_d.txt=0 l_d.txt=4 p_c.txt=a.pack s_c.txt=4 l_c.txt=7 p_b.txt=a.pack s_...
by Anthony11
Tue Jul 14, 2015 1:01 pm
Forum: C++ Development
Topic: can someone help me fix my script pls?
Replies: 4
Views: 553

can someone help me fix my script pls?

i've been struggling with this for several days now. The purpose should be to create a package file which contains all of the resource files in it, and an ini file which tells the lengths and addresses of each file. The creation will be guided by XML file which contains info on how to build it. The ...
by Anthony11
Tue Jul 14, 2015 12:28 pm
Forum: C++ Development
Topic: wxOutputFileStream seek end?
Replies: 1
Views: 341

wxOutputFileStream seek end?

How can I SeekO to the end of the file?
by Anthony11
Tue Jul 14, 2015 8:07 am
Forum: C++ Development
Topic: wxFileOffset to wxString
Replies: 1
Views: 389

wxFileOffset to wxString

How can I convert wxFileOffset to wxString? ( http://docs.wxwidgets.org/trunk/group__ ... 16c8e22de5 )
by Anthony11
Mon Jul 13, 2015 9:33 pm
Forum: C++ Development
Topic: how to close wxFileINPUTStream
Replies: 1
Views: 1440

how to close wxFileINPUTStream

http://docs.wxwidgets.org/trunk/classwx ... tream.html

I must delete the file afterwards, so how can I close the wxFileInputStream before deletion so i don't get an error.
by Anthony11
Mon Jul 13, 2015 11:37 am
Forum: C++ Development
Topic: Kind of complicated task...
Replies: 8
Views: 946

Re: Kind of complicated task...

this xml has the info written in which package to put which file in, the thing idk how to do is at the comment: // take the bytes from file in 'fileLocation', then write them to packageFile, whilst returning the beginning address and length the xml is like <packages> <package name="package.pak"> <fi...
by Anthony11
Mon Jul 13, 2015 10:16 am
Forum: C++ Development
Topic: Kind of complicated task...
Replies: 8
Views: 946

Re: Kind of complicated task...

wxXmlDocument doc; if (!wxFileExists(myFile)) { // end message, no packages ! todo return; } if (!doc.Load(myFile)) { return; } if (doc.GetRoot()->GetName() != "packages") { EndModal(false); } wxXmlNode *child = doc.GetRoot()->GetChildren(); while (child) { if (child->GetName() == "package") { wxSt...
by Anthony11
Mon Jul 13, 2015 9:33 am
Forum: C++ Development
Topic: Kind of complicated task...
Replies: 8
Views: 946

Re: Kind of complicated task...

Well there is not really a huge use for it, only that I bundle my game files into one.
by Anthony11
Mon Jul 13, 2015 8:58 am
Forum: C++ Development
Topic: Kind of complicated task...
Replies: 8
Views: 946

Re: Kind of complicated task...

What I wanted to do is create a bigfile that contains all the little files, and another file with it (ini preferably) that tells at which location starts which file and how long is it. The reason I need this is to load the files in SFML from memory/stream etc. http://www.sfml-dev.org/documentation/2...
by Anthony11
Sun Jul 12, 2015 9:09 pm
Forum: C++ Development
Topic: Kind of complicated task...
Replies: 8
Views: 946

Kind of complicated task...

I'm not sure if this is even a part of wxWidgets, but I don't know any other place I'd post this. Again, I'm a newb at C++ and I'm trying to learn it myself by creating something productive.
Anyway what I want to do is load all bytes from a bunch of files and create one giant file containing all of those bytes in their respective order, raw, uncompressed, and also I need the addresses of the first byte and byte length of each files to be acquired upon creation.
:( this is quite intimidating for me, an absolute beginner, to do, and I don't even know how to start with this, and I know (from past experience) that my code would not work (probably would be off by a byte, and $%^& everything up)

So I'll be extremely grateful to someone who helps me make this.
by Anthony11
Sat Jul 11, 2015 11:24 am
Forum: wxDev-C++
Topic: wxExecute?
Replies: 2
Views: 1719

wxExecute?

Code: Select all

wxExecute("help\\documentation.chm");
also tried

Code: Select all

wxExecute(".\\help\\documentation.chm");
shows messagebox (error 0)