Nov 1, 2012 at 6:33am
Hi,
#define BOOTROM_RAM_ADDR 0xd800000
#define ROM_OFFSET(adr) ((UINT)adr - ( UINT )BOOTROM_RAM_ADDR )
typedef int (BOOT :: *BOOTFUNCPTR) (...);
class BOOT
{
public:
void hwCommand(void);
void fgh();
};
void BOOT :: hwCommand(void)
{
}
void BOOT :: fgh()
{
((BOOTFUNCPTR)ROM_OFFSET( & BOOT :: hwCommand ) ) ();// showing error aggregate value used where an integer was expected
}
Please help me to resolve this error
Last edited on Nov 1, 2012 at 8:47am
Nov 1, 2012 at 8:44am
What's is BOOTFUNCPTR?
Is fgh() global or a member of BOOT?
Please use the code format tag to format your code.
Last edited on Nov 1, 2012 at 8:44am