Click here to Skip to main content
15,867,756 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to convert lat/long values to mils??? Pin
#realJSOP14-Mar-10 3:56
mve#realJSOP14-Mar-10 3:56 
GeneralRe: How to convert lat/long values to mils??? Pin
Dr.Walt Fair, PE18-Mar-10 8:16
professionalDr.Walt Fair, PE18-Mar-10 8:16 
AnswerRe: How to convert lat/long values to mils??? Pin
#realJSOP14-Mar-10 3:56
mve#realJSOP14-Mar-10 3:56 
AnswerRe: How to convert lat/long values to mils??? Pin
PIEBALDconsult14-Mar-10 4:27
mvePIEBALDconsult14-Mar-10 4:27 
QuestionHow to connect Legend and map control Pin
v17.poornima13-Mar-10 4:40
v17.poornima13-Mar-10 4:40 
Questioninterop question Pin
thomus0713-Mar-10 1:34
thomus0713-Mar-10 1:34 
AnswerRe: interop question Pin
Saksida Bojan13-Mar-10 2:21
Saksida Bojan13-Mar-10 2:21 
AnswerRe: interop question [modified] Pin
Luc Pattyn13-Mar-10 2:34
sitebuilderLuc Pattyn13-Mar-10 2:34 
Hi,

in
void foo(unsigned short** buff) {
    *buff = &StaticArray[0];
}


what gets passed on is the pointer to a pointer, not very common in the managed world. I think it isn't a good idea to do this; you will need to use IntPtr and some explicit code to get the data marshaled; one problem is you are not carrying any size information across the border.

In my experience it is lots easier to allocate everything on the managed side; you then can pin, get the pointer, and pass that to the unmanaged side quite easily, and no bulk copy occurs.

I have a work-in-progress article about it here[^].

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.

modified on Saturday, March 13, 2010 9:58 AM

GeneralRe: interop question [modified] Pin
thomus0713-Mar-10 19:03
thomus0713-Mar-10 19:03 
QuestionVedio streaming online Pin
ifithegr813-Mar-10 1:07
ifithegr813-Mar-10 1:07 
Questionsql server log file - .ldf Pin
Zeyad Jalil13-Mar-10 0:55
professionalZeyad Jalil13-Mar-10 0:55 
AnswerRe: sql server log file - .ldf Pin
Dave Kreskowiak13-Mar-10 2:27
mveDave Kreskowiak13-Mar-10 2:27 
AnswerRe: sql server log file - .ldf Pin
Eddy Vluggen14-Mar-10 2:16
professionalEddy Vluggen14-Mar-10 2:16 
QuestionIs it possible to authenticate a dll class library ? Pin
SierraMike12-Mar-10 23:29
SierraMike12-Mar-10 23:29 
AnswerRe: Is it possible to authenticate a dll class library ? Pin
#realJSOP13-Mar-10 0:14
mve#realJSOP13-Mar-10 0:14 
GeneralRe: Is it possible to authenticate a dll class library ? Pin
SierraMike15-Mar-10 22:37
SierraMike15-Mar-10 22:37 
QuestionDataSourceUpdateMode Pin
ali_reza_zareian12-Mar-10 22:19
ali_reza_zareian12-Mar-10 22:19 
AnswerRe: DataSourceUpdateMode Pin
darkelv13-Mar-10 7:04
darkelv13-Mar-10 7:04 
QuestionHow to USE LIB FILE in c# Pin
Anubhava Dimri12-Mar-10 22:16
Anubhava Dimri12-Mar-10 22:16 
AnswerRe: How to USE LIB FILE in c# Pin
sanforjackass12-Mar-10 22:31
sanforjackass12-Mar-10 22:31 
GeneralRe: How to USE LIB FILE in c# Pin
Anubhava Dimri12-Mar-10 22:36
Anubhava Dimri12-Mar-10 22:36 
GeneralRe: How to USE LIB FILE in c# Pin
sanforjackass12-Mar-10 22:44
sanforjackass12-Mar-10 22:44 
GeneralRe: How to USE LIB FILE in c# Pin
Anubhava Dimri12-Mar-10 23:05
Anubhava Dimri12-Mar-10 23:05 
AnswerRe: How to USE LIB FILE in c# Pin
Hristo-Bojilov12-Mar-10 22:42
Hristo-Bojilov12-Mar-10 22:42 
GeneralRe: How to USE LIB FILE in c# Pin
Anubhava Dimri12-Mar-10 23:07
Anubhava Dimri12-Mar-10 23:07 

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.