Click here to Skip to main content
15,887,436 members
Home / Discussions / C#
   

C#

 
QuestionA method to refresh MappedNetworkDrives in code? Pin
mlyons2-Feb-12 5:52
mlyons2-Feb-12 5:52 
AnswerRe: A method to refresh MappedNetworkDrives in code? Pin
SledgeHammer012-Feb-12 7:15
SledgeHammer012-Feb-12 7:15 
AnswerRe: A method to refresh MappedNetworkDrives in code? Pin
Mycroft Holmes2-Feb-12 14:05
professionalMycroft Holmes2-Feb-12 14:05 
GeneralRe: A method to refresh MappedNetworkDrives in code? Pin
mlyons3-Feb-12 2:59
mlyons3-Feb-12 2:59 
QuestionPInvoke stack overflow Pin
openLG2-Feb-12 2:47
openLG2-Feb-12 2:47 
AnswerRe: PInvoke stack overflow Pin
OriginalGriff2-Feb-12 2:59
mveOriginalGriff2-Feb-12 2:59 
GeneralRe: PInvoke stack overflow Pin
openLG2-Feb-12 3:09
openLG2-Feb-12 3:09 
AnswerRe: PInvoke stack overflow Pin
Luc Pattyn2-Feb-12 3:10
sitebuilderLuc Pattyn2-Feb-12 3:10 
Griff is right, using the wrong calling convention is likely to corrupt the stack, so you have to take care of that first.

the return value being zero could have many reasons, most probably the function failed to run properly, maybe one of the input parameters has a bad value, your device isn't present, whatever. What would be the expected failure reporting mode of the callee? Does it return zero and set errno or LastError?

Warning: pointers will take 32 or 64 bits depending on your OS and how you build the app.

FWIW: I wrote a little P/Invoke article here[^].

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

Fed up by FireFox memory leaks I switched to Opera and now CP doesn't perform its paste magic, so links will not be offered. Sorry.

GeneralRe: PInvoke stack overflow Pin
openLG2-Feb-12 3:16
openLG2-Feb-12 3:16 
QuestionNeed help for duplicate rows automatically inserted from front end. Pin
Member 85919852-Feb-12 2:17
Member 85919852-Feb-12 2:17 
AnswerRe: Need help for duplicate rows automatically inserted from front end. Pin
PIEBALDconsult2-Feb-12 2:28
mvePIEBALDconsult2-Feb-12 2:28 
AnswerRe: Need help for duplicate rows automatically inserted from front end. Pin
OriginalGriff2-Feb-12 3:03
mveOriginalGriff2-Feb-12 3:03 
GeneralRe: Need help for duplicate rows automatically inserted from front end. Pin
Luc Pattyn2-Feb-12 3:29
sitebuilderLuc Pattyn2-Feb-12 3:29 
AnswerRe: Need help for duplicate rows automatically inserted from front end. Pin
Dave Kreskowiak2-Feb-12 3:49
mveDave Kreskowiak2-Feb-12 3:49 
QuestionCall validation during setup Pin
iamdking1-Feb-12 20:20
iamdking1-Feb-12 20:20 
AnswerRe: Call validation during setup Pin
thatraja1-Feb-12 20:40
professionalthatraja1-Feb-12 20:40 
AnswerRe: Call validation during setup Pin
Abhinav S1-Feb-12 21:16
Abhinav S1-Feb-12 21:16 
QuestionSaveSetting Pin
Ian_urquhart1-Feb-12 1:35
Ian_urquhart1-Feb-12 1:35 
AnswerRe: SaveSetting Pin
Pete O'Hanlon1-Feb-12 2:28
mvePete O'Hanlon1-Feb-12 2:28 
GeneralRe: SaveSetting Pin
Ian_urquhart1-Feb-12 5:38
Ian_urquhart1-Feb-12 5:38 
GeneralRe: SaveSetting Pin
Pete O'Hanlon1-Feb-12 7:30
mvePete O'Hanlon1-Feb-12 7:30 
AnswerRe: SaveSetting Pin
Abhinav S1-Feb-12 3:15
Abhinav S1-Feb-12 3:15 
AnswerRe: SaveSetting Pin
BillWoodruff1-Feb-12 5:36
professionalBillWoodruff1-Feb-12 5:36 
GeneralRe: SaveSetting Pin
Ian_urquhart1-Feb-12 5:56
Ian_urquhart1-Feb-12 5:56 
GeneralRe: SaveSetting Pin
SledgeHammer011-Feb-12 6:27
SledgeHammer011-Feb-12 6:27 

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.