Click here to Skip to main content
15,889,403 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to convert .pst files to .xml files using C# programming language? Pin
Nagy Vilmos28-Jul-09 23:11
professionalNagy Vilmos28-Jul-09 23:11 
GeneralRe: how to convert .pst files to .xml files using C# programming language? Pin
tchshiping29-Jul-09 13:17
tchshiping29-Jul-09 13:17 
AnswerRe: how to convert .pst files to .xml files using C# programming language? Pin
Mycroft Holmes28-Jul-09 23:23
professionalMycroft Holmes28-Jul-09 23:23 
GeneralRe: how to convert .pst files to .xml files using C# programming language? Pin
tchshiping29-Jul-09 13:22
tchshiping29-Jul-09 13:22 
GeneralRe: how to convert .pst files to .xml files using C# programming language? PinPopular
Mycroft Holmes29-Jul-09 14:09
professionalMycroft Holmes29-Jul-09 14:09 
GeneralRe: how to convert .pst files to .xml files using C# programming language? Pin
situ2110-Apr-11 22:19
situ2110-Apr-11 22:19 
Questioncalling unmanaged C++ dll from C#: return type double[] Pin
devvvy28-Jul-09 22:27
devvvy28-Jul-09 22:27 
AnswerRe: calling unmanaged C++ dll from C#: return type double[] Pin
Moreno Airoldi29-Jul-09 3:13
Moreno Airoldi29-Jul-09 3:13 
GetSomeDoubleArray returns a pointer, so you must go unmanaged and get your data starting from that pointer, and put in into an array. I know there's a System.IntPtr type which can help with Int32 data, but I don't know if there's anything for Doubles.

But there's a problem with your implementation: you return a pointer to an array declared in the function's scope, which is allocated on the stack and destroyed when the function exits!

So if you absolutely need to return the array you should make it static. You can allocate and deallocate it upon loading and unloading the DLL, either automatically (by a declaration in the main scope) or manually. Watch out for thread safety if you need it, and it's done.

But the best way to solve your problem would be to declare a double[] array on the C# side and pass it by reference to GetSomeDoubleArray - it will save you all the headaches. Smile | :)

2+2=5 for very large amounts of 2
(always loved that one hehe!)

QuestionDownload a intranet site from a windows form (401 error) Pin
Succodimele28-Jul-09 22:14
Succodimele28-Jul-09 22:14 
AnswerRe: Download a intranet site from a windows form (401 error) Pin
Vimalsoft(Pty) Ltd29-Jul-09 2:03
professionalVimalsoft(Pty) Ltd29-Jul-09 2:03 
GeneralRe: Download a intranet site from a windows form (401 error) Pin
Succodimele29-Jul-09 4:11
Succodimele29-Jul-09 4:11 
GeneralRe: Download a intranet site from a windows form (401 error) Pin
Vimalsoft(Pty) Ltd29-Jul-09 4:34
professionalVimalsoft(Pty) Ltd29-Jul-09 4:34 
GeneralRe: Download a intranet site from a windows form (401 error) Pin
Succodimele29-Jul-09 19:56
Succodimele29-Jul-09 19:56 
GeneralRe: Download a intranet site from a windows form (401 error) Pin
Succodimele29-Jul-09 20:15
Succodimele29-Jul-09 20:15 
QuestionHow do I get the correct font height in Hindi fonts? Pin
Gywox28-Jul-09 22:05
Gywox28-Jul-09 22:05 
AnswerRe: How do I get the correct font height in Hindi fonts? Pin
Nagy Vilmos28-Jul-09 22:19
professionalNagy Vilmos28-Jul-09 22:19 
GeneralRe: How do I get the correct font height in Hindi fonts? Pin
Gywox28-Jul-09 22:30
Gywox28-Jul-09 22:30 
GeneralRe: How do I get the correct font height in Hindi fonts? Pin
Nagy Vilmos28-Jul-09 23:10
professionalNagy Vilmos28-Jul-09 23:10 
GeneralRe: How do I get the correct font height in Hindi fonts? Pin
Gywox28-Jul-09 23:20
Gywox28-Jul-09 23:20 
Questionhorizontal scroll bar move event... Pin
spalanivel28-Jul-09 21:21
spalanivel28-Jul-09 21:21 
AnswerRe: horizontal scroll bar move event... Pin
stancrm28-Jul-09 21:43
stancrm28-Jul-09 21:43 
GeneralRe: horizontal scroll bar move event... Pin
spalanivel28-Jul-09 22:00
spalanivel28-Jul-09 22:00 
GeneralRe: horizontal scroll bar move event... Pin
spalanivel29-Jul-09 0:53
spalanivel29-Jul-09 0:53 
AnswerRe: horizontal scroll bar move event... Pin
Alan N29-Jul-09 2:03
Alan N29-Jul-09 2:03 
QuestionOOP approach, static method Pin
Raybarg28-Jul-09 20:46
professionalRaybarg28-Jul-09 20:46 

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.