Click here to Skip to main content
13,703,250 members

C / C++ / MFC

 
GeneralRe: Unable to receive custom Ethernet frame Pin
Victor Nijegorodov1-Sep-18 23:19
memberVictor Nijegorodov1-Sep-18 23:19 
GeneralRe: Unable to receive custom Ethernet frame Pin
Richard MacCutchan1-Sep-18 23:25
protectorRichard MacCutchan1-Sep-18 23:25 
GeneralRe: Unable to receive custom Ethernet frame Pin
Jochen Arndt2-Sep-18 0:31
mvpJochen Arndt2-Sep-18 0:31 
GeneralRe: Unable to receive custom Ethernet frame Pin
Donnie_Song2-Sep-18 0:59
memberDonnie_Song2-Sep-18 0:59 
GeneralRe: Unable to receive custom Ethernet frame Pin
Donnie_Song2-Sep-18 3:32
memberDonnie_Song2-Sep-18 3:32 
GeneralRe: Unable to receive custom Ethernet frame Pin
Jochen Arndt2-Sep-18 7:58
mvpJochen Arndt2-Sep-18 7:58 
GeneralMessage Closed Pin
5-Sep-18 19:43
memberfarman abdullah5-Sep-18 19:43 
QuestionInvalid operands Pin
meerokh29-Aug-18 4:30
membermeerokh29-Aug-18 4:30 
I am trying to calculate sum of fibonacci series.

Struct arg is defined in header file as follows
struct args {
	int number;
	int result;
};

args user_arguments = { 10, 0 };
void fibonacci (void* arguments)
 {
 	args* local_args = (args*) arguments;
 	printf("local_args->number = %d\n", local_args->number);
     if (local_args->number <= 1) {
         local_args->result= 1;
         return;
     }
    int a = (local_args->number)-1;
    int b = (local_args->number)-2;
    local_args->result =fibonacci(&a) + fibonacci(&b)
     return local_args->result;


Above function is called from the function below. createPackage is a function provided by another library which gonna execute fabonacci function.

void WorkPackage(void*) {
 		createPackage(fibonacci, &user_arguments);
printf("Sum of fabonacci sequence is %d ", args->result) }


While compiling, It gives the following error
invalid operands of types ‘void’ and ‘void’ to binary ‘operator+’

Please help in pointing what am i doing wrong here??
AnswerRe: Invalid operands Pin
Victor Nijegorodov29-Aug-18 4:39
memberVictor Nijegorodov29-Aug-18 4:39 
GeneralRe: Invalid operands Pin
meerokh29-Aug-18 4:49
membermeerokh29-Aug-18 4:49 
QuestionRe: Invalid operands Pin
David Crow29-Aug-18 9:34
memberDavid Crow29-Aug-18 9:34 
AnswerRe: Invalid operands Pin
Richard MacCutchan29-Aug-18 5:51
protectorRichard MacCutchan29-Aug-18 5:51 
AnswerRe: Invalid operands Pin
CPallini29-Aug-18 20:53
mvpCPallini29-Aug-18 20:53 
QuestionRearrange array in alternating positive & negative items with O(1) extra space, while keeping the order of the elements maintained. Pin
Tarun Jha28-Aug-18 18:33
memberTarun Jha28-Aug-18 18:33 
AnswerRe: Rearrange array in alternating positive & negative items with O(1) extra space, while keeping the order of the elements maintained. Pin
CPallini28-Aug-18 21:52
mvpCPallini28-Aug-18 21:52 
QuestionHow I can make the GUI like as photoshop (dark theme) by using Visual Studio C++ ? Pin
sasia22521-Aug-18 17:38
membersasia22521-Aug-18 17:38 
AnswerRe: How I can make the GUI like as photoshop (dark theme) by using Visual Studio C++ ? Pin
Richard MacCutchan21-Aug-18 21:19
protectorRichard MacCutchan21-Aug-18 21:19 
GeneralRe: How I can make the GUI like as photoshop (dark theme) by using Visual Studio C++ ? Pin
sasia22521-Aug-18 21:28
membersasia22521-Aug-18 21:28 
GeneralRe: How I can make the GUI like as photoshop (dark theme) by using Visual Studio C++ ? Pin
Richard MacCutchan21-Aug-18 22:38
protectorRichard MacCutchan21-Aug-18 22:38 
GeneralRe: How I can make the GUI like as photoshop (dark theme) by using Visual Studio C++ ? Pin
sasia22521-Aug-18 22:44
membersasia22521-Aug-18 22:44 
AnswerRe: How I can make the GUI like as photoshop (dark theme) by using Visual Studio C++ ? Pin
Jochen Arndt21-Aug-18 22:40
mvpJochen Arndt21-Aug-18 22:40 
GeneralRe: How I can make the GUI like as photoshop (dark theme) by using Visual Studio C++ ? Pin
sasia22521-Aug-18 22:43
membersasia22521-Aug-18 22:43 
AnswerRe: How I can make the GUI like as photoshop (dark theme) by using Visual Studio C++ ? Pin
Michael Haephrati28-Aug-18 4:27
mvpMichael Haephrati28-Aug-18 4:27 
QuestionUsing Alternate Memory Heaps Pin
Richard Andrew x6419-Aug-18 10:04
professionalRichard Andrew x6419-Aug-18 10:04 
AnswerRe: Using Alternate Memory Heaps Pin
Richard MacCutchan19-Aug-18 21:24
protectorRichard MacCutchan19-Aug-18 21:24 

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.


Advertise | Privacy | Cookies | Terms of Service
Web06-2016 | 2.8.180906.1 | Last Updated 19 Sep 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid