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

C / C++ / MFC

 
GeneralRe: C++ class initialization Pin
CPallini20-Jan-15 7:56
mveCPallini20-Jan-15 7:56 
GeneralRe: C++ class initialization Pin
Albert Holguin20-Jan-15 8:05
professionalAlbert Holguin20-Jan-15 8:05 
GeneralRe: C++ class initialization Pin
CPallini20-Jan-15 9:14
mveCPallini20-Jan-15 9:14 
GeneralRe: C++ class initialization Pin
Albert Holguin20-Jan-15 9:57
professionalAlbert Holguin20-Jan-15 9:57 
GeneralRe: C++ class initialization Pin
CPallini20-Jan-15 10:26
mveCPallini20-Jan-15 10:26 
General[SOLVED] Re: C++ class initialization Pin
Vaclav_22-Jan-15 8:00
Vaclav_22-Jan-15 8:00 
GeneralRe: [SOLVED] Re: C++ class initialization Pin
CPallini22-Jan-15 9:06
mveCPallini22-Jan-15 9:06 
GeneralRe: [REOPEN} C++ class initialization and scheme Pin
Vaclav_23-Jan-15 6:49
Vaclav_23-Jan-15 6:49 
I am sorry to reopen this, but I just need confirmation that I am on the right track in reorganizing the code.
I only hope I can describe my plan.

Basically I have 3 USB classes. I hesitate to call them “objects “ for now.
To bypass Arduino “help” ( trampling on my code ) I have this flow.
It may be overkill but it is working so far.
C_Main
Cprocess

USB (device) - “interface “ class member of Cprocess (my code)

(device)Controller – controls the USB device – mouse is working (mostly cut and paste)

USBHost - a native access to Arduino Due USB port for now used / tested as a state machine to retrieve USB configuration from attached USB device ( works so so )(also mostly cut and paste from ATmel)

I would like to have all of these USB(device), (device) Controller, and USBHost in some kind of hierarchy. As you pointed out to me , the “problem” is that USBHost class itself is “global” and some of the class parameters – for example state of the “state machine” are also global.
I can fix that.

Eventually I need to control all of the devices on the USB (bus) and would like your opinion if the above scheme is OK as a base.

Many thanks for your time , appreciate it very much
Vaclav
GeneralRe: [REOPEN} C++ class initialization and scheme Pin
Mike Nordell2-Feb-15 10:14
Mike Nordell2-Feb-15 10:14 
GeneralRe: [REOPEN} C++ class initialization and scheme Pin
Vaclav_2-Feb-15 10:57
Vaclav_2-Feb-15 10:57 
GeneralRe: [REOPEN} C++ class initialization and scheme Pin
Mike Nordell2-Feb-15 12:46
Mike Nordell2-Feb-15 12:46 
Questionbinary data to image VC++ Pin
Mukund Pradeep16-Jan-15 18:40
Mukund Pradeep16-Jan-15 18:40 
QuestionRe: binary data to image VC++ Pin
CPallini16-Jan-15 22:33
mveCPallini16-Jan-15 22:33 
AnswerRe: binary data to image VC++ Pin
Richard MacCutchan16-Jan-15 22:45
mveRichard MacCutchan16-Jan-15 22:45 
GeneralRe: binary data to image VC++ Pin
Mukund Pradeep19-Jan-15 18:39
Mukund Pradeep19-Jan-15 18:39 
GeneralRe: binary data to image VC++ Pin
Mukund Pradeep3-Feb-15 18:08
Mukund Pradeep3-Feb-15 18:08 
GeneralRe: binary data to image VC++ Pin
Richard MacCutchan3-Feb-15 22:42
mveRichard MacCutchan3-Feb-15 22:42 
GeneralRe: binary data to image VC++ Pin
Mukund Pradeep9-Feb-15 20:17
Mukund Pradeep9-Feb-15 20:17 
QuestionRe: binary data to image VC++ Pin
Richard MacCutchan9-Feb-15 22:10
mveRichard MacCutchan9-Feb-15 22:10 
AnswerRe: binary data to image VC++ Pin
Mukund Pradeep9-Feb-15 22:36
Mukund Pradeep9-Feb-15 22:36 
GeneralRe: binary data to image VC++ Pin
Richard MacCutchan9-Feb-15 23:20
mveRichard MacCutchan9-Feb-15 23:20 
GeneralRe: binary data to image VC++ Pin
Mukund Pradeep10-Feb-15 17:21
Mukund Pradeep10-Feb-15 17:21 
GeneralRe: binary data to image VC++ Pin
Richard MacCutchan10-Feb-15 21:22
mveRichard MacCutchan10-Feb-15 21:22 
GeneralRe: binary data to image VC++ Pin
Mukund Pradeep10-Feb-15 22:05
Mukund Pradeep10-Feb-15 22:05 
AnswerRe: binary data to image VC++ Pin
Chris Losinger18-Jan-15 8:49
professionalChris Losinger18-Jan-15 8: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.