Click here to Skip to main content
16,020,377 members
Home / Discussions / C#
   

C#

 
QuestionDataGrid problem Pin
narendrakumarp7-May-06 0:19
narendrakumarp7-May-06 0:19 
AnswerRe: DataGrid problem Pin
Robert Rohde7-May-06 3:01
Robert Rohde7-May-06 3:01 
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 
I knew that question was coming, I tried to just focus on the problem and keep it simple.

If it makes any difference (and I don't honestly know why it does)
the full function is:

AVIFileWriteData( IntPtr aviStream, Int32 ckid, IntPtr lpBuffer, Int32 cbBuffer);
It's part of the SDK AVI functions located in AVIfile32.dll. The C++ header files and library are vfw.h and vfw32.lib if I were working in C++ (but I'm not)

Basically I have already got all the other parameters of this function figured out because there are plenty of examples on how to port AVI functions to Csharp to work with. Sadly, no examples include this function and I need to use it so I'm tyring to bring it into the project.

So, to restate the question, I need to deliver to this function a "pointer" (lpBuffer) to an area of memory that I need to be exactly 2048 bytes long. I'm going to be formatting that data something like:

[Timing] Frame Rate=250 Mark Frame=9 Time at Mark Frame=0 ....

and whatever of the 2048 sized buffer that's left over needs to be padded with zeroes.

I did also look at the StringBuilder class. I read Petzold's whole chapter on strings and I've also been reading MSDN info on it for at least 5 hours now. I also checked through two other O reilly books I have in my library.

Really, I'm not being a idiot, I've honestly tried to figure this out on my own before running for help. But I'm completely lost in the syntax of what I need to do. I have so many posibilities and options running through my head at this point I can't tell which combination of the 15 different ways will work.

Just telling me to use the StringBuilder class really doesn't help at this point. I need a pointer, not the name of a class.
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 
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 

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.