Click here to Skip to main content
15,913,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionR6034 [modified] Pin
T.RATHA KRISHNAN9-Jun-08 20:24
T.RATHA KRISHNAN9-Jun-08 20:24 
AnswerRe: R6034 Pin
Hamid_RT9-Jun-08 20:36
Hamid_RT9-Jun-08 20:36 
GeneralRe: R6034 Pin
T.RATHA KRISHNAN9-Jun-08 20:58
T.RATHA KRISHNAN9-Jun-08 20:58 
QuestionDLL problem Pin
cristi_alonso9-Jun-08 19:50
cristi_alonso9-Jun-08 19:50 
AnswerRe: DLL problem Pin
sudhir_Kumar9-Jun-08 20:10
sudhir_Kumar9-Jun-08 20:10 
GeneralRe: DLL problem Pin
Cedric Moonen9-Jun-08 20:30
Cedric Moonen9-Jun-08 20:30 
GeneralRe: DLL problem Pin
sudhir_Kumar10-Jun-08 1:47
sudhir_Kumar10-Jun-08 1:47 
AnswerRe: DLL problem Pin
Cedric Moonen9-Jun-08 20:29
Cedric Moonen9-Jun-08 20:29 
Please read the posting guidelines before posting: put your code into the "code block" tag, otherwise it is difficult to read it.


cristi_alonso wrote:
still i am not getting desired result


It would help a lot if you explain what happens exactly. Do you have a compilation error, a crash, nothing works, blue aliens invading your desk ?


cristi_alonso wrote:
extern "C" _declspec(dllexport)


If the function is always exported, how will it be imported in your executable then ? You have to use dllimport in the executable. Something like this:

#ifdef DLLEXPORT1
#define DLLAPI   extern "C" _declspec(dllexport)
#else
#define DLLAPI   extern "C" _declspec(dllimport)
#endif


You then declare the functions this way:
DLLAPI char* Calc(int *no1,int *no2)

You then have to define DLLEXPORT1 in the first dll project options. You have to do something similar for the second dll (but use different constants, otherwise you will mix import and export).

Cédric Moonen
Software developer

Charting control [v1.4]

GeneralRe: DLL problem Pin
cristi_alonso9-Jun-08 21:10
cristi_alonso9-Jun-08 21:10 
GeneralRe: DLL problem Pin
Cedric Moonen9-Jun-08 21:25
Cedric Moonen9-Jun-08 21:25 
GeneralRe: DLL problem Pin
cristi_alonso10-Jun-08 1:07
cristi_alonso10-Jun-08 1:07 
QuestionDisplay HTML in CHtmlview in Vista Pin
john56329-Jun-08 18:55
john56329-Jun-08 18:55 
AnswerRe: Display HTML in CHtmlview in Vista Pin
sudhir_Kumar9-Jun-08 20:18
sudhir_Kumar9-Jun-08 20:18 
QuestionHow to call .exe file ? Pin
nisha000009-Jun-08 18:38
nisha000009-Jun-08 18:38 
AnswerRe: How to call .exe file ? Pin
Naveen9-Jun-08 18:48
Naveen9-Jun-08 18:48 
AnswerRe: How to call .exe file ? Pin
SandipG 9-Jun-08 18:48
SandipG 9-Jun-08 18:48 
AnswerRe: How to call .exe file ? Pin
Mukesh Kumar9-Jun-08 18:49
Mukesh Kumar9-Jun-08 18:49 
AnswerRe: How to call .exe file ? Pin
hitonly20089-Jun-08 18:54
hitonly20089-Jun-08 18:54 
AnswerRe: How to call .exe file ? Pin
sudhir_Kumar9-Jun-08 20:12
sudhir_Kumar9-Jun-08 20:12 
GeneralRe: How to call .exe file ? Pin
Cedric Moonen9-Jun-08 20:32
Cedric Moonen9-Jun-08 20:32 
JokeRe: How to call .exe file ? Pin
Hamid_RT9-Jun-08 20:38
Hamid_RT9-Jun-08 20:38 
GeneralRe: How to call .exe file ? Pin
Cedric Moonen9-Jun-08 20:39
Cedric Moonen9-Jun-08 20:39 
GeneralRe: How to call .exe file ? Pin
Hamid_RT9-Jun-08 20:47
Hamid_RT9-Jun-08 20:47 
JokeRe: How to call .exe file ? Pin
toxcct9-Jun-08 21:04
toxcct9-Jun-08 21:04 
JokeRe: How to call .exe file ? Pin
Cedric Moonen9-Jun-08 21:08
Cedric Moonen9-Jun-08 21:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.