CHANGE IT TO...

flip_page(wPage, &page1, &page2, &page3, &active_page);

what you had...
flip_page(&wPage, &page1, &page2, &page3, &active_page);

IS WRONGGGGGG!!!!!!!!!!!>>>>>>>>>>>>................. .

Also, seriously I would consider getting rid of the (**) double pointers all together since they are cuasing so much headaches and they are not needed or being used correctly. If you need Double pointers, create them initially and not in the functions.

Like...
BITMAP** active_page;