[quote user="HDR_Coder"] mdlLevel_getIdFromName(&levid,modelRef,LEVEL_NULL_ID,&levelName);[/quote]
How is variable levelName declared? The function is expecting a const pointer to a wide character string (MSWCharCP). You're passing the address-of something, which is almost certainly wrong. Again, the compiler should be telling you that something is amiss.