Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
GeneralRe: Calling C++ Image API from C# Pin
econner14-Jan-11 9:12
econner14-Jan-11 9:12 
GeneralRe: Calling C++ Image API from C# Pin
_Erik_14-Jan-11 10:22
_Erik_14-Jan-11 10:22 
GeneralRe: Calling C++ Image API from C# Pin
econner14-Jan-11 11:38
econner14-Jan-11 11:38 
GeneralRe: Calling C++ Image API from C# Pin
econner14-Jan-11 12:07
econner14-Jan-11 12:07 
GeneralRe: Calling C++ Image API from C# Pin
econner14-Jan-11 12:30
econner14-Jan-11 12:30 
GeneralRe: Calling C++ Image API from C# Pin
econner15-Jan-11 5:16
econner15-Jan-11 5:16 
GeneralRe: Calling C++ Image API from C# Pin
_Erik_17-Jan-11 2:32
_Erik_17-Jan-11 2:32 
AnswerRe: Calling C++ Image API from C# Pin
Luc Pattyn13-Jan-11 5:18
sitebuilderLuc Pattyn13-Jan-11 5:18 
It is very fortunate the caller is responsible for the buffer, so you can have it all managed. You need to allocate a byte array of sufficient capacity, and pass its pointer (an IntPtr in .NET); you won't need any Marshal attributes, not even any unsafe stuff. Look for the GCHandle class, and read how I pass arrays in this article[^]. Don't forget to free the GCHandle once you don't need it any more (which could be well after the return of the first native function, if it happens to keep the pointer around).

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

AnswerRe: Calling C++ Image API from C# [modified] Pin
econner13-Jan-11 6:11
econner13-Jan-11 6:11 
AnswerRe: Calling C++ Image API from C# Pin
Luc Pattyn13-Jan-11 6:22
sitebuilderLuc Pattyn13-Jan-11 6:22 
GeneralRe: Calling C++ Image API from C# Pin
econner13-Jan-11 6:49
econner13-Jan-11 6:49 
AnswerRe: Calling C++ Image API from C# Pin
Luc Pattyn13-Jan-11 6:56
sitebuilderLuc Pattyn13-Jan-11 6:56 
GeneralRe: Calling C++ Image API from C# Pin
econner13-Jan-11 7:00
econner13-Jan-11 7:00 
AnswerRe: Calling C++ Image API from C# Pin
jschell13-Jan-11 8:06
jschell13-Jan-11 8:06 
QuestionHow to record audio and modify the signal? Pin
softwarejaeger13-Jan-11 3:41
softwarejaeger13-Jan-11 3:41 
AnswerRe: How to record audio and modify the signal? Pin
Rob Philpott13-Jan-11 4:17
Rob Philpott13-Jan-11 4:17 
AnswerRe: How to record audio and modify the signal? Pin
Luc Pattyn13-Jan-11 4:28
sitebuilderLuc Pattyn13-Jan-11 4:28 
AnswerRe: How to record audio and modify the signal? Pin
_Erik_13-Jan-11 4:35
_Erik_13-Jan-11 4:35 
AnswerRe: How to record audio and modify the signal? Pin
Dalek Dave13-Jan-11 4:39
professionalDalek Dave13-Jan-11 4:39 
GeneralRe: How to record audio and modify the signal? Pin
softwarejaeger13-Jan-11 20:16
softwarejaeger13-Jan-11 20:16 
AnswerRe: How to record audio and modify the signal? Pin
César de Souza13-Jan-11 11:16
professionalCésar de Souza13-Jan-11 11:16 
QuestionHow i can make my connection string dynmic with th current root ? Pin
Honeyboy_2013-Jan-11 2:32
Honeyboy_2013-Jan-11 2:32 
AnswerRe: How i can make my connection string dynmic with th current root ? Pin
RaviRanjanKr13-Jan-11 4:20
professionalRaviRanjanKr13-Jan-11 4:20 
GeneralRe: How i can make my connection string dynmic with th current root ? Pin
Honeyboy_2013-Jan-11 7:19
Honeyboy_2013-Jan-11 7:19 
AnswerRe: How i can make my connection string dynmic with th current root ? Pin
RaviRanjanKr13-Jan-11 18:01
professionalRaviRanjanKr13-Jan-11 18:01 

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.