Search found 45 matches

by sfx81
Sun Nov 22, 2009 5:32 pm
Forum: C++ Development
Topic: Web Page parsing
Replies: 3
Views: 1155

Web Page parsing

Hi All. I need to grab latest data from certain websites, ( e.g live cricket data from cinfo.com and ESPN ), process it locally and make entries in database and forms. I came across wxWebKit, and wxWebConnect, wxMozilla, and certain wx's own classes as wxHTMLParser, wxWinParser etc. I ran the test a...
by sfx81
Thu Jan 01, 2009 10:12 pm
Forum: C++ Development
Topic: Multiple Keypresses
Replies: 7
Views: 1041

Ok I have got it working, using some thing like this. I would like to hear if someone has got more neater solution than this. Regards Kazz std::set<char> KeyList; OnKeyDown() { char c = GetKeyCode(); KeyList.Insert( key ); } OnKeyUp() { char key = GetKeyCode(); KeyList.erase( key ); } MainLoop() { S...
by sfx81
Thu Jan 01, 2009 6:38 pm
Forum: C++ Development
Topic: Multiple Keypresses
Replies: 7
Views: 1041

Hi, this is what i am doing

Code: Select all

void Canvas::OnChar(wxKeyEvent& e)
{
	char key = e.GetKeyCode();
	if(key == 'w')
        {
          camera.Translate(0, 0, zInc);
        }

         if(key == 'd')
         {
            camera.Translate(xInc, 0, 0 );
         }

....

}
by sfx81
Thu Jan 01, 2009 5:53 pm
Forum: C++ Development
Topic: Multiple Keypresses
Replies: 7
Views: 1041

Thanks for quick reply. But problem still persists. what I am after is when I press down 'w', and then I press down 'd' without releasing 'w'. so 'w' and 'd' are down at the same time and no KeyUp event is generated. Now how I can have both keys generate key down at the same time ? I hope I am not c...
by sfx81
Thu Jan 01, 2009 3:56 pm
Forum: C++ Development
Topic: Multiple Keypresses
Replies: 7
Views: 1041

Multiple Keypresses

Hi All and Happy new year. In my App, to control the camera, I want more then one key to be pressed. For e.g 'w' moves camera forward, and pressing 'd' should move it to right. Now pressing them one by one works fine, but pressing them both at the same time does not work. I mean 'w + d' should move ...
by sfx81
Thu Nov 27, 2008 9:32 am
Forum: C++ Development
Topic: using one instance of wxFileConfig
Replies: 7
Views: 1810

Hi, I think I am on wrong track here. Thankyou for all the information, it was very helpful.
Regards.
by sfx81
Thu Nov 27, 2008 9:30 am
Forum: C++ Development
Topic: Open Gl cube sample problem
Replies: 6
Views: 1017

works fine for me. I am using 2.8.9, VS express edition
by sfx81
Wed Nov 26, 2008 1:56 pm
Forum: C++ Development
Topic: using one instance of wxFileConfig
Replies: 7
Views: 1810

I want exactly what you said in last post. But rather than automatically loading and saving, user has the option to load and save specific configuration. Here is how I have implemented, so that you can point out where I went wrong. User Saves a file by using dir selector to locate target destination...
by sfx81
Tue Nov 25, 2008 2:24 pm
Forum: C++ Development
Topic: using one instance of wxFileConfig
Replies: 7
Views: 1810

if i have mConfig pointing to "c:\file1.txt", then
mConfig->DeleteAll(), will delete all the configuration. Thats what I want. But now after deleting it, how can I create another file with name "d:\file2.txt"?
Effectively what I am after is how can we change the files at run time using wxConfig.
by sfx81
Sat Nov 22, 2008 5:00 pm
Forum: C++ Development
Topic: a basic question
Replies: 2
Views: 654

cheers mate.
by sfx81
Sat Nov 22, 2008 4:45 pm
Forum: C++ Development
Topic: a basic question
Replies: 2
Views: 654

a basic question

Hi. I got a very basic question.
I was looking at wxLogDebug function

Code: Select all

void wxLogDebug(const char *formatString, ...). 
Can someone please tell me what is "..." in function arguments list and what is it actully called in c++.

Regards
by sfx81
Sat Nov 22, 2008 3:13 pm
Forum: C++ Development
Topic: openGL loop
Replies: 4
Views: 755

cheers mate. That was helpful
by sfx81
Sat Nov 22, 2008 1:02 pm
Forum: C++ Development
Topic: openGL loop
Replies: 4
Views: 755

openGL loop

Hi. I have derived from glCanvas, and doing openGl drawing inside OnPaint. Is it alright if I continue calling Refresh inside onIdle() to create a render loop something like this

Code: Select all

void Canvas::OnIdle(wxIdleEvent& e)
{
	Refresh();
	e.Skip();
}
Regards
by sfx81
Fri Nov 21, 2008 5:08 pm
Forum: C++ Development
Topic: using one instance of wxFileConfig
Replies: 7
Views: 1810

using one instance of wxFileConfig

Hi. In my app, I have option to save different files. Now to do that every time I create a wxFileConfig object, write to the file, and destory that object something like this wxFileConfig* mConfig = new wxFileConfig("","", dir + "\\" +fileName + extension); ...set path in config file ...write values...
by sfx81
Thu Nov 13, 2008 9:28 am
Forum: C++ Development
Topic: knowing Minimize
Replies: 3
Views: 806

Ok got it. Cheers mate