Click here to Skip to main content
15,887,398 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: View Style Changes when switching the compiler option _UNICODE to _MBCS Pin
Mark Salsbery27-Jul-07 6:24
Mark Salsbery27-Jul-07 6:24 
QuestionCreateProcess with write permission Pin
slasktrat26-Jul-07 22:38
slasktrat26-Jul-07 22:38 
AnswerRe: CreateProcess with write permission Pin
Sam_c26-Jul-07 23:08
Sam_c26-Jul-07 23:08 
GeneralRe: CreateProcess with write permission Pin
slasktrat26-Jul-07 23:34
slasktrat26-Jul-07 23:34 
GeneralRe: CreateProcess with write permission Pin
Sam_c27-Jul-07 0:28
Sam_c27-Jul-07 0:28 
QuestionMemory Allocation Problem Pin
rjkg26-Jul-07 21:04
rjkg26-Jul-07 21:04 
AnswerRe: Memory Allocation Problem Pin
VonHagNDaz27-Jul-07 1:35
VonHagNDaz27-Jul-07 1:35 
AnswerRe: Memory Allocation Problem Pin
rjkg27-Jul-07 21:34
rjkg27-Jul-07 21:34 
this is my code
//----------------------------------------------------------------
HRESULT CNetRecievePin::DecideBufferSize(IMemAllocator *pAlloc, ALLOCATOR_PROPERTIES *pRequest)
{
HRESULT hr;
CAutoLock cAutoLock(m_pFilter->pStateLock());
CheckPointer(pAlloc, E_POINTER);
CheckPointer(pRequest, E_POINTER);
VIDEOINFOHEADER *pvi = (VIDEOINFOHEADER*) m_mt.Format();
//Ensure a minimum number of buffers
if (pRequest->cBuffers == 0)
{
pRequest->cBuffers =2;
}
pRequest->cbBuffer = pvi->bmiHeader.biSizeImage;
ALLOCATOR_PROPERTIES Actual;
hr = pAlloc->SetProperties(pRequest, &Actual);
if (FAILED(hr))
{
return E_FAIL;
}
//Is this allocator unsuitable?
if (Actual.cbBuffer < pRequest->cbBuffer)
{
return E_FAIL;
}
return S_OK;
}
//----------------------------------------------------------------------

RajeshGupta

Questionhtml-help: expand all contents tabs Pin
includeh1026-Jul-07 21:00
includeh1026-Jul-07 21:00 
Question.obj file Pin
ShilpiP26-Jul-07 19:08
ShilpiP26-Jul-07 19:08 
AnswerRe: .obj file Pin
CPallini26-Jul-07 20:49
mveCPallini26-Jul-07 20:49 
GeneralRe: .obj file Pin
ShilpiP26-Jul-07 21:22
ShilpiP26-Jul-07 21:22 
GeneralRe: .obj file Pin
CPallini26-Jul-07 21:47
mveCPallini26-Jul-07 21:47 
GeneralRe: .obj file Pin
ShilpiP26-Jul-07 23:01
ShilpiP26-Jul-07 23:01 
GeneralRe: .obj file Pin
CPallini26-Jul-07 23:13
mveCPallini26-Jul-07 23:13 
GeneralRe: .obj file Pin
ShilpiP26-Jul-07 23:22
ShilpiP26-Jul-07 23:22 
GeneralRe: .obj file Pin
Shouvik Das26-Jul-07 23:48
Shouvik Das26-Jul-07 23:48 
GeneralRe: .obj file Pin
CPallini27-Jul-07 0:03
mveCPallini27-Jul-07 0:03 
QuestionCreating xml file Pin
Maynka26-Jul-07 18:57
Maynka26-Jul-07 18:57 
AnswerRe: Creating xml file Pin
Christian Graus26-Jul-07 19:42
protectorChristian Graus26-Jul-07 19:42 
QuestionVC++ 6.0 with Sql Server Pin
shakumar_2226-Jul-07 18:53
shakumar_2226-Jul-07 18:53 
AnswerRe: VC++ 6.0 with Sql Server Pin
mandanani26-Jul-07 19:44
mandanani26-Jul-07 19:44 
GeneralRe: VC++ 6.0 with Sql Server Pin
shakumar_2226-Jul-07 21:18
shakumar_2226-Jul-07 21:18 
QuestionLPCTSTR and HRESULT Pin
George_George26-Jul-07 18:53
George_George26-Jul-07 18:53 
AnswerRe: LPCTSTR and HRESULT Pin
ShilpiP26-Jul-07 19:30
ShilpiP26-Jul-07 19: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.