Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Building dlls
Message
Information générale
Forum:
Visual C++
Catégorie:
Autre
Titre:
Divers
Thread ID:
00550118
Message ID:
00552034
Vues:
23
>the first 8 lines are ok, the rest, you can explain like a child of 8 years?

Not sure, I'm very weak in English.
It would be better to read about "decorated names" in MSDN.
I can't also understand, is your project C (plot.c) or C++ (plot.cpp)? In first case you shouldn't use 'extert "C"', otherwise this code works without any problems:
// plot.cpp : Defines the entry point for the DLL application.
//

#include "stdafx.h"

BOOL APIENTRY DllMain( HANDLE hModule, 
                       DWORD  ul_reason_for_call, 
                       LPVOID lpReserved
					 )
{
    return TRUE;
}

extern "C" __declspec(dllexport) LPSTR say_hello(LPSTR cText)
{
	return "Hola";
}
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform