Hey everyone. I'm trying to get PocketFrog running under Smartphone 2002, but the problem is that it doesn't support ATL. I don't know much about ATL unfortunately. How much work would it take for me to remove the ATL dependency from PocketFrog? Does anyone know?
ATL and Smartphone 2002
ATL is only used for the "Framework" part... You don't need to use it.
Ouch! You don't want to do that. PF uses ATL to create the window in which PF draws all it's graphics. But also, to implement the window message map (like the mouse/stylus and keyboard and all other events). BUT, I guess it's possible, using regular SDK calls to create the window and writing your own message map interpreter (this is how it was done before ATL (and MFC) came along). It's a lot of work though.
I found it strange that it doesn't support ATL though, since ATL is (basicly) just a wrapper of the win32 SDK calls, and I was right. Look at this link:
http://www.smartphonedn.com/articles/wtl_port.html
I quote: "ATL version for Smartphone is included in Smartphone SDK ...".
So, you just have to reinstall the SDK and make shure that ATL is included this time.
The article also describes how to install WTL, which is an extention to ATL and has some very nice GUI components you might want to take a look at. Using ATL/WTL is pretty much the only option you have if you want to develope GUI:s on Smartphone (or WinCE for that matter) that run fast and have a small footprint.
MFC (not available on the Smartphone I think) is nothing you want to bother with on WinCE. It's just to bulky. Read a few tutorials on how to use WTL/ATL instead and benefit from good programming style.
I found it strange that it doesn't support ATL though, since ATL is (basicly) just a wrapper of the win32 SDK calls, and I was right. Look at this link:
http://www.smartphonedn.com/articles/wtl_port.html
I quote: "ATL version for Smartphone is included in Smartphone SDK ...".
So, you just have to reinstall the SDK and make shure that ATL is included this time.
The article also describes how to install WTL, which is an extention to ATL and has some very nice GUI components you might want to take a look at. Using ATL/WTL is pretty much the only option you have if you want to develope GUI:s on Smartphone (or WinCE for that matter) that run fast and have a small footprint.
MFC (not available on the Smartphone I think) is nothing you want to bother with on WinCE. It's just to bulky. Read a few tutorials on how to use WTL/ATL instead and benefit from good programming style.
Well, there you go.. Thierry beat me to it (writing a much shorter note =).
What I said still stands though. He only confirmed that all you need to change (if you by any chance don't like ATL) is the game.cpp (and game.h) file to use standard win32 SDK (or MFC, but that's just beeing silly) calls to create the window and implement the message map.
Just make shure you pass a valid window handle to the PocketPC::CreateDisplay() function and you're set.
What I said still stands though. He only confirmed that all you need to change (if you by any chance don't like ATL) is the game.cpp (and game.h) file to use standard win32 SDK (or MFC, but that's just beeing silly) calls to create the window and implement the message map.
Just make shure you pass a valid window handle to the PocketPC::CreateDisplay() function and you're set.
ATL is not included in the latest Smartphone SDK, as stated here.
[url][/url]Has anyone tried this on a real device?
My understanding from Garrett Vargas, Dev Lead for the Mobile Devices Division of Microsoft, is that ATL is not supported on the Smartphone. This understanding is derived from the message he sent me that said,
July 24, 2002 6:44 PM
Yep, ATL isn't available on Smartphone. I don't know what the plans are to support it in the future.
-- Garrett
Note that ATL does work on the emulator as it just falls through and uses the ATL on the desktop machine.
--ron
Well I have to take your word for it then. Don't have the time nor the interest to download the latest SDK release (which was dated after the article you referenced).
But, as you can see a few notes below (in that article) there is a way of including ATL to the SDK simply by copying the ATL folders from an old SDK (the old ones had ATL support which apparently was removed for some reason).
Or, you could look for a tutorial on win32 sdk programming like I mentioned earlier.
But, as you can see a few notes below (in that article) there is a way of including ATL to the SDK simply by copying the ATL folders from an old SDK (the old ones had ATL support which apparently was removed for some reason).
Or, you could look for a tutorial on win32 sdk programming like I mentioned earlier.