Click here to Skip to main content
15,897,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Windows CALL BACK Function? Pin
Eytukan9-May-06 0:29
Eytukan9-May-06 0:29 
AnswerRe: Windows CALL BACK Function? Pin
Stephen Hewitt8-May-06 18:52
Stephen Hewitt8-May-06 18:52 
AnswerRe: Windows CALL BACK Function? Pin
led mike8-May-06 19:26
led mike8-May-06 19:26 
AnswerRe: Windows CALL BACK Function? Pin
sunit58-May-06 21:13
sunit58-May-06 21:13 
Questionscanning image into my dialog Pin
troythetech8-May-06 17:18
troythetech8-May-06 17:18 
AnswerRe: scanning image into my dialog Pin
Hamid_RT8-May-06 18:36
Hamid_RT8-May-06 18:36 
AnswerRe: scanning image into my dialog Pin
Monty28-May-06 19:41
Monty28-May-06 19:41 
QuestionNULL parameter to DLL procedure Pin
ilidan8-May-06 16:32
ilidan8-May-06 16:32 
Hi! I'm using TWAIN to interface with a scanner. The function DSM_Entry is accessed via a loaded DLL, TWAIN_32.DLL:


m_hTwain = LoadLibrary(_T("TWAIN_32.DLL"));
m_DSMEntryProc = (DSMENTRYPROC)GetProcAddress(m_hTwain, (LPCSTR)MAKEINTRESOURCE(1));


I then call the procedure using:

TW_UINT16 nRes =(*m_DSMEntryProc)(&m_appID, pDest, dg, dat, msg, pData);

however, some calls need for pDest to be null, (like the triplet DG_CONTROL / DAT_IDENTITY / MSG_USERSELECT for those who know TWAIN).

Unfortunately,when pDest is null for this call, an access violation appears. For other triplets, the call is OK. Has anyone encountered this before? Am I passing "NULL" the wrong way?

Thanks!
AnswerRe: NULL parameter to DLL procedure Pin
Nibu babu thomas8-May-06 18:17
Nibu babu thomas8-May-06 18:17 
QuestionDatafield Pin
shereem khaleel8-May-06 16:31
shereem khaleel8-May-06 16:31 
JokeRe: Datafield Pin
Maxwell Chen8-May-06 17:39
Maxwell Chen8-May-06 17:39 
AnswerRe: Datafield Pin
Stephen Hewitt8-May-06 18:58
Stephen Hewitt8-May-06 18:58 
Questioncalculate the time taken for a process.. Pin
makaveli_078-May-06 15:57
makaveli_078-May-06 15:57 
AnswerRe: calculate the time taken for a process.. Pin
Stephen Hewitt8-May-06 15:58
Stephen Hewitt8-May-06 15:58 
GeneralRe: calculate the time taken for a process.. Pin
makaveli_078-May-06 16:12
makaveli_078-May-06 16:12 
GeneralRe: calculate the time taken for a process.. Pin
Stephen Hewitt8-May-06 16:13
Stephen Hewitt8-May-06 16:13 
AnswerRe: calculate the time taken for a process.. Pin
_AnsHUMAN_ 8-May-06 17:31
_AnsHUMAN_ 8-May-06 17:31 
AnswerRe: calculate the time taken for a process.. Pin
Naveen8-May-06 17:32
Naveen8-May-06 17:32 
GeneralRe: calculate the time taken for a process.. Pin
makaveli_078-May-06 17:39
makaveli_078-May-06 17:39 
AnswerRe: calculate the time taken for a process.. Pin
makaveli_078-May-06 17:43
makaveli_078-May-06 17:43 
GeneralRe: calculate the time taken for a process.. Pin
Naveen8-May-06 18:03
Naveen8-May-06 18:03 
GeneralRe: calculate the time taken for a process.. Pin
makaveli_078-May-06 19:52
makaveli_078-May-06 19:52 
GeneralRe: calculate the time taken for a process.. Pin
Maxwell Chen8-May-06 19:59
Maxwell Chen8-May-06 19:59 
QuestionRe: calculate the time taken for a process.. Pin
Naveen8-May-06 20:44
Naveen8-May-06 20:44 
AnswerRe: calculate the time taken for a process.. Pin
Nibu babu thomas8-May-06 20:46
Nibu babu thomas8-May-06 20:46 

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.