Forum > General

C++ conversion : what is the def for "POSITION"

(1/1)

jamie:
as stated:

 I Find this in the CDocument, CFile at times etc.

I cannot find a definition for it.

The way it's being used, I would say it's a 32-bit integer, but I can't be sure.

it is "POSITION" in all caps.

Thaddy:
Bit long since I used MFC but POSITION has different meanings for CFile and CDocument.
1.in CFille it if the file position
2. in CDocument it is the position/index in the collection/list of document views, e.g. GetFirstViewPosition or GetNextView.
It is the size of a pointer so it differs per platform.

jamie:
Ok, So I changed it to a PtrUint, that seems to work all around.

Thank you.

jamie:
I found this for those that need a reference to the MFC.
https://elhacker.info/manuales/Lenguajes%20de%20Programacion/C++/C++%20-%20MFC%20Bible.pdf

its 2600+ pages and all indexable search etc. very nice find. :o

Thaddy:
I can better that, over 100.000 pages: learn.microsoft.com probably well over a million and indexed.
( nowadays there is no real need to have an msdn subscription )
Note that regarding Windows all other sites are second hand news, that is why I had an msdn subscription for more than 25 years. Still useful if you are a pro, but I am retired.

Navigation

[0] Message Index

Go to full version