15,893,588 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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.
Show More