UnrealSkill-VIP
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

[Source] Form In Dll C++

Ir para baixo

[Source] Form In Dll C++ Empty [Source] Form In Dll C++

Mensagem por uNreal 11/7/2020, 00:59

Step 1: Create new empty project ( Win32 ) - Dynamic Lib;
Step 2: Add to solution the file "Main.dll", open the file and paste this code:
Código:
#include <windows.h>
#include "Linker.h"
void WINAPI MyThread ( )
{
}
 
 
    switch ( dwReason ) {
              case DLL_PROCESS_ATTACH:
                        DisableThreadLibraryCalls(hModule);
            if ( CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)Main, NULL, 0, NULL) == NULL ) {
                              return FALSE;
            }
 
            break;
 
        case DLL_PROCESS_DETACH:
            break;
 
        case DLL_THREAD_ATTACH:
            break;
 
 
 
 
    return TRUE;
}
Step 3: Add a new Form, name "Form1", now open Form1.cpp and paste this code:
Código:
#include "Form1.h"
#include <Windows.h>
 
using namespace bot;
[STAThreadAttribute]
int Main()
{
 
    // Enabling Windows XP visual effects before any controls are created
    Application::EnableVisualStyles();
    Application::SetCompatibleTextRenderingDefault(false);
 
 
}
Step4: Add a linker in the solution with this content:
Código:
int Main();
uNreal
uNreal
ADM
ADM


Ir para o topo Ir para baixo

Ir para o topo

- Tópicos semelhantes

 
Permissões neste sub-fórum
Não podes responder a tópicos