Click here to Skip to main content
15,916,449 members
Home / Discussions / C#
   

C#

 
GeneralRe: cannot convert from 'string' to 'AccountManagement.IAccount' Pin
Colin Angus Mackay14-May-07 11:57
Colin Angus Mackay14-May-07 11:57 
GeneralRe: cannot convert from 'string' to 'AccountManagement.IAccount' Pin
Latheesan14-May-07 12:05
Latheesan14-May-07 12:05 
GeneralRe: cannot convert from 'string' to 'AccountManagement.IAccount' Pin
Latheesan14-May-07 12:09
Latheesan14-May-07 12:09 
GeneralRe: cannot convert from 'string' to 'AccountManagement.IAccount' Pin
Colin Angus Mackay14-May-07 12:11
Colin Angus Mackay14-May-07 12:11 
GeneralRe: cannot convert from 'string' to 'AccountManagement.IAccount' Pin
Latheesan14-May-07 12:45
Latheesan14-May-07 12:45 
AnswerRe: cannot convert from 'string' to 'AccountManagement.IAccount' Pin
Christian Graus14-May-07 11:36
protectorChristian Graus14-May-07 11:36 
GeneralRe: cannot convert from 'string' to 'AccountManagement.IAccount' Pin
Latheesan14-May-07 11:52
Latheesan14-May-07 11:52 
GeneralRe: cannot convert from 'string' to 'AccountManagement.IAccount' Pin
Christian Graus14-May-07 12:28
protectorChristian Graus14-May-07 12:28 
well, I'd recommend buying a book and working through it. We're glad to help ( you're asking us to help and trying to do it yourself, and that's never a problem ), but a trial and error approach isn't going to help you understand the core principles that you're struggling to grasp now. The main issues here as far as I can see:

1 - a variable has a type. If you try to pass an object of the wrong type, you're putting a square peg in a round hole. It's a 'thing', but it's not the right 'thing'.

2 - A class is an object designed to wrap specific functionalty. Once you define a class, you can have many instances of a class, just like knowing what a car is, I can own 3. If I have three cars, they are all independant objects, changing the tires on one car won't change the other ones. And, objects that exist within a class, are not visible outside that class, unless they are public, and then they need to be addressed via the class instance. If I want something that's in my car, I have to look inside the car, not on the ground.

I hope that makes *some* sort of sense, but seriously, read through the texts you've been given, or consider buying a book. And, do some really basic to the point of useless projects that exist entirely to help you understand concepts like types and class scope.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

QuestionOutlook dev question Pin
szukuro14-May-07 10:27
szukuro14-May-07 10:27 
AnswerRe: Outlook dev question Pin
dotnetcdr16-May-07 0:04
dotnetcdr16-May-07 0:04 
GeneralRe: Outlook dev question Pin
szukuro16-May-07 0:28
szukuro16-May-07 0:28 
GeneralRe: Outlook dev question Pin
szukuro16-May-07 0:36
szukuro16-May-07 0:36 
Questionproblem to retrieve relational data from tables. [modified] Pin
hdv21214-May-07 10:26
hdv21214-May-07 10:26 
AnswerRe: problem to retrieve relational data from tables. Pin
Christian Graus14-May-07 10:42
protectorChristian Graus14-May-07 10:42 
Questionproblem to retrieve relational data from tables. Pin
hdv21214-May-07 10:23
hdv21214-May-07 10:23 
QuestionProblem with events Pin
~~~Johnny~~~14-May-07 8:50
~~~Johnny~~~14-May-07 8:50 
AnswerRe: Problem with events Pin
Martin#14-May-07 20:13
Martin#14-May-07 20:13 
QuestionSQl Server express Edition Pin
Agyeman14-May-07 8:47
Agyeman14-May-07 8:47 
AnswerRe: SQl Server express Edition Pin
Dave Kreskowiak14-May-07 8:56
mveDave Kreskowiak14-May-07 8:56 
GeneralRe: SQl Server express Edition Pin
Paul Conrad14-May-07 8:59
professionalPaul Conrad14-May-07 8:59 
AnswerRe: SQl Server express Edition Pin
~~~Johnny~~~14-May-07 8:57
~~~Johnny~~~14-May-07 8:57 
AnswerRe: SQl Server express Edition Pin
Paul Conrad14-May-07 8:58
professionalPaul Conrad14-May-07 8:58 
AnswerRe: SQl Server express Edition Pin
kubben14-May-07 9:01
kubben14-May-07 9:01 
AnswerRe: SQl Server express Edition Pin
SimulationofSai14-May-07 9:08
SimulationofSai14-May-07 9:08 
QuestionEnd of a string array element Pin
LCI14-May-07 6:11
LCI14-May-07 6:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.