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

C#

 
QuestionNothing happens when CheckBox is checked Pin
Pavlex49-Jan-17 8:00
Pavlex49-Jan-17 8:00 
AnswerRe: Nothing happens when CheckBox is checked Pin
NotPolitcallyCorrect9-Jan-17 8:17
NotPolitcallyCorrect9-Jan-17 8:17 
AnswerRe: Nothing happens when CheckBox is checked Pin
Richard MacCutchan9-Jan-17 22:30
mveRichard MacCutchan9-Jan-17 22:30 
QuestionC# Enumerable Repeat Pin
Pavlex48-Jan-17 4:01
Pavlex48-Jan-17 4:01 
AnswerRe: C# Enumerable Repeat Pin
OriginalGriff8-Jan-17 4:49
mveOriginalGriff8-Jan-17 4:49 
AnswerRe: C# Enumerable Repeat Pin
Pete O'Hanlon8-Jan-17 23:01
mvePete O'Hanlon8-Jan-17 23:01 
GeneralRe: C# Enumerable Repeat Pin
harold aptroot9-Jan-17 8:20
harold aptroot9-Jan-17 8:20 
QuestionVisual Studio Debugger Questions Pin
zequion7-Jan-17 21:15
professionalzequion7-Jan-17 21:15 
AnswerRe: Visual Studio Debugger Questions Pin
Slacker0077-Jan-17 21:22
professionalSlacker0077-Jan-17 21:22 
GeneralRe: Visual Studio Debugger Questions Pin
zequion8-Jan-17 19:27
professionalzequion8-Jan-17 19:27 
GeneralRe: Visual Studio Debugger Questions Pin
Dave Kreskowiak9-Jan-17 2:52
mveDave Kreskowiak9-Jan-17 2:52 
GeneralRe: Visual Studio Debugger Questions Pin
zequion9-Jan-17 3:18
professionalzequion9-Jan-17 3:18 
GeneralRe: Visual Studio Debugger Questions Pin
Richard MacCutchan9-Jan-17 3:51
mveRichard MacCutchan9-Jan-17 3:51 
AnswerRe: Visual Studio Debugger Questions Pin
Jon McKee8-Jan-17 20:50
professionalJon McKee8-Jan-17 20:50 
QuestionCommon Variables in Main, Dlls, and Functions in .cs Pin
zequion7-Jan-17 21:11
professionalzequion7-Jan-17 21:11 
I have many functions that employ some global variables that are common to all such functions, such as the language variable, to display error messages in the proper language.

I want to make various compiled dlls which in turn employs those functions. If those variables are in a global structure, when I create a main that uses the dll, in the main i have to define that structure or include the same .cs and, in that way, there are two different copies of that structure with the same name. That produces the error CS0433.

I can define a structure in the dll and in the Main I can use it, making a copy of the Main variables to the dll structure. But then if on the Main changes one of the variables, The dll does not have the updated value, I have to do it with every dll I use. Now you think the problem is bigger if there is more than one dll. That is impractical.

I continue with the problem not solved and raised in:
Https://www.codeproject.com/Forums/1649/Csharp.aspx?fid=1649&df=90&mpp=25&sort=Position&spc=Relaxed&view=Normal&fr=51#xx0xx

Can anyone make a practical example? Thank you.
AnswerRe: Common Variables in Main, Dlls, and Functions in .cs Pin
Richard MacCutchan7-Jan-17 21:28
mveRichard MacCutchan7-Jan-17 21:28 
GeneralRe: Common Variables in Main, Dlls, and Functions in .cs Pin
zequion8-Jan-17 0:21
professionalzequion8-Jan-17 0:21 
GeneralRe: Common Variables in Main, Dlls, and Functions in .cs Pin
Richard MacCutchan8-Jan-17 1:28
mveRichard MacCutchan8-Jan-17 1:28 
GeneralRe: Common Variables in Main, Dlls, and Functions in .cs Pin
zequion8-Jan-17 5:42
professionalzequion8-Jan-17 5:42 
QuestionMocking Controller Methods Pin
Liagapi7-Jan-17 13:34
Liagapi7-Jan-17 13:34 
AnswerRe: Mocking Controller Methods Pin
Richard MacCutchan7-Jan-17 20:52
mveRichard MacCutchan7-Jan-17 20:52 
GeneralRe: Mocking Controller Methods Pin
Liagapi7-Jan-17 21:10
Liagapi7-Jan-17 21:10 
GeneralRe: Mocking Controller Methods Pin
Eddy Vluggen8-Jan-17 2:42
professionalEddy Vluggen8-Jan-17 2:42 
AnswerRe: Mocking Controller Methods Pin
Member 128317728-Jan-17 19:15
Member 128317728-Jan-17 19:15 
GeneralRe: Mocking Controller Methods Pin
Liagapi11-Jan-17 5:24
Liagapi11-Jan-17 5:24 

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.