Click here to Skip to main content
15,922,533 members
Home / Discussions / C#
   

C#

 
QuestionFail to read simple string from the registry ( code attached ) Pin
Yanshof3-Jan-11 21:46
Yanshof3-Jan-11 21:46 
AnswerRe: Fail to read simple string from the registry ( code attached ) Pin
JF20153-Jan-11 22:00
JF20153-Jan-11 22:00 
GeneralRe: Fail to read simple string from the registry ( code attached ) Pin
Yanshof3-Jan-11 22:15
Yanshof3-Jan-11 22:15 
GeneralRe: Fail to read simple string from the registry ( code attached ) Pin
JF20153-Jan-11 22:18
JF20153-Jan-11 22:18 
GeneralRe: Fail to read simple string from the registry ( code attached ) Pin
Yanshof3-Jan-11 22:32
Yanshof3-Jan-11 22:32 
GeneralRe: Fail to read simple string from the registry ( code attached ) Pin
JF20153-Jan-11 22:46
JF20153-Jan-11 22:46 
GeneralRe: Fail to read simple string from the registry ( code attached ) Pin
JF20153-Jan-11 22:25
JF20153-Jan-11 22:25 
AnswerRe: Fail to read simple string from the registry ( code attached ) Pin
Luc Pattyn4-Jan-11 1:43
sitebuilderLuc Pattyn4-Jan-11 1:43 
QuestionAOP logging Pin
ATM@CodeProject3-Jan-11 19:08
ATM@CodeProject3-Jan-11 19:08 
QuestionError while Extracting Files in zip folder Pin
arun_pk3-Jan-11 18:34
arun_pk3-Jan-11 18:34 
AnswerRe: Error while Extracting Files in zip folder Pin
OriginalGriff3-Jan-11 22:40
mveOriginalGriff3-Jan-11 22:40 
GeneralRe: Error while Extracting Files in zip folder Pin
arun_pk3-Jan-11 23:34
arun_pk3-Jan-11 23:34 
GeneralRe: Error while Extracting Files in zip folder Pin
OriginalGriff3-Jan-11 23:38
mveOriginalGriff3-Jan-11 23:38 
GeneralRe: Error while Extracting Files in zip folder Pin
arun_pk3-Jan-11 23:54
arun_pk3-Jan-11 23:54 
GeneralRe: Error while Extracting Files in zip folder Pin
OriginalGriff4-Jan-11 2:06
mveOriginalGriff4-Jan-11 2:06 
GeneralRe: Error while Extracting Files in zip folder Pin
arun_pk4-Jan-11 17:38
arun_pk4-Jan-11 17:38 
QuestionP/Invoke an array that is a field in a struct. Pin
DaveyM693-Jan-11 11:10
professionalDaveyM693-Jan-11 11:10 
AnswerRe: P/Invoke an array that is a field in a struct. Pin
Luc Pattyn3-Jan-11 11:35
sitebuilderLuc Pattyn3-Jan-11 11:35 
GeneralRe: P/Invoke an array that is a field in a struct. Pin
DaveyM693-Jan-11 11:59
professionalDaveyM693-Jan-11 11:59 
GeneralRe: P/Invoke an array that is a field in a struct. Pin
Luc Pattyn3-Jan-11 12:06
sitebuilderLuc Pattyn3-Jan-11 12:06 
GeneralRe: P/Invoke an array that is a field in a struct. Pin
DaveyM693-Jan-11 12:11
professionalDaveyM693-Jan-11 12:11 
GeneralRe: P/Invoke an array that is a field in a struct. Pin
Luc Pattyn3-Jan-11 12:31
sitebuilderLuc Pattyn3-Jan-11 12:31 
GeneralRe: P/Invoke an array that is a field in a struct. Pin
DaveyM693-Jan-11 12:36
professionalDaveyM693-Jan-11 12:36 
GeneralRe: P/Invoke an array that is a field in a struct. Pin
DaveyM693-Jan-11 12:33
professionalDaveyM693-Jan-11 12:33 
AnswerRe: P/Invoke an array that is a field in a struct. Pin
_Erik_4-Jan-11 6:02
_Erik_4-Jan-11 6:02 
Use classes instead of structs and make the default constructor private. By the way, when I have to use P/Invoke I always try to maintain the things as simple as possible and, in my opinion, I think you are looping the loops here. Since the C function receives an array, I would have used IntPtr type for the parameter, so I would be able to pass any array with the help of Marshal class.

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.