Click here to Skip to main content
15,920,503 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Login into msn Pin
Alexander M.,3-May-04 1:52
Alexander M.,3-May-04 1:52 
GeneralRe: Login into msn Pin
?!?3-May-04 2:27
?!?3-May-04 2:27 
GeneralRe: Login into msn Pin
Alexander M.,3-May-04 2:44
Alexander M.,3-May-04 2:44 
GeneralRe: Login into msn Pin
?!?3-May-04 2:49
?!?3-May-04 2:49 
GeneralRe: Login into msn Pin
jmkhael3-May-04 2:58
jmkhael3-May-04 2:58 
GeneralSetting Data in a DLL Pin
Grahamfff3-May-04 0:52
Grahamfff3-May-04 0:52 
GeneralRe: Setting Data in a DLL Pin
jmkhael3-May-04 3:00
jmkhael3-May-04 3:00 
GeneralRe: Setting Data in a DLL Pin
sweep1233-May-04 23:10
sweep1233-May-04 23:10 
I am trying to have an MFC application that shares data with a DLL.
The DLL is loaded via a batch file in a C-Scripting environment.

I have included the following lines of code in both the EXE and DLL

#pragma data_seg(".CSL_DATA")

int volatile abortFlag = 0; /* The flag to abort the test */
int volatile contiuneFlag = 1; /* The flag to schedule the test to continue */
int volatile enterFlag = 0; /* The flag to schedule data entry the test */

#pragma data_seg()
#pragma comment(linker, "/SECTION:.CSL_DATA,RWS")

On the C-Scripting side of things the batch file loads the DLL as follows:-

#loadlibrary 'WHLLIB'

However any changes in the data (abortFlag say) is not reflected in the other side.

Basically all I want is the 3 variables to be visible by the libray and the application.

Am I doing it wrong?!?
GeneralDisplaying dynamic XML in IE which is translated by xslt Pin
chabster3-May-04 0:32
chabster3-May-04 0:32 
Generalabout directsound / getting instantaneous frequency of the sound playing Pin
dipum2-May-04 22:51
dipum2-May-04 22:51 
GeneralRe: about directsound / getting instantaneous frequency of the sound playing Pin
Anonymous31-May-04 21:36
Anonymous31-May-04 21:36 
GeneralC++ -> Camera project, (mjpeg, jpeg to avi ... ?) Pin
Qualvis2-May-04 22:23
Qualvis2-May-04 22:23 
GeneralRe: C++ -> Camera project, (mjpeg, jpeg to avi ... ?) Pin
Andrew Walker3-May-04 0:14
Andrew Walker3-May-04 0:14 
GeneralRe: C++ -> Camera project, (mjpeg, jpeg to avi ... ?) Pin
Qualvis3-May-04 1:39
Qualvis3-May-04 1:39 
GeneralRe: C++ -> Camera project, (mjpeg, jpeg to avi ... ?) Pin
Andrew Walker3-May-04 1:46
Andrew Walker3-May-04 1:46 
GeneralRe: C++ -> Camera project, (mjpeg, jpeg to avi ... ?) Pin
Qualvis3-May-04 3:28
Qualvis3-May-04 3:28 
GeneralInvalidate() - Erasing background Pin
AJ1232-May-04 22:11
AJ1232-May-04 22:11 
GeneralRe: Invalidate() - Erasing background Pin
AJ1232-May-04 23:38
AJ1232-May-04 23:38 
QuestionHow to make a .lib ? Pin
Anonymous2-May-04 21:12
Anonymous2-May-04 21:12 
AnswerRe: How to make a .lib ? Pin
nguyenvhn2-May-04 23:17
nguyenvhn2-May-04 23:17 
GeneralRe: How to make a .lib ? Pin
Anonymous3-May-04 2:16
Anonymous3-May-04 2:16 
GeneralProblems with Mfc-Program: black screen Pin
Brennivin2-May-04 21:04
sussBrennivin2-May-04 21:04 
GeneralRe: Problems with Mfc-Program: black screen Pin
Alexander M.,3-May-04 1:54
Alexander M.,3-May-04 1:54 
GeneralRe: Problems with Mfc-Program: black screen Pin
Brennivin4-May-04 7:47
sussBrennivin4-May-04 7:47 
GeneralCreateRemoteThread for Win98 Pin
Kuldeep Bhatnagar2-May-04 20:47
Kuldeep Bhatnagar2-May-04 20:47 

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.