Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Following the brew_from_scratch.pdf I've stopped on:

Quote:
...
14. In the MIF Editor window, click the Windows Close button.
15. In the BREW Application Wizard window, click Finish.
The New Project Information dialog box opens.
16. Click OK.
The Microsoft Visual C++ window reopens with your new BREWapplication project
loaded in the workspace.

My VC++ 5.0 closes but doesn't open again with the new workspace.
When I open MyFirstApp workspace manually I get no files inside - no project created.
Help? :confused:

BREW emulator project is fairly simple. Are you using MSVC 5.0?
I guess all the projects are in MSVC 6.0. MSVC 5.0 may not be able to open MSVC 6.0 project. You can open the .dsp file in a text editor and see all the settings and create the project in MSVC 5.0 and that should be file. You can seperately run mif editor and create mif file.
ruben

BREW emulator project is fairly simple. Are you using MSVC 5.0?
I guess all the projects are in MSVC 6.0. MSVC 5.0 may not be able to open MSVC 6.0 project. You can open the .dsp file in a text editor and see all the settings and create the project in MSVC 5.0 and that should be file. You can seperately run mif editor and create mif file.
ruben

Hey, thx for prompt reply.
Yes, I use MSVC 5.0
So, you're saying that this app wizard creates MSVC 6.0 project files? Then my MSVC should say anything, like 'could not open blah blah', but it just quits and nothing else happens :D
But if making a project is only a matter of putting
• MyFirstApp.c
• AEEAppGen.c
• AEEModGen.c
together to a workspace and making a MIF in MIF editor, then it's OK. Please correct me if I missed something.
Thanks in advance.

Hey, thx for prompt reply.
Yes, I use MSVC 5.0
So, you're saying that this app wizard creates MSVC 6.0 project files? Then my MSVC should say anything, like 'could not open blah blah', but it just quits and nothing else happens :D
But if making a project is only a matter of putting
• MyFirstApp.c
• AEEAppGen.c
• AEEModGen.c
together to a workspace and making a MIF in MIF editor, then it's OK. Please correct me if I missed something.
Thanks in advance.

Make sure you put other settings like BREWDIR include path, AEE_SIMULATOR etc. Just create an empty project without MFC support and then add all options. That should be sufficient.
ruben

Make sure you put other settings like BREWDIR include path, AEE_SIMULATOR etc. Just create an empty project without MFC support and then add all options. That should be sufficient.
ruben

Quote:...and then add all options.
Sure, but how a total newbie is supposed to know what should he put to a project file?
Lookin at examples' project files I can see many strange things there, which I aint got a clue about.
Help :(

Quote:...and then add all options.
Sure, but how a total newbie is supposed to know what should he put to a project file?
Lookin at examples' project files I can see many strange things there, which I aint got a clue about.
Help :(

Using MSVC 5.0 create an empty project. Open up one of the BREW SDK dsp file in a text editor along with your MSVC 5.0 project. Now compare and add the options.
If you are familiar with MSVC dsp options, it should not be that difficult (refer msdn library for futher info about each of the project option.
ruben

Using MSVC 5.0 create an empty project. Open up one of the BREW SDK dsp file in a text editor along with your MSVC 5.0 project. Now compare and add the options.
If you are familiar with MSVC dsp options, it should not be that difficult (refer msdn library for futher info about each of the project option.
ruben

I've simply copied project file from the helloworld :D, changed filename and directories.
I've finished the code of MyFirstApp (from scratch.pdf) and stoped on compiling...
Quote:
Linking...
Creating library Debug/MyFirstApp.lib and object Debug/MyFirstApp.exp
LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
MyFirstApp.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
MyFirstApp.dll - 2 error(s), 0 warning(s)
Belive this question may be kinda lame, but what's wrong? :confused:

I've simply copied project file from the helloworld :D, changed filename and directories.
I've finished the code of MyFirstApp (from scratch.pdf) and stoped on compiling...
Quote:
Linking...
Creating library Debug/MyFirstApp.lib and object Debug/MyFirstApp.exp
LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
MyFirstApp.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
MyFirstApp.dll - 2 error(s), 0 warning(s)
Belive this question may be kinda lame, but what's wrong? :confused:

Looks like your project is getting CRT library. BREW project does not need any CRT library. BREW provides helper functions. Make sure you set up BREW include directory correctly.
ruben

Looks like your project is getting CRT library. BREW project does not need any CRT library. BREW provides helper functions. Make sure you set up BREW include directory correctly.
ruben

I've got only BREW SDK\BIN directory in Tools->Options->Directories. What else do I need to do?

I've got only BREW SDK\BIN directory in Tools->Options->Directories. What else do I need to do?

In your include path you need to have BREWSDK\inc folder.
In your dsp(check in text editor) do you have /NOENTRY option set anywhere?
ruben

In your include path you need to have BREWSDK\inc folder.
In your dsp(check in text editor) do you have /NOENTRY option set anywhere?
ruben

>In your include path you need to have BREWSDK\inc folder.
Done.
>In your dsp(check in text editor) do you have /NOENTRY option set anywhere?
Nope, dsp file looks 'just' like helloworld.dsp.

>In your include path you need to have BREWSDK\inc folder.
Done.
>In your dsp(check in text editor) do you have /NOENTRY option set anywhere?
Nope, dsp file looks 'just' like helloworld.dsp.

Instead of taking the helloword project (which is of MSVC 6.0 project), I would recommend that you create a empty project using MSVC 5.0 and then add BREW specific stuff.
If I recall correctly, there were some difference between MSVC 5.0 project and MSVC 6.0 project.
I don't have MSVC 5.0 installed in my system.
ruben

Instead of taking the helloword project (which is of MSVC 6.0 project), I would recommend that you create a empty project using MSVC 5.0 and then add BREW specific stuff.
If I recall correctly, there were some difference between MSVC 5.0 project and MSVC 6.0 project.
I don't have MSVC 5.0 installed in my system.
ruben

Just found out that the same problem is with other examples, so it may be it. Now I've got to buy MSVC 6.0 :D

Just found out that the same problem is with other examples, so it may be it. Now I've got to buy MSVC 6.0 :D