I need to overload Dll Exported function, and the problem i'm getting is thet the compiller says only one overloaded function can be "C", how can i do this ?
So dowe it mean i can not reload the function, i need to have just a different name for the function?
so it is not possible to have to functinos under one name?
Well you could declare it as CreateCustomers(TComponent *Owner, ... ); IF it's possible to look at Owner, AND figure out from that what the rest of the parameters should be.
> so it is not possible to have to functinos under one name?
Create your own really simple class around the API you're given (perhaps), which provides you with all the overloading you want.
Last edited by Salem; Oct 27th, 2008 at 3:51 pm. Reason: Fix the wacky icode tags end of line
Why don't you just give me simple, why you are trying to make me work so hard ? I do like to find ansfers by myself but i'm so tired today, i spand all night fighting with. please give me the ansfer for the problem.
There is no "simple".
Fundamentally, there is no overloading in C - period.
There's just a bunch of hacks which could loosely be described as "good", "bad" and "ugly".
Since you've given minimal information (like are you even allowed to change the C code?), it's just vague suggestions based on what might be possible.
Oh, and get some sleep. As often as not, I find the answer to be so obvious in the morning I wondered what the hell the problem was the night before that I couldn't see it.
See you in the morning, cos I'm about done for the night as well.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.