Click here to Skip to main content
15,886,362 members
Home / Discussions / C#
   

C#

 
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 
QuestionI want to replace number in two tag to double with regex in a file txt Pin
Member 105306516-Jan-17 5:16
professionalMember 105306516-Jan-17 5:16 
AnswerRe: I want to replace number in two tag to double with regex in a file txt Pin
OriginalGriff6-Jan-17 5:34
mveOriginalGriff6-Jan-17 5:34 
GeneralRe: I want to replace number in two tag to double with regex in a file txt Pin
Member 105306516-Jan-17 7:03
professionalMember 105306516-Jan-17 7:03 
GeneralRe: I want to replace number in two tag to double with regex in a file txt Pin
OriginalGriff6-Jan-17 8:06
mveOriginalGriff6-Jan-17 8:06 
GeneralRe: I want to replace number in two tag to double with regex in a file txt Pin
Member 105306516-Jan-17 8:35
professionalMember 105306516-Jan-17 8:35 
GeneralRe: I want to replace number in two tag to double with regex in a file txt Pin
OriginalGriff6-Jan-17 8:49
mveOriginalGriff6-Jan-17 8:49 
GeneralRe: I want to replace number in two tag to double with regex in a file txt Pin
Member 105306516-Jan-17 9:04
professionalMember 105306516-Jan-17 9:04 

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.