|
This should work then.
::SendMessage (hwndEdit,WM_CHAR,(WPARAM)VK_BACK,(LPARAM)1);
Rate it if this helps
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thanks It Works
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Hi,
In my console application (Visual Studio 2005) I can't include "iostream.h" header file instead of that I need to include following code.
#include <iostream><br />
using namespace std;</iostream>
Can anyone please tell me why it is that I remember in "Turbo C" I only used iostream.h and it was sufficient.
Thanks,
Mushq
|
|
|
|
|
See, for instance, here [^].
BTW: Google is an invaluable resource...
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]
|
|
|
|
|
Hi all,
I have the following errors:
1>UpdateServiceModule.obj : error LNK2019: unresolved external symbol __imp__SetupDiDestroyDeviceInfoList@4 referenced in function "public: int __thiscall CDeviceLocationInformationList::Collect0(int)" (?Collect0@CDeviceLocationInformationList@@QAEHH@Z)
1>UpdateServiceModule.obj : error LNK2019: unresolved external symbol __imp__SetupDiGetDeviceInstanceIdW@20 referenced in function "public: int __thiscall CDeviceLocationInformationList::Collect0(int)" (?Collect0@CDeviceLocationInformationList@@QAEHH@Z)
1>UpdateServiceModule.obj : error LNK2019: unresolved external symbol __imp__SetupDiGetDeviceRegistryPropertyW@28 referenced in function "public: int __thiscall CDeviceLocationInformationList::Collect0(int)" (?Collect0@CDeviceLocationInformationList@@QAEHH@Z)
1>UpdateServiceModule.obj : error LNK2019: unresolved external symbol __imp__SetupDiEnumDeviceInfo@12 referenced in function "public: int __thiscall CDeviceLocationInformationList::Collect0(int)" (?Collect0@CDeviceLocationInformationList@@QAEHH@Z)
1>UpdateServiceModule.obj : error LNK2019: unresolved external symbol __imp__SetupDiGetClassDevsW@16 referenced in function "public: int __thiscall CDeviceLocationInformationList::Collect0(int)" (?Collect0@CDeviceLocationInformationList@@QAEHH@Z)
1>D:\SVN\Licensin System\Work Package\UpdateManager\Debug\UpdateService.exe : fatal error LNK1120: 5 unresolved externals
I have already included setupapi.h and I still have those errors, what am I lacking?
Thanks,
Jayjay
|
|
|
|
|
You should link your project with Setupapi.lib :
1. On Visual Studio (assuming 2003 or later) select Project->UpdateService Properties... menu item.
2. On the newly appeared window choose the Configuration Properties->Linker->Input node.
3. Finally, add Setupapi.lib in the Additional Dependecies line of the list on the right.
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]
|
|
|
|
|
In addition to Carlo's reply, you can add it with a #pragma directive too:
#pragma comment(lib, "Setupapi.lib")
|
|
|
|
|
Hello,
i create my own CMyPropertySheet derived from CPropertySheet to show some tabs etc.!
This part works, my sheet is created and is shown, with property pages etc.,
but as a own single window, i need it to embed on dialog!
Is it posible to make a CPropertySheet as a child object of my dialog,
so i can embed him on my dialog, like a tab control? Which function to override for that?
Thank you for any help!!
termal
|
|
|
|
|
In your OnInitDialog
CPropertySheet sheet;
CPropertyPage page;
sheet.AddPage(&page);
sheet.Create(this, WS_CHILD | WS_VISIBLE, WS_EX_CONTROLPARENT);
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Hi,
that works
Thank you!!!
termal
|
|
|
|
|
How can we create the Message Que.?
How can we implement user defined messages...?
CAn we create user defined message que in VC++
|
|
|
|
|
We read a book about windows programming.
I'm not being horrible - proper answers to these question would require more than a few paragraphs. And the fact that you think these are few-line answers tells me that you are just starting with message driven programming. And that's a big leap of thinking.
Short answers to help you with google:
1/ GetMessage
2/ RegisterWindowMessage or just use WM_USER+N as appropriate.
3/ The user messages go in the normal message queue.
I hope that helps a little, and wish you luck with your learning. And if I misunderstood your question, I hope the short answers help too.
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
Iain Clarke wrote: We read a book about windows programming.
I love your humour.
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]
|
|
|
|
|
I did try and give a nice answer two lines down, but the first line just popped into my head and I couldn't resist! I try and soften my raw snarky instincts, otherwise I'd be insufferable (and probably was when I was 19).
In his defense, when I first did X-Windows [*], I didn't realise just how much of a conceptual jump there was between console programs chewing their way through main and event driven programming... Just like pointers are impossible until you click that they're just an integer pointing to a memory address where something lives.
Iain.
[*] Win32 / MFC came later. Same ideas though.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
Hi all,
I am getting this error:
1>d:\svn\licensin system\work package\updatemanager\updateservice\devicelocation.h(9) : error C2143: syntax error : missing ';' before '<'
1>d:\svn\licensin system\work package\updatemanager\updateservice\devicelocation.h(9) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
from my class declaration below:
class CDeviceLocationInformation;
typedef CAtlList <CDeviceLocationInformation*> CDeviceLocationInfoList;
class CDeviceLocationInformation
{
public:
CDeviceLocationInformation()
Why is this?
thanks,
Jayjay
|
|
|
|
|
Did you include the header file of CAtlList ? (Don't know which one it is but you should be able to find that easily in the docs).
|
|
|
|
|
for the benefit of other readers, the errors messages are :
C2143: syntax error : missing ';' before '<'
C4430: missing type specifier - int assumed. Note: C++ does not support default-int
For my part, I don't understand why you're defining the typedef before defining the class itself ?
Why don't you just move the typedef after the definition of the class, which would also let you remove the forward declaration.
but this is was just a side note.
As you don't bring us the exact code sample, I cannot say exactly what's wrong. Cédric proposed a possible cause, have you checked for it ?
Also, are you sure you didn't forget a ';' anywhere in your header before the typedef instruction ?
At last, have you checked the MSDN for those error codes to know the possible causes for them ?
see C2143[^] and C4430[^]
|
|
|
|
|
monsieur_jj wrote: typedef CAtlList <cdevicelocationinformation*> CDeviceLocationInfoList;
Notice the compiler is complaining about the token that precedes the < symbol (i.e., CAtlList )? Have you included atlcoll.h ?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I have used the CRicheEditView. I am selcting the character in the editor. When i clcik on the selected character it getting deselected and cursor is moving into begining of the charcter. How to avoid his deselction and movement of cursor?
Raghu
|
|
|
|
|
maybe you need to search for Drag n' Drop implementation...
otherwise I don't see what you're trying to do, as it appears to me like a standard Windows behavior.
|
|
|
|
|
Hi thank you for your Suggestion.
I am using CRicheDotView as hex editor and using selected single nibble as a cursor.
But when it is selcted i want to avoid clciking on selected nibble again. In my cas whats happening is when i clicked on the selected character it deselcting. I dont that to happen.
Also Drag and drop works for only OLE Items i think.
Raghu
|
|
|
|
|
ahh, Hex editor, that's different.
I believe you have to overload the event handler of the "Mouse Left Button Down" (I don't remember by heart currently) to make the automatic selection
|
|
|
|
|
HI,
Even I have overloadd the OnLButtonDown and checking for CrSel.cpMin and cpMax position as well.
It is working fine in Debugging mode, but when exected without debug mode it is giving problem.
Raghu
|
|
|
|
|
Raghu Panduranga wrote: It is working fine in Debugging mode, but when exected without debug mode it is giving problem
any error message by chance ?
|
|
|
|
|
If you're still struggling, I've used Eugene Pustovoyt[^]'s CPPDumpCtrl[^] in the past with great success. A nice little hex / ascii display / editor.
Though I think the article name needs work!
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|