Click here to Skip to main content
15,905,913 members
Home / Discussions / C#
   

C#

 
AnswerRe: New Project Ideas? Pin
#realJSOP2-May-10 23:26
professional#realJSOP2-May-10 23:26 
AnswerRe: New Project Ideas? Pin
PIEBALDconsult4-May-10 3:17
mvePIEBALDconsult4-May-10 3:17 
GeneralRe: New Project Ideas? Pin
Roger Wright4-May-10 12:53
professionalRoger Wright4-May-10 12:53 
Questiondll function Pin
Member 5903102-May-10 19:40
Member 5903102-May-10 19:40 
AnswerRe: dll function Pin
Calla2-May-10 20:10
Calla2-May-10 20:10 
GeneralRe: dll function Pin
Member 5903102-May-10 20:12
Member 5903102-May-10 20:12 
GeneralRe: dll function Pin
Pete O'Hanlon2-May-10 20:52
mvePete O'Hanlon2-May-10 20:52 
AnswerRe: dll function Pin
ThatsAlok2-May-10 20:15
ThatsAlok2-May-10 20:15 
Member 590310 wrote:
i want to add a method to dll which could return a value.hw can i do that?


In DLL:-
namespace my
{

class ABC
{
 private int _intValue=10;
 public int ReturnValue()
 {
  return _intValue;
 }
}


In your Executable:- First add reference of DLL , then following code will
suffix

my.ABC oABC = new my.ABC();
Console.WriteLine(oABC.ReturnValue());

"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixture


cheers,
Alok Gupta
VC Forum Q&A :- I/IV
Support CRY- Child Relief and You

GeneralRe: dll function Pin
Member 5903102-May-10 20:19
Member 5903102-May-10 20:19 
GeneralRe: dll function Pin
Calla2-May-10 22:24
Calla2-May-10 22:24 
GeneralRe: dll function Pin
Abdul Rahman Hamidy2-May-10 22:39
Abdul Rahman Hamidy2-May-10 22:39 
GeneralRe: dll function Pin
ThatsAlok3-May-10 3:14
ThatsAlok3-May-10 3:14 
QuestionActive directory Group Enabled or Not Pin
Tiger4562-May-10 18:22
Tiger4562-May-10 18:22 
AnswerRe: Active directory Group Enabled or Not Pin
Michel Godfroid2-May-10 19:06
Michel Godfroid2-May-10 19:06 
QuestionNeed help on c# please Pin
kibr9872-May-10 13:34
kibr9872-May-10 13:34 
AnswerRe: Need help on c# please Pin
Luc Pattyn2-May-10 13:49
sitebuilderLuc Pattyn2-May-10 13:49 
QuestionBest way to access a database Pin
Terence van Schalkwyk2-May-10 9:09
Terence van Schalkwyk2-May-10 9:09 
AnswerRe: Best way to access a database [modified] Pin
PIEBALDconsult2-May-10 9:35
mvePIEBALDconsult2-May-10 9:35 
AnswerRe: Best way to access a database [modified] PinPopular
Pete O'Hanlon2-May-10 9:52
mvePete O'Hanlon2-May-10 9:52 
GeneralRe: Best way to access a database Pin
PIEBALDconsult2-May-10 9:56
mvePIEBALDconsult2-May-10 9:56 
GeneralRe: Best way to access a database Pin
Pete O'Hanlon2-May-10 10:10
mvePete O'Hanlon2-May-10 10:10 
GeneralRe: Best way to access a database Pin
PIEBALDconsult2-May-10 10:29
mvePIEBALDconsult2-May-10 10:29 
GeneralRe: Best way to access a database Pin
Pete O'Hanlon2-May-10 10:33
mvePete O'Hanlon2-May-10 10:33 
GeneralRe: Best way to access a database Pin
PIEBALDconsult2-May-10 10:53
mvePIEBALDconsult2-May-10 10:53 
GeneralRe: Best way to access a database Pin
Terence van Schalkwyk2-May-10 20:01
Terence van Schalkwyk2-May-10 20:01 

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.