Alright, I have three BITMAP* s called page1, page2, and page3. They are used for "flipping" pages in my program. Then, I have BITMAP** active_page which POINTS to which page I want to use. Then, when I blit things to active_page it goes REALLY to either page1, page2, or page3. The difficulty comes in when I have to pass these to functions, and compare them. Well, here is my very sad attempt at it. I *know* it can be done! I just need some help! Thanks.
Code:
BITMAP *ship, *page1, *page2, *page3, **active_page, *title;

//this is how i call the function
flip_page(&wPage, &*page1, &*page2, &*page3, &**active_page);

//this is the actual function
void flip_page(int *wPage, BITMAP** page1, BITMAP** page2, BITMAP** page3, BITMAP*** active_page)
{
	if(***active_page == &(*page1))
	{
        **active_page = &(*page2);
		*wPage       = 2;
	}
    if(***active_page == &(*page2))
	{
        **active_page = *page3;
		*wPage       = 3;
	}
	if(***active_page == &(*page3))
	{
		**active_page = *page1;
		*wPage       = 1;
	}

}
Compiling...
main.cpp
C:\Documents and Settings\Administrator\Desktop\test allegro\main.cpp(194) : error C2664: 'flip_page' : cannot convert parameter 5 from 'struct BITMAP *' to 'struct BITMAP *** '
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\Documents and Settings\Administrator\Desktop\test allegro\main.cpp(242) : error C2678: binary '==' : no operator defined which takes a left-hand operand of type 'struct BITMAP' (or there is no acceptable conversion)
C:\Documents and Settings\Administrator\Desktop\test allegro\main.cpp(244) : error C2440: '=' : cannot convert from 'struct BITMAP ** ' to 'struct BITMAP *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\Documents and Settings\Administrator\Desktop\test allegro\main.cpp(247) : error C2678: binary '==' : no operator defined which takes a left-hand operand of type 'struct BITMAP' (or there is no acceptable conversion)
C:\Documents and Settings\Administrator\Desktop\test allegro\main.cpp(252) : error C2678: binary '==' : no operator defined which takes a left-hand operand of type 'struct BITMAP' (or there is no acceptable conversion)
Error executing cl.exe.
Creating browse info file...

test allegro.exe - 5 error(s), 0 warning(s)