|
I've created a dialog-based project without context-sensitive help. That line doesn't exist in my message map, neither in the CWinApp class nor in the main dialog class.
Now?
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
Oh oh... it actually does exist... I've overseen it
Sorry, problem solved, thanks!
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
I have (probably) a very naive question, but I haven't done this before !!
I have just downloaded the Progress Dialog project from this website. However, having unzipped the package, I cannot find any project workspace file and therefore can't build the project. The only clue seems to be in the .dsp file which contains the following text:
# Microsoft Developer Studio Project File - Name="IProgDlg" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Application" 0x0101
CFG=IProgDlg - Win32 Debug Unicode
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "IProgDlg.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "IProgDlg.mak" CFG="IProgDlg - Win32 Debug Unicode"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "IProgDlg - Win32 Release" (based on "Win32 (x86) Application")
!MESSAGE "IProgDlg - Win32 Debug" (based on "Win32 (x86) Application")
!MESSAGE "IProgDlg - Win32 Release Unicode" (based on "Win32 (x86) Application")
!MESSAGE "IProgDlg - Win32 Debug Unicode" (based on "Win32 (x86) Application")
!MESSAGE
I don't understand where I find the "Export Makefile" command that it mentions.
Also, I am only running VC++ Ver. 4.0 and I see that Version 6.00 is mentioned above - is this a problem ??
Any help would be greatly appreciated
Doug
|
|
|
|
|
|
How can I stablish height for rows in a CListCtrl ??
Thx.
Written by: Rafael Fernández López.
void life ( bool me, bool her )
{
if ( her )
{
me = true ;
}
else
{
me = false ;
} }
|
|
|
|
|
One solution is to derive a class from CListCtrl and do custom draw. Check out CodeProject code section for examples.
Kuphryn
|
|
|
|
|
I knew that I had to do it through owner draw but I didn't know how, now I found that article that explains it. Thank you very much !!
Written by: Rafael Fernández López.
void life ( bool me, bool her )
{
if ( her )
{
me = true ;
}
else
{
me = false ;
} }
|
|
|
|
|
there seems to b some problem here, i have installed the library and i am trying to run a sample code for it. The program compiles successfully but it gives me the unresolved external symbol error and i have set all the include files and libraries in the project settings.
unresolved external symbol _cvLoadImage
any comments?
|
|
|
|
|
hi there
i have a project in visual c++ 7, with a main.cpp file, and 5 header files used by the main file. how do i get the compiler to generate a .obj file for each header file on the project?? right now it is creating just one for the entire project...
Thanks
|
|
|
|
|
.obj files (called object files) are generated from .cpp files (source files), not .h files (header files). Header files are used to share declarations between two or more .cpp files. Here's an example header file, ClassA.h :
class ClassA {
public:
ClassA();
~ClassA();
int A;
}; and the corresponding source file, ClassA.cpp
#include "ClassA.h"
ClassA::ClassA()
: A(0)
{
};
ClassA::~ClassA()
{
}; and the main program, Main.cpp
#include "ClassA.h"
int main(int argc,char *argv[])
{
ClassA An_A;
} From this example, there would be two object files, ClassA.obj and Main.obj . ClassA.h is #include 'd by both of them to ensure that they both agree on the declaration of ClassA .
Software Zen: delete this;
|
|
|
|
|
I have 2 sliderControls in my Application. One to control the system volume (SPK )and other the system mike (MIC).
When i slide any one of the Scroll bar the function HScroll is called. Here how do i distinguish between the SPK and MIC Sliders ??
Presently my HScroll is as below ---
void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
{
DWORD vol;
if (pScrollBar != NULL)
{
vol = ((CSliderCtrl *)pScrollBar)->GetPos();
Obj.SetVolume(vol); //This func implemented in another class
}
}
I am calling only my Speaker function.
|
|
|
|
|
The CScrollBar pointer passed to the handler can be cast to a CSliderCtrl pointer. Compare the HWND associated with this pointer to thos of your controls. This should allow you to determine which control was moved.
|
|
|
|
|
yes, that worked. Thank u very much
|
|
|
|
|
I have googled for the last hour and havent found anyhting worth not(most likely because Iam not searching the right terms). Anyway getling(cin, s) is the only way I know of to get a multiple word string pulled together and that will output as it went in. But the problem is you have to hit the enter key twice in order for the program to move on. is there a better way of going about getting a sentence or string of words in one input or is there some kind of function I can use to make it so the person dosent have to hit enter twice? here is the little sample program i have been working with to try and figure this out.
<code>
#include <iostream>
#include <string>
int main()
{
std::string test, test1;
std::cout << "Enter something: ";
std::getling(std::cin, test);
std::cin.ignore(100, '\n'); // with or without this i have to hit enter twice
// this just makes it possible to display another string..
std::cout << test << std::endl;
std::cout << "Enter again: ";
std::getling(std::cin, test1);
std::cout << test1 << std::endl;
return 0;
}
</code>
I know this probably isnt the best code for many reasons but Iam just trying to figure out how to make it possible to enter a multi word string. any help would be great as Iam finnally stuck and cant get any furthur on my own.
RanBlade
aka Eric Ranaldi
"Passion is what drive you to stay until 4am ficing that minor bug that hardly anyone would notice...Passion is where great games come from. If you don'l live and breath games, you shouldn't be in the gaming industry" - Dave Pottinger, Ensemble Studios
|
|
|
|
|
Hello Sir,
As title, can I use multi-dialog in on formview, and change this dialog dyanmicly? How to do?
Thanks.
Vistac
|
|
|
|
|
In the CFormview
Create a CDialog with no title bar so that it can't move
then simply delete this dialog and Create another with no title bar
Hope it helps
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
Thanks for your reply, but I'm sorry that I'm so stupid to understand what you said .
I can explain more detail about what I want, and can you give me a sample?
I have a application use SDI FormView, in this ap. only have one FormView. At the beginning, only one dialog(DIALOG1) in resource file, and MyFormView use this dialog to initial the application. I know I can make a new dialog(DIALOG2) in resource file, and I can change IDD in MyFormView, it will initial with my new dialog, but I want do this change at runtime, for example when user click some controls, application change the dialog to another dialog, not popup a dialog, how to do it? please tell me.
Thanks.
|
|
|
|
|
What you want is to create TWO CFormview Classes and then switch one form with another at runtime
here is an article that might help you
http://www.codeproject.com/docview/switchingviews.asp[^]
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
Thanks, I know it, seems no other solution, I have already implemented this in my application. I just thinking can I just change form(dialog), not change View, like dialog base application, show new dialog, hide old dialog. Seems no other solution, only change view can solve my problem.
Thank you very much ...
Vistac
|
|
|
|
|
There is another way in which you do not need to switch view in SDI
simple steps
Create a dialog with no title bar in FormView
m_pDlg = new CMyDlg;
m_pDlg->Create(...,this);
m_pDlg->MoveWindow(....);
m_pDlg->ShowWindow(SW_SHOW);
delete m_pDlg;
m_pDlg = new CAnotherDialog;
m_pDlg->Create(...,this);
m_pDlg->MoveWindow(....);
m_pDlg->ShowWindow(SW_SHOW );
//just remember dialogs created should be modeless and should have no title bars (to stop user from moving it)
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
How to make RichEdit background can be one image in VC?
Lots of application has this effect,
but I can't find any way to realize it,
who can tell me?
Great thanks!
|
|
|
|
|
Have you tried to derive a class from CRichEditCtrl and Handle its OnEraseBackground event (paint a bmp in this handler)
Hope it Helps
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
my name is gunjju. for my current project i want one printer spooler which do this type of activity.
if i send print command from any application then my this program should activate and it read all data form that application and then my program print create one .bmp file at some where and and print all data in that .bmp file.
it is somthimg like "acrobat distrill" if any one have some idea then plz help me .
thanking u,
gunjju
gunjju
|
|
|
|
|
Hi,
I am writing a COM server with MFC support, Is it any way necessary to develop a com server with unicode support, Till now the design does not demand the unicode feature as it is a backgroud operation and not going to do anything with the UI.
Thanx in advance.
My God is more powerfull Than Your God. (the line that divides the world)
|
|
|
|
|
If your COM server is not going to be used on Windows 9x/ME, then I would go ahead and make it UNICODE. On Windows NT/2000/XP, there are generally two versions of each function that takes string arguments, named FunctionA for the ANSI version, and FunctionW for the UNICODE version. Typically, the Windows headers #define a 'common' version called Function which evaluates to FunctionA or FunctionW based on whether your project is being compiled for ANSI or UNICODE, respectively. The ANSI versions convert string arguments to/from UNICODE as required. The ANSI versions therefore suffer a performance hit compared to the UNICODE versions.
Even if these considerations aren't important, if you are passing any user-supplied strings to the server (such as filenames), those values should be UNICODE.
Software Zen: delete this;
|
|
|
|