Bonjour

debutante c++ sous visual studio, je cherche à ajouter une dll
je connais rien de cette dll, c'est un activeX, on m'a explique qu'il fallait ID, qui est dwgViewX

voila une fonction d'initialisation d'un applet (que j'ai recupere d'un exemple ou l'activeX était remplacé par un controlNet) où j' utilise activeX dwgViewX

static CComPtr<IDWGViewX> g_spControl = NULL;
void init(void *argv)
{
HRESULT hr = S_OK;

if (argv != NULL && g_axWindow == NULL)
{
// Initialize COM.
CoInitialize(NULL);

// Create the CAxWindow to host the contorl.

g_axWindow = new CAxWindow((HWND)argv);
if (g_axWindow != NULL)
{
// Create and host the .NET control in our window.
hr = g_axWindow->CreateControl(CT2W(TEXT("DevX.IDWGViewX")),
NULL, NULL); //"nomactive X"

if (SUCCEEDED(hr))
{
// Get the interface pointer to the .NET control.
hr = g_axWindow->QueryControl(DWGViewX,
(LPVOID*)&g_spControl);

if (FAILED(hr))
{
g_axWindow->DestroyWindow();

delete g_axWindow;
g_axWindow = NULL;

return;
}....
Mais comment ajouter l'activeX dans le projet, je sais pas du tout

faut il faire using namespace dwgViewX;

il faut le charger dynamiquement??? ajouter en librairie je fais juste un copier colller????? desole je suis perdu je connais pas du tout visual studio

je sais que mon projet generera deux dll que j'ajoute à mon projet java mais pour ma demande d'ajout de cet dll activeX c'est autre chose c'est que mon programme C++ qui l'utilise

Merci de me donner des pistes