Category : module

Not sure if import <module_Name>; is supported right now. When I try to run a program including modules it stats note: c++20 ‘import’ only available with ‘-fmodules-ts’ is that a compiler flag like -std=c++20 or are modules not currently supported. Here is an example program using modules: #include<iostream> import <numbers>; import <format>; int main() { ..

Read more

I am trying to use c++20 modules in my project, on Visual Studio 2017 and MSVC. I followed this tutorial to enable experimental modules with c++17 in my project. My problem is that, when I try to compile my project I get some errors like the following: boost.1.77.0.0libnativeincludeboostinterprocessdetailwin32_api.hpp(926): error C2143: syntax error: missing ‘)’ before ..

Read more

I’m trying to modify an existing module for Azerothcore, to remove certain buffs from the player after leaving a raid instance. This is an example what should happen (pseudo code): PlayerLeavesRaid () { if (Player is Priest) { RemoveBuff (Buff1); RemoveBuff (Buff2); RemoveBuff (Buff3); } if (Player is Mage) { RemoveBuff (Buff4); RemoveBuff (Buff5); RemoveBuff ..

Read more

I need to get D3D9.dll exports, how i get this ? I tried to use EnumProcessModules BOOL EnumProcessModules( HANDLE hProcess, HMODULE *lphModule, DWORD cb, LPDWORD lpcbNeeded ); for lphModule, GetModuleBaseNameDWORD GetModuleBaseNameA( HANDLE hProcess, HMODULE hModule, LPSTR lpBaseName, DWORD nSize ); for hModule but no result, i should get Name and VA. This is what i ..

Read more

// module A export module A; import <type_traits>; namespace test { export{ template<typename T, std::size_t N> class Foo; template<typename T> using Foo1 = Foo<T, 1>; template<typename T> struct is_Foo : std::false_type {}; template<typename T, std::size_t N> struct is_Foo<Foo<T, N>> : std::true_type {}; template<typename T> constexpr static bool is_Foo_v = is_Foo<T>::value; template<typename T> concept Foo_t = ..

Read more