Click here to Skip to main content
15,915,501 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: please help Pin
David Crow28-Mar-05 2:36
David Crow28-Mar-05 2:36 
GeneralAdjustTokenPrivileges failing with SE_TCB_NAME enabled - repost Pin
ruharish27-Mar-05 21:35
ruharish27-Mar-05 21:35 
GeneralVideo Broadcasting Pin
Naru Patel27-Mar-05 21:15
Naru Patel27-Mar-05 21:15 
Questionhow to overwrite a string in a file in vc++? Pin
nehathoma27-Mar-05 20:22
nehathoma27-Mar-05 20:22 
AnswerRe: how to overwrite a string in a file in vc++? Pin
Aamir Butt28-Mar-05 2:16
Aamir Butt28-Mar-05 2:16 
GeneralMD5 Result Pin
Monty227-Mar-05 19:46
Monty227-Mar-05 19:46 
GeneralRe: MD5 Result Pin
Michael Dunn27-Mar-05 20:15
sitebuilderMichael Dunn27-Mar-05 20:15 
GeneralCTwain : With ActiveX control. It does not working ! . Help me please. Pin
Anand for every one27-Mar-05 18:55
Anand for every one27-Mar-05 18:55 
see this link first : http://www.codeproject.com/audio/twaintest.asp
I used CTwain from there.

I included CTwain with my ActiveX control. When i call selectSource it worked. When i call Acquire , the source's user interface is displayed. But the following condition in ProcessMessage(MSG msg) is not become true when clicking on Close(Cancel or Exit) , Ok (or Scan).

if(GetRC() != TWRC_NOTDSEVENT)
{
AfxMessageBox(_T("In TWRC_NOTDSEVENT in ProcessMessage" )); // it not executed always
TranslateMessage(twEvent);
}

Thus TranslateMessage is not called.
I subclassed my control class from CTwain. and in OnCreate i included the following line.
InitTwain(m_hWnd);
if(!IsValidDriver())
{
AfxMessageBox("Unable to load Twain Driver.");
}

and in PreTranslateMessage (BOOL CImgAnnCtrl::PreTranslateMessage(MSG* pMsg))
i included the following line.

ProcessMessage(*pMsg);

Plese help me. What is the problem.
I followed the same procedure in a stand alone(exe (mfc)) application it worked well.

Generalaccess to windows desktop explorer Pin
seethat27-Mar-05 18:54
seethat27-Mar-05 18:54 
GeneralRe: access to windows desktop explorer Pin
Aamir Butt28-Mar-05 2:18
Aamir Butt28-Mar-05 2:18 
GeneralDrawing Lines Pin
frankieb27-Mar-05 18:32
frankieb27-Mar-05 18:32 
GeneralRe: Drawing Lines Pin
Joel Holdsworth27-Mar-05 22:46
Joel Holdsworth27-Mar-05 22:46 
GeneralEnable/Disable DirectX Pin
sachinsharma27-Mar-05 17:28
sachinsharma27-Mar-05 17:28 
GeneralIMAGES TO MOVIE file Pin
Emiliano27-Mar-05 14:15
Emiliano27-Mar-05 14:15 
GeneralRe: IMAGES TO MOVIE file Pin
Steve Mayfield27-Mar-05 16:33
Steve Mayfield27-Mar-05 16:33 
QuestionIs my application causing cluster server crash? Pin
adnbsn27-Mar-05 14:14
adnbsn27-Mar-05 14:14 
GeneralNested For Loop Program Pin
bigsing27-Mar-05 13:42
bigsing27-Mar-05 13:42 
GeneralRe: Nested For Loop Program Pin
Yulianto.27-Mar-05 13:57
Yulianto.27-Mar-05 13:57 
GeneralRe: Nested For Loop Program Pin
Ravi Bhavnani28-Mar-05 3:06
professionalRavi Bhavnani28-Mar-05 3:06 
GeneralRe: Nested For Loop Program Pin
bigsing29-Mar-05 14:37
bigsing29-Mar-05 14:37 
GeneralCProgressCtrl Question Pin
Joel Holdsworth27-Mar-05 8:45
Joel Holdsworth27-Mar-05 8:45 
GeneralRe: CProgressCtrl Question Pin
Steve Mayfield27-Mar-05 9:19
Steve Mayfield27-Mar-05 9:19 
GeneralRe: CProgressCtrl Question Pin
Joel Holdsworth27-Mar-05 9:58
Joel Holdsworth27-Mar-05 9:58 
GeneralRe: CProgressCtrl Question Pin
Ralph Wetzel27-Mar-05 10:10
Ralph Wetzel27-Mar-05 10:10 
GeneralRe: CProgressCtrl Question Pin
Joel Holdsworth27-Mar-05 12:49
Joel Holdsworth27-Mar-05 12:49 

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.