Click here to Skip to main content
13,766,072 members

C / C++ / MFC

 
GeneralRe: Unable to receive custom Ethernet frame Pin
Victor Nijegorodov2-Sep-18 0:19
memberVictor Nijegorodov2-Sep-18 0:19 
GeneralRe: Unable to receive custom Ethernet frame Pin
Richard MacCutchan2-Sep-18 0:25
protectorRichard MacCutchan2-Sep-18 0:25 
GeneralRe: Unable to receive custom Ethernet frame Pin
Jochen Arndt2-Sep-18 1:31
mvpJochen Arndt2-Sep-18 1:31 
GeneralRe: Unable to receive custom Ethernet frame Pin
Donnie_Song2-Sep-18 1:59
memberDonnie_Song2-Sep-18 1:59 
GeneralRe: Unable to receive custom Ethernet frame Pin
Donnie_Song2-Sep-18 4:32
memberDonnie_Song2-Sep-18 4:32 
GeneralRe: Unable to receive custom Ethernet frame Pin
Jochen Arndt2-Sep-18 8:58
mvpJochen Arndt2-Sep-18 8:58 
GeneralMessage Closed Pin
5-Sep-18 20:43
memberfarman abdullah5-Sep-18 20:43 
QuestionInvalid operands Pin
meerokh29-Aug-18 5:30
membermeerokh29-Aug-18 5: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 5:39
memberVictor Nijegorodov29-Aug-18 5:39 
GeneralRe: Invalid operands Pin
meerokh29-Aug-18 5:49
membermeerokh29-Aug-18 5:49 
QuestionRe: Invalid operands Pin
David Crow29-Aug-18 10:34
memberDavid Crow29-Aug-18 10:34 
AnswerRe: Invalid operands Pin
Richard MacCutchan29-Aug-18 6:51
protectorRichard MacCutchan29-Aug-18 6:51 
AnswerRe: Invalid operands Pin
CPallini29-Aug-18 21:53
mvpCPallini29-Aug-18 21: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 19:33
memberTarun Jha28-Aug-18 19: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 22:52
mvpCPallini28-Aug-18 22:52 
QuestionHow I can make the GUI like as photoshop (dark theme) by using Visual Studio C++ ? Pin
sasia22521-Aug-18 18:38
membersasia22521-Aug-18 18:38 
AnswerRe: How I can make the GUI like as photoshop (dark theme) by using Visual Studio C++ ? Pin
Richard MacCutchan21-Aug-18 22:19
protectorRichard MacCutchan21-Aug-18 22:19 
GeneralRe: How I can make the GUI like as photoshop (dark theme) by using Visual Studio C++ ? Pin
sasia22521-Aug-18 22:28
membersasia22521-Aug-18 22:28 
GeneralRe: How I can make the GUI like as photoshop (dark theme) by using Visual Studio C++ ? Pin
Richard MacCutchan21-Aug-18 23:38
protectorRichard MacCutchan21-Aug-18 23:38 
GeneralRe: How I can make the GUI like as photoshop (dark theme) by using Visual Studio C++ ? Pin
sasia22521-Aug-18 23:44
membersasia22521-Aug-18 23:44 
AnswerRe: How I can make the GUI like as photoshop (dark theme) by using Visual Studio C++ ? Pin
Jochen Arndt21-Aug-18 23:40
mvpJochen Arndt21-Aug-18 23:40 
GeneralRe: How I can make the GUI like as photoshop (dark theme) by using Visual Studio C++ ? Pin
sasia22521-Aug-18 23:43
membersasia22521-Aug-18 23:43 
AnswerRe: How I can make the GUI like as photoshop (dark theme) by using Visual Studio C++ ? Pin
Michael Haephrati28-Aug-18 5:27
mvpMichael Haephrati28-Aug-18 5:27 
QuestionUsing Alternate Memory Heaps Pin
Richard Andrew x6419-Aug-18 11:04
professionalRichard Andrew x6419-Aug-18 11:04 
AnswerRe: Using Alternate Memory Heaps Pin
Richard MacCutchan19-Aug-18 22:24
protectorRichard MacCutchan19-Aug-18 22: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
Web01-2016 | 2.8.181114.1 | Last Updated 15 Nov 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid