Click here to Skip to main content
15,922,584 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Change windows process priority Pin
Mike Nordell14-Jul-03 9:26
Mike Nordell14-Jul-03 9:26 
GeneralSDI Main Window Pin
ppathan14-Jul-03 5:20
ppathan14-Jul-03 5:20 
GeneralRe: SDI Main Window Pin
Shay Harel14-Jul-03 5:53
Shay Harel14-Jul-03 5:53 
GeneralRe: SDI Main Window Pin
ppathan14-Jul-03 7:31
ppathan14-Jul-03 7:31 
GeneralRe: SDI Main Window Pin
Shay Harel14-Jul-03 7:36
Shay Harel14-Jul-03 7:36 
GeneralRe: SDI Main Window Pin
David Crow14-Jul-03 7:57
David Crow14-Jul-03 7:57 
GeneralRe: SDI Main Window Pin
Shay Harel14-Jul-03 8:04
Shay Harel14-Jul-03 8:04 
Generaltypedef rants and uses ... Pin
Maximilien14-Jul-03 5:10
Maximilien14-Jul-03 5:10 
What's the use of typedefing basic types ?

I'm reviewing some old C code, and there's a lot of typedef like

typedef  float *FloatPtr;<br />
typedef  float **FloatPtr2D;<br />
typedef  float ***FloatPtr3D;<br />
typedef  float ****FloatPtr4D;<br />
<br />
typedef  unsigned int UInt;<br />
typedef  unsigned int *UIntPtr;<br />
<br />
typedef  int *IntPtr;<br />
typedef  int **IntPtr2D;<br />
typedef  int ***IntPtr3D;


and some other variants of the same things; and it's all mixed up in the code, sometimes, declaration use a typedef, but the definition use the full type.

If I need to typedef some basic types to be used all around the application to follow a code guideline, is there a standard way of doing this, in C++ preferable ?



Maximilien Lincourt
"Never underestimate the bandwidth of a station wagon filled with backup tapes." (from /.)
GeneralRe: typedef rants and uses ... Pin
jhwurmbach14-Jul-03 5:29
jhwurmbach14-Jul-03 5:29 
GeneralWH_MOUSE_LL Pin
Gleb14-Jul-03 4:30
Gleb14-Jul-03 4:30 
GeneralRe: WH_MOUSE_LL Pin
Duncan Edwards Jones14-Jul-03 4:35
professionalDuncan Edwards Jones14-Jul-03 4:35 
GeneralRe: WH_MOUSE_LL Pin
Gleb14-Jul-03 20:34
Gleb14-Jul-03 20:34 
GeneralRe: WH_MOUSE_LL Pin
Ryan Binns14-Jul-03 4:44
Ryan Binns14-Jul-03 4:44 
GeneralRe: WH_MOUSE_LL Pin
Gleb14-Jul-03 20:33
Gleb14-Jul-03 20:33 
GeneralRe: WH_MOUSE_LL Pin
Ryan Binns14-Jul-03 22:18
Ryan Binns14-Jul-03 22:18 
GeneralBoot program, partition access Pin
Kuniva14-Jul-03 4:19
Kuniva14-Jul-03 4:19 
GeneralRe: Boot program, partition access Pin
Mike Dimmick14-Jul-03 6:50
Mike Dimmick14-Jul-03 6:50 
Generalrecordset question Pin
jafrazee14-Jul-03 4:13
jafrazee14-Jul-03 4:13 
GeneralRe: recordset question Pin
Alexandru Savescu14-Jul-03 4:29
Alexandru Savescu14-Jul-03 4:29 
GeneralRe: recordset question Pin
jafrazee14-Jul-03 7:32
jafrazee14-Jul-03 7:32 
GeneralRe: recordset question Pin
Nick Parker14-Jul-03 4:35
protectorNick Parker14-Jul-03 4:35 
GeneralRe: recordset question Pin
jafrazee14-Jul-03 7:34
jafrazee14-Jul-03 7:34 
GeneralRe: recordset question Pin
David Crow14-Jul-03 8:02
David Crow14-Jul-03 8:02 
GeneralRe: recordset question Pin
jafrazee14-Jul-03 8:16
jafrazee14-Jul-03 8:16 
GeneralRe: recordset question Pin
David Crow14-Jul-03 8:34
David Crow14-Jul-03 8:34 

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.