Original Post
Good evening all, I wondered if I could cast error codes returned when calling functions, say for instance if I want to test result code and show it to myself in easier format, like in messagebox (really for debuggin purposes): HRESULT hr=dPlay->Open(&sDes,DPOPEN_JOIN); Is there easied way to check return code, rather than nesting in switch block to test for every single return value. and another question is, even though I create and run both lobby server, and client on the same computer, it takes considerably long time for client to locate a session. is it nature of it, or is there something wrong in my code, it takes about nearly 20 secs to get respond from session enumerator. Thanks in advance.