View Full Version : Practical API Differences
starscream
04-13-2003, 03:12 PM
Hello,
Upon receiving some advice recently I downgraded from BREW SDK 2.0 to BREW SDK 1.1. I tried to run the sample HelloWorld app in the 1.1 emulator but the emulator didn't show any apps despite me pointing it to the right MIF and APP directory. I compiled HelloWorld with VC++ like usual - would VC++ have somehow compiled HelloWorld as a 2.0 app since the 2.0 SDK was just previously installed?
If I am beginning a new project how do I specify (or know) if it will be compiled as a 1.1 or a 2.0 app? Does the BREW Wizard set up projects as 2.0 by default?
I know this is a lot of inquiry all at once - I appreciate any help here. Feel kind of stuck with in a versioning hole right now. Thanks!
- Richard.
tyndal
04-13-2003, 08:00 PM
I'd suggest using the 2.x sdk for development, since the emulator is at least less crappy than the 1.1 version. What i did was install 1.1, copy the 1.1 mif editor and inc and src files, then uninstalled 1.1 and installed 2.x.
Just set your inc directory to point to the 1.1 version of the headers, and the source of AEEModGen and AEEAppGen to the 1.1 version (settings in your visual c project)
I dont like the brew wizard very well, so i just created a project with it, and set my preffered settings, and just copy those files and rename them when i want to start a new project.
For some of the "devices" of the brew emulator, only applications will show up if they have a image and thumbnail image properly set in the .mif file.... could this be your problem? (apps that dont show up are listed as errors in the debug window like this:
** AppMgr: (MShop.bar) error **
-Tyndal
starscream
04-13-2003, 08:14 PM
Thanks for the reply!
Yeah, the fact that I might not be setting my icons correctly could certainly be a culprit here. At one point along the dev path (I think it was the AppSigner that I was exploring) it complained that my icon sizes weren't right but I wasn't sure how critical that error was.
So the only things I need from 1.1 are the MIF editor and the inc/src files? I'll do what you did and use 2.0 for everything else. Really quick, do you know off-hand where it is that I would set the inc directory with VC++? I'm not extremely familiar with it and I have enough other unknowns right now. :)
The advice was perfect - exactly what I was hoping for.
- Richard.
tyndal
04-13-2003, 08:38 PM
after opening your procect in VS:
Project -> settings -> C/C++ tab, the bottom window "project options"
the part /I "$(BREWDIR)\inc" is what mine is set to. change the value in quotes to what you want.
anything in $() is an environment variable.
-Tyndal
putek20
04-16-2003, 04:00 AM
hey tyndal, can i use brew sdk v2.x in t720?
tyndal
04-16-2003, 08:51 PM
use the 2.x emulator, but use the 1.1 header files (.h files) when building the application, and the 1.1 mif editor for the mif to be used on the actual phone
vBulletin v3.0.13, Copyright ©2000-2009, Jelsoft Enterprises Ltd.