• Member Avatar for nitin1
    nitin1

    Replied To a Post in How to pass a string from c# to c++?

    Basically, I checked the project properties of the Component and it's as a dll. I tried to add msclr/mashal.h but it gives me error: WinRT does not support #using of …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in How to pass a string from c# to c++?

    Not projects. Basically I have one solution & in that I have a c++ library integrated as a submodule for image rendering etc. & my cs side code which is …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in How to pass a string from c# to c++?

    Actually, I have an UWP application having one solution in which I have cs & c++ modules. I need to pass a cs based string to cpp side & vice-versa. …
  • Member Avatar for nitin1
    nitin1

    Created How to pass a string from c# to c++?

    Hi, How can I pass a c# string to C++ side of the app? Right now, I have all handling in Const char * format . When I pass c# …
  • Member Avatar for nitin1
    nitin1

    Began Watching How to pass a string from c# to c++?

    Hi, How can I pass a c# string to C++ side of the app? Right now, I have all handling in Const char * format . When I pass c# …
  • Member Avatar for nitin1
    nitin1

    Marked Solved Status for Type conversion from string to const char * problem

    Hi, I am facing an issue in string to const char pointer conversion. I am doing stuff in the fun() but here i am just giving my example. Here it …
  • Member Avatar for nitin1
    nitin1

    Gave Reputation to deceptikon in Type conversion from string to const char * problem

    > Thus c_str() isn't making a copy of anything, globalPtr is pointing to the same array of characters that abc uses and if you make a change using globalPtr or …
  • Member Avatar for nitin1
    nitin1

    Gave Reputation to deceptikon in Type conversion from string to const char * problem

    > when fun() returns, it calls the copy constructor again, right? Ehh, kind of. Return value optimization is a thing, but conceptually it's okay to think of things that way …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in Type conversion from string to const char * problem

    @Deceptikon Awesome explanation. +1. Got the complete point. But, just one more question from your point only. Can you explain this little more? **The enclosing expression is your initialization statement …
  • Member Avatar for nitin1
    nitin1

    Gave Reputation to deceptikon in Type conversion from string to const char * problem

    > Can you please explain the reason behind this? You're capturing a direct pointer to the internal storage of the string returned by fun(), which is a temporary object. The …
  • Member Avatar for nitin1
    nitin1

    Gave Reputation to deceptikon in Type conversion from string to const char * problem

    > Can you please explain the reason behind this? You're capturing a direct pointer to the internal storage of the string returned by fun(), which is a temporary object. The …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in Type conversion from string to const char * problem

    @deceptikon Thanks a lot for the great explanation. One question: when fun() returns, it calls the copy constructor again, right? As told here: [Click Here](http://stackoverflow.com/questions/665781/copy-constructor-in-c-is-called-when-object-is-returned-from-a-function) I got the point when …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in Type conversion from string to const char * problem

    @tinstaffl Can you please explain the reason behind this? I am curious to know why compiler might be doing this? Please throw some light on this.
  • Member Avatar for nitin1
    nitin1

    Created Type conversion from string to const char * problem

    Hi, I am facing an issue in string to const char pointer conversion. I am doing stuff in the fun() but here i am just giving my example. Here it …
  • Member Avatar for nitin1
    nitin1

    Began Watching Type conversion from string to const char * problem

    Hi, I am facing an issue in string to const char pointer conversion. I am doing stuff in the fun() but here i am just giving my example. Here it …
  • Member Avatar for nitin1
    nitin1

    Created Discard all activities in app except one activity

    Hi guys, Here is the question: I have Activity A, Activity B. Now, A --> B . Now, pressed the home button. Now, go to any image & "open with" …
  • Member Avatar for nitin1
    nitin1

    Began Watching Discard all activities in app except one activity

    Hi guys, Here is the question: I have Activity A, Activity B. Now, A --> B . Now, pressed the home button. Now, go to any image & "open with" …
  • Member Avatar for nitin1
    nitin1

    Marked Solved Status for Difference betweeb two dates as number of days

    Hi, I am stuck with a problem. I have two Date objects (util class objects). I want the difference between these two dates as the number of days between them? …
  • Member Avatar for nitin1
    nitin1

    Marked Solved Status for convert jobject to jboolean in JNI

    Hi, I have one function (in a library I can't change the code) which takes a key and returns a Object. This code is written in java. I am calling …
  • Member Avatar for nitin1
    nitin1

    Created How to solve: who has which device problem?

    Hi everyone, How are you? Starting some thread after long time :) Actually, I have a group of 25 people. I have 20-25 mobile devices in my group. So, I …
  • Member Avatar for nitin1
    nitin1

    Began Watching How to solve: who has which device problem?

    Hi everyone, How are you? Starting some thread after long time :) Actually, I have a group of 25 people. I have 20-25 mobile devices in my group. So, I …
  • Member Avatar for nitin1
    nitin1

    Created convert jobject to jboolean in JNI

    Hi, I have one function (in a library I can't change the code) which takes a key and returns a Object. This code is written in java. I am calling …
  • Member Avatar for nitin1
    nitin1

    Began Watching convert jobject to jboolean in JNI

    Hi, I have one function (in a library I can't change the code) which takes a key and returns a Object. This code is written in java. I am calling …
  • Member Avatar for nitin1
    nitin1

    Created diff between jstring & jclass in JNI

    Hi, I have been working on JNI. I have one doubt. When I call any native method from android activity (Java code), then we get jclass object from jobject instance …
  • Member Avatar for nitin1
    nitin1

    Began Watching diff between jstring & jclass in JNI

    Hi, I have been working on JNI. I have one doubt. When I call any native method from android activity (Java code), then we get jclass object from jobject instance …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in Css class not working on mobile, tablets

    My issue exist on all browsers of tablets & mobiles. but working fine on desktop browsers.
  • Member Avatar for nitin1
    nitin1

    Created Css class not working on mobile, tablets

    Hi, I have one CSS. .buttonSize { min-width : 58% } Actually, I have two buttons, with text "Hovers" & "Copy". My button without any css taking spaces which can …
  • Member Avatar for nitin1
    nitin1

    Began Watching Css class not working on mobile, tablets

    Hi, I have one CSS. .buttonSize { min-width : 58% } Actually, I have two buttons, with text "Hovers" & "Copy". My button without any css taking spaces which can …
  • Member Avatar for nitin1
    nitin1

    Edited Explanation of one threading concept

    Hey, I have been reading Java oracle tutorials. I read this thing. Suppose, for example, class MsLunch has two instance fields, c1 and c2, that are never used together. All …
  • Member Avatar for nitin1
    nitin1

    Created Explanation of one threading concept

    Hey, I have been reading Java oracle tutorials. I read this thing. Suppose, for example, class MsLunch has two instance fields, c1 and c2, that are never used together. All …
  • Member Avatar for nitin1
    nitin1

    Began Watching Explanation of one threading concept

    Hey, I have been reading Java oracle tutorials. I read this thing. Suppose, for example, class MsLunch has two instance fields, c1 and c2, that are never used together. All …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in Learn deep concepts of Java

    @freshly, As I checked, we don't have much things for threading in the book you mentioned. did you mean something else? Thanks in advance.
  • Member Avatar for nitin1
    nitin1

    Edited High Level vs Low Level Design

    Hi all, Actually, this question is not related to some coding or logic from my project. But, as I am doing hard and harder projects (acc. to me & my …
  • Member Avatar for nitin1
    nitin1

    Edited High Level vs Low Level Design

    Hi all, Actually, this question is not related to some coding or logic from my project. But, as I am doing hard and harder projects (acc. to me & my …
  • Member Avatar for nitin1
    nitin1

    Created High Level vs Low Level Design

    Hi all, Actually, this question is not related to some coding or logic from my project. But, as I am doing hard and harder projects (acc. to me & my …
  • Member Avatar for nitin1
    nitin1

    Began Watching High Level vs Low Level Design

    Hi all, Actually, this question is not related to some coding or logic from my project. But, as I am doing hard and harder projects (acc. to me & my …
  • Member Avatar for nitin1
    nitin1

    Marked Solved Status for Does Java creates "is" functions for booleans in a class?

    Hi, I was using booleans earlier in my class. --> isProductRestricted --> internal --> isProductGlobal I am using lombok too. So putting @Data at the top of class too. But, …
  • Member Avatar for nitin1
    nitin1

    Edited How to get value of unchecked checkbox in a form?

    Hi, I am creating a form in jsp. <form action="" method="post"> <input type="hidden" name="status_1" value="0" /> <input type="checkbox" id="status_1" name="status_1" value="1" /> <input type="hidden" name="status_2" value="0" /> <input type="checkbox" id="status_2" …
  • Member Avatar for nitin1
    nitin1

    Created How to get value of unchecked checkbox in a form?

    Hi, I am creating a form in jsp. <form action="" method="post"> <input type="hidden" name="status_1" value="0" /> <input type="checkbox" id="status_1" name="status_1" value="1" /> <input type="hidden" name="status_2" value="0" /> <input type="checkbox" id="status_2" …
  • Member Avatar for nitin1
    nitin1

    Began Watching How to get value of unchecked checkbox in a form?

    Hi, I am creating a form in jsp. <form action="" method="post"> <input type="hidden" name="status_1" value="0" /> <input type="checkbox" id="status_1" name="status_1" value="1" /> <input type="hidden" name="status_2" value="0" /> <input type="checkbox" id="status_2" …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in Difference betweeb two dates as number of days

    Hey James, The code we discussed about date is giving zero days. Instant startInstant = myclassObj.getStartTime().tonstant() ; Instant endInstant = myclassObj.getExpiredTime().toInstant(); long days = ChronoUnit.DAYS.between(startInstant, endInstant); :(
  • Member Avatar for nitin1
    nitin1

    Gave Reputation to JamesCherrill in Difference betweeb two dates as number of days

    ps You may be amused by answers 1, 2, and 5 on this Quora page... https://www.quora.com/What-is-the-most-complex-piece-of-code-written-for-a-function-that-is-seemingly-extremely-simple
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in Does Java creates "is" functions for booleans in a class?

    Thanks for your quick response. Yes. By errors, I meant that they are not defined any more. This happened when I changed boolean to Boolean. I suspect this happens because …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in Does Java creates "is" functions for booleans in a class?

    No. NOt object class. Consider it as like this: MyClass myClass = new MyClass(); myClass.isInternal() myClass.getProductGlobal()
  • Member Avatar for nitin1
    nitin1

    Created Does Java creates "is" functions for booleans in a class?

    Hi, I was using booleans earlier in my class. --> isProductRestricted --> internal --> isProductGlobal I am using lombok too. So putting @Data at the top of class too. But, …
  • Member Avatar for nitin1
    nitin1

    Began Watching Does Java creates "is" functions for booleans in a class?

    Hi, I was using booleans earlier in my class. --> isProductRestricted --> internal --> isProductGlobal I am using lombok too. So putting @Data at the top of class too. But, …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in Difference betweeb two dates as number of days

    Thanks James for the quick response. Instant instant1 = date1.toInstant(); Instant instant2 = date2.toInstant(); return ChronoUnit.DAYS.between(instant1,instant2); Seems good? Also, can you point out possible things in the code snippet I …
  • Member Avatar for nitin1
    nitin1

    Replied To a Post in Difference betweeb two dates as number of days

    HI james, Thanks for the response. But I have two Date object. I have to use Date date1 , Date date2. Now, I want to find days between them. Can …
  • Member Avatar for nitin1
    nitin1

    Created Difference betweeb two dates as number of days

    Hi, I am stuck with a problem. I have two Date objects (util class objects). I want the difference between these two dates as the number of days between them? …
  • Member Avatar for nitin1
    nitin1

    Began Watching Difference betweeb two dates as number of days

    Hi, I am stuck with a problem. I have two Date objects (util class objects). I want the difference between these two dates as the number of days between them? …

The End.