Click here to Skip to main content
15,348,965 members

Comments by shiva_VC++ (Top 6 by date)

shiva_VC++ 5-Nov-14 1:46am View
   
hi Jonsson, i am not using the pinvoke functions. is there any way to use "out"instead of "ref" parameter?
shiva_VC++ 2-Nov-14 22:45pm View
   
ref string Value-- i can use stringbuilder,

ref byte page[]-- InPtr

for integers and integers arrays... can you please tell how can i proceed..
ref int value;
ref int indexs[];
..................
in pinvoke.net i have not able seen that Win32 method signatures to c# example..
can you please give your help....provide the link...

i am very thankfull for this
-------------------------------------------
one more thing is

IntPtr can acts as In and Out Like ref?
-------------------------------------------

i am using the C++/CLI wrappers

-------------------------------------------
shiva_VC++ 31-Oct-14 5:30am View
   
i have same problem with Byte, int also
like in above function
[in,out,size_is(Size)] byte compress_page[*] it will becomes
ref byte compress_page[].

here also "ref" causing the problem


shiva_VC++ 31-Oct-14 5:23am View
   
please give some example it is very help full to me,

thank you very much for this help
shiva_VC++ 31-Oct-14 5:18am View
   
I am trying to host my Wcf service with Entlib 5.0 Validation. When servie operation contracts go for validation they get crash. Whiel investigating, I found that ref keyword in Wcf service's operation giving this problem. E.g.:

Operation contract in service is like:

public void GetData(int ID, string name, ref string location) {};

Now, while validating string location, it gets crash and if I remove ref keyword it works fine.

Though, in EntLib version 4.0 there are no such issues.
i tried replacing "ref" with "out" the issue was solved..
that ref replacing with out means [in, out] replaced with out.. i am getting some junk values in "compress_page", i am suspecting that this because of When it acts as an input it taking junk values.
shiva_VC++ 31-Oct-14 0:21am View
   
thanks for your help,

the problem with ref key word . presently we are using Microsoft Enterprise library Version 4.0 we had thought to Migrate to MSE 5.0 .
I am trying to host my Wcf service with Entlib 5.0 Validation. When servie operation contracts go for validation they get crash. Whiel investigating, I found that ref keyword in Wcf service's operation giving this problem. E.g.:

Operation contract in service is like:

public void GetData(int ID, string name, ref string location) {}; [here ref in place of [in , out] in IDL file ]

Now, while validating string location, it gets crash and if I remove ref keyword it works fine.

Though, in EntLib version 4.0 there are no such issues.