Click here to Skip to main content
15,896,606 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# equivalent to char * (well, System.IntPtr)?? Pin
DigitalKing6-May-06 20:29
DigitalKing6-May-06 20:29 
GeneralRe: C# equivalent to char * (well, System.IntPtr)?? Pin
Phil C6-May-06 20:51
Phil C6-May-06 20:51 
AnswerRe: C# equivalent to char * (well, System.IntPtr)?? Pin
Christian Graus6-May-06 20:39
protectorChristian Graus6-May-06 20:39 
GeneralRe: C# equivalent to char * (well, System.IntPtr)?? Pin
Phil C6-May-06 21:07
Phil C6-May-06 21:07 
GeneralRe: C# equivalent to char * (well, System.IntPtr)?? Pin
Christian Graus6-May-06 21:16
protectorChristian Graus6-May-06 21:16 
GeneralRe: C# equivalent to char * (well, System.IntPtr)?? Pin
Phil C6-May-06 21:27
Phil C6-May-06 21:27 
GeneralRe: C# equivalent to char * (well, System.IntPtr)?? Pin
Christian Graus6-May-06 21:44
protectorChristian Graus6-May-06 21:44 
GeneralRe: C# equivalent to char * (well, System.IntPtr)?? Pin
Phil C6-May-06 22:26
Phil C6-May-06 22:26 
OK, now that solution I definitely never would have come up with!

It does compile anyway. I had to modify my prototype to to to a byte * instead of an System.Intptr the way I originally had it (not a big deal, although it would have been nice to keep all the pointer types consistent throughout this class...all the rest of the API Functions were done that way).

Running the debugger does seem to show it working. The API function is throwing a nasty exception though, I'm not convinced it likes this byte pointer and I'm not sure how to browse memory to confirm this pointer is really pointing to my actual buffer of data.

I'm assuming you wanted me to call:
AviFileWriteData( ..., send, 2048);

In other words "send" is the pointer?

(obviously I've never used the fixed keyword before so this whole syntax is another new adventure).

I should be able to figure it out from here anyway.

At least I got the thing to compile. For me, that's 90% of it, I can usually tweak, adjust and debug from there.

thanks Christian Smile | :)

(P.S. this all still strikes me as a HUGE pain in the butt compared to the old C++ way, I'll never be convinced C# is better).
GeneralRe: C# equivalent to char * (well, System.IntPtr)?? Pin
Christian Graus7-May-06 1:32
protectorChristian Graus7-May-06 1:32 
GeneralYup...that did the trick...thanx Pin
Phil C6-May-06 23:59
Phil C6-May-06 23:59 
GeneralRe: Yup...that did the trick...thanx Pin
Christian Graus7-May-06 1:34
protectorChristian Graus7-May-06 1:34 
AnswerRe: C# equivalent to char * (well, System.IntPtr)?? Pin
rudy.net7-May-06 3:26
rudy.net7-May-06 3:26 
QuestionDataGrid in ASP.NET App Using C# Pin
kayos5926-May-06 17:10
kayos5926-May-06 17:10 
Questionspeech sdk5.1 Pin
TheEagle6-May-06 16:54
TheEagle6-May-06 16:54 
AnswerRe: speech sdk5.1 Pin
Ravi Bhavnani6-May-06 18:01
professionalRavi Bhavnani6-May-06 18:01 
GeneralRe: speech sdk5.1 Pin
TheEagle6-May-06 22:16
TheEagle6-May-06 22:16 
QuestionOpening PDF file Pin
May Thu san6-May-06 16:36
May Thu san6-May-06 16:36 
AnswerRe: Opening PDF file Pin
Sean896-May-06 17:56
Sean896-May-06 17:56 
Questionproblem with threading Pin
Tahsin Sayeeda6-May-06 15:30
Tahsin Sayeeda6-May-06 15:30 
AnswerRe: problem with threading Pin
Ravi Bhavnani6-May-06 17:57
professionalRavi Bhavnani6-May-06 17:57 
AnswerRe: problem with threading Pin
Shy Agam6-May-06 22:57
Shy Agam6-May-06 22:57 
GeneralRe: problem with threading Pin
Tahsin Sayeeda7-May-06 0:09
Tahsin Sayeeda7-May-06 0:09 
GeneralRe: problem with threading Pin
Shy Agam7-May-06 0:54
Shy Agam7-May-06 0:54 
GeneralRe: problem with threading Pin
Tahsin Sayeeda7-May-06 8:49
Tahsin Sayeeda7-May-06 8:49 
GeneralRe: problem with threading Pin
S. Senthil Kumar7-May-06 2:45
S. Senthil Kumar7-May-06 2:45 

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.