Click here to Skip to main content
15,896,382 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how can i get the path of a specific application? Pin
mazizi17-Mar-10 0:49
mazizi17-Mar-10 0:49 
GeneralRe: how can i get the path of a specific application? Pin
Eugen Podsypalnikov17-Mar-10 0:58
Eugen Podsypalnikov17-Mar-10 0:58 
QuestionRe: how can i get the path of a specific application? Pin
David Crow17-Mar-10 4:34
David Crow17-Mar-10 4:34 
QuestionUnanticipated behavior from overloaded cast operator... [modified] Pin
Mike the Red16-Mar-10 23:01
Mike the Red16-Mar-10 23:01 
AnswerRe: Unanticipated behavior from overloaded cast operator... Pin
Moak16-Mar-10 23:36
Moak16-Mar-10 23:36 
GeneralThanks, Moak! I didn't understand you at first, but that's exactly the problem. Pin
Mike the Red17-Mar-10 0:24
Mike the Red17-Mar-10 0:24 
JokeRe: Thanks, Moak! I didn't understand you at first, but that's exactly the problem. Pin
Moak17-Mar-10 0:30
Moak17-Mar-10 0:30 
AnswerRe: Unanticipated behavior from overloaded cast operator... Pin
CPallini16-Mar-10 23:45
mveCPallini16-Mar-10 23:45 
Mike the Red wrote:
I was expecting to see:


Mike the Red wrote:
m_buff = 9180016 0123456789 foo = 9179968 (LPBYTE) foo = 9180016 // same address as m_buff
0123456789


Mike the Red wrote:
What am I missing ?


The address of the class and the one of the m_buff variable (i.e. &m_buff) are the same.
On the other hand, the address of the class differs from that of the memory buffer (i.e. m_buff).

To verify, add the following line to the show method:
cout << "&m_buff = " << (__int64) (void *) &m_buff << "\n\t"; // Show the REAL address of m_buff


(that happens because of dynamic memory allocation).

Smile | :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralWait.. my overloaded operator isn't being called.... Pin
Mike the Red16-Mar-10 23:59
Mike the Red16-Mar-10 23:59 
GeneralRe: Wait.. my overloaded operator isn't being called.... Pin
CPallini17-Mar-10 0:09
mveCPallini17-Mar-10 0:09 
General-string of expletives removed- I can't believe it was that simple... thanks, Pallini ! -nt- Pin
Mike the Red17-Mar-10 0:16
Mike the Red17-Mar-10 0:16 
GeneralRe: -string of expletives removed- I can't believe it was that simple... thanks, Pallini ! -nt- Pin
CPallini17-Mar-10 0:24
mveCPallini17-Mar-10 0:24 
AnswerRe: Unanticipated behavior from overloaded cast operator... Pin
Cool_Dev16-Mar-10 23:52
Cool_Dev16-Mar-10 23:52 
GeneralRe: Unanticipated behavior from overloaded cast operator... Pin
Mike the Red17-Mar-10 0:13
Mike the Red17-Mar-10 0:13 
AnswerRe: Unanticipated behavior from overloaded cast operator... Pin
Eugen Podsypalnikov16-Mar-10 23:55
Eugen Podsypalnikov16-Mar-10 23:55 
GeneralNo, no garbage there... Pin
Mike the Red17-Mar-10 0:04
Mike the Red17-Mar-10 0:04 
GeneralRe: No, no garbage there... Pin
Eugen Podsypalnikov17-Mar-10 0:06
Eugen Podsypalnikov17-Mar-10 0:06 
Questionchar array prblm Pin
Member 59031016-Mar-10 22:12
Member 59031016-Mar-10 22:12 
AnswerRe: char array prblm Pin
Nuri Ismail16-Mar-10 22:24
Nuri Ismail16-Mar-10 22:24 
AnswerRe: char array prblm Pin
«_Superman_»16-Mar-10 22:25
professional«_Superman_»16-Mar-10 22:25 
AnswerRe: char array prblm Pin
BIJU Manjeri16-Mar-10 22:29
BIJU Manjeri16-Mar-10 22:29 
GeneralRe: char array prblm Pin
Member 59031016-Mar-10 22:32
Member 59031016-Mar-10 22:32 
QuestionPlease help with download - "Cryptographic Interoperability: Keys" article Pin
kcunko16-Mar-10 21:52
kcunko16-Mar-10 21:52 
AnswerRe: Please help with download - "Cryptographic Interoperability: Keys" article Pin
Nuri Ismail16-Mar-10 21:56
Nuri Ismail16-Mar-10 21:56 
GeneralRe: Please help with download - "Cryptographic Interoperability: Keys" article Pin
kcunko16-Mar-10 22:05
kcunko16-Mar-10 22:05 

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.