Click here to Skip to main content
15,914,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Check if is valid pointer address? Pin
Michael Dunn27-Jul-07 10:04
sitebuilderMichael Dunn27-Jul-07 10:04 
QuestionCAsyncSocket::DoCallBack(WPARAM wParam, LPARAM lParam) Pin
xxblinux27-Jul-07 2:15
xxblinux27-Jul-07 2:15 
AnswerRe: CAsyncSocket::DoCallBack(WPARAM wParam, LPARAM lParam) Pin
Mike Dimmick27-Jul-07 2:36
Mike Dimmick27-Jul-07 2:36 
AnswerRe: CAsyncSocket::DoCallBack(WPARAM wParam, LPARAM lParam) Pin
xxblinux27-Jul-07 16:33
xxblinux27-Jul-07 16:33 
Questiondifference b/w long pointer and pointer to string Pin
hari prasad sathpadi27-Jul-07 1:56
hari prasad sathpadi27-Jul-07 1:56 
AnswerRe: difference b/w long pointer and pointer to string Pin
toxcct27-Jul-07 2:34
toxcct27-Jul-07 2:34 
AnswerRe: difference b/w long pointer and pointer to string Pin
Nemanja Trifunovic27-Jul-07 2:42
Nemanja Trifunovic27-Jul-07 2:42 
AnswerRe: difference b/w long pointer and pointer to string Pin
Mike Dimmick27-Jul-07 2:44
Mike Dimmick27-Jul-07 2:44 
In modern Windows, none at all. LPSTR and PSTR are fully interchangeable.

On 16-bit Windows (and DOS), you had two sorts of pointer, near and far. A near pointer was 16 bits and could only reference data in the same segment as currently set, while a far pointer was 32 bits and could reference data in any segment. Data in a DLL would never be in your program's segment, so you'd need a far pointer to address it.

Segmented addressing was a really big pain and it was a huge relief to most programmers when 32-bit Windows moved to a flat 32-bit virtual address space.

A 'long' pointer in 16-bit Windows was a far pointer (32-bits, the same size as the long type). LPSTR was a typedef for char far*.

The old datatypes survive in 32-bit and now 64-bit Windows largely for source-level compatibility with 16-bit code. Consider it an odd quirk.

Stability. What an interesting concept. -- Chris Maunder

QuestionHow to egalise two strings Pin
garfaoui27-Jul-07 0:16
garfaoui27-Jul-07 0:16 
AnswerRe: How to egalise two strings Pin
GameProfessor27-Jul-07 0:20
GameProfessor27-Jul-07 0:20 
GeneralRe: How to egalise two strings Pin
garfaoui27-Jul-07 0:23
garfaoui27-Jul-07 0:23 
AnswerRe: How to egalise two strings Pin
F.Falk27-Jul-07 0:24
F.Falk27-Jul-07 0:24 
AnswerRe: How to egalise two strings Pin
ashukasama27-Jul-07 0:24
ashukasama27-Jul-07 0:24 
AnswerRe: How to egalise two strings Pin
garfaoui27-Jul-07 0:38
garfaoui27-Jul-07 0:38 
GeneralRe: How to egalise two strings Pin
mandanani27-Jul-07 0:36
mandanani27-Jul-07 0:36 
QuestionRe: How to egalise two strings Pin
garfaoui27-Jul-07 0:39
garfaoui27-Jul-07 0:39 
AnswerRe: How to egalise two strings Pin
mandanani27-Jul-07 0:46
mandanani27-Jul-07 0:46 
QuestionRe: How to egalise two strings Pin
garfaoui27-Jul-07 0:50
garfaoui27-Jul-07 0:50 
AnswerRe: How to egalise two strings Pin
Cedric Moonen27-Jul-07 0:58
Cedric Moonen27-Jul-07 0:58 
AnswerRe: How to egalise two strings Pin
toxcct27-Jul-07 0:57
toxcct27-Jul-07 0:57 
GeneralRe: How to egalise two strings Pin
Cedric Moonen27-Jul-07 0:59
Cedric Moonen27-Jul-07 0:59 
GeneralRe: How to egalise two strings Pin
Jonathan [Darka]27-Jul-07 1:08
professionalJonathan [Darka]27-Jul-07 1:08 
GeneralRe: How to egalise two strings Pin
Cedric Moonen27-Jul-07 1:11
Cedric Moonen27-Jul-07 1:11 
GeneralRe: How to egalise two strings [modified] Pin
toxcct27-Jul-07 1:11
toxcct27-Jul-07 1:11 
QuestionRe: How to egalise two strings Pin
garfaoui27-Jul-07 2:10
garfaoui27-Jul-07 2:10 

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.