Can someone help me I'll like to be able to load a dialog form and a menu from a .res file but how?

The Help? give this information
[temp=LoadResData(ID,4 or 5)]
4 stand for menu will 5 stand for Dialog.

What I want to know is I declare temp as what?