Click here to Skip to main content
15,890,506 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMFC ON_WM_RBUTTONUP(), handle within control class Pin
Alexander M.,9-Jun-09 4:21
Alexander M.,9-Jun-09 4:21 
AnswerRe: MFC ON_WM_RBUTTONUP(), handle within control class Pin
Code-o-mat9-Jun-09 6:02
Code-o-mat9-Jun-09 6:02 
GeneralRe: MFC ON_WM_RBUTTONUP(), handle within control class Pin
Alexander M.,9-Jun-09 9:11
Alexander M.,9-Jun-09 9:11 
Questionalignment of modeless Pin
durban29-Jun-09 4:09
durban29-Jun-09 4:09 
AnswerRe: alignment of modeless Pin
David Crow9-Jun-09 4:18
David Crow9-Jun-09 4:18 
Questionproblem enumerating USB devices on my PDA (Windows Mobile 5.0) - project attached Pin
shpid3r9-Jun-09 3:51
shpid3r9-Jun-09 3:51 
AnswerRe: problem enumerating USB devices on my PDA (Windows Mobile 5.0) - project attached Pin
Richard Andrew x649-Jun-09 8:10
professionalRichard Andrew x649-Jun-09 8:10 
GeneralRe: problem enumerating USB devices on my PDA (Windows Mobile 5.0) - project attached Pin
shpid3r9-Jun-09 9:37
shpid3r9-Jun-09 9:37 
Ok, I`ll try to create the context here. It`s hard to do that, because every function or a parameter is a typedef of a typedef... etc... anyway:

The line that makes me problems: (code in my .cpp file)
DWORD numDevices = 0; 
//Get the number of devices connected
SI_GetNumDevices(&numDevices);

This piece of code returns 0 (the function SI_GetNumDevices does not affect it's value)

Now, this doesn`t tell us anything, therefore:

Definition of SI_GetNumDevices: (in the file header it comes with the dll)

typedefs/defines:
#define SI_USB_XP_API __declspec(dllimport)<br />
typedef		int		SI_STATUS;<br />
typedef         DWORD far       *LPDWORD;<br />

#ifdef __cplusplus
extern "C" {
#endif

SI_USB_XP_API
SI_STATUS WINAPI SI_GetNumDevices(
	LPDWORD lpdwNumDevices
	);

//other SI_USB_XP_API definitions

#ifdef __cplusplus
}
#endif

When I search lpdwNumDevices (find all references) the programming tool reports no references, no definitions, no declarations... ??

I have 0 experience working with exterior dlls and libs, and this piece of code was found in one of the examples it comes with the usb fileset. Therefore, I expect it to be a mistake of mine in setting everything in the right way, as the code is likely to be flawless (in its original state) ...
GeneralRe: problem enumerating USB devices on my PDA (Windows Mobile 5.0) - project attached Pin
shpid3r9-Jun-09 9:49
shpid3r9-Jun-09 9:49 
Questionquestion regarding sockets Pin
mkrtchyanmarianna9-Jun-09 2:38
mkrtchyanmarianna9-Jun-09 2:38 
AnswerRe: question regarding sockets Pin
CPallini9-Jun-09 2:55
mveCPallini9-Jun-09 2:55 
Questionquestion regarding sockets Pin
mkrtchyanmarianna9-Jun-09 2:15
mkrtchyanmarianna9-Jun-09 2:15 
AnswerRe: question regarding sockets Pin
led mike9-Jun-09 4:33
led mike9-Jun-09 4:33 
QuestionDetermining efficiency / most-efficient algorithm [modified] Pin
Mike the Red9-Jun-09 1:16
Mike the Red9-Jun-09 1:16 
AnswerRe: Determining efficiency / most-efficient algorithm Pin
Stuart Dootson9-Jun-09 2:11
professionalStuart Dootson9-Jun-09 2:11 
GeneralRe: Determining efficiency / most-efficient algorithm Pin
Mike the Red9-Jun-09 2:24
Mike the Red9-Jun-09 2:24 
GeneralRe: Determining efficiency / most-efficient algorithm Pin
Stuart Dootson9-Jun-09 2:29
professionalStuart Dootson9-Jun-09 2:29 
AnswerRe: Determining efficiency / most-efficient algorithm Pin
led mike9-Jun-09 4:23
led mike9-Jun-09 4:23 
AnswerRe: Determining efficiency / most-efficient algorithm Pin
Chris Losinger9-Jun-09 5:02
professionalChris Losinger9-Jun-09 5:02 
Questionquestion regarding sockets Pin
mkrtchyanmarianna9-Jun-09 1:01
mkrtchyanmarianna9-Jun-09 1:01 
QuestionRe: question regarding sockets Pin
CPallini9-Jun-09 1:50
mveCPallini9-Jun-09 1:50 
AnswerRe: question regarding sockets Pin
mkrtchyanmarianna9-Jun-09 2:14
mkrtchyanmarianna9-Jun-09 2:14 
GeneralRe: question regarding sockets Pin
CPallini9-Jun-09 2:20
mveCPallini9-Jun-09 2:20 
QuestionLoadLibraryA & LoadLibraryW Pin
chirag_chauhan8-Jun-09 23:05
chirag_chauhan8-Jun-09 23:05 
AnswerRe: LoadLibraryA & LoadLibraryW Pin
Pops80028-Jun-09 23:18
Pops80028-Jun-09 23:18 

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.