-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 chenggh wrote on 17.01.2007 04:52 this:
Hi: In the idl file i defined an interface including a function declaration like this: int foo([in] arg1, [in] void *( * start_routine)(void *), [in] arg2);
My aim is to define a method which includes a function pointer I define the function name and function parameters by myself. But when I compile there is error. Naturally.
I checked out the dice manual there is nothing about how to deal with function pointer in idl file. Is this style supported by dice IDL ? If it supports how could I do?
No, don't do it! Dice is an IDL compiler. IDL stands for Interface Definition Language. And IDL is *NOT* the C programming language. Even though IDL looks similar to C it is not C. So using function pointers as arguments in an interface definition won't work. Greetings, Ron. - -- Mit freundlichen Gruessen / with regards ra3 @ inf.tu-dresden.de http://os.inf.tu-dresden.de/~ra3/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFFreaT2sAx3Dtx9+YRAsF5AKDQjf+KfLhgWlurAgpPsOIVrCDYtwCgqnJQ YY8vJwKW9QjojywDNIAO584= =uKOC -----END PGP SIGNATURE-----