An essential info site for anyone learning the game. Great community and often very insightful posts.
 
HomeUseful information for Helbreath beginnersPlay, discover, and broadcast your Helbreath moments for free.Statistics overviewSearchMemberlistRulesRegisterLog in
 

 Ayuda al compilar client POR FAVOR!!

Go down 
AuthorMessage
Yingo

avatar

Posts : 12

Ayuda al compilar client POR FAVOR!! Empty
PostSubject: Ayuda al compilar client POR FAVOR!!   Ayuda al compilar client POR FAVOR!! 9991011/20/2016, 3:56 pm

Hola gente, bueno no tengo mucho conosimiento en programacion asique el que me pueda tirar una mano con este error me salvaria mucho, cuando compilo el Client me sale esto:
Compiling...
MapData.cpp
C:\Users\Agustin\Desktop\hb lux\Source\[SRC]Client\../Shared/Global.h(12) : error C2440: 'initializing' : cannot convert from 'void *' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or function-style cast
C:\Users\Agustin\Desktop\hb lux\Source\[SRC]Client\../Shared/Global.h(14) : error C2664: 'Process32First' : cannot convert parameter 1 from 'int' to 'void *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
C:\Users\Agustin\Desktop\hb lux\Source\[SRC]Client\../Shared/Global.h(23) : error C2664: 'Process32Next' : cannot convert parameter 1 from 'int' to 'void *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
C:\Users\Agustin\Desktop\hb lux\Source\[SRC]Client\../Shared/Global.h(25) : error C2664: 'CloseHandle' : cannot convert parameter 1 from 'int' to 'void *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
Game.cpp
C:\Users\Agustin\Desktop\hb lux\Source\[SRC]Client\../Shared/Global.h(12) : error C2440: 'initializing' : cannot convert from 'void *' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or function-style cast
C:\Users\Agustin\Desktop\hb lux\Source\[SRC]Client\../Shared/Global.h(14) : error C2664: 'Process32First' : cannot convert parameter 1 from 'int' to 'void *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
C:\Users\Agustin\Desktop\hb lux\Source\[SRC]Client\../Shared/Global.h(23) : error C2664: 'Process32Next' : cannot convert parameter 1 from 'int' to 'void *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
C:\Users\Agustin\Desktop\hb lux\Source\[SRC]Client\../Shared/Global.h(25) : error C2664: 'CloseHandle' : cannot convert parameter 1 from 'int' to 'void *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
C:\Users\Agustin\Desktop\hb lux\Source\[SRC]Client\Game.cpp(650) : error C2065: 'nullptr' : undeclared identifier
C:\Users\Agustin\Desktop\hb lux\Source\[SRC]Client\Game.cpp(17099) : warning C4305: 'argument' : truncation from 'const int' to 'char'
C:\Users\Agustin\Desktop\hb lux\Source\[SRC]Client\Game.cpp(17099) : warning C4309: 'argument' : truncation of constant value
C:\Users\Agustin\Desktop\hb lux\Source\[SRC]Client\Game.cpp(39425) : error C2374: 'i' : redefinition; multiple initialization
        C:\Users\Agustin\Desktop\hb lux\Source\[SRC]Client\Game.cpp(39394) : see declaration of 'i'
Wmain.cpp
C:\Users\Agustin\Desktop\hb lux\Source\[SRC]Client\../Shared/Global.h(12) : error C2440: 'initializing' : cannot convert from 'void *' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or function-style cast
C:\Users\Agustin\Desktop\hb lux\Source\[SRC]Client\../Shared/Global.h(14) : error C2664: 'Process32First' : cannot convert parameter 1 from 'int' to 'void *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
C:\Users\Agustin\Desktop\hb lux\Source\[SRC]Client\../Shared/Global.h(23) : error C2664: 'Process32Next' : cannot convert parameter 1 from 'int' to 'void *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
C:\Users\Agustin\Desktop\hb lux\Source\[SRC]Client\../Shared/Global.h(25) : error C2664: 'CloseHandle' : cannot convert parameter 1 from 'int' to 'void *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.
Creating browse info file...

Helgame.exe - 14 error(s), 2 warning(s)
Back to top Go down
Yingo

avatar

Posts : 12

Ayuda al compilar client POR FAVOR!! Empty
PostSubject: Re: Ayuda al compilar client POR FAVOR!!   Ayuda al compilar client POR FAVOR!! 9991011/22/2016, 7:08 pm

static int checkopenprocess(std::string s, DWORD * id) {
    PROCESSENTRY32 uProcess;

    auto hSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPALL, 0);
    uProcess.dwSize = (DWORD)sizeof(PROCESSENTRY32);
    BOOL r = Process32First(hSnapShot, &uProcess);
    int times = 0;
    do {
        if (uProcess.szExeFile == s){
            if (id) {
                *id = uProcess.th32ProcessID;
            }
            times++;
        }
        r = Process32Next(hSnapShot, &uProcess);
    } while (r);
    CloseHandle(hSnapShot);
    return times;
}

EN alguna parte de este code estar el error supuestamente, si alguien me tira una manito!!
Back to top Go down
Roazir
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
Roazir

Posts : 158

Ayuda al compilar client POR FAVOR!! Empty
PostSubject: Re: Ayuda al compilar client POR FAVOR!!   Ayuda al compilar client POR FAVOR!! 9991011/23/2016, 7:44 am

Back to top Go down
 
Ayuda al compilar client POR FAVOR!!
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Join Helbreath :: Community :: Deleted Topics-
Jump to: