Click here to Skip to main content
16,005,491 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: 24 bit bitmap VC++ .NET Pin
John R. Shaw22-Mar-04 21:58
John R. Shaw22-Mar-04 21:58 
GeneralHelp about using Dll's Functions Pin
JeabJB21-Mar-04 22:15
JeabJB21-Mar-04 22:15 
GeneralRe: Help about using Dll's Functions Pin
Steve S21-Mar-04 22:38
Steve S21-Mar-04 22:38 
GeneralRe: Help about using Dll's Functions Pin
JeabJB21-Mar-04 22:45
JeabJB21-Mar-04 22:45 
GeneralRe: Help about using Dll's Functions Pin
Steve S22-Mar-04 1:26
Steve S22-Mar-04 1:26 
GeneralHelp about using Dll's Functions Pin
Jeab.21-Mar-04 22:15
sussJeab.21-Mar-04 22:15 
GeneralRe: Help about using Dll's Functions Pin
Alexander M.,22-Mar-04 3:16
Alexander M.,22-Mar-04 3:16 
GeneralRe: Help about using Dll's Functions Pin
JeabJB22-Mar-04 4:07
JeabJB22-Mar-04 4:07 
Fatal error is now OK. The function must be defined like this:

typedef BOOL (__cdecl *USB_ReadFile) (PVOID,DWORD,LPDWORD,ULONG);

PVOID lpBuffer;
DWORD nNumberOfBytesToRead = 65536;
LPDWORD lpNumberOfBytesRead = 0;
ULONG Timeout = 5000;
USB_ReadFile pUSB_ReadFile;
hDll = LoadLibrary("XtlUsb.dll");

if (hDll != NULL)
{
pUSB_ReadFile = (USB_ReadFile)GetProcAddress(hDll,"USB_ReadFile");
if (!pUSB_ReadFile)
{
FreeLibrary(hDll);
return FALSE;
}
else
{
BOOL BResult = TRUE;
BResult = pUSB_ReadFile(lpBuffer,nNumberOfBytesToRead,lpNumberOfBytesRead,Timeout);
}
}

QuestionWhy not connect bitmap with button? Pin
vividtang21-Mar-04 21:23
vividtang21-Mar-04 21:23 
AnswerRe: Why not connect bitmap with button? Pin
Branislav22-Mar-04 2:33
Branislav22-Mar-04 2:33 
Generalhash table useful for hooking procedure Pin
name_or_alias21-Mar-04 21:20
name_or_alias21-Mar-04 21:20 
Generalusing vectors - begin method Pin
Ming Yan21-Mar-04 20:30
Ming Yan21-Mar-04 20:30 
GeneralRe: using vectors - begin method Pin
jhwurmbach21-Mar-04 22:09
jhwurmbach21-Mar-04 22:09 
GeneralRe: using vectors - begin method Pin
Maxwell Chen21-Mar-04 22:45
Maxwell Chen21-Mar-04 22:45 
GeneralRe: using vectors - begin method Pin
jhwurmbach21-Mar-04 23:01
jhwurmbach21-Mar-04 23:01 
GeneralRe: using vectors - begin method Pin
Maxwell Chen22-Mar-04 15:31
Maxwell Chen22-Mar-04 15:31 
GeneralRe: using vectors - begin method Pin
jhwurmbach22-Mar-04 21:08
jhwurmbach22-Mar-04 21:08 
GeneralRe: using vectors - begin method Pin
Roger Allen22-Mar-04 5:12
Roger Allen22-Mar-04 5:12 
Generalnewbie question about vc++ and dlls Pin
charlener21-Mar-04 19:38
charlener21-Mar-04 19:38 
GeneralRe: newbie question about vc++ and dlls Pin
axid3j1al21-Mar-04 20:05
axid3j1al21-Mar-04 20:05 
GeneralRe: newbie question about vc++ and dlls Pin
charlener21-Mar-04 20:18
charlener21-Mar-04 20:18 
GeneralRe: newbie question about vc++ and dlls Pin
bilal7822-Mar-04 0:53
bilal7822-Mar-04 0:53 
GeneralRe: newbie question about vc++ and dlls Pin
axid3j1al22-Mar-04 21:13
axid3j1al22-Mar-04 21:13 
GeneralStore the contents of a stucture in a file Pin
swarnamanoo21-Mar-04 19:34
swarnamanoo21-Mar-04 19:34 
GeneralRe: Store the contents of a stucture in a file Pin
RadioShark21-Mar-04 22:04
RadioShark21-Mar-04 22:04 

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.