Click here to Skip to main content
15,910,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: variable solution compiles, but I can't get at value: Pin
Llasus8-Nov-07 12:53
Llasus8-Nov-07 12:53 
GeneralRe: variable solution compiles, but I can't get at value: Pin
e40s9-Nov-07 4:30
e40s9-Nov-07 4:30 
AnswerOfftopic Pin
Nelek8-Nov-07 21:39
protectorNelek8-Nov-07 21:39 
GeneralRe: Offtopic Pin
e40s9-Nov-07 5:14
e40s9-Nov-07 5:14 
QuestionRe: variable solution compiles, but I can't get at value: Pin
David Crow9-Nov-07 4:39
David Crow9-Nov-07 4:39 
AnswerRe: variable solution compiles, but I can't get at value: [modified] Pin
e40s9-Nov-07 5:02
e40s9-Nov-07 5:02 
GeneralRe: variable solution compiles, but I can't get at value: Pin
David Crow9-Nov-07 5:34
David Crow9-Nov-07 5:34 
GeneralRe: variable solution compiles, but I can't get at value: [modified] Pin
e40s9-Nov-07 6:03
e40s9-Nov-07 6:03 
This is my observation.

My Excel file loads this DLL (the whole thing you're looking at in code). It's a DLL because I transmogrified the CodeProject sample from an .exe into one. Because it was originally authored as a Dlg, that window aspect of it remains. Anyway, when the Excel file loads this DLL, said Dialog immediately gets displayed on the screen (it's small and mostly blank, with a simple label in the center). Its job is to pass messages--because only a window can do that, evidently. When I'm finished with it, I destroy the window with a PostMessage().

Anyway, nothing happens display-wise--besides that dialog sitting there--until I fire up the Java side of this, which dispatches a message, via JNI, that is received by this DLL precisely at ::OnDataReady. Whatever content that JNI has passed immediately lands in m_strContent, and lights up the uncommented MessageBox.

To my knowledge, the Excel file way over at the other side does not touch OnDataReady. (Or I hope not. I don't want it to.) Excel is playing only at the CMemMapCppClientApp side--not the CMemMapCppClientDlg side.

Excel, and its loading of the DLL, never touch OnDataReady. (If they did, I would have seen the uncommented MessageBox inside OnDataReady light up immediately upon such an event. I never do.)

It is later, using Excel after Excel has already loaded the DLL prior, I only attempt to retrieve m_strContent value after JNI has already infilled it on the OnDataReady side. [The motivation for yesterday's and today's threads.] If I hear you right, you're suggesting that my invocation of the DLL at any time from Excel has an impact on OnDataReady. Because I never see any evidence of that--i.e., the uncommented MessageBox inside OnDataReady--I don't believe that suggested sequence of events to be the case.

I am calling CMemMapCppClientDlg::GetContent() exclusively from Excel by way of CMemMapCppClientApp. That action per se never, and shouldn't if I'm not mistaken (correct me if I'm wrong), in any way have an impact on OnDataReady. It can't.









-- modified at 12:25 Friday 9th November, 2007
GeneralRe: variable solution compiles, but I can't get at value: Pin
David Crow9-Nov-07 6:20
David Crow9-Nov-07 6:20 
GeneralRe: variable solution compiles, but I can't get at value: [modified] Pin
e40s9-Nov-07 6:36
e40s9-Nov-07 6:36 
GeneralRe: variable solution compiles, but I can't get at value: Pin
David Crow9-Nov-07 6:40
David Crow9-Nov-07 6:40 
GeneralRe: variable solution compiles, but I can't get at value: Pin
e40s9-Nov-07 6:45
e40s9-Nov-07 6:45 
GeneralRe: variable solution compiles, but I can't get at value: Pin
e40s9-Nov-07 6:47
e40s9-Nov-07 6:47 
GeneralRe: variable solution compiles, but I can't get at value: Pin
David Crow9-Nov-07 6:52
David Crow9-Nov-07 6:52 
GeneralRe: variable solution compiles, but I can't get at value: [modified] Pin
e40s9-Nov-07 7:04
e40s9-Nov-07 7:04 
GeneralRe: variable solution compiles, but I can't get at value: Pin
David Crow9-Nov-07 7:11
David Crow9-Nov-07 7:11 
GeneralRe: variable solution compiles, but I can't get at value: Pin
e40s9-Nov-07 7:23
e40s9-Nov-07 7:23 
GeneralRe: variable solution compiles, but I can't get at value: Pin
David Crow9-Nov-07 7:28
David Crow9-Nov-07 7:28 
GeneralRe: variable solution compiles, but I can't get at value: Pin
e40s9-Nov-07 8:15
e40s9-Nov-07 8:15 
GeneralRe: variable solution compiles, but I can't get at value: Pin
David Crow9-Nov-07 8:27
David Crow9-Nov-07 8:27 
GeneralRe: variable solution compiles, but I can't get at value: [modified] Pin
e40s9-Nov-07 8:39
e40s9-Nov-07 8:39 
GeneralRe: variable solution compiles, but I can't get at value: Pin
e40s9-Nov-07 10:06
e40s9-Nov-07 10:06 
QuestionRe: variable solution compiles, but I can't get at value: Pin
David Crow9-Nov-07 10:15
David Crow9-Nov-07 10:15 
AnswerRe: variable solution compiles, but I can't get at value: Pin
e40s9-Nov-07 13:01
e40s9-Nov-07 13:01 
GeneralRe: variable solution compiles, but I can't get at value: Pin
David Crow9-Nov-07 14:51
David Crow9-Nov-07 14:51 

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.