|
The event goes to the elemenet that has the focus.
Check differences between onchar and onkeydown events....
|
|
|
|
|
Ok i see, that seems logic
So i need to have in each class, that has the focus, a Message-Handler for KeyDown with the corresponding afx_msg On_KeyDown
If i want catch a KeyDown on an CEdit Textbox, i need to derive a class from CEdit that
has a OnKeyDown ...
correct?
Can i say this->getParent()->getParent() to access the MainForm ?
Many thanks !
All these questions aren't in MFC Books, so it's hard to find a resolution by myself
|
|
|
|
|
Normal Dlls are language dependent or Not ?
can we use C dll in C++ and viceversa ?
I read that Com Dlls Are Language independent And Normal Dlls Are Not.
Is it True ?
|
|
|
|
|
COM are just a specific kind of dll's that follow some rules so that they can be used in different languages. So in brief, if you take some special considerations, your C dll can be used in C++, VB and other languages.
|
|
|
|
|
With Out Following COM specifications Can i use My C Dll in C++ or VB ?
|
|
|
|
|
Yes but you have to take care about calling conventions for example (and don't know exactly everything that you need to take care of). Simply search on google and you'll find quite a lot of article
|
|
|
|
|
|
Cedric Moonen wrote: if you take some special considerations, your C dll can be used in C++, VB and other languages
I think Again you are saying about COM Dll in the Above Context.
|
|
|
|
|
Hi all,
calling GetProcessMemoryInfo is generating error LNK 2019 , can any one help me regarding this.
mpk1979
|
|
|
|
|
|
ya, i got it , i need to include psapi.lib in the linker options,thanks
|
|
|
|
|
prasad_som wrote: And whats that error ?
Did you miss "LNK2019" in both the subject and the body?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
As usual, I checked LNK 2019 , in MSDN Apr-2001. And could not find it. With VS 6.0 its LNK 2001. Thats why asked for error message.
Though, its present in latest one. I should have checked that.
|
|
|
|
|
Did you see Requirements on MSDN?
Header: Declared in Psapi.h.
Library: Use Psapi.lib.
|
|
|
|
|
Hello friends
I need your Help!!
I want to Fetch a value of clumn but i am unable to make query in VC++.
plz guide me..
I use pointer of CDaoDataBase class and member Funtion is Execute().
Hoping Best from u!!
Thankx
Born To Code
|
|
|
|
|
Remark from MSDN about Execute:
Execute works only for action queries or SQL pass-through queries that do not return results. It does not work for select queries, which return records.
|
|
|
|
|
|
One way is to derive a class from CDaoRecordset . Then just change the GetSQL() method (it default to SELECT * ) to select those columns and rows you want.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I want to print a small bitmap image using c++ (not MFC). I don't have a problem in printing normal text. But now I want to print an image.
|
|
|
|
|
Sorry for incomplete information. I want to print using a standard LPT printer. for example, to print some text we can print simply by writing it into a file (naming the file as "LPT1" inside the program). But how do I print a image?
|
|
|
|
|
Do you need to print an image file?
|
|
|
|
|
Anybody with experiences in deploying CR9 with an application developed in VC 6.0 please help!
I'm pulling my hair out one by one! App should be installed on win98 machines!
I'm using CR9 Crystal Report Viewer Control implemented in my app, with printing, exporting functions as well.
I build my setup package with Inno. I used all the crystal docs could find in the topic of figuring dependencies.
I already have a bunch of files installed. I know the issue with unicows.dll, atl.dll, registering, not registering, etc. When I'm about to show the report in the app, it dies without errormessage.
I already have all the files installed that Dependency Walker shows, same mdac, but still doesn't work.
I developed the app under XP, but since than I installed the VC 6.0 to a win98 machine as well to check dependencies. Is anybody out there who has something similar working on win98? Might be possible to check file versions...
thanks
|
|
|
|
|
Hi, I got through the same problem some time ago and there is the solution. Inno script with Crystal Report Installation.
Crystal Report 9 and 11 Installation - Inno Script
I like Inno since it's fast, easy and you have full control over the whole process. Crystal Report msi package is just pain.
Hope It helps.
|
|
|
|
|
Hi, I am trying to create a simple control which is a subclass of COMBOBOX. So using MSDE 2003, new C++ MFC project, create control based on COMBOBOX.
How do I expose the combobox's existing functions like AddItem in my subclassed control? Do I have to add same method to both ctrl and interface?
Many thanks for any helpful pointers...
Patrick
|
|
|
|
|
What do you mean exactly ? You want that the user of the control will be able to call AddItem (for example) as it was possible to do with the combobox ? If yes, then you don't need to do anything: the class 'inherits' also all functions from the base class.
|
|
|
|