|
Deleted the opt and it worked! Thanks a lot! I am very grateful!
|
|
|
|
|
I have dialog based application.
And any time when I press some keyboard key
over the window it makes sound (Window sound)
Is here any way how to turn it off from program?
Thanx
Viliam
viliam
|
|
|
|
|
See if this helps any.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Thank you,
this is not exactly what I am looking for.
I didn't know this way but I cannot mute the speakers
in my application. It's already playing different audio
and problem is that I am playing audio and whan key
is pressed the key sound is mixed with my audio.
Key sound is not bothering me in time when
is nothing played - it doesn't matter in that time.
viliam
|
|
|
|
|
Hello Guys...
Thank you guys for the reply...
i have one more doubt...i wanna change the COLORREF item to RGB structure..ie i want the seperate values for R, G and B
Thanks in Advance,
Hariharan.S.N
|
|
|
|
|
GetRValue and friends...
Steve S
|
|
|
|
|
COLORREF RGB(
BYTE bRed, // red component of color
BYTE bGreen, // green component of color
BYTE bBlue // blue component of color
);
above is the structure
#define RGB(r, g ,b) ((DWORD) (((BYTE) (r) | \
((WORD) (g) << 8)) | \
(((DWORD) (BYTE) (b)) << 16)))
Above is the Macro
So COLORREF is a 24-bit RGB color.
BYTE GetBValue(
WORD rgb // 32-bit RGB value // blue
);
BYTE GetGValue(
DWORD rgb // 32-bit RGB value // green
);
BYTE GetRValue(
DWORD rgb // 32-bit RGB value // red
);
The GetRValue macro is defined as follows:
#define GetRValue(rgb) ((BYTE) (rgb))
#define GetGValue(rgb) ((BYTE) (rgb))
#define GetBValue(rgb) ((BYTE) (rgb))
long green = 128;
long red = 128;
long blue = 128;
COLORREF clr = RGB((blue + (green * 256) + (red * 255));
You may also create a structure of you own with COLORREF as a element with it.
Hope this helps.
Best Wishes and Happy Holiday's,
ez_way
|
|
|
|
|
Hi,
I have a namespace extension integrated in to the windows explorer,name space extension is a ATL COM(STA), it is creating another ATL com component (STA) (kinda tier2) This tier2 component is again creating the another STA component, now all the components are created once for the life time of the namsespace extension.
Every thing goes fine with one instance of explorer open. When the user opens another instance of the windows explorer then things goes dratically wrong, The namespace extension is able to access the second com component but the second com component fails when any method of the third component is used.
Its tested that all the pointers are valid nothing wrong with that.
I dont know how clear i am, But please try helping me out coz i am out of options.
The World is getting smaller and so are the people.
|
|
|
|
|
Concert Hall Reservation System
Objective:
To automate the manual reservation system of concert hall.
Minimum requirements
The program must be able to:
- provide information to the user of which seats are reserved and which
are vacant in a tabulated form.
- compute and record payments/reservation fees of clients.
- assign seat and ticket numbers to attendees/clients.
- must have delete, edit and add functions
- maintain at least 100 records.
hope you could help me do this project before december 10... iwould definitely appreciate your help.......... this is my only hope on passing my subject just email me at omissom2002@yahoo.com for some help... im just a 17 yr old, newbie on using C++, and i really need your help. just a freshie college so i dont have a lot of idea regarding this stuff....
JRBD
|
|
|
|
|
What type of development environment are you using? There are plenty of samples to be found, both here at CP and via google, if you enter some basic search parameters.
Can't you ask your tutor for some direction?
Debbie
Debbie
|
|
|
|
|
ei thanks for replying... well i really need your help.. i realyl don't know what to do... my professor don't want us to ask question to him. He always say,... GO and explore. well i really hve difficulty on understanding how to do this stuff... will you help me on this???? thanks a lot.... oh by the w7y, it must be done using visual C++ 6.0........
JRBD
|
|
|
|
|
I have no idea how much you know about the language and development environment, so bear that in mind with suggestions I make. btw, I'm happy to give you some pointers, but I'm not about to do your homework for you, ok?!
Are you using a graphics based input? In which case, I'd suggest using an MFC Application wizard (exe) to generate a basic project. If not then you'll probably want a Win32 Console App. You can search google and/or the MSDev help system for more info on these. (I'm assuming you can use Wizards? It does simplify things.)
You'll also need to understand such basics as arrays (unless you're using a database interface?), and data input. There is a pretty good on-line reference at:
http://www.cplusplus.com/doc/tutorial/[^]
If your knowledge is that basic, btw, a week is cutting it pretty fine. Google-ing for an example to build upon might be a good idea...
Debbie
|
|
|
|
|
Well thanks debbie... yuor help is very well appreciated. I am so lucky with people like you who i willing to help someone... thanks again
|
|
|
|
|
Not exactly the level of difficulty I would have assigned to a person just starting with the C++ language.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Sounds pretty straight-forward.
And it's probably a fair guess that s/he was given more than a week to do it
"Sucks less" isn't progress - Kent Beck [^]
Awasu 1.1.4 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
Taka Muraoka wrote:
And it's probably a fair guess that s/he was given more than a week to do it
Hey, a week seems like a lot of forethought to me!
Debbie
|
|
|
|
|
I'm trying to display an open file common dialog with some additional controls added to it.
Question 1:
One problem I have is that I cannot hide the places bar.
It's supposed to be done by using FlagsEx and OFN_EX_NOPLACESBAR but I get errors:
error C2039: 'FlagsEx' : is not a member of 'tagOFNA'
error C2065: 'OFN_EX_NOPLACESBAR' : undeclared identifier
I have found some info about it on MSDN but I'm not smart enough to get it work anyway. How should it be done?
I know at least that the windows version is involved somehow.
I use VC++ 7.1 and Windows XP.
|
|
|
|
|
To get the members defined, you need to define _WIN32_WINNT to be 0x0500 or higher (for some Windows XP-specific stuff, you need to set it to 0x0501). This macro and its cousins _WIN32_WINDOWS and _WIN32_IE are used in the Windows SDK headers to control which macros, functions and structures are available - preventing you from accidentally compiling code which won't run on your target platform. Visual C++ sets _WIN32_WINNT to be 0x0400 by default, meaning that any features added to Windows 2000 or later are excluded from the build.
Decide what the minimum platform you'll support is, then define macros appropriately. You can get a current list at the page Using the SDK Headers[^].
You can write code that will still run on NT 4.0 and earlier for OPENFILENAME by calling GetVersionEx and checking whether dwMajorVersion is greater than 5. If not, set lStructSize to be OPENFILENAME_SIZE_VERSION_400 rather than sizeof(OPENFILENAME) .
|
|
|
|
|
I have made a resizable combo box using windows api. In the scrollbar i am getting the gripper at bottom roght corner using function
DrawFrameControl(hdc, &gripperRect, DFC_SCROLL, DFCS_SCROLLSIZEGRIP | DFCS_FLAT);
But i am not able to get the gripper in top right corner;
I want to have the same kind of gripper it comes in the RUN window(shortcut : windows + r, start>run)
kindly tell me how to get the gripper in top right corner.
One way i thought could be to get the same kind of gripper of bottom right and then rotate by 90 degree anti clockwise
can there be any way to rotate the gripper is it posible.
or is there some existing style that can be used with the above function
|
|
|
|
|
Hello Guys..
This is hari..i need some help regarding VC++...the problem iam not able to load an icon to a button in App Runtime..ie. iam selecting an icon in the App and it is loaded on the Button...guys help me to come out of it
Thanks in Advance..
Hariharan.S.N
|
|
|
|
|
use LoadImage
and set the fuload to LR_LOADFROMFILE
The World is getting smaller and so are the people.
|
|
|
|
|
I think ur problem is loading icons (or images) at runtime, from files.
MFC 7.0 solves this problem with CImage class, check the docs for details.
U can also search this site. There are button classes here that u can use instead.
What would life be without programmers and salesmen?
|
|
|
|
|
I have a CPropertySheet derived class; I need to implement the CPropertySheet::RemovePage(int nPage)
Would you tell me how I can do that?
|
|
|
|
|
I will like to believe u probably need to do some things before removing the page.
Try implementing these 2 mtds:
void CMyPropertySheet::RemovePage(CPropertyPage *pPage)
{
//do ur stuff...
//......
//finally, call the parent mtd...
CPropertySheet::RemovePage(pPage);
}
void CMyPropertySheet::RemovePage(int nPage )
{
//do ur stuff...
//......
//finally, call the parent mtd...
CPropertySheet::RemovePage(nPage );
}
Goodluck!
What would life be without programmers and salesmen?
|
|
|
|
|
Thanks for the reply!
I've done the same but the problem is that it throws an exception, I think it's due to another code I've put in the caller method.
|
|
|
|