I need to convert this Line from C to Delphi.
Int CALLBACK EXPORT EXAMPLEFUNCTION(VOID){
SETEVENT(hasync);
Return Success;
}
Please i need some help.
thanks 😉
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Kind of guessing here, because the style’s really messy, but I think that would translate something like this:
That’s the best I can do without further context. The
EXPORTdeclaration is a preprocessor macro, and it (probably) means that this is part of a DLL and that this is a function that’s supposed to be callable by programs that load the DLL. In Delphi, that’s not part of the function definition; instead, you put it in an exports clause.