Click here to Skip to main content
15,891,923 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Open Logical drives using Createfile function Pin
Blake Miller22-Feb-05 5:16
Blake Miller22-Feb-05 5:16 
GeneralXP System Restore Pin
Monty220-Feb-05 22:06
Monty220-Feb-05 22:06 
GeneralRe: XP System Restore Pin
22491720-Feb-05 23:43
22491720-Feb-05 23:43 
GeneralRe: XP System Restore Pin
Monty220-Feb-05 23:51
Monty220-Feb-05 23:51 
GeneralService for serial port on Visual C++ 6.0 (Win2K) Pin
ILIA_M20-Feb-05 21:59
ILIA_M20-Feb-05 21:59 
GeneralRe: Service for serial port on Visual C++ 6.0 (Win2K) Pin
Antony M Kancidrowski21-Feb-05 1:09
Antony M Kancidrowski21-Feb-05 1:09 
QuestionThere is a better way to achieve that? Pin
Stephan Poirier20-Feb-05 19:25
Stephan Poirier20-Feb-05 19:25 
AnswerRe: There is a better way to achieve that? Pin
22491720-Feb-05 23:10
22491720-Feb-05 23:10 
Stephan Poirier wrote:
_inline PVOID UltraSwap( LONG* a, LONG* b )
{
LONG x = *a;
LONG y = *b;
__asm mov eax, x
__asm mov ebx, y
__asm mov x, ebx
__asm mov y, eax

*a = x;
*b = y;
}



Can the local variable be avoided like this ?

_inline PVOID UltraSwap( LONG* a, LONG* b )
{
__asm mov eax, dword ptr [a]
__asm mov ebx, dword ptr [b]
__asm mov dword ptr [a], ebx
__asm mov dword ptr [b], eax
}



suhredayan
There is no spoon.

AnswerRe: There is a better way to achieve that? Pin
V.21-Feb-05 0:34
professionalV.21-Feb-05 0:34 
GeneralRe: There is a better way to achieve that? Pin
22491721-Feb-05 0:37
22491721-Feb-05 0:37 
GeneralRe: There is a better way to achieve that? Pin
V.21-Feb-05 4:35
professionalV.21-Feb-05 4:35 
AnswerRe: There is a better way to achieve that? Pin
Zdeslav Vojkovic21-Feb-05 5:58
Zdeslav Vojkovic21-Feb-05 5:58 
GeneralRe: There is a better way to achieve that? Pin
22491721-Feb-05 16:35
22491721-Feb-05 16:35 
GeneralRe: There is a better way to achieve that? Pin
Stephan Poirier21-Feb-05 19:57
Stephan Poirier21-Feb-05 19:57 
GeneralRe: There is a better way to achieve that? Pin
Zdeslav Vojkovic22-Feb-05 0:36
Zdeslav Vojkovic22-Feb-05 0:36 
GeneralRe: There is a better way to achieve that? Pin
Stephan Poirier21-Feb-05 21:00
Stephan Poirier21-Feb-05 21:00 
GeneralRe: There is a better way to achieve that? Pin
Zdeslav Vojkovic22-Feb-05 2:27
Zdeslav Vojkovic22-Feb-05 2:27 
GeneralRe: There is a better way to achieve that? Pin
Stephan Poirier22-Feb-05 14:47
Stephan Poirier22-Feb-05 14:47 
GeneralRe: There is a better way to achieve that? Pin
Stephan Poirier22-Feb-05 14:56
Stephan Poirier22-Feb-05 14:56 
AnswerRe: There is a better way to achieve that? Pin
Stephan Poirier21-Feb-05 16:18
Stephan Poirier21-Feb-05 16:18 
Questionhow to achieve a secure file system against information leak? Pin
zymoonstone20-Feb-05 19:12
zymoonstone20-Feb-05 19:12 
AnswerRe: how to achieve a secure file system against information leak? Pin
22491721-Feb-05 0:45
22491721-Feb-05 0:45 
GeneralRe: how to achieve a secure file system against information leak? Pin
zymoonstone21-Feb-05 13:54
zymoonstone21-Feb-05 13:54 
QuestionConnected or not? Pin
wasife20-Feb-05 18:58
wasife20-Feb-05 18:58 
AnswerRe: Connected or not? Pin
ThatsAlok20-Feb-05 19:11
ThatsAlok20-Feb-05 19:11 

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.