joyjit 0 Newbie Poster

hi all,
i m facing an issue which is mentioned here:
i m using a xp 64 bit machine

i have a register function defined in a 32 bit component which is running on a 64 bit machine using wow64 support

i need to call this register function from a 64 bit ported component.

register function is smthing like this:

typedef void (*PAUTHFUNCTION)( int,int)

int register(HANDLE context,PAUTHFUNCTION);

if i call this function from a 64 bit comp:
like this
void authfunction(int a ,int b)
{
---
}
register(context,authfunction);
i pass a 64 bit adress so far as authfunction is concerned,which is not understood by the 32 bit component where actually this register function is defined,and hence my registration is failing.

can anyone provide a solution for it,actually i m kind of stuck
waiitn for the response

thanks in advance
joyjit

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.