Search found 88 matches

by idhan
Mon Nov 02, 2009 11:29 am
Forum: Compiler / Linking / IDE Related
Topic: compilation error on new kubuntu 9.10
Replies: 2
Views: 868

Yes I know :-) and also for the record and those with the same problem; wx2.9 compile without problems.

Thanks David.
by idhan
Fri Oct 30, 2009 9:15 pm
Forum: Compiler / Linking / IDE Related
Topic: compilation error on new kubuntu 9.10
Replies: 2
Views: 868

compilation error on new kubuntu 9.10

Hi, I have update my system from kubuntu 9.04 to 9.10. on k9.04 I did compile wxwidgets wx2.8.10 wihtout problem, however on k9.10 I get the follows error: /home/wxGTK-2.8.10/wxWidgets/bk-deps g++ -c -o monodll_gtk_gsockgtk.o -I./.pch/wxprec_monodll -D__WXGTK__ -DwxUSE_BASE=1 -DWXMAKINGDLL -fPIC -DP...
by idhan
Thu Mar 20, 2008 5:47 pm
Forum: C++ Development
Topic: How can I know the hard disk of my computer?
Replies: 7
Views: 867

I want to thanks you help, but is there any wxwidgets solution instead of a specific api solution?

Post data: probably with you knowledge of the api windows, you could write a wxWidgets class and later some other api experts for linux and macos create the equivalent interface, that will be great.
by idhan
Thu Mar 20, 2008 5:20 pm
Forum: C++ Development
Topic: How can I know the hard disk of my computer?
Replies: 7
Views: 867

windows and linux
by idhan
Thu Mar 20, 2008 5:03 pm
Forum: C++ Development
Topic: How can I know the hard disk of my computer?
Replies: 7
Views: 867

How can I know the hard disk of my computer?

Hi,

I need to know all the hark disks of my computer and also any removable device available. Is for a 3D interface, I can't use any the standard dialogs.

Any helps is more than welcome.
by idhan
Sun Mar 02, 2008 1:39 pm
Forum: C++ Development
Topic: What do I have to do to get a bitmap from a png file?
Replies: 8
Views: 2456

Hi,

Probably you didn't call these lines:

wxImage::AddHandler(new wxBMPHandler);
wxImage::AddHandler(new wxPNGHandler);

you should do it at the beginning of you application.
by idhan
Sun Mar 02, 2008 1:35 pm
Forum: C++ Development
Topic: [Solved] how to parse a file-string
Replies: 1
Views: 482

http://wxwidgets.org/manuals/stable/wx_wxfilename.html

Thanks to morlock_of_death from wxIRC channel.
by idhan
Sun Mar 02, 2008 1:32 pm
Forum: C++ Development
Topic: [Solved] how to parse a file-string
Replies: 1
Views: 482

[Solved] how to parse a file-string

how can I parse a file-string such as :

"c:\user\myuser\myfoler\file.txt"

to get for example the folder of the file?,
is there any wxClass to do this or I should do it my self?

Thanks..
by idhan
Tue Jan 22, 2008 9:02 pm
Forum: C++ Development
Topic: SOLVED: xrc resource problem
Replies: 1
Views: 637

The problem was because I use also ogre, so, after include the ogre header, It must be include "wx/msw/winundef.h" to avoid problem with "windows.h" of windows.

Thanks to the wxwidgets channel (<_arkanes> & <realazthat>)
by idhan
Tue Jan 22, 2008 6:36 pm
Forum: C++ Development
Topic: SOLVED: xrc resource problem
Replies: 1
Views: 637

SOLVED: xrc resource problem

Hi, I have create a resource trough the wxrc utility of wx2.8.7 (the resource is embedded into a cpp file). My program compiles without error, but on the link process I get the following error: xWindowsOS.obj : error LNK2019: unresolved external symbol "public: class wxIcon __thiscall wxXmlResource:...
by idhan
Fri Jan 18, 2008 9:47 pm
Forum: C++ Development
Topic: multiple wxGLCanvas's don't initiall show up
Replies: 5
Views: 879

Normally you shoud intercept the size event of wxFrame and there set position and size for you glcanvas controls. On the wxFrame contructor just use the default position and size for you glcanvas controls (when you wxframe is initialize by the OS, before its first render, automatically the size even...
by idhan
Fri Jan 18, 2008 2:55 pm
Forum: C++ Development
Topic: how to embedded some text files??
Replies: 1
Views: 541

how to embedded some text files??

Hi,

I know how is embedded images files as wxxrc resources, but I can't find the way to do the same with simply text files.

Any idea???

thanks in advance.
by idhan
Thu Apr 05, 2007 4:24 pm
Forum: C++ Development
Topic: [SOLVED]how to get wximage with alpha channel from resources
Replies: 3
Views: 768

Here is the solution. After you get you GetBitmap() from you xrc resource and convert it to wxImage with ConvertToImage(). You will get you image that keep you transparency as Mask, so... after that you apply to you image SetMask(true) and if you image doesn't get alpha channel (HasAlpha()) then you...
by idhan
Wed Apr 04, 2007 11:25 am
Forum: C++ Development
Topic: [SOLVED]how to get wximage with alpha channel from resources
Replies: 3
Views: 768

I think you didn't get it,

How can I put a png file with alpha channel into a xrc resource file as wxInputStream, I don need to read it from a file, it must be inside of a xrc resource file...

Anyone have done this???
by idhan
Fri Mar 30, 2007 3:12 pm
Forum: C++ Development
Topic: [SOLVED]how to get wximage with alpha channel from resources
Replies: 3
Views: 768

[SOLVED]how to get wximage with alpha channel from resources

Hi, I want to display some textures on opengl with transparency. I have some png files load on a xrc resource file. The problem is when I get this png files I use the method "LadBitmap" and after that I use "ConvertToImage" to finally get my wxImage variable. My problem is that I don't get any Alpha...