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

C / C++ / MFC

 
AnswerRe: Most efficient way to create a string range in C? Pin
Joe Woodbury26-Oct-16 12:16
professionalJoe Woodbury26-Oct-16 12:16 
QuestionHow to invoke Printing Preferences for the given Printer programmatically? Pin
purnachandra505016-Oct-16 17:48
purnachandra505016-Oct-16 17:48 
SuggestionRe: How to invoke invoke Printing Preferences for the given Printer programmatically? Pin
Richard MacCutchan17-Oct-16 5:06
mveRichard MacCutchan17-Oct-16 5:06 
QuestionHelp please Memoized rod cutting in C while showing the length it is cut Pin
Member 1279667016-Oct-16 12:03
Member 1279667016-Oct-16 12:03 
AnswerRe: Help please Memoized rod cutting in C while showing the length it is cut Pin
leon de boer16-Oct-16 16:12
leon de boer16-Oct-16 16:12 
GeneralRe: Help please Memoized rod cutting in C while showing the length it is cut Pin
Richard MacCutchan17-Oct-16 5:08
mveRichard MacCutchan17-Oct-16 5:08 
AnswerRe: Help please Memoized rod cutting in C while showing the length it is cut Pin
Richard MacCutchan16-Oct-16 21:25
mveRichard MacCutchan16-Oct-16 21:25 
QuestionAssigning pointers from one class to another and Pin
Vaclav_14-Oct-16 6:23
Vaclav_14-Oct-16 6:23 
I think I finally outdone myself.
#1 <strike>In have class member function to assign pointer to structure from another class. No matter what I do I cannot make the compiler happy.
Closes to "solution" was "need to use static" than when using static I got incomplete type, again. Originally this function was global and the pointer in question was also globally accessible ( function); The pointer ends up in globally accessible struct, so this exercise may be futile anyway. One solution may be to move the assigning function, but I am not sure of its use down the line, I am not there yet,

I am about to give up and make the function global and be done with it. </strike>
OK that one is fixed moved the pointer assinge,t function DONE

#2 I access a class function via pointer however the function calls the calling call method in sort of circular fashion. Again because originally the app was classless , flat.
Any suggestion how to solve this issue?
I really like to keep the functions / methods in relations to hardware , each in its own class.
Sorry for being such pest.
Vaclav


void HCD_SetEnumerationStartFunction(void (*ResetEnd)(void))
{
hcd_ControlStructure.ResetEnd = ResetEnd;
}


hcd->HCD_SetEnumerationStartFunction(A_USBD::USBD_GetDeviceDescriptorBegin);

-- modified 14-Oct-16 13:26pm.
AnswerRe: Assigning pointers from one class to another and Pin
leon de boer14-Oct-16 17:58
leon de boer14-Oct-16 17:58 
GeneralRe: Assigning pointers from one class to another and Pin
Vaclav_15-Oct-16 2:24
Vaclav_15-Oct-16 2:24 
GeneralRe: Assigning pointers from one class to another and Pin
leon de boer15-Oct-16 4:42
leon de boer15-Oct-16 4:42 
GeneralRe: Assigning pointers from one class to another and Pin
Vaclav_15-Oct-16 6:12
Vaclav_15-Oct-16 6:12 
GeneralRe: Assigning pointers from one class to another and Pin
leon de boer15-Oct-16 17:16
leon de boer15-Oct-16 17:16 
GeneralRe: Assigning pointers from one class to another and Pin
Vaclav_19-Oct-16 4:54
Vaclav_19-Oct-16 4:54 
GeneralRe: Assigning pointers from one class to another and Pin
leon de boer19-Oct-16 7:45
leon de boer19-Oct-16 7:45 
NewsHow to provide a Security to a proprietary software or presemtation. Pin
Member 1278313512-Oct-16 20:03
Member 1278313512-Oct-16 20:03 
GeneralRe: How to provide a Security to a proprietary software or presemtation. Pin
jeron113-Oct-16 4:15
jeron113-Oct-16 4:15 
GeneralRe: How to provide a Security to a proprietary software or presemtation. Pin
leon de boer13-Oct-16 8:17
leon de boer13-Oct-16 8:17 
Questionclass is missing "type" - why ? Pin
Vaclav_12-Oct-16 15:00
Vaclav_12-Oct-16 15:00 
AnswerRe: class is missing "type" - why ? Pin
leon de boer12-Oct-16 17:45
leon de boer12-Oct-16 17:45 
AnswerRe: class is missing "type" - why ? Pin
Graham Breach12-Oct-16 23:11
Graham Breach12-Oct-16 23:11 
QuestionObject Creation of an class? Pin
Mathan_CodeProject11-Oct-16 5:17
Mathan_CodeProject11-Oct-16 5:17 
AnsweralternatRe: Object Creation of an class? Pin
leon de boer11-Oct-16 5:50
leon de boer11-Oct-16 5:50 
GeneralRe: alternatRe: Object Creation of an class? Pin
Mathan_CodeProject11-Oct-16 23:02
Mathan_CodeProject11-Oct-16 23:02 
AnswerRe: Object Creation of an class? Pin
Krishnakumartg11-Oct-16 19:46
Krishnakumartg11-Oct-16 19: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.