Message 1 of 5
How to open a max file from c++

Not applicable
05-02-2019
01:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I have a seemingly very elementary question. I want to open a .max file from my c++ plugin code without an open file dialog.
No matter what I do this code crashes 3ds Max:
ip->LoadFromFile((_T("C:\\thescene.max"), TRUE);
No error message details. Max just crashes whenever I invoke this code. I can open the file manually.
Is there any obvious mistake anyone can see? I am using Max 2014 and everything else is working OK.