Click here to Skip to main content
15,885,435 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Issue in porting code from VS6.0 to VS2008 Pin
Nandu_77b18-Sep-09 4:37
Nandu_77b18-Sep-09 4:37 
GeneralRe: Issue in porting code from VS6.0 to VS2008 Pin
Stuart Dootson18-Sep-09 4:44
professionalStuart Dootson18-Sep-09 4:44 
Questionsize of class Pin
hrishiS17-Sep-09 23:27
hrishiS17-Sep-09 23:27 
AnswerRe: size of class Pin
«_Superman_»17-Sep-09 23:54
professional«_Superman_»17-Sep-09 23:54 
GeneralRe: size of class Pin
hrishiS18-Sep-09 0:15
hrishiS18-Sep-09 0:15 
GeneralRe: size of class Pin
CPallini18-Sep-09 0:20
mveCPallini18-Sep-09 0:20 
GeneralRe: size of class Pin
«_Superman_»18-Sep-09 0:36
professional«_Superman_»18-Sep-09 0:36 
AnswerRe: size of class Pin
santhosh-padamatinti18-Sep-09 0:25
santhosh-padamatinti18-Sep-09 0:25 
Hi, object is physical entity and allocation of memory is done based on the variables which we are using in that class. Suppose I used 2 integer variables and 1 float variable in my class then each object for this class occupies (2+2+4)bytes of memory. You can able to see this by using sizeof(object name) then it will gives you 8 bytes as a output. This result may vary based on the compiler used I am giving this based on the TC(turbo C)
And coming to the static variable is never possible to create inside a class. Because for a static variable the memory is allocated at compile time where memory allocated for an object at run time. So both things are contradict. When ever you tried to create an static variable inside a class it will gives you an error.

sampath-padamatinti

QuestionVC8 source code editor Pin
uli200017-Sep-09 22:56
uli200017-Sep-09 22:56 
AnswerRe: VC8 source code editor Pin
Naveen17-Sep-09 22:59
Naveen17-Sep-09 22:59 
Questionbeginner question Pin
Game-point17-Sep-09 22:44
Game-point17-Sep-09 22:44 
AnswerRe: beginner question Pin
CPallini17-Sep-09 22:48
mveCPallini17-Sep-09 22:48 
AnswerRe: beginner question Pin
Rajesh R Subramanian17-Sep-09 22:55
professionalRajesh R Subramanian17-Sep-09 22:55 
AnswerRe: beginner question Pin
«_Superman_»17-Sep-09 23:57
professional«_Superman_»17-Sep-09 23:57 
AnswerRe: beginner question Pin
santhosh-padamatinti18-Sep-09 0:36
santhosh-padamatinti18-Sep-09 0:36 
AnswerRe: beginner question Pin
Anil Kumar.Arvapalli18-Sep-09 1:40
Anil Kumar.Arvapalli18-Sep-09 1:40 
Questionhow to read/write long long ... integer from database? Pin
includeh1017-Sep-09 21:39
includeh1017-Sep-09 21:39 
AnswerRe: how to read/write long long ... integer from database? Pin
KarstenK17-Sep-09 21:47
mveKarstenK17-Sep-09 21:47 
AnswerRe: how to read/write long long ... integer from database? [modified] Pin
Saurabh.Garg17-Sep-09 23:31
Saurabh.Garg17-Sep-09 23:31 
Questionpure virtual functions [modified] Pin
hrishiS17-Sep-09 20:36
hrishiS17-Sep-09 20:36 
AnswerRe: pure virtual functions Pin
CPallini17-Sep-09 20:40
mveCPallini17-Sep-09 20:40 
GeneralRe: pure virtual functions Pin
hrishiS17-Sep-09 20:46
hrishiS17-Sep-09 20:46 
GeneralRe: pure virtual functions Pin
Stuart Dootson17-Sep-09 20:58
professionalStuart Dootson17-Sep-09 20:58 
GeneralRe: pure virtual functions Pin
hrishiS17-Sep-09 21:23
hrishiS17-Sep-09 21:23 
GeneralRe: pure virtual functions Pin
Stuart Dootson17-Sep-09 21:50
professionalStuart Dootson17-Sep-09 21:50 

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.