|
Wow. never knew that one. 5
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
Use FindFirstFile/FindNextFile api's to get the content of the folder. You can check using WIN32_FIND_DATA if the specific object is a file or a folder.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
You know, CodeProject has a whole section of articles on tree-controls[^], including this one[^].
Do try and show some initiative. You managed to find this site - searching it and finding that article would have been the ideal next step...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
that's too much for a single control. Looks like they can host a separate forum for TreeView. lol
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
Hi there.
FYI: I am using a DLL with an exposed class. When I try to create an object of the same class, I got below error message. Can someone please provide some pointers on this i.e., Why am I getting this error message and what can i do to resolve this problem?
Error 1 error LNK2019: unresolved external symbol "public: __thiscall CDataAccessManager::CDataAccessManager(class ATL::CStringT<wchar_t,class ATL::StrTraitATL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >)" (??0CDataAccessManager@@QAE@V?$CStringT@_WV?$StrTraitATL@_WV?$ChTraitsCRT@_W@ATL@@@ATL@@@ATL@@@Z) referenced in function _wmain eDocManager.obj
Incase any further information required, please let me know.
Thanks.
PanB
|
|
|
|
|
Do you have a body for your CDataAccessManager constructor ?
|
|
|
|
|
Yes I do. Anyway, i found the solution. I replaced the lib file and everytjhing seems to be working now. Thanks anyway.
|
|
|
|
|
Hi All,
I have inserted a "Adobe Acrobat Reader activex control" into my "mfc activex control" project, so that I can use it instead of adobe's default activex to view pdf files in internet explorer.
Now, when the Acrobat activex loads in internet explorer, the file menu gets modified. Typically, the "Print" option is modified in such a way that it calls the acrobat reader's print dialog box.
I want to have my activex control override the default File menu behaviour of Internet Explorer just like the acrobat reader control does. Why I would want to do this is to be able to discard the original (Internet Explorer's) Print message and call the inserted acrobat reader's Print function (or any other similar function present in the control).
After much attempts at trying to find relevant documentation, I could not find anything that would be of much use . Can anyone please point me out to either some similar document/link where such an example has been elaborated.
Many thanks in advance...
|
|
|
|
|
The Acrobat activex response the "Print" menu in this way:
get the IHTMLWindow2 interface
Advise DIID_HTMLWindowEvents2
When Invoke is called, check the DISPID =
DISPID_HTMLWINDOWEVENTS2_ONBEFOREPRINT
|
|
|
|
|
Thanks Jerry, for the quick reply. I will work out the solution you provided and definitely get back with the result I obtain.
|
|
|
|
|
Hello.
At the first time, I made a dialog with OnKeyDown function and there was no control on the dialog.
My OnKeyDown function worked well. I pressed a key(spacebar) and OnKeyDown function was called.
Next, I made some CButton controls on the dialog. And I soon noticed something wrong, OnKeyDown had no effect.
I found the reason. One of the button controls had focus automatically, and when I pressed spacebar that button was clicked.
(If there was no control on the dialog, that action would call OnKeyDown function.)
So I added the code "AfxGetApp()->m_pMainWnd->SetFocus();" in OnInitDialog, yet that seems ineffective.
I want to make the dialog grab 'keydown' focus like the first time, not the button control.
I need ideas and advice.
Thank you for reading this.
May the sky bring you a full measure of health and prosperity.
|
|
|
|
|
If you read the documentation of CDialog::OnInitDialog[^], you find this:
Return Value
Specifies whether the application has set the input focus to one of the controls in the dialog box. If OnInitDialog returns nonzero, Windows sets the input focus to the first control in the dialog box. The application can return 0 only if it has explicitly set the input focus to one of the controls in the dialog box.
So return FALSE from OnInitDialog. Does that help?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
I tried and the button control seemed losing its 'focus', but when I pressed spacebar, the button was still clicked.
(The problem is that my action(pressing the key) didn't call the OnKeyDown function because of the buttons.
Once I removed the buttons for test, the program worked well. Yet I have to add buttons.)
Anyway, thanks for your answer. If you have any ideas, please let me know.
May the sky bring you a full measure of health and prosperity.
|
|
|
|
|
I'm not sure but you could try catching the key press in the PreTranslateMessage[^] method of the CDialog...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
|
Yourwelcome. Try returning TRUE from PreTranslateMessage after you called your OnKeyDown handler, this should stop the button from handling the keyhit too and get pressed. Good luck.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
hi,get the key message use PreTranslateMessage() function.
you can try..
|
|
|
|
|
plz tell how to convert this statement in vb.net into c#
For Each node As XmlNode In xmlNl
ddlctry.Items.Add(node.LastChild.InnerText)
Next
|
|
|
|
|
foreach (XmlNode node in xmlNl)
{
ddlctry.Items.Add(node.LastChild.InnerText);
}
|
|
|
|
|
??? C# here
Why do you want to propaganda c# here!?
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 it was so urgent, then why not use the correct forum instead of the C++ forum ?
|
|
|
|
|
OK: so I badly need a new laptop, can you deliver it to me, plz plz urgentz?
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]
|
|
|
|
|
Just go to:
free.laptop.cpalliniz.urgentz.com[^] !
I thought you'd have known that one...
Iain.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
|
|
|
|
|
Hey man, do you know:"mai rubare in casa del ladro?"
OT: I supposed you were angry with me, since you never replied my emails.
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]
|
|
|
|