Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
QuestionListing Project Forms Pin
freshonlineMax6-May-06 23:15
freshonlineMax6-May-06 23:15 
AnswerRe: Listing Project Forms Pin
Robert Rohde7-May-06 3:00
Robert Rohde7-May-06 3:00 
GeneralRe: Listing Project Forms Pin
freshonlineMax7-May-06 19:49
freshonlineMax7-May-06 19:49 
QuestionC# equivalent to char * (well, System.IntPtr)?? Pin
Phil C6-May-06 19:15
Phil C6-May-06 19:15 
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 
Thanks Christian,

I appreciate your attempt here, but I'm afraid I'm too lost.

As I said to digitalKing above. I've literally spent the last 5 hours mired trying to pick apart the various methods to do this.

I have no doubt, there's probably at least a dozen ways and I'll bet I've tried 30.

I've been reading every book on my library on C# strings, pointers, how they work, what they don't do. Other classes, like StringBuilder, Marhsal, pinning, pinvoke

My brain is mush and all these terms are now just jumbled into one big mess.

What I need at this point is a simple example showing the csharp equivalent of the code I provided.

FTR, the actual API function I'm using is AVIFileWriteData() and I've also googled it and searched out every possible example, but that function is so rarely used (it writes ancillary information data into a AVI header) by anyone that nobody bothers to include it in their port of the AVI functions into .NET.

Trust me, there is no example of this particular functions use in managed code, but I really didn't think it made any difference, all I'm trying to do is make a string then pad it up to 2048 characters (I won't go into why it needs to be 2048, it just does) and then give this function a pointer to the data. Why does this have to be so hard?

regards,

Phil
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 
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 

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.