Page 1 of 1

MFC and GapiDraw

PostPosted: Oct 12, 2004 @ 2:48pm
by norwy
Hi guys,


I'd like to run a GapiDraw program after choosing a file with a CFileDialog Dialog Box.

It means that the GapiDraw program is lauched by a main program or something like that?
How can I do this? by changing the CGapiApplication.cpp file?

PostPosted: Oct 12, 2004 @ 3:02pm
by Johan
You cannot use MFC and CGapiApplication together... Look at the MFC sample for tips... It definitely is possible to do what you suggest. My advice is to avoid MFC if you can...

PostPosted: Oct 15, 2004 @ 7:11am
by Guest

PostPosted: Oct 15, 2004 @ 10:14am
by Johan
If you want to develop simple GUI-based applications, MFC is a good choice. But since you want to use GapiDraw I assume that you do not want those type of applications.

If you want to use MFC for it's class library (such as strings, set, list, maps, etc), a much better choice is STL (the standard template library) which is faster and more memory-efficient. And cross-platform.

PostPosted: Oct 15, 2004 @ 10:58am
by Guest
Hi Johan

Thanks for your reply. My main motivation for wanting to use MFC is to allow text input into the application by making use of the keyboard and letter recognizer. I can't see an easy way of using these with GapiDraw. For the rest of the application I would like to use GapiDraw, but users should be allowed to edit their setting at any time. So the app must be able to switch between editmode and gapidraw mode.

What would you do? I would like to be able to just use GapiDraw as I will be able to run the App on a number of different platforms. How else could I achieve this?

thanks

PostPosted: Oct 15, 2004 @ 11:29am
by Johan
For keyboard input, simply show a keyboard bitmap and catch the positions of the stylus clicks. You should be able to have a keyboard input done in an hour or so at most. And you don't need to use MFC for this.

PostPosted: Oct 15, 2004 @ 12:53pm
by ppcStudios
I agree with Johan. An animated SIP isn't very difficult to implement (see Warlords II for an example of this), and a static SIP is available via jojosip (jojosoft.gapidraw.com).