What is the meaning of this?

N

nas

What is the meaning of this line??

static IFastString *(*pfnlr)(const char *)=0

and

IFastString *(**ppfn)(const char *)=&pfnlr

Here IFastString is the abstract class.

Thanks for ur help!
 
H

Hari

nas je napisao:
What is the meaning of this line??

static IFastString *(*pfnlr)(const char *)=0

and

IFastString *(**ppfn)(const char *)=&pfnlr

Here IFastString is the abstract class.

Thanks for ur help!

static IFastString *(*pfnlr)(const char *)=0;

pfnlr is static pointer to function that expects const char* and
returns IFastString*.

ppfn is pointer to pointer to function that expects const char* and
returns IFastString* and it points to address of pfnlr.

Look in google for some tutorials about pointers to function.

Best,
Zaharije Pasalic
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top