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

Developer

Forums

Hi,

I am trying to write an application using Trig and Actor.
I couldn't find any example applications in the BMK SDK installation.

Can anyone please share a sample BMP application using Trig and Actors.

thank you,

Krishna
eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%6b%72%69%73%68%6e%61%2e%73%68%65%74%74%79%2e%68%40%67%6d%61%69%6c%2e%63%6f%6d%22%3e%6b%72%69%73%68%6e%61%2e%73%68%65%74%74%79%2e%68%40%67%6d%61%69%6c%2e%63%6f%6d%3c%2f%61%3e%27%29%3b'))

Hi Krishna,
Please search for Trig in the Library tab to find "Writing Trig Applications" and "Creating Actors for Trigs" docs and samplecode.
Thanks<
Karina

Hi Krishna,
Please search for Trig in the Library tab to find "Writing Trig Applications" and "Creating Actors for Trigs" docs and samplecode.
Thanks<
Karina

Hi Karina,
Thank you very much.
In BREW SDK these used to be part of SDK installation..
thanks,
Krishna

Hi Karina,
Thank you very much.
In BREW SDK these used to be part of SDK installation..
thanks,
Krishna

Hi Karina,
One doubt on creating a Trig-Actor application.
I am refering the document 'CreatingActorsForTrigs.chm'
Under the topic 'Setting Up an Actor Project ':
The Point 7 tells: 'Create a new MIME type of x-qcactor/newactorname. Change the Base Class to 0x0102E1F7 and ensure that the Handler Class is your new class ID.'
In the BMP resource editor, I am not able to change the base class with Class ID-0x0102E1F7. There is a list of class ID names in the combo box i.e., AEECLSID_APP to AEECLSID_VIEW.
Which Base Class should we select for my actor?
thank you,
-Krishna

Hi Karina,
One doubt on creating a Trig-Actor application.
I am refering the document 'CreatingActorsForTrigs.chm'
Under the topic 'Setting Up an Actor Project ':
The Point 7 tells: 'Create a new MIME type of x-qcactor/newactorname. Change the Base Class to 0x0102E1F7 and ensure that the Handler Class is your new class ID.'
In the BMP resource editor, I am not able to change the base class with Class ID-0x0102E1F7. There is a list of class ID names in the combo box i.e., AEECLSID_APP to AEECLSID_VIEW.
Which Base Class should we select for my actor?
thank you,
-Krishna

Hi Krishna,
You can also edit the .cif file using a text editor. This might be a more convenient approach for now as you will be able to change the class ID to whatever you need to set it to.
Let me know if you have further questions.
Regards,
Anand

Hi Krishna,
You can also edit the .cif file using a text editor. This might be a more convenient approach for now as you will be able to change the class ID to whatever you need to set it to.
Let me know if you have further questions.
Regards,
Anand

The document "Creating Actors for Trigs" suggests using the sample Code Circle Actor as a starting point.
However, trying to import the project in Eclipse will result in some headache since the code is written as C++, with files ending in .cpp, and the folder names are wrong. This is not recognized as a Brew project at all. Even fixing this results in that Eclipse/Brew interprets the project as an application rather than an extension, automatically creating some extra C files (AppModGen.c and one more).
These will cause compilation errors due to the LIT macro forcing you to change line 50 i AEEVfsNode.h (SDK/platform/languages/inc/) to
#define LIT(n,s) const AECHAR * const n = (const AECHAR * const)L##s
The L macro will also give a compilation error, which I got rid of using a reinterpret cast.
However, even after fixing all this I get an error "Undefined reference to AEEClsCreateInstance" in the automatically created AEEModGen.c, which I ahve been unable to correct.
The project will not compile in Visual Studio 2005 either for that matter, though I haven´t explored this much further.
Has anyone been able to use this sample code?

The document "Creating Actors for Trigs" suggests using the sample Code Circle Actor as a starting point.
However, trying to import the project in Eclipse will result in some headache since the code is written as C++, with files ending in .cpp, and the folder names are wrong. This is not recognized as a Brew project at all. Even fixing this results in that Eclipse/Brew interprets the project as an application rather than an extension, automatically creating some extra C files (AppModGen.c and one more).
These will cause compilation errors due to the LIT macro forcing you to change line 50 i AEEVfsNode.h (SDK/platform/languages/inc/) to
#define LIT(n,s) const AECHAR * const n = (const AECHAR * const)L##s
The L macro will also give a compilation error, which I got rid of using a reinterpret cast.
However, even after fixing all this I get an error "Undefined reference to AEEClsCreateInstance" in the automatically created AEEModGen.c, which I ahve been unable to correct.
The project will not compile in Visual Studio 2005 either for that matter, though I haven´t explored this much further.
Has anyone been able to use this sample code?

