Click here to Skip to main content
15,892,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Disable resizing of CSplitterWnd panes Pin
John R. Shaw15-May-03 15:18
John R. Shaw15-May-03 15:18 
Generalerror C2102: '&' requires l-value Pin
flora_k14-May-03 22:19
flora_k14-May-03 22:19 
GeneralRe: error C2102: '&' requires l-value Pin
Rage14-May-03 22:28
professionalRage14-May-03 22:28 
GeneralRe: error C2102: '&' requires l-value Pin
flora_k14-May-03 22:36
flora_k14-May-03 22:36 
GeneralRe: error C2102: '&' requires l-value Pin
Rage14-May-03 22:50
professionalRage14-May-03 22:50 
GeneralRe: error C2102: '&' requires l-value Pin
flora_k14-May-03 23:08
flora_k14-May-03 23:08 
GeneralRe: error C2102: '&' requires l-value Pin
jhwurmbach14-May-03 23:19
jhwurmbach14-May-03 23:19 
GeneralRe: error C2102: '&' requires l-value Pin
Rage14-May-03 23:27
professionalRage14-May-03 23:27 
flora_k wrote:
cpp(48) : warning C4244: '=' : conversion from 'double' to 'unsigned char', possible loss of data

explicit : you return an unsigned char, which is a value between 0 and 256, and you want to assign it a sum of doubles, which is a value between -2^63 and 2^63 ... so you may lose some data in the operation.

flora_k wrote:
cpp(90) : error C2102: '&' requires l-value

Your if statement is missing a ). Use && operator instead of & which should only be used to do bitwise operation. Test is done with && or ||.

flora_k wrote:
cpp(92) : error C2064: term does not evaluate to a function

In c++ or c, functions looks like function(parameter) and tables of value like value[] (spot the square brackets). The compiler thinks you are trying to assign the result of the sum to a function call, which does not mean anything at all.

So better try :
histogram_ram[i_index]=histogram_ram[i_index]+1; 


you also need to declare the table correctly :

double histogram_ram[SizeOfTable];


Replace SizeOfTable by the size of your table (3 or 255 or ...);

That's the same for the other values. You must be pretty new to c/c++ language ?



~RaGE();
GeneralRe: error C2102: '&' requires l-value Pin
flora_k14-May-03 23:54
flora_k14-May-03 23:54 
GeneralRe: error C2102: '&' requires l-value Pin
David Crow15-May-03 3:02
David Crow15-May-03 3:02 
GeneralRe: error C2102: '&' requires l-value Pin
flora_k14-May-03 22:40
flora_k14-May-03 22:40 
Generaldifficult - CListCtrl::GetItemRect() Pin
JensB14-May-03 21:59
JensB14-May-03 21:59 
GeneralRe: difficult - CListCtrl::GetItemRect() Pin
Rage14-May-03 22:09
professionalRage14-May-03 22:09 
GeneralRe: difficult - CListCtrl::GetItemRect() Pin
JensB14-May-03 22:17
JensB14-May-03 22:17 
GeneralRe: difficult - CListCtrl::GetItemRect() Pin
Rage14-May-03 22:25
professionalRage14-May-03 22:25 
GeneralRe: difficult - CListCtrl::GetItemRect() Pin
JensB14-May-03 22:32
JensB14-May-03 22:32 
GeneralRe: difficult - CListCtrl::GetItemRect() Pin
Rage14-May-03 22:46
professionalRage14-May-03 22:46 
GeneralRe: difficult - CListCtrl::GetItemRect() Pin
JensB14-May-03 22:52
JensB14-May-03 22:52 
GeneralRe: difficult - CListCtrl::GetItemRect() Pin
Rage14-May-03 22:59
professionalRage14-May-03 22:59 
GeneralRe: difficult - CListCtrl::GetItemRect() Pin
JensB14-May-03 23:05
JensB14-May-03 23:05 
GeneralRe: difficult - CListCtrl::GetItemRect() Pin
Rage14-May-03 23:15
professionalRage14-May-03 23:15 
Generalchange the language in edit box Pin
Didaa14-May-03 21:55
Didaa14-May-03 21:55 
GeneralRe: change the language in edit box Pin
Rage15-May-03 7:58
professionalRage15-May-03 7:58 
GeneralProgramming with templates Pin
Steve Thresher14-May-03 21:48
Steve Thresher14-May-03 21:48 
GeneralRe: Programming with templates Pin
jhwurmbach14-May-03 22:22
jhwurmbach14-May-03 22:22 

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.