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

Developer

Forums

Hi,

 

I'd like to know how to use Interfaces in the BrewMP. Here's what I did and the error I'm getting. I generated a Hello World application from the Wizard. The name of the Application was Application2.

 

Now there's function:

static void Application2_DrawScreen (Application2 * pMe)

{

   IBacklight *pib1;

   //generated program code

}

 

And I got this error:

error C2065: 'IBaclight' : undeclared identifier

error C2065: 'pib1' : undeclared identifier

 

 

Is there some assumed setup I'm supposed to have ?

And help will be appreciated, I'm kind of in a hurry.

 

Thanks

In fact ! I'm unable to create even a single variable of type int. Can anyone tell me what am I doing wrong here ?
 
Thanks
-Zeshan-

In fact ! I'm unable to create even a single variable of type int. Can anyone tell me what am I doing wrong here ?
 
Thanks
-Zeshan-

for IBacklight you may be getting error becoz the compiler may not be able to get declaratrion of IBacklight.
try including the header AEEBacklight.h as:-
#include AEEBacklight.h
 
wats the error u get for int? if its a *.c file make sure the declaration is at the top of any other executable statements. or at the top of the begining of a paranthisis.
for eg:
c compliler will complain for following code, int b should be moved before assignment statement:-
{
int a;
a = 2;
int b;
}

for IBacklight you may be getting error becoz the compiler may not be able to get declaratrion of IBacklight.
try including the header AEEBacklight.h as:-
#include AEEBacklight.h
 
wats the error u get for int? if its a *.c file make sure the declaration is at the top of any other executable statements. or at the top of the begining of a paranthisis.
for eg:
c compliler will complain for following code, int b should be moved before assignment statement:-
{
int a;
a = 2;
int b;
}

I was able to control the backlight on/off by calling this function:
 
IDisplay_Backlight (pMe->applet.m_pIDisplay, TRUE);
 
Is this the proper way ?
 
I called this function in the DrawScreen () method.

I was able to control the backlight on/off by calling this function:
 
IDisplay_Backlight (pMe->applet.m_pIDisplay, TRUE);
 
Is this the proper way ?
 
I called this function in the DrawScreen () method.

Yes. That's fine. It's essentially the same as invoking IBacklight_Enable. IBacklight just provides more control over backglight behavior. 
 

Yes. That's fine. It's essentially the same as invoking IBacklight_Enable. IBacklight just provides more control over backglight behavior.