Click here to Skip to main content
15,902,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to share a variable between two MFC Dlls? Pin
CPallini15-Mar-09 21:18
mveCPallini15-Mar-09 21:18 
GeneralRe: How to share a variable between two MFC Dlls? Pin
Eytukan15-Mar-09 22:05
Eytukan15-Mar-09 22:05 
GeneralRe: How to share a variable between two MFC Dlls? Pin
002comp15-Mar-09 22:31
002comp15-Mar-09 22:31 
QuestionRe: How to share a variable between two MFC Dlls? Pin
CPallini15-Mar-09 22:34
mveCPallini15-Mar-09 22:34 
AnswerRe: How to share a variable between two MFC Dlls? Pin
Hamid_RT15-Mar-09 22:57
Hamid_RT15-Mar-09 22:57 
GeneralRe: How to share a variable between two MFC Dlls? Pin
CPallini15-Mar-09 23:02
mveCPallini15-Mar-09 23:02 
GeneralRe: How to share a variable between two MFC Dlls? Pin
Hamid_RT15-Mar-09 23:06
Hamid_RT15-Mar-09 23:06 
AnswerRe: How to share a variable between two MFC Dlls? Pin
002comp15-Mar-09 23:09
002comp15-Mar-09 23:09 
See Dear,I m very new to MFC and once again let me clear u the picture.I m creating plugin for 3ds max in MFC (.dlu).And as i know is onlu about export and import for variables,func... by using __declspec(dllexport) int temp = 0;

So this is the scenario:
I m creating two dll in MFC.I want to share a varible between two.I Exported from one DLL by specifying _declspec(dllexport) int temp = 20;
in header file.

And I copy the .dll and .lib file in second dll (debug folder and also header file of first dll to second dll.I also specify the .lib file in the link path in project settings of second dll.I imported in second dll by __declspec(dllimport) int temp;

Now the problem is If i made any changes on temp variable in first dll then it is not updating in second dll,the second dll always considering temp as 20.

Please suggest me some easy way .
Thanks
Yogesh Frown | :(
GeneralRe: How to share a variable between two MFC Dlls? Pin
Hamid_RT16-Mar-09 4:01
Hamid_RT16-Mar-09 4:01 
AnswerRe: How to share a variable between two MFC Dlls? Pin
Hamid_RT15-Mar-09 21:40
Hamid_RT15-Mar-09 21:40 
QuestionProblem with data type from C++ to C# Pin
Lars_K15-Mar-09 15:59
Lars_K15-Mar-09 15:59 
AnswerRe: Problem with data type from C++ to C# Pin
Joe Woodbury15-Mar-09 17:19
professionalJoe Woodbury15-Mar-09 17:19 
GeneralRe: Problem with data type from C++ to C# Pin
Lars_K15-Mar-09 23:22
Lars_K15-Mar-09 23:22 
AnswerRe: Problem with data type from C++ to C# Pin
Eytukan15-Mar-09 19:38
Eytukan15-Mar-09 19:38 
GeneralRe: Problem with data type from C++ to C# Pin
Lars_K18-Mar-09 8:51
Lars_K18-Mar-09 8:51 
AnswerRe: Problem with data type from C++ to C# Pin
Stuart Dootson15-Mar-09 22:27
professionalStuart Dootson15-Mar-09 22:27 
JokeRe: Problem with data type from C++ to C# Pin
Eytukan15-Mar-09 22:31
Eytukan15-Mar-09 22:31 
GeneralRe: Problem with data type from C++ to C# Pin
Stuart Dootson15-Mar-09 22:50
professionalStuart Dootson15-Mar-09 22:50 
GeneralRe: Problem with data type from C++ to C# Pin
Eytukan15-Mar-09 23:41
Eytukan15-Mar-09 23:41 
Generallink multiple shared libraries o.s linux Pin
al effendi15-Mar-09 15:26
al effendi15-Mar-09 15:26 
GeneralRe: link multiple shared libraries o.s linux Pin
Eytukan15-Mar-09 20:25
Eytukan15-Mar-09 20:25 
GeneralRe: link multiple shared libraries o.s linux Pin
CPallini15-Mar-09 21:13
mveCPallini15-Mar-09 21:13 
GeneralRe: link multiple shared libraries o.s linux Pin
Stuart Dootson15-Mar-09 22:25
professionalStuart Dootson15-Mar-09 22:25 
GeneralRe: link multiple shared libraries o.s linux Pin
al effendi13-Apr-09 5:32
al effendi13-Apr-09 5:32 
QuestionTerminating explorer.exe Pin
hxhl9515-Mar-09 10:46
hxhl9515-Mar-09 10:46 

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.