Click here to Skip to main content
15,795,581 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Application crash when application launch. Pin
Le@rner13-May-09 19:28
Le@rner13-May-09 19:28 
GeneralRe: Application crash when application launch. Pin
Cedric Moonen13-May-09 21:17
Cedric Moonen13-May-09 21:17 
GeneralRe: Application crash when application launch. Pin
Le@rner17-May-09 21:12
Le@rner17-May-09 21:12 
GeneralRe: Application crash when application launch. Pin
Le@rner17-May-09 21:22
Le@rner17-May-09 21:22 
QuestionAtomic operations involving __int64 on 32 bit machines Pin
Eikthrynir13-May-09 3:14
Eikthrynir13-May-09 3:14 
AnswerRe: Atomic operations involving __int64 on 32 bit machines [modified] Pin
Randor 13-May-09 5:47
professional Randor 13-May-09 5:47 
GeneralRe: Atomic operations involving __int64 on 32 bit machines Pin
Eikthrynir14-May-09 1:17
Eikthrynir14-May-09 1:17 
GeneralRe: Atomic operations involving __int64 on 32 bit machines Pin
Randor 14-May-09 7:59
professional Randor 14-May-09 7:59 
Eikthrynir wrote:
1. You call InterlockedExchange64 with a_pi64Value as the first parameter, so the __int64 variable pointed by a_pi64Value gets 0. Then, you return the previous value of that __int64 variable which is certainly not the one we are interested in, m_i64Value.


If the 64 bit integer variable you want to read atomically is m_i64Value

Then the correct way to atomically read the value is:

__int64 i64Val = InterlockedExchangeAdd64(m_i64Value,0);


Eikthrynir wrote:
2. GetValue returns a LONGLONG value, so we find ourselves in exactly the same situation from Question 2 (concerning the EAX and EDX registers)...


This statement does not make any sense to me.

Best Wishes,

-David Delaune
QuestionS.M.A.R.T support in SCSI hard disk drive Pin
Abinash Mohanty13-May-09 2:27
Abinash Mohanty13-May-09 2:27 
QuestionRe: S.M.A.R.T support in SCSI hard disk drive Pin
Rajesh R Subramanian13-May-09 2:50
professionalRajesh R Subramanian13-May-09 2:50 
GeneralRe: S.M.A.R.T support in SCSI hard disk drive Pin
Abinash Mohanty13-May-09 3:31
Abinash Mohanty13-May-09 3:31 
AnswerRe: S.M.A.R.T support in SCSI hard disk drive Pin
David Crow13-May-09 4:14
David Crow13-May-09 4:14 
GeneralRe: S.M.A.R.T support in SCSI hard disk drive Pin
Rajesh R Subramanian13-May-09 4:32
professionalRajesh R Subramanian13-May-09 4:32 
QuestionRe: S.M.A.R.T support in SCSI hard disk drive Pin
David Crow13-May-09 4:42
David Crow13-May-09 4:42 
GeneralRe: S.M.A.R.T support in SCSI hard disk drive Pin
Abinash Mohanty13-May-09 19:12
Abinash Mohanty13-May-09 19:12 
NewsRe: S.M.A.R.T support in SCSI hard disk drive Pin
ipforce14-May-09 2:41
ipforce14-May-09 2:41 
GeneralRe: S.M.A.R.T support in SCSI hard disk drive Pin
David Crow14-May-09 3:33
David Crow14-May-09 3:33 
GeneralRe: S.M.A.R.T support in SCSI hard disk drive Pin
ipforce14-May-09 5:10
ipforce14-May-09 5:10 
GeneralRe: S.M.A.R.T support in SCSI hard disk drive Pin
aishui090515-Sep-09 18:13
aishui090515-Sep-09 18:13 
GeneralRe: S.M.A.R.T support in SCSI hard disk drive Pin
ipforce15-Sep-09 22:12
ipforce15-Sep-09 22:12 
GeneralRe: S.M.A.R.T support in SCSI hard disk drive Pin
aishui090518-Sep-09 20:12
aishui090518-Sep-09 20:12 
GeneralRe: S.M.A.R.T support in SCSI hard disk drive Pin
ipforce18-Sep-09 21:48
ipforce18-Sep-09 21:48 
Questionhelp me Create ISO image file from folders... Pin
lek25813-May-09 1:37
lek25813-May-09 1:37 
AnswerRe: help me Create ISO image file from folders... Pin
Rajesh R Subramanian13-May-09 2:21
professionalRajesh R Subramanian13-May-09 2:21 
QuestionLoading Resource from dll fails Pin
Super Hornet13-May-09 1:02
Super Hornet13-May-09 1:02 

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.