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

C / C++ / MFC

 
GeneralRe: MSFLXGRD problem in 64bit machine (MFC/C++) Pin
«_Superman_»29-Jan-09 1:28
professional«_Superman_»29-Jan-09 1:28 
GeneralRe: MSFLXGRD problem in 64bit machine (MFC/C++) Pin
raesa29-Jan-09 18:21
raesa29-Jan-09 18:21 
QuestionCalling a function from another program Pin
Tom Hubin28-Jan-09 21:17
Tom Hubin28-Jan-09 21:17 
AnswerRe: Calling a function from another program Pin
Stuart Dootson28-Jan-09 22:14
professionalStuart Dootson28-Jan-09 22:14 
GeneralRe: Calling a function from another program Pin
Tom Hubin29-Jan-09 19:06
Tom Hubin29-Jan-09 19:06 
GeneralRe: Calling a function from another program Pin
Tom Hubin29-Jan-09 19:25
Tom Hubin29-Jan-09 19:25 
GeneralRe: Calling a function from another program Pin
Stuart Dootson29-Jan-09 23:22
professionalStuart Dootson29-Jan-09 23:22 
GeneralRe: Calling a function from another program Pin
Tom Hubin30-Jan-09 11:18
Tom Hubin30-Jan-09 11:18 
Hello Stuart,

Thanx for catching that semicolon.

All compile and run ok.

In DoubleIt() I have added a call to the motion control EXE program for which the plugin is written and by which the plugin has been loaded. This new DoubleIt() works ok when called from elsewhere within the plugin but not when it is called from the vision control EXE program.

When the plugin function is called from the vision control EXE I get the message "The instruction at "0x0000000" referenced memory at "0x00000000". The memory could not be read."

This only occurs if the called plugin function is trying to call a function in its parent EXE. BTW, I get that same error message if the DLL is not loaded at all.

I think that the called plugin function is not exactly the same as the one that is loaded with the DLL. I am guessing that all the pointers must be found in memory as needed.

How do I setup the compiler options so that the vision control EXE program can call the motion control EXE program via the motion control's DLL plugin. Or perhaps directly from the vision control EXE to the motion control EXE since the motion control EXE program must have used dllexport so that the plugin can call motion control functions.

Tom Hubin
thubin@earthlink.net
GeneralRe: Calling a function from another program Pin
Stuart Dootson31-Jan-09 0:00
professionalStuart Dootson31-Jan-09 0:00 
AnswerRe: Calling a function from another program Pin
«_Superman_»28-Jan-09 22:14
professional«_Superman_»28-Jan-09 22:14 
QuestionHow can set UP and DOWN arrow in header of CListCtrl? [modified] Pin
Le@rner28-Jan-09 19:39
Le@rner28-Jan-09 19:39 
AnswerRe: How can set UP and DOWN arrow in sorted column in CListCtrl? Pin
SandipG 28-Jan-09 19:45
SandipG 28-Jan-09 19:45 
AnswerRe: How can set UP and DOWN arrow in header of CListCtrl? Pin
Stuart Dootson28-Jan-09 21:57
professionalStuart Dootson28-Jan-09 21:57 
Questionhow to force paint a view in MFC. Pin
VC++Maniac28-Jan-09 19:24
VC++Maniac28-Jan-09 19:24 
AnswerRe: how to force paint a view in MFC. Pin
SandipG 28-Jan-09 19:42
SandipG 28-Jan-09 19:42 
AnswerRe: how to force paint a view in MFC. Pin
CPallini28-Jan-09 21:08
mveCPallini28-Jan-09 21:08 
GeneralRe: how to force paint a view in MFC. Pin
nitin328-Jan-09 21:53
nitin328-Jan-09 21:53 
QuestionRe: how to force paint a view in MFC. Pin
Nishad S28-Jan-09 22:16
Nishad S28-Jan-09 22:16 
GeneralRe: how to force paint a view in MFC. Pin
Hamid_RT29-Jan-09 1:03
Hamid_RT29-Jan-09 1:03 
GeneralRe: how to force paint a view in MFC. Pin
CPallini29-Jan-09 2:15
mveCPallini29-Jan-09 2:15 
JokeRe: how to force paint a view in MFC. Pin
prasad_som28-Jan-09 23:25
prasad_som28-Jan-09 23:25 
AnswerRe: how to force paint a view in MFC. Pin
Hamid_RT29-Jan-09 1:06
Hamid_RT29-Jan-09 1:06 
QuestionHow to Set Tab order for dynamically created controls like CButton,CEdit Pin
Abhijit D. Babar28-Jan-09 18:45
Abhijit D. Babar28-Jan-09 18:45 
AnswerRe: How to Set Tab order for dynamically created controls like CButton,CEdit Pin
nitin328-Jan-09 19:28
nitin328-Jan-09 19:28 
GeneralRe: How to Set Tab order for dynamically created controls like CButton,CEdit Pin
Abhijit D. Babar28-Jan-09 20:08
Abhijit D. Babar28-Jan-09 20: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.