Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
AnswerSimple answer: add an header before data Pin
Philippe Mori23-Jan-16 8:21
Philippe Mori23-Jan-16 8:21 
AnswerRe: how to implement this code for multiple clients using c sharp Pin
jschell27-Jan-16 9:18
jschell27-Jan-16 9:18 
Questionautomatic test data generators for C# ? Pin
BillWoodruff21-Jan-16 18:15
professionalBillWoodruff21-Jan-16 18:15 
AnswerRe: automatic test data generators for C# ? Pin
Eddy Vluggen22-Jan-16 6:38
professionalEddy Vluggen22-Jan-16 6:38 
GeneralRe: automatic test data generators for C# ? Pin
BillWoodruff22-Jan-16 13:03
professionalBillWoodruff22-Jan-16 13:03 
GeneralRe: automatic test data generators for C# ? Pin
Eddy Vluggen23-Jan-16 0:55
professionalEddy Vluggen23-Jan-16 0:55 
QuestionICustomMarshaler not returning an Out parameter Pin
mavl21-Jan-16 5:16
mavl21-Jan-16 5:16 
AnswerRe: ICustomMarshaler not returning an Out parameter Pin
Luc Pattyn21-Jan-16 15:18
sitebuilderLuc Pattyn21-Jan-16 15:18 
Hi,

I have been using P/Invoke for many years (and wrote a few articles on it), but I always stayed well away from complex marshaling, so I'm no expert on that whatsoever.


Nonetheless, I am confident that the C# compiler seeing these two lines in a method:
byte[] cipherBytes = new byte[0];
if (CryptProtectData(clearBytes, ..., cipherBytes))...

will always consider cipherBytes as a zero-length byte array since you didn't tell CryptProtectData is allowed to modify it, so it will be passed by value (which for an object is an address, not a pointer to an address). Whatever other code does can't change that.


Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

GeneralRe: ICustomMarshaler not returning an Out parameter Pin
mavl21-Jan-16 23:08
mavl21-Jan-16 23:08 
GeneralRe: ICustomMarshaler not returning an Out parameter Pin
Luc Pattyn22-Jan-16 4:40
sitebuilderLuc Pattyn22-Jan-16 4:40 
GeneralRe: ICustomMarshaler not returning an Out parameter Pin
mavl22-Jan-16 8:58
mavl22-Jan-16 8:58 
GeneralRe: ICustomMarshaler not returning an Out parameter Pin
Luc Pattyn22-Jan-16 9:10
sitebuilderLuc Pattyn22-Jan-16 9:10 
GeneralRe: ICustomMarshaler not returning an Out parameter Pin
mavl22-Jan-16 23:15
mavl22-Jan-16 23:15 
GeneralRe: ICustomMarshaler not returning an Out parameter Pin
Luc Pattyn23-Jan-16 0:43
sitebuilderLuc Pattyn23-Jan-16 0:43 
GeneralRe: ICustomMarshaler not returning an Out parameter Pin
mavl23-Jan-16 2:49
mavl23-Jan-16 2:49 
AnswerRe: ICustomMarshaler not returning an Out parameter Pin
Gerry Schmitz21-Jan-16 16:03
mveGerry Schmitz21-Jan-16 16:03 
GeneralRe: ICustomMarshaler not returning an Out parameter Pin
mavl21-Jan-16 23:32
mavl21-Jan-16 23:32 
QuestionHow to redirect the weburl to particular country when user types in Browser. Pin
pradeep yajamanam21-Jan-16 1:52
pradeep yajamanam21-Jan-16 1:52 
AnswerRe: How to redirect the weburl to particular country when user types in Browser. Pin
Dave Kreskowiak21-Jan-16 4:54
mveDave Kreskowiak21-Jan-16 4:54 
AnswerRe: How to redirect the weburl to particular country when user types in Browser. Pin
Richard MacCutchan21-Jan-16 5:03
mveRichard MacCutchan21-Jan-16 5:03 
AnswerRe: How to redirect the weburl to particular country when user types in Browser. Pin
Gerry Schmitz21-Jan-16 8:34
mveGerry Schmitz21-Jan-16 8:34 
Questiongetting country from phone number Pin
Asrour20-Jan-16 10:46
Asrour20-Jan-16 10:46 
AnswerRe: getting country from phone number Pin
Richard Andrew x6420-Jan-16 11:32
professionalRichard Andrew x6420-Jan-16 11:32 
GeneralRe: getting country from phone number Pin
Asrour20-Jan-16 11:40
Asrour20-Jan-16 11:40 
GeneralRe: getting country from phone number Pin
Richard Deeming21-Jan-16 2:20
mveRichard Deeming21-Jan-16 2:20 

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.