Click here to Skip to main content
15,915,857 members
Home / Discussions / C#
   

C#

 
GeneralDatarelation Update Pin
msogun16-Feb-05 4:23
msogun16-Feb-05 4:23 
GeneralRe: Datarelation Update Pin
Kodanda Pani17-Feb-05 0:04
Kodanda Pani17-Feb-05 0:04 
Questionhow to create an AVI stream in memory? Pin
[DK]KiloDunse16-Feb-05 4:09
[DK]KiloDunse16-Feb-05 4:09 
Is there any way to create an AVIStream in memory?
without having to write to disk?

I’ve tried using the AVIStreamCreate function from avifil32.dll, but it keeps returning an error.

I need to capture video from a webcam, to a compressed avistream.
And then send the compressed stream over an LAN.

This is the code:
<br />
            AVISTREAMINFOW aviStreamInfo = new AVISTREAMINFOW();<br />
<br />
            aviStreamInfo.fccType               = _fccType;<br />
            aviStreamInfo.fccHandler            = _fccHandler;<br />
            aviStreamInfo.dwScale               = 1;<br />
            aviStreamInfo.dwRate                = _frameRate;<br />
            aviStreamInfo.dwSuggestedBufferSize = _height * _stride;<br />
            aviStreamInfo.dwQuality             = 0xffffffff;<br />
            aviStreamInfo.rect_bottom           = _height;<br />
            aviStreamInfo.rect_right            = _width;<br />
<br />
            //_result = AviFile.AVIFileCreateStream(_aviFile, out _aviStream, ref aviStreamInfo);<br />
<br />
	    _result = AviFile.AVIStreamCreate(out _aviStream, 0, 0, ref aviStreamInfo);<br />
<br />

_result returns -2147221164
AnswerRe: how to create an AVI stream in memory? Pin
Judah Gabriel Himango16-Feb-05 4:43
sponsorJudah Gabriel Himango16-Feb-05 4:43 
GeneralRe: how to create an AVI stream in memory? Pin
[DK]KiloDunse16-Feb-05 7:58
[DK]KiloDunse16-Feb-05 7:58 
GeneralRe: how to create an AVI stream in memory? Pin
Judah Gabriel Himango16-Feb-05 8:35
sponsorJudah Gabriel Himango16-Feb-05 8:35 
GeneralRe: how to create an AVI stream in memory? Pin
[DK]KiloDunse16-Feb-05 8:46
[DK]KiloDunse16-Feb-05 8:46 
GeneralA question of Array Pin
RockRock16-Feb-05 3:48
RockRock16-Feb-05 3:48 
GeneralRe: A question of Array Pin
Judah Gabriel Himango16-Feb-05 4:31
sponsorJudah Gabriel Himango16-Feb-05 4:31 
GeneralMimicking C# DataGrid formatting in HTML or XML Pin
joschmo8016-Feb-05 2:11
joschmo8016-Feb-05 2:11 
Questionhow add new voices to the windows menu Pin
Anonymous16-Feb-05 1:52
Anonymous16-Feb-05 1:52 
AnswerRe: how add new voices to the windows menu Pin
Judah Gabriel Himango16-Feb-05 4:33
sponsorJudah Gabriel Himango16-Feb-05 4:33 
GeneralRe: how add new voices to the windows menu Pin
Sasuko16-Feb-05 6:29
Sasuko16-Feb-05 6:29 
GeneralRe: how add new voices to the windows menu Pin
Judah Gabriel Himango16-Feb-05 6:44
sponsorJudah Gabriel Himango16-Feb-05 6:44 
GeneralRe: how add new voices to the windows menu Pin
Sasuko16-Feb-05 8:14
Sasuko16-Feb-05 8:14 
GeneralRe: how add new voices to the windows menu Pin
Judah Gabriel Himango16-Feb-05 8:29
sponsorJudah Gabriel Himango16-Feb-05 8:29 
GeneralRe: how add new voices to the windows menu Pin
Sasuko16-Feb-05 10:15
Sasuko16-Feb-05 10:15 
GeneralRe: how add new voices to the windows menu Pin
Judah Gabriel Himango16-Feb-05 10:44
sponsorJudah Gabriel Himango16-Feb-05 10:44 
GeneralRe: how add new voices to the windows menu Pin
Sasuko16-Feb-05 10:51
Sasuko16-Feb-05 10:51 
GeneralProblems in handling shutdown/logoff event in windows forms application Pin
sachin.gera16-Feb-05 1:43
sachin.gera16-Feb-05 1:43 
GeneralRe: Problems in handling shutdown/logoff event in windows forms application Pin
Stefan Troschuetz16-Feb-05 2:23
Stefan Troschuetz16-Feb-05 2:23 
Generalproblems with installation Pin
16-Feb-05 1:00
suss16-Feb-05 1:00 
GeneralMonitor all key press! Pin
bmk_shepherd16-Feb-05 0:29
bmk_shepherd16-Feb-05 0:29 
GeneralRe: Monitor all key press! Pin
Stefan Troschuetz16-Feb-05 1:21
Stefan Troschuetz16-Feb-05 1:21 
GeneralRe: Monitor all key press! Pin
bmk_shepherd19-Feb-05 15:14
bmk_shepherd19-Feb-05 15:14 

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.