Sign up to connect with nitin1 and gain access to their complete profile
  • Member Avatar
    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
    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
    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
    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
    nitin1

    Replied To a Post in 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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    nitin1

    Replied To a Post in 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
    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
    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
    nitin1

    Replied To a Post in 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
    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
    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
    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
    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
    nitin1

    Replied To a Post in 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
    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
    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
    nitin1

    Replied To a Post in 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
    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
    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
    nitin1

    Replied To a Post in 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 …

The End.