Click here to Skip to main content
15,921,156 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: File with permission Pin
vivekphlp26-Apr-07 18:46
vivekphlp26-Apr-07 18:46 
GeneralRe: File with permission Pin
Paresh Chitte26-Apr-07 20:13
Paresh Chitte26-Apr-07 20:13 
GeneralRe: File with permission Pin
Paresh Chitte26-Apr-07 20:22
Paresh Chitte26-Apr-07 20:22 
AnswerRe: File with permission Pin
uday kiran janaswamy26-Apr-07 19:32
uday kiran janaswamy26-Apr-07 19:32 
AnswerRe: File with permission Pin
skornel27-Apr-07 4:41
skornel27-Apr-07 4:41 
GeneralRe: File with permission Pin
vivekphlp27-Apr-07 17:40
vivekphlp27-Apr-07 17:40 
QuestionEmai Processing System Pin
xinxin062926-Apr-07 16:51
xinxin062926-Apr-07 16:51 
QuestionFile name to video buffer Pin
hmaturana26-Apr-07 16:34
hmaturana26-Apr-07 16:34 
D'Oh! | :doh:
I'm working with DirectShow
and I use
CString strFileName = "c://videos//sample.mpg");
wstrMediaFile = strFileName.AllocSysString();
IGraphBuilder->RenderFile(wstrMediaFile, NULL);

I have copy this file to memory using the following code

BYTE *pBuffer = (BYTE*)malloc(20480000);
CFile file;
int result = file.Open("c:\\videos\\sample.mpg", CFile::modeRead);
unsigned long Filesize = file.GetLength();
file.Read(pBuffer, Filesize);

Question: How can I give a sytem file name to the buffer so I can use it
with the RenderFile function?

Thank You
Hector Maturana
QuestionRe: File name to video buffer Pin
Mark Salsbery29-Apr-07 10:06
Mark Salsbery29-Apr-07 10:06 
AnswerRe: File name to video buffer Pin
hmaturana30-Apr-07 13:28
hmaturana30-Apr-07 13:28 
GeneralRe: File name to video buffer [modified] Pin
Mark Salsbery1-May-07 5:21
Mark Salsbery1-May-07 5:21 
GeneralRe: File name to video buffer Pin
hmaturana1-May-07 7:06
hmaturana1-May-07 7:06 
Questionclass construction Pin
hch326-Apr-07 16:27
hch326-Apr-07 16:27 
AnswerRe: class construction Pin
Stephen Hewitt26-Apr-07 17:25
Stephen Hewitt26-Apr-07 17:25 
GeneralRe: class construction Pin
hch327-Apr-07 4:44
hch327-Apr-07 4:44 
GeneralRe: class construction Pin
Stephen Hewitt27-Apr-07 14:45
Stephen Hewitt27-Apr-07 14:45 
Questionabout "MSDN Library for Visual Studio 2005" Pin
HOW WHAT26-Apr-07 16:14
HOW WHAT26-Apr-07 16:14 
AnswerRe: about "MSDN Library for Visual Studio 2005" Pin
Paresh Chitte26-Apr-07 20:10
Paresh Chitte26-Apr-07 20:10 
Questioncreate static text area to SDI framewnd Pin
gurucplusplus26-Apr-07 15:59
gurucplusplus26-Apr-07 15:59 
AnswerRe: create static text area to SDI framewnd Pin
Arman S.26-Apr-07 19:26
Arman S.26-Apr-07 19:26 
GeneralRe: create static text area to SDI framewnd Pin
gurucplusplus27-Apr-07 6:28
gurucplusplus27-Apr-07 6:28 
QuestionPlaying Windows Explorer Sounds Pin
Ryan Sikma26-Apr-07 14:02
Ryan Sikma26-Apr-07 14:02 
AnswerRe: Playing Windows Explorer Sounds Pin
Steve Echols26-Apr-07 17:33
Steve Echols26-Apr-07 17:33 
GeneralRe: Playing Windows Explorer Sounds Pin
Ryan Sikma27-Apr-07 6:09
Ryan Sikma27-Apr-07 6:09 
GeneralRe: Playing Windows Explorer Sounds Pin
JudyL_MD27-Apr-07 7:45
JudyL_MD27-Apr-07 7: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.