Click here to Skip to main content
15,908,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Change mouse pointer... Pin
ThatsAlok20-May-09 22:59
ThatsAlok20-May-09 22:59 
AnswerRe: Change mouse pointer... Pin
_AnsHUMAN_ 20-May-09 23:00
_AnsHUMAN_ 20-May-09 23:00 
AnswerRe: Change mouse pointer... Pin
«_Superman_»21-May-09 17:38
professional«_Superman_»21-May-09 17:38 
GeneralRe: Change mouse pointer... Pin
sujeet22-May-09 2:55
sujeet22-May-09 2:55 
QuestionAbout data combination Pin
Chrissie.ja20-May-09 22:10
Chrissie.ja20-May-09 22:10 
AnswerRe: About data combination Pin
ThatsAlok20-May-09 22:58
ThatsAlok20-May-09 22:58 
GeneralRe: About data combination Pin
Chrissie.ja20-May-09 23:18
Chrissie.ja20-May-09 23:18 
GeneralRe: About data combination Pin
CPallini20-May-09 23:31
mveCPallini20-May-09 23:31 
GeneralRe: About data combination Pin
ThatsAlok20-May-09 23:48
ThatsAlok20-May-09 23:48 
GeneralRe: About data combination Pin
Chrissie.ja21-May-09 1:14
Chrissie.ja21-May-09 1:14 
GeneralRe: About data combination Pin
CPallini21-May-09 2:08
mveCPallini21-May-09 2:08 
GeneralRe: About data combination Pin
Chrissie.ja21-May-09 2:12
Chrissie.ja21-May-09 2:12 
QuestionDoubt in different Image formats? Pin
kapardhi20-May-09 21:42
kapardhi20-May-09 21:42 
AnswerRe: Doubt in different Image formats? Pin
Chris Losinger21-May-09 3:19
professionalChris Losinger21-May-09 3:19 
AnswerRe: Doubt in different Image formats? Pin
Stuart Dootson21-May-09 5:47
professionalStuart Dootson21-May-09 5:47 
QuestionHow to create machine certificate. Pin
deadlyabbas20-May-09 21:26
deadlyabbas20-May-09 21:26 
QuestionHow to use an image converter in my application? Pin
kapardhi20-May-09 21:17
kapardhi20-May-09 21:17 
AnswerRe: How to use an image converter in my application? Pin
Hamid_RT20-May-09 21:20
Hamid_RT20-May-09 21:20 
GeneralRe: How to use an image converter in my application? Pin
kapardhi20-May-09 21:31
kapardhi20-May-09 21:31 
AnswerRe: How to use an image converter in my application? Pin
ThatsAlok20-May-09 21:24
ThatsAlok20-May-09 21:24 
GeneralRe: How to use an image converter in my application? Pin
kapardhi20-May-09 21:34
kapardhi20-May-09 21:34 
GeneralRe: How to use an image converter in my application? Pin
ThatsAlok20-May-09 21:54
ThatsAlok20-May-09 21:54 
Questiondelete operator in C++ Pin
QuickDeveloper20-May-09 20:48
QuickDeveloper20-May-09 20:48 
AnswerRe: delete operator in C++ Pin
Cedric Moonen20-May-09 21:37
Cedric Moonen20-May-09 21:37 
Questionpassing value from C# to c++ Pin
mutpan20-May-09 19:40
mutpan20-May-09 19:40 
Hi All,

I am trying to pass the values to managed code( C# ) to unmanaged code( C++ ). The following is the example code
// C# pinvoke declaration 
[DllImport("Helper.dll", SetLastError = true)] 
[return: MarshalAs(UnmanagedType.Bool)] 
private extern static bool Sample(long AccessibleContext,long vm); 
<p> </p>
// Calling the function from C#
long ac = 10;
long id = 20;
Sample(ac,id);
<p> </p>
// C++ declaration
EXTERN_C __declspec(dllexport) BOOL Sample(  long ac ,long id)
{
  long sa;
  sa = ac + id;
  return true;
}


I am not always getting the value of the second parameter (ie "id") in C++ code, it comes as 0 but i am getting the first parameter value.

How can i resolve this problem?

Thanks in advance.

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.