PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

MFC and GapiDraw

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?
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...
Hi Johan

Why do you suggest not using MFC? What would you use instead of MFC?
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.
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
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.
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).