|
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
|
|
|
|
|
Tom Hubin wrote: 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
Nothing to do with compiler options, I suspect. I guess the plugin is expecting the executable that loads it to provide certain capabilities - there must be some defined mechanism by which it knows the addresses of the functions in the EXE.
Tom Hubin wrote: motion control EXE program must have used dllexport so that the plugin can call motion control functions
Not necessarily - there might be some other mechanism by which the plugin can get function addresses.
I feel you're on your own, I'm afraid - if there's a specification for the plugin interface, that might define how you get the exe function addresses?
|
|
|
|
|
Create a named event in the plugin and wait on that event to become set.
When the event becomes set, call the required function.
From the camera program set the event when needed.
You may want to look at CreateEvent and SetEvent .
«_Superman_»
|
|
|
|
|
Hi all,
i have an CListCtrl, i m sort it according to diffrent columns in acsending or decsending order.
i want to set up and down arrow on list header according to sorting.
please explain me with example.
how can i do this.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
modified on Thursday, January 29, 2009 1:55 AM
|
|
|
|
|
You can modify the header text .. Does it make sense??
Regards,
Sandip.
|
|
|
|
|
The way it's done in the sorted list view control in the WTL library[^] is to use the hbm member of the HDITEM [^] attribute of the header of the sorted column to set an up arrow or down arrow bitmap for the header. If you tell the bitmap to be to the right of the header's text, you'll get the effect you're wanting.
The bitmaps are available in shell32.dll as image resources 133 and 134.
You can learn a lot about this by looking at the implementation of CSortListViewImpl in the file atlctrlx.h in WTL...
The SetSortColumn method of this class shows how to set the bitmaps correctly, while the CreateSortBitmaps method shows how to create the bitmaps.
|
|
|
|
|
Invalidate does not work for me. Any other way?
|
|
|
|
|
ThisIsMeRon wrote: Invalidate does not work for me.
Reason??
Regards,
Sandip.
|
|
|
|
|
ThisIsMeRon wrote: Invalidate does not work for me.
You should ask Microsoft for a custom Invalidate, working for you.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
ThisIsMeRon wrote: Invalidate does not work for me.
i dont know what his problem is, but i have similar issue with InvalidateRect when when i was creating a control in win32, i tried RedrawWindow also but not worked. I solved issue by using the following code.
HWND hParent = GetParent( hChildControl ) ;
InvalidateRect( hParent , &rChildRect , TRUE ) ;
|
|
|
|
|
What kind of child was that? I mean was it a static control? What was its class styles?
- ns ami -
|
|
|
|
|
Your site is better I think it has a function Invalidatemyrequest(very urgent);
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
ThisIsMeRon wrote: Invalidate does not work for me.
You must be using this API on wrong object. There is no way Microsoft has put some switch condition, not to work on your machine.
|
|
|
|
|
Did you use like this?
Invalidate();
UpdateWindow();
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Hello all,
I created a window. Over that window i created some controls of the class CButton, CEdit,CStatic, CComboBox.
My problem is that, i have to assign the tab order for this controls. I set the WS_TABSTOP property while creating this controls. But tab order is not set for this controls. How can i set tab order for this controls.
********************
CEdit* pedtName = new CEdit();
pedtName->Create(ES_MULTILINE | WS_CHILD | WS_VISIBLE | WS_TABSTOP,CRect(160,140,300,170) ,this,EDITNAME);
|
|
|
|
|
use
pedtName->SetWindowPos(...)
see the first parameter of SetWindowsPos
|
|
|
|
|
Sorry sir, it doesn't work.
I created two edit control as follows on the OnCreate() method of the application.
**************
CEdit* pedtName = new CEdit();
pedtName->Create(ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_MULTILINE | WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER,CRect(160,100,300,130) ,this,EDITNAME);
pedtName->SetFont(pFont,TRUE);
CEdit* pedtSurName = new CEdit();
pedtSurName->Create(ES_AUTOVSCROLL | ES_AUTOHSCROLL |ES_MULTILINE | WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER,CRect(160,140,300,170) ,this,EDITSURNAME);
*****************
When i run the application, focus will automatically set to pedtName control. When i press tab key, tab focus will set on pedtSurName.
But now it doesn't work. How to do this?
|
|
|
|
|
As other reply says you can use SetWindowPos for altering tab order.
You can also check here[^]..
I hope it helps.
Regards,
Sandip.
|
|
|
|
|
Why don't you simply create the controls in the order that you want.
«_Superman_»
|
|
|
|
|
If you want to set Tab Order on the dialog forum you must be press Ctrl+D or runtime liek this:
CWnd *m_pWnd1 = GetDlgItem (IDC_BUTTON1);
CWnd *m_pWnd2 = GetDlgItem (IDC_EDIT2);
m_pWnd1->SetWindowPos (m_pWnd2, 0,0,0,0, SWP_NOMOVE | SWPNOSIZE);
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
I had a old application developed in VC++6.0, with intraction with SAP RFC
and Iona Orbix(CORBA), Now we are migrating to VS 2005., and at this moment we are wondering to replace corba with now latest technilogy(ie.NET/ or ..), which out make chages in the much of the code.
Please advice efficient posibe ways and the respective adventage/disadvantages.
Thanks in advance.
|
|
|
|
|
You can have a look at ICE. Here[^] is a comparison between ICE and Corba. I never used ICE myself so I can't say anything about it, but I think it's worth a look.
|
|
|
|
|
i didn't want you solve my project.becuase i'mnot good at english i explain more . and i enter all the source. i want you guid me not solve it.
you speak with me very bad.
i was new and you should not speak with me in this way.
but thanks for your guid.
|
|
|
|
|