Click here to Skip to main content
15,880,967 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: trying to understand DLL and Thread local storage Pin
jschell5-Dec-22 6:06
jschell5-Dec-22 6:06 
GeneralRe: trying to understand DLL and Thread local storage Pin
ForNow5-Dec-22 7:37
ForNow5-Dec-22 7:37 
GeneralRe: trying to understand DLL and Thread local storage Pin
jschell12-Dec-22 10:21
jschell12-Dec-22 10:21 
NewsGood news, /clr builds will soon add C++ 20 support! Pin
John Schroedl15-Nov-22 5:49
professionalJohn Schroedl15-Nov-22 5:49 
Questionrekursif Pin
Achmad Roihan28-Oct-22 2:31
Achmad Roihan28-Oct-22 2:31 
AnswerRe: rekursif Pin
OriginalGriff28-Oct-22 2:38
mveOriginalGriff28-Oct-22 2:38 
Questionrekursif program (Recursive Program) Pin
Achmad Roihan26-Oct-22 19:51
Achmad Roihan26-Oct-22 19:51 
AnswerRe: rekursif program (Recursive Program) Pin
OriginalGriff26-Oct-22 20:02
mveOriginalGriff26-Oct-22 20:02 
This is an English language site, and we can only accept and answer questions in that language.
I have run this through Google Translate to produce a probably-good version, but you should check it and make sure it does say what you are actually asking.

And that code isn't recursive: it's iterative.
Recursion happens when a function calls itself, either directly:
C++
int foo(int i)
   {
   if (i <= 1) return 1;
   return i + foo(i - 1);
   }
Or indirectly:
C++
int foo(int i)
   {
   if (i <= 1) return 1;
   return i + bar(i);
   }
int bar(int i)
   {
   return foo(i - 1);
   }
Your code contains one method, which you do not call yourself!
And please, do yourself a favour and indent your code more deeply - it's a lot easier to see what is going on with three or four spaces per indent rather than one. It's not a massive problem with a tiny code fragment like you show, but as your code gets bigger it becomes seriously difficult to work out what is going on!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

QuestionHow to close & clear the oledbconnection on form2()_load? Pin
Paramu19739-Oct-22 14:10
Paramu19739-Oct-22 14:10 
AnswerRe: How to close & clear the oledbconnection on form2()_load? Pin
Gerry Schmitz9-Oct-22 19:32
mveGerry Schmitz9-Oct-22 19:32 
QuestionHow does the compiler achieve the CRT remapping? Pin
John Schroedl22-Aug-22 10:50
professionalJohn Schroedl22-Aug-22 10:50 
Question[Solved] I hope there is a Managed C++/CLR person left to help me with Parallel::For Pin
madusmacus27-Jul-22 4:25
madusmacus27-Jul-22 4:25 
AnswerRe: I hope there is a Managed C++/CLR person left to help me with Parallel::For Pin
Richard Deeming27-Jul-22 22:13
mveRichard Deeming27-Jul-22 22:13 
General[Final Code Here] Re: I hope there is a Managed C++/CLR person left to help me with Parallel::For Pin
madusmacus27-Jul-22 22:35
madusmacus27-Jul-22 22:35 
Questionc++ forms 2022 code Pin
Member 884846417-Jun-22 1:37
Member 884846417-Jun-22 1:37 
AnswerRe: c++ forms 2022 code Pin
Richard MacCutchan17-Jun-22 3:56
mveRichard MacCutchan17-Jun-22 3:56 
QuestionI want to write a C++/CLI wrapper class library which can be utilized in both C++ and C# applications. Pin
Member 121624009-Jun-22 21:45
Member 121624009-Jun-22 21:45 
Questionsimplifying code Pin
hshan_15-Mar-22 6:30
hshan_15-Mar-22 6:30 
AnswerRe: simplifying code Pin
Victor Nijegorodov15-Mar-22 9:22
Victor Nijegorodov15-Mar-22 9:22 
GeneralRe: simplifying code Pin
Ghazi Warrior22-Mar-22 19:46
Ghazi Warrior22-Mar-22 19:46 
GeneralRe: simplifying code Pin
hshan_19-Apr-22 3:35
hshan_19-Apr-22 3:35 
AnswerRe: simplifying code Pin
Craig Robbins15-Mar-22 9:25
Craig Robbins15-Mar-22 9:25 
QuestionConvert From C# To Visual C++ 2015 Pin
Paramu197313-Dec-21 20:21
Paramu197313-Dec-21 20:21 
Rant[REPOST] Convert From C# To Visual C++ 2015 Pin
Richard Deeming13-Dec-21 21:56
mveRichard Deeming13-Dec-21 21:56 
GeneralRe: [REPOST] Convert From C# To Visual C++ 2015 Pin
Paramu197316-Dec-21 21:14
Paramu197316-Dec-21 21:14 

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.