Greets!
Now I ran into the problem of fastcall function.
There is a form with some functions which are called when pushing a button (fastcall function).
What should I do if I'd like to use this function somewhere else? How can I Call it?
Greets!
Now I ran into the problem of fastcall function.
There is a form with some functions which are called when pushing a button (fastcall function).
What should I do if I'd like to use this function somewhere else? How can I Call it?
I almost forgot it...
How long can an AnsiString be?
My help says that "It's the same as the Delphi Long String type". Thanks a lot, where shoud I know that????
Phew....
Well, you call fastcall functions like all others but as stdcall, you need to indicate that you want to use that convention. (in the protrotype)
Would you please post a code example?
Quite simple, just like when you use WINAPI for example:
Code:void __fastcall f(); // ... f();
Does it work if there's a
style fastcall function?Code:void _fastcall Tform::memo(Sender *TObject ....
Can I call it like
TForm::memo(Sender *TObject.... ?
No, you must use the class instance, rather than the class name, and replace :: with . or -> depending on whether it's a object pointer reference or not.
Eg.
Form1->Memo (NULL);