|
hoo... you are such a great person toxy
|
|
|
|
|
1) Is there any utility that let me open a DLL and examin its exported functions along with there parameters and return type? (Other then dependency walker)
2) Okay nice, I've got a DLL and I know it has that much functions along with these params and return tyeps. How can I call them in my program as I dont have the "declerations" for these? Please if someone can explain me the step by step procedure... I'll be thankfull...
Polite Programmer
More Object Oriented then C#
|
|
|
|
|
|
Polite Programmer wrote: 1) Is there any utility that let me open a DLL and examin its exported functions along with there parameters and return type? (Other then dependency walker)
There are so many tools available in Net. Download this tool http://www.nirsoft.net/utils/dll_export_viewer.html[^]
Polite Programmer wrote: 2) Okay nice, I've got a DLL and I know it has that much functions along with these params and return tyeps. How can I call them in my program as I dont have the "declerations" for these? Please if someone can explain me the step by step procedure...
Chk this http://www.codeproject.com/dll/XDllPt4.asp[^]
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
|
Polite Programmer wrote: Okay nice, I've got a DLL and I know it has that much functions along with these params and return tyeps. How can I call them in my program as I dont have the "declerations" for these? Please if someone can explain me the step by step procedure... I'll be thankfull...
if the dll contain decorated name you can runb UNDNAME.EXE exe
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Actually my problem is...I made a keyboard with some bitmap and i
incuded this in to Dialog and i name it as KeyBoard.cpp.
THe keyboard has the same resemblance of system keyboard.
I included some dialogs to enter the values and performing functon as
normal dialog...Instead of using our system keyboard to all purpose..I
am using that Keyboard in applivation. Normally if i entered the number
1 in system keyboard then that normal dialog named as simpledlg.cpp
file.The simpledlg edit control accept my value.
At the same time if press number 1 in my application keyboard the
number is not get in to that simpledlg edit control.I think now u get
my problem.
FOr that my coding is ..
In Keyboard.cpp...For each button,I wrote like this..
void CKBoard::OnLButtonUp(UINT nFlags, CPoint point)
{
CView *curView;
CMDIFrameWnd *fWnd = (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
CMDIChildWnd *fChWnd = fWnd->MDIGetActive(&bMax);
if(fChWnd->GetSafeHwnd())
curView = (CView *)fChWnd->GetActiveView();
else
curView = NULL;
switch (keyvalue)//number of keys in keyboard
{
case 51 :
if (curView)
curView->PostMessage(WM_KEYDOWN,49,0);
break;
case 52 :
if (curView)
curView->PostMessage(WM_KEYDOWN,50,0);
break;
case 53 :
if (curView)
curView->PostMessage(WM_KEYDOWN,51,0);
break;
case 54 :
if (curView)
curView->PostMessage(WM_KEYDOWN,52,0);
break;
case 55 :
if (curView)
curView->PostMessage(WM_KEYDOWN,53,0);
break;
CDialog::OnLButtonUp(nFlags, point);
}
In simpledlg.cpp class i wrote OnKeyDown function to accept this
coomand..
void CFaceDlg::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
{
switch(nChar)
{
case 49:
sSktNumValue += "1";
break;
case 50:
sSktNumValue += "2";
break;
case 51:
sSktNumValue += "3";
break;
.
.
.
.
}
Please find out my problem
Anu
|
|
|
|
|
Anu_Bala wrote: Please find out my problem
no way, ask your question, and post only the code which causes problem, not a whole crap.
|
|
|
|
|
Ya, my question is how can i map the keyboard message to my application. Before i explained my problem in details..Ok..I am not posting all the things..Just few lines to see my codings.Iam having this problem for last four days ..still i could not get solution for that problem.Thats why i posted this in details.
Anu
|
|
|
|
|
|
But i couldnot find the solution.
My question is Can we give message map from one class to another?
Anu
|
|
|
|
|
hi!!
I am trying to port code from VC 6 to VC8. But while compiling i am getting erros like this:
error C2440: 'static_cast' : cannot convert from 'void (__thiscall CKPActivatorDlg::* )(WPARAM,LPARAM)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'<br />
None of the functions with this name in scope match the target type<br />
......
As error indicated..I changed the return type of function from void to LRESULT. Also I am returning 1. Although its working 4 me,I am not sure whether this is the correct sol'n to the problem or not!
plz help!
Thx in advance!
|
|
|
|
|
Try these changes in the current project.
1)Return HRESULT instead of void
2)Is CKPActivatorDlg derived from CObject derived class ??If not do so.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
You get C2440 cannot convert void to LRESULT and its a error how do you run your program
|
|
|
|
|
That is what i done!!
I changed the return type to LRESULT; and returning value'1'
So now my project is getting compiled successfully. But I am not sure whether thid is right solution or not!
Thx!!
|
|
|
|
|
I dont know your function what is it?
|
|
|
|
|
sach!! wrote:
hi!!
I am trying to port code from VC 6 to VC8. But while compiling i am getting erros like this:
error C2440: 'static_cast' : cannot convert from 'void (__thiscall CKPActivatorDlg::* )(WPARAM,LPARAM)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
are you compiling that in which compiler? VC6 or VC7
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi,
I am using MSXML4.0 with VisualC++ 6.0.
when I try to load and search nodes using selectSingleNode()from an xml having the default namespace like
<hari xmlns="....">
this function is returning NULL always
but if I put a prefix like this
<hari xmlns:pr="...">
the function "selectSingleNode() is retuning correctly.
what is it so ?
since I have an application which loads external xmls which may or maynot contains the namepace prefix how can I solve the probelm with selectSingleNode()...
thanks in advance
|
|
|
|
|
MSXML/XPath doesn't work with default namespaces: Q313372[^]
0 bottles of beer on the wall, 0 bottles of beer, you take 1 down, pass it around, 4294967295 bottles of beer on the wall.
Awasu 2.2.3 [^]: A free RSS/Atom feed reader with support for Code Project.
|
|
|
|
|
thanks
|
|
|
|
|
Hi,
I want to protect one of my partition drive from formatting and deleting in any way.I do not know how to protect this.Can any body help me please.
Thanx
nirmal
|
|
|
|
|
You can hide your partition drive with registry
|
|
|
|
|
thanx for your reply.
But how can i hide using registry.
nirmal
|
|
|
|
|
Can explain why you want to hide your partition drive,please?
|
|
|
|
|
I want to take backup of my OS in a partition drive other than OS drive and Active partition drive.So I want to protect that drive from unauthorised acces like formatting,deleting etc. Because i want that drive only for backup purpose.
nirmal
|
|
|
|