|
Have you added the HistoryEdit source files to the project ? The class wizard looks there.
Elaine
The tigress is here
|
|
|
|
|
I did have the HistoryEdit.cpp source file as one of the source files and that still did not let the Wizard find the class.
I did discover a work-a-round. I added a member variable of one of the default MFC types "Control" and "CEdit". I then searched the code for the declaration of the variable and changed it to "HistoryEdit" type. This works and I can now use added custom control functions.
However, it still would be nice to know the "right" way to do this. ie, how to make the Wizard recognize custom class types without using the back-door approach.
|
|
|
|
|
It's the header file the class wizard looks in for the declarations and the CPP file for the references.
Always add both to the project source files.
Elaine
The tigress is here
|
|
|
|
|
Freddie Code wrote:
However, it still would be nice to know the "right" way to do this. ie, how to make the Wizard recognize custom class types without using the back-door approach.
I'm not sure if it's possible to make the Wizard recognize those classes, but what you did is right anyway. Just to clarify, both of the following options will work:
1 - You manually declare new variable members in your dialog class and then manually subclass the windows in OnInitDialog() .
2 - You add a variable member through the wizard, which also adds the subclassing in DoDataExchange() , which is called through CDialog::OnInitDialog() , and then manually change the class of the control in your dialog class declaration.
The latter is easier, of course
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
I am trying to find a video capture board for my PC that:
1) captures video from either a standard TV cable or line in cables
2) is able to output to a VCR or TV
3) I can use to turn a TV into a computer monitor
Is there anything that does all this with decent quality? Are there any other forums I should post at instead? My email is f-m-n@ig.com.br. Thanks,
fmn
|
|
|
|
|
|
My have writen an application which uses ODBC and Ms Access database, using visual c++ .net.
I need to know how setup the data source programmatically, when the application is been installed. I need to do programmatically the stuff you do with odbc addministrator tool. thaxx
hussein
|
|
|
|
|
What is with the H2 stuff? Trying to make your question stand out from the rest?
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
h2 is a html tag. Yes to make the question stand out. But it does't seem to be working.
hussein
|
|
|
|
|
The function you are looking for is SQLConfigDataSource() .
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Next question is how i call this function from the setup program?
hussein
|
|
|
|
|
You call it just like you would any other function. Check the documentation for the parameter list.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hi guys,
I have to make a dialog based application in VC++,in which I need to output some audio frequencies through the speaker system as I did in C by simply calling "sound(frequency)" from dos.h.
Here also I need the same thing in the environment of VC++,i.e., the audio frequency may be supplied at runtime or statically given at compile time.
I need the analogous of the following in VC++, which I found in C within dos.h.
C------------------------------ VC++
sound(unsigned)--------- ?
delay(unsigned)--------- ?
nosound()--------------- ?
Can any one of you help me?
|
|
|
|
|
What about
BOOL Beep(
DWORD dwFreq,
DWORD dwDuration
);
|
|
|
|
|
Ok. So I'm working on a web service client in unmanaged C++ which is derived from CSoapSocketClientT.
I know that when creating a web service in .Net(C#,vb,c++) one have to use (through CookieContainer property) CookieContainer class to maintain session between requestes to the server. Is there something similar for unmananged C++ web service client? Or is generated (at "add web reference.." time) code's doing it somehow magicaly on it's own?
Please help!
|
|
|
|
|
My question is why do the system wide hoks are done with dll and not generally in normal c++ file.That means if I
want to register to intercept the message why the hooks are put in the dll and how it is possible that using dll
it intercepts all the message while through normal c++ it is not.
|
|
|
|
|
Because a DLL can be mapped into the address space of another process. An EXE can not be mapped into the address space of another EXE.
If you only want your hook to act on the EXE in which it is contained, it does not need to be in a DLL as long as the hook can be set to type LOCAL. Some are only GLOBAL hooks, and they must always be inside a DLL to work correctly.
|
|
|
|
|
where can i find the instruction of crystal report9 RDC when i use it with vc6.0? there are only instructions about vb6.0 in its help. i dont know how to use the functions of report object in VC6.0. where can i find them?
|
|
|
|
|
In SDI application, what is the difference between ondraw(),onpaint() and on initdialog().Please explain or give a useful reference.
Thanks.
Be FaithFull To Your Work.
|
|
|
|
|
OnDraw() function performs screen display, print preview etc.,. Its a member of CView class.
OnPaint() function performs repaint the application window. Its a member of CWnd class.
OnInitDialog() is used for performing some special initializations when the Dialog box is being initialized. Its a member of CDialog class. It is somewhat a constructor type only.
Work hard and Bit of LUCK is KEY to SUCCESS
|
|
|
|
|
case i have two sound cards, i wanna play wave file, or anything other music file, at the two sound cards at the same time. any guy have such experience?
please contact:
max_xiayi@hotmail.com
|
|
|
|
|
nobody?
please contact:
max_xiayi@hotmail.com
|
|
|
|
|
Can anyone tell me if there is a 3D pie chart available (i.e. looks like a cake viewed from an angle) for Visual C++ .NET with MFC (unmanaged code).
Thanks in advance.
Lloyd.
Lloyd.
|
|
|
|
|
There are 3 pie-chart controls here[^] but unfortunately the only angle they provide is a 90° overhead view.
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib@ravib.com
|
|
|
|
|
hi,
can any one plz tell me how to add menu's in win32 console application in Visual C++.
Thanx in advance.
|
|
|
|