View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001637 | NoesisGUI | C++ SDK | public | 2020-03-13 10:46 | 2020-04-13 21:02 |
| Reporter | steveh | Assigned To | jsantos | ||
| Priority | normal | Severity | minor | ||
| Status | resolved | Resolution | fixed | ||
| Product Version | 2.2.6 | ||||
| Target Version | 3.0.0 | Fixed in Version | 3.0.0 | ||
| Summary | 0001637: 'PlaySoundA' is not a member of 'Noesis::GUI' | ||||
| Description | Hi guys, I've just decided to test out upgrading from 2.2.1 -> 2.2.6. I've just hit a compile error caused by the WinAPI doing some #define to rename "PlaySound" to either "PlaySoundA" or "PlaySoundW". The file which fails to compile is "IntegrationAPI.cpp". The issue is caused by the order of includes:
Error is as follows (I've cut out all the other non-important include paths) 1>------ Build started: Project: NoesisGUI, Configuration: Release PcDx11_x64 x64 ------ I can fix locally by renaming "PlaySound" to "NsPlaySound" so it doesn't match the #define. | ||||
| Platform | Any | ||||
|
Ugh, not sure why we are not having that error here and nobody complained before but I think we should rename PlaySound to something different. Unicode macros in window are a nightmare. |
|
|
Yup, I fully agree :) In fact, I'd go as far to say that the entire WinAPI is a nightmare. Others may not have an issue because I'm not building Noesis externally using the generated solution. We use premake and directly integrate the CPP / H files from Noesis into our game's solution, so Noesis is built as part of our solution / generated project as opposed to Noesis solution/project generated via the Python script. This means that we may have different build settings which may include different windows unicode settings, or API settings etc. |
|
|
I love that idea of integrating CPP / H directly into your solution. And we want to support this way in the future (like for example providing a single .cpp (or just a few) with all Noesis inside). Any feedback to make your life easier about this is welcome. Thanks! |
|
|
I fixed this and also added WIN32_LEAN_AND_MEAN in all places we are including windows.h |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2020-03-13 10:46 | steveh | New Issue | |
| 2020-03-13 11:34 | jsantos | Assigned To | => jsantos |
| 2020-03-13 11:34 | jsantos | Status | new => assigned |
| 2020-03-13 11:35 | jsantos | Note Added: 0006142 | |
| 2020-03-13 11:41 | steveh | Note Added: 0006143 | |
| 2020-03-13 11:46 | jsantos | Note Added: 0006144 | |
| 2020-03-13 12:00 | jsantos | Status | assigned => feedback |
| 2020-03-20 16:37 | jsantos | Target Version | => 3.0.0 |
| 2020-04-13 14:37 | jsantos | Status | feedback => resolved |
| 2020-04-13 14:37 | jsantos | Resolution | open => fixed |
| 2020-04-13 14:37 | jsantos | Fixed in Version | => 3.0.0 |
| 2020-04-13 14:37 | jsantos | Note Added: 0006196 | |
| 2020-04-13 21:02 | jsantos | Note Edited: 0006196 |