Thread
:
Calculating the size in bytes of a C++ function
View Single Post
#
4
11-04-2007, 02:31
Darren
Friend
Join Date: May 2003
Posts: 28
Rept. Given: 3
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 16
Thanks Rcvd at 5 Times in 4 Posts
void main()
{
do whatever main function does
}
void dummy()
{
}
#define mainsize ((DWORD)dummy-(DWORD)main)
This will calculate size of main function
Darren
View Public Profile
Find all posts by Darren