| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Simple C++ Pointer Problem
Hi,
Im learning C++ and understand the concept of pointers to some extent, but ive come up against this line of code: typedef void (* MyFunctionPointer)( void * lpUserData ); What does it do? Is it defining a pointer to a pointer or something like that? Thanks for the help, Steve |
|
#2
|
|||
|
|||
|
typedef is used to define your own types to make code more readable. In this case it is defining your own type of function pointer. If you don't know what these are check out http://www.function-pointer.org/index.html for all you could ever want to know about them.
-KM- |
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > Simple C++ Pointer Problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|