What kind of "dongle" (USB receiver) are you using?
Windows should recognize it as a game controller automatically, which is what RealFlight needs in order to find it. If you run a program called joy.cpl (included with Windows; just search for it), you should see something listed there whenever the receiver is plugged in.