Search found 16 matches

by krisje8
Sat Feb 17, 2007 10:10 am
Forum: C++ Development
Topic: Howto set a value in a WxEdit & how to GetValue into an
Replies: 14
Views: 5272

Change the following line Resistancewx.Printf(wxT("%d"), Resistance); to Resistancewx.Printf(wxT("%f"), Resistance); %d is to be used for integer. That did the trick thank you! Before I'll accept your answer, I have some other questions for you :p : The number comes out like thi...
by krisje8
Sat Feb 17, 2007 8:05 am
Forum: C++ Development
Topic: Howto set a value in a WxEdit & how to GetValue into an
Replies: 14
Views: 5272

Ok, the code is this now: wxString SupV; double iSupV; SupV=WxEditLedresistor1->GetValue(); SupV.ToDouble(&iSupV); wxString LedV; double iLedV; LedV=WxEditLedresistor2->GetValue(); LedV.ToDouble(&iLedV); wxString LedmA; double iLedmA; LedmA=WxEditLedresistor3->GetValue(); LedmA.ToDouble(&...
by krisje8
Fri Feb 16, 2007 6:52 pm
Forum: C++ Development
Topic: Howto set a value in a WxEdit & how to GetValue into an
Replies: 14
Views: 5272

I read about casting now, and I solved the float error. wxString SupV; long int iSupV; SupV=WxEditLedresistor1->GetValue(); SupV.ToLong(&iSupV); wxString LedV; long int iLedV; LedV=WxEditLedresistor2->GetValue(); LedV.ToLong(&iLedV); wxString LedmA; long int iLedmA; LedmA=WxEditLedresistor3-...
by krisje8
Fri Feb 16, 2007 6:13 pm
Forum: C++ Development
Topic: Howto set a value in a WxEdit & how to GetValue into an
Replies: 14
Views: 5272

Ok, it compiles now, but when I press this button (that's when this code is run) it just shuts down my app.
In Konsole I get this error: Floating point exception .
So, the long int should be a float? How do I do this?
by krisje8
Thu Feb 15, 2007 2:22 pm
Forum: C++ Development
Topic: Howto set a value in a WxEdit & how to GetValue into an
Replies: 14
Views: 5272

[quote]
krisje8@localhost ~/CircuitBuddy $ g++ *.cpp `wx-config --libs --cxxflags` -o circuitbuddy
circuitbuddyDlg.cpp: In member function
by krisje8
Sun Feb 11, 2007 11:16 am
Forum: C++ Development
Topic: Howto set a value in a WxEdit & how to GetValue into an
Replies: 14
Views: 5272

OK I did that, and I 'corrected' some of the rest of the code. const Char* SupV; SupV=WxEditLedresistor1->GetValue(); atoi(&SupV); const Char* LedV; LedV=WxEditLedresistor2->GetValue(); atoi(&LedV); const Char* LedmA; LedmA=WxEditLedresistor3->GetValue(); atoi(&LedmA); const Char* Lednr;...
by krisje8
Sun Feb 11, 2007 10:55 am
Forum: C++ Development
Topic: Pango-WARNING **: Invalid UTF-8 string passed to pango_layou
Replies: 2
Views: 1576

Ok, I changed it in this: const char *aan = WxEdit1->GetValue().wc_str(wxConvLocal); // Idem, maar nu voor aan. const char *bericht = Message->GetValue().wc_str(wxConvLocal); //De inhoud van het berichtvakje //is nu aan de char bericht gegeven. But now I get this error while compiling: [quote]krisje...
by krisje8
Sat Feb 10, 2007 7:03 pm
Forum: C++ Development
Topic: Howto set a value in a WxEdit & how to GetValue into an
Replies: 14
Views: 5272

Howto set a value in a WxEdit & how to GetValue into an

Ok, I made this code, some of it looks like it should look, some of it is made up by me, because I don't know how to do it. int SupV; SupV=WxEditLedresistor1->GetValue(); int LedV; LedV=WxEditLedresistor2->GetValue(); int LedmA; LedmA=WxEditLedresistor3->GetValue(); int Lednr; Lednr=WxEditLedresisto...
by krisje8
Sat Feb 10, 2007 4:17 pm
Forum: C++ Development
Topic: Pango-WARNING **: Invalid UTF-8 string passed to pango_layou
Replies: 2
Views: 1576

Pango-WARNING **: Invalid UTF-8 string passed to pango_layou

I get the error in Konsole when I run my program, and I get a very large blank 'popup'. I know it's in this piece of code somewhere: void IntraMsg2Frm::WxButton1Click(wxCommandEvent& event) { // -+-+-+- SENDKNOP !!!! -+-+-+- char argument[1073]; const char *aan = WxEdit1->GetValue().mb_str(wxCon...
by krisje8
Fri Nov 10, 2006 3:07 pm
Forum: Compiler / Linking / IDE Related
Topic: Compile Errors on Linux
Replies: 13
Views: 3410

Thank you, it compiled! But, I can't run it :-(. I get this error: ./IntraMsg2 bash: ./IntraMsg2: Toegang geweigerd debian:/mnt/hdc5/Dev-Cpp/projects/IntraMsg2# Toegang geweigerd means something like Entry refused or Permission denied. I chmodded it 777, and I even tried to execute it under root bu...
by krisje8
Thu Nov 09, 2006 7:24 pm
Forum: Compiler / Linking / IDE Related
Topic: Compile Errors on Linux
Replies: 13
Views: 3410

Thank you for helping me, I think the typo did make difference. I still cannot compile the sample, but that doesn't matter. I tried my own program now and it _only_ gave me this error: krisje8@debian:/mnt/hdc5/Dev-Cpp/projects/IntraMsg2$ g++ IntraMsg2App.cpp `wx-config --libs --cxxflags` -o IntraMs...
by krisje8
Thu Nov 02, 2006 1:24 pm
Forum: Compiler / Linking / IDE Related
Topic: Compile Errors on Linux
Replies: 13
Views: 3410

Did you also install the 'base' version of wxWidgets? It seems to be present, and part of your problem might be that you are picking up the wrong wx-config symlink; you can find out by doing ./wx-config --list in a terminal, from within the mediaplayer folder. If it finds the wrong one, delete/rena...
by krisje8
Sat Oct 28, 2006 6:18 pm
Forum: Compiler / Linking / IDE Related
Topic: Compile Errors on Linux
Replies: 13
Views: 3410

Did you also install the 'base' version of wxWidgets? It seems to be present, and part of your problem might be that you are picking up the wrong wx-config symlink; you can find out by doing ./wx-config --list in a terminal, from within the mediaplayer folder. If it finds the wrong one, delete/rena...
by krisje8
Sat Oct 28, 2006 4:17 pm
Forum: Compiler / Linking / IDE Related
Topic: Compile Errors on Linux
Replies: 13
Views: 3410

Sorry, it's not the compiler he doesn't find but wxWidgets. When I point it to /usr/lib/wx/include there are 4 folders in it: base-unicode-debug-2.6 base-unicode-release-2.6 gtk2-unicode-debug-2.6 gtk2-unicode-release-2.6 But instead of opening those folders he wants to open (not exisiting): GCCBuil...
by krisje8
Sat Oct 28, 2006 3:09 pm
Forum: Compiler / Linking / IDE Related
Topic: Compile Errors on Linux
Replies: 13
Views: 3410

Thanks for your answer, Yes I have tried DialogBlocks, but it doesn't want to find my compiler in Linux. I can select what I want but it searches for a folder that doesn't exist. (He spells the folder a bit different). And I couldn't find a visual sight of my project in DialogBlocks, which I surely ...