Tumunzahar
Member
- Joined
- Jan 1, 2004
- Messages
- 6
Hi
I defined a class BankAccount and then I defined a class CurrentAccount that inherits BankAccount.
In CurrentAccount I put the method public bool CanDebit(double amount)
How can I use this method in the superclass Bankaccount ?
I tried to put the following line in BankAccount :
public extern bool CanDebit(double amount);
That does compile, but I get a run-time error saying
" ... Culture= neutral, PublicKeyToken=null because the method CanDebit has no RVA."
Also the editor tells me to "Consider a DLLImport attribute to specify the external implementation"
What am I doing wrong ?
Thanks.
I defined a class BankAccount and then I defined a class CurrentAccount that inherits BankAccount.
In CurrentAccount I put the method public bool CanDebit(double amount)
How can I use this method in the superclass Bankaccount ?
I tried to put the following line in BankAccount :
public extern bool CanDebit(double amount);
That does compile, but I get a run-time error saying
" ... Culture= neutral, PublicKeyToken=null because the method CanDebit has no RVA."
Also the editor tells me to "Consider a DLLImport attribute to specify the external implementation"
What am I doing wrong ?
Thanks.