Since the sample actor is unusable I have been trying to adapt a standard extension to become an actor, however, I face several problems, one of which being compilation errors in the framework due to several redefinitions.
In platform/languages/inc/AEEVfsNode.h row 72 we find typedef struct IVfsNode IVfsNode;
Then, in the same file row 226, we find AEEINTERFACE_DEFINE(IVfsNode); which expands into #define AEEINTERFACE_DEFINE(iname)\
typedef struct iname iname;\
AEEVTBL_DEFINE(iname) through definition in AEEInterface.h
There are several more errors like this though this is the most obvious. The other repeated typedefs do not occur within the same file, but one definition occur in AEEVfsNode.h for each of them:
IActorContext
IVfsCacheModel
IVfsContainer
IVfsNodeModel
I could really need some help about how an actor should look these days, since there is neither any up-to-date sample code or any explicit description on how this is supposed to work, at least not that I have found. Latest document I have found is from february 2009, and this does not seem to match how the code in BrewMP 1.0 rev 4.5 looks like.
Thanks
David

Since the sample actor is unusable I have been trying to adapt a standard extension to become an actor, however, I face several problems, one of which being compilation errors in the framework due to several redefinitions.
In platform/languages/inc/AEEVfsNode.h row 72 we find typedef struct IVfsNode IVfsNode;
Then, in the same file row 226, we find AEEINTERFACE_DEFINE(IVfsNode); which expands into #define AEEINTERFACE_DEFINE(iname)\
typedef struct iname iname;\
AEEVTBL_DEFINE(iname) through definition in AEEInterface.h
There are several more errors like this though this is the most obvious. The other repeated typedefs do not occur within the same file, but one definition occur in AEEVfsNode.h for each of them:
IActorContext
IVfsCacheModel
IVfsContainer
IVfsNodeModel
I could really need some help about how an actor should look these days, since there is neither any up-to-date sample code or any explicit description on how this is supposed to work, at least not that I have found. Latest document I have found is from february 2009, and this does not seem to match how the code in BrewMP 1.0 rev 4.5 looks like.
Thanks
David

hey!!!
i am having d same problem with circle actor ....nt able to run its par file in trigML.....
In C:\Program Files\Qualcomm\uiOneSDK_2.0.7\Examples\CircleActor example is der......
circle actor ......
nw wen i try to run its par file in trigml ....d circle doesn't do ny operation .....it doesn't roatate n all.......i get a static screen .....
der is nymethod to open dat par file in trigml ....so dat it will do all d function .....
if smethng is der...plz let me knw ....
its really really urgent fr me ....to knw abt it ...dat hw to get it run on trigml.........
is der ny oder example of actor is .....if ..den please send d link.....
reply .....soon .....plzzz .!!!!!!!!!!!!!

hey!!!
i am having d same problem with circle actor ....nt able to run its par file in trigML.....
In C:\Program Files\Qualcomm\uiOneSDK_2.0.7\Examples\CircleActor example is der......
circle actor ......
nw wen i try to run its par file in trigml ....d circle doesn't do ny operation .....it doesn't roatate n all.......i get a static screen .....
der is nymethod to open dat par file in trigml ....so dat it will do all d function .....
if smethng is der...plz let me knw ....
its really really urgent fr me ....to knw abt it ...dat hw to get it run on trigml.........
is der ny oder example of actor is .....if ..den please send d link.....
reply .....soon .....plzzz .!!!!!!!!!!!!!

Hi Versha,
The TrigML displays the static circle and the Actor will handle the rotation. The fact that the circle displays means that the Trig is actually working just fine. It is doing what it is supposed to do, which is to draw a static circle. From your description, I think it is the Circle Actor that somehow is not in the right path and is not getting referenced.
Try the two following ways to fix this issue --
MAKE SURE THE PATH TO THE CIRCLE ACTOR IS SET CORRECTLY
The Actor is responsible for capturing key events and performing operations on the circle. Please open the Trig, right-click on CircleTest, select Properties, and make sure that it is correctly pointing to the Actor.
DEBUG CIRCLE ACTOR
You can also put breakpoints in the Actor. Run the Simulator, start visual studio and attach it to the Simulator as a 'Native' debugger. You should now be able to place breakpoints in the Circle Actor to see if they ever get hit.
Hope this helps.
Anand

Hi Versha,
The TrigML displays the static circle and the Actor will handle the rotation. The fact that the circle displays means that the Trig is actually working just fine. It is doing what it is supposed to do, which is to draw a static circle. From your description, I think it is the Circle Actor that somehow is not in the right path and is not getting referenced.
Try the two following ways to fix this issue --
MAKE SURE THE PATH TO THE CIRCLE ACTOR IS SET CORRECTLY
The Actor is responsible for capturing key events and performing operations on the circle. Please open the Trig, right-click on CircleTest, select Properties, and make sure that it is correctly pointing to the Actor.
DEBUG CIRCLE ACTOR
You can also put breakpoints in the Actor. Run the Simulator, start visual studio and attach it to the Simulator as a 'Native' debugger. You should now be able to place breakpoints in the Circle Actor to see if they ever get hit.
Hope this helps.
Anand