Search found 16 matches

by abdou
Wed May 30, 2007 4:04 pm
Forum: C++ Development
Topic: Using wxClientData with wxCombobox control
Replies: 6
Views: 1143

Re: Using wxClientData with wxCombobox control

I'd like to look at your class definition and the metods implementation. I don't beleive it will compile since I did not include all necessary files. but you'll see all the class. #define __COMBOBOX_H // wxWindows headers #include <wx/wx.h> #include "pg/base.h" class pgConnBase; class ctlComboBox :...
by abdou
Wed May 30, 2007 10:23 am
Forum: C++ Development
Topic: Using wxClientData with wxCombobox control
Replies: 6
Views: 1143

Re: Using wxClientData with wxCombobox control

Hello again Tan, is it your real code string? You have to use real instance of the wxComboBox class: return m_combo_ctrl->Append(...); I tried to apply your indication but I still receive the same error. It's a class I derived from wxComboxBox to add methods to dynamically load items at runtime. The...
by abdou
Wed May 30, 2007 7:34 am
Forum: C++ Development
Topic: Using wxClientData with wxCombobox control
Replies: 6
Views: 1143

Re: Using wxClientData with wxCombobox control

Hi Tan,
Thank you for your assistance. I'll try to correct it according to your indications

Have a nice day !
Abdou
by abdou
Tue May 29, 2007 6:04 pm
Forum: C++ Development
Topic: Using wxClientData with wxCombobox control
Replies: 6
Views: 1143

Using wxClientData with wxCombobox control

Hi, I have a problem when I try to append an item in my wxCombobox control. Here is the code whenthe appl crashes: return wxComboBox::Append(item, new StringClientData(str)); Here is the StringClientData class class StringClientData : public wxClientData { public: StringClientData(const wxChar *c) {...
by abdou
Tue May 29, 2007 9:29 am
Forum: C++ Development
Topic: Problem with wxDateTime::FormatISODate
Replies: 5
Views: 638

Re: Problem with wxDateTime::FormatISODate

tan wrote:Hi,

[/code]
What wx version do you use?
Sorry for the delay.
I'm using wx 2.8.3 compiled in unicode.
by abdou
Tue May 29, 2007 9:21 am
Forum: C++ Development
Topic: Problem with wxDateTime::FormatISODate
Replies: 5
Views: 638

Re: Problem with wxDateTime::FormatISODate

tan wrote:Hi,

[/code]
What wx version do you use?
Sorry for the delay.
I'm using wx 2.8.3 compiled in unicode.
by abdou
Tue May 29, 2007 9:19 am
Forum: C++ Development
Topic: Problem with wxDateTime::FormatISODate
Replies: 5
Views: 638

Re: Problem with wxDateTime::FormatISODate

tan wrote:Hi,

[/code]
What wx version do you use?
Sorry for the delay.
I'm using wx 2.8.3 compiled in unicode.
by abdou
Fri May 25, 2007 10:16 am
Forum: C++ Development
Topic: Problem with wxDateTime::FormatISODate
Replies: 5
Views: 638

Problem with wxDateTime::FormatISODate

Hi !
I don't understand why

Code: Select all

datope.FormatISODate() 
always returns "%". I tested that the date is valid.
And I have to use

Code: Select all

datope.Format(wxT("%Y-%m-%d"), wxDateTime::CET )
to get the data as expected.
I'm using Gcc under WinXP.

Any help will be highly appreciated.
Have a nice week-end !
Abdou
by abdou
Fri Apr 27, 2007 4:57 pm
Forum: C++ Development
Topic: Logging messages
Replies: 3
Views: 364

tan wrote:Hi,
did you try to check wxDateTime::IsValid()?
Yes .
wxDateTime::IsValid() is valid !
by abdou
Fri Apr 27, 2007 11:31 am
Forum: C++ Development
Topic: Logging messages
Replies: 3
Views: 364

Logging messages

Hi all, I'm trying to use the wx logging facilities in my application but got problem with the method DoLog. void Logger::DoLog(wxLogLevel level, const wxChar *msg, time_t timestamp) { // Convert the timestamp wxDateTime *time = new wxDateTime(timestamp); wxString fullmsg; // Build the message. full...
by abdou
Fri Apr 20, 2007 2:53 pm
Forum: C++ Development
Topic: Problem using icons within .RC file
Replies: 2
Views: 395

Re: Problem using icons within .RC file

here 2 problem. 1. appl.ico is a icon file, right? You have to declare it appl ICON "D:/wxTulipe/src/include/images/appl.ico" 2. IMHO windows resources doesn't support png files. Try to convert find.png to bmp format (or load it not from res but by wxImage.Load() on runtime). Thank you for your ass...
by abdou
Fri Apr 20, 2007 10:44 am
Forum: C++ Development
Topic: Problem using icons within .RC file
Replies: 2
Views: 395

Problem using icons within .RC file

I've a problem using resource images from a .RC file. It compiles and links fine. But when running I receive this message : Can't load bitmap 'find' from resources ! Check .RC file Here is the contents on the .RC file appl BITMAP "D:/wxTulipe/src/include/images/appl.ico" find BITMAP "D:/wxTulipe/src...
by abdou
Fri Apr 20, 2007 10:41 am
Forum: C++ Development
Topic: Problem using icons within .RC file
Replies: 1
Views: 606

Problem using icons within .RC file

I've a problem using resource images from a .RC file. It compiles and links fine. But when running I receive this message : Can't load bitmap 'find' from resources ! Check .RC file Here is the contents on the .RC file appl BITMAP "D:/wxTulipe/src/include/images/appl.ico" find BITMAP "D:/wxTulipe/src...
by abdou
Fri Mar 30, 2007 10:41 am
Forum: Compiler / Linking / IDE Related
Topic: Application crashes on wxOGLInitialize() in DEBUG mode
Replies: 0
Views: 524

Application crashes on wxOGLInitialize() in DEBUG mode

Hi ! I have an application running fine with wx 2.6.3. Then I moved to wx 2.8.2. When the appl is compiled in RELEASE mode, every thing goes fine. But in DEBUG, it crashes when calling wxOGLInitialize(). When I stepped in wxOGLInitialize() with the debugger, I saw it stopping at the very first sente...
by abdou
Thu Feb 22, 2007 4:46 pm
Forum: Component Writing
Topic: wxCurl in unicode build
Replies: 5
Views: 3521

Hi Ildar, If you are successfully using wxCurl, I need your help. I'm trying to compile curl_app but I'm missing the file curl.h. The one I got from libcurl website is prompting these errors : d:\wxCURL\include\curl/curl.h(170) : error C2146: syntax error : missing ';' before identifier 'curl_socket...