- Joined
- Apr 14, 2012
- Messages
- 2,585
- Reaction score
- 0
- Points
- 36
Okay, so Ive been working on an addon vessel for about 3-ish months now. I have external/internal meshes, internal VC still being dveloped, a fairly good dll that contains all the flight characteristics, main/hover/rcs, gear and animations(big thanks to gattispilot for that), a payload bay, and orbiter sound being integrated right now. My goal would be to have this release-ready for the fall with a working VC, UMMU, and UCGO, but Im under some time pressure because I know theres no way I can afford to do orbiter development during first year university. So, I would appreciate any thoughts, help, ideas, etc.

---------- Post added at 06:21 PM ---------- Previous post was at 06:07 PM ----------
Okay, so Ive been using the Astromatiz II tutorial/example by keith on OHM in order to get a VC working with my ship. I copied across the code from his samples, edited it to fit the project, but one error keeps popping up whenever I try to compile, related to VC redraw events and the font it uses
1>------ Build started: Project: MyVessel, Configuration: Release Win32 ------
1> SHD.cpp
1>SHD.cpp(406): error C2664: 'TextOutW' : cannot convert parameter 4 from 'const char *' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>SHD.cpp(528): error C2664: 'CreateFontW' : cannot convert parameter 14 from 'const char [6]' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
the issue seems to be that the 'LPCWSTR' parameter (representing the font Arial, I think) is incompatible with argument of type cons char? the tutorial is made for Orbiter 2006, but Im not sure what the issue really is.
---------- Post added at 06:21 PM ---------- Previous post was at 06:07 PM ----------
Okay, so Ive been using the Astromatiz II tutorial/example by keith on OHM in order to get a VC working with my ship. I copied across the code from his samples, edited it to fit the project, but one error keeps popping up whenever I try to compile, related to VC redraw events and the font it uses
1>------ Build started: Project: MyVessel, Configuration: Release Win32 ------
1> SHD.cpp
1>SHD.cpp(406): error C2664: 'TextOutW' : cannot convert parameter 4 from 'const char *' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>SHD.cpp(528): error C2664: 'CreateFontW' : cannot convert parameter 14 from 'const char [6]' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
the issue seems to be that the 'LPCWSTR' parameter (representing the font Arial, I think) is incompatible with argument of type cons char? the tutorial is made for Orbiter 2006, but Im not sure what the issue really is.
Last edited: