|
The \a control gives out a beep, is there any other way that you can make the actual computer beep. Any other notes?
<marquee>Universal Project... Soon to be a .net
|
|
|
|
|
check out win32 api
mciSendString
you can use this apis to play a wave music,
this is not the only api, you will need other supporting apis along with it.
just need to be explored, plus there is a sample in platform sdk on mci commands.
regards,
Prakash.
The World is getting smaller and so are the people.
|
|
|
|
|
I have an dialog application that contains a class I derived from CPropertySheet Class, and also has some ProperyPages as well. I need to call a function in the dialog from one of the PropertPages.
Getting a hold of the PropertySheet from a PropertyPage is easy, but how you I get a hold of the dialog that the ProperySheet is in?
Thanks
Kevin Shaffer
kshaff03@msn.com
|
|
|
|
|
How about m_propSheet.GetParent() ?
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
I just want to display a small letter Pi, but could not do it in Windows easily.
Win32 and MFC uses Standard ASCII Table which does not have small pi the old IBM DOS version of ASCII provides (It should be as easy as \xE3).
If I don't want to pile up too much code for this small issue, what would be my options?
Help me.
Don
Don
|
|
|
|
|
If your showing the character in a control, you just need to switch the control to the correct font.
I would do it like this:
LOGFONT lf;
GetDlgItem(IDC_CONTROL)->GetFont()->GetLogFont(&lf);
_tcscpy(lf.lfFaceName, L"NameOfFont");
m_Font.CreateFontIndirect(&lf); // m_Font is a member var
GetDlgIten(IDC_CONTROL)->SetFont(&m_Font);
This should work correctly regardless of screen font size settings unless the font you want to use does not support the size you request, as you may get a different font supplied by windows instead.
Roger Allen - Sonork 100.10016
If your dead and reading this, then you have no life!
|
|
|
|
|
Hi all,
I am in a problem if someone can solve it. I dont know the way to watch static variables in watch window ( or by any other means) in Visual C++ 6.0 debugger.
Please help.
|
|
|
|
|
Put classname::variablename in the watch list
|
|
|
|
|
The problem is not to watch the static member variables but to watch the static variable which belongs to a procedure e.g. a Window Procedure normally has many static variables.
|
|
|
|
|
I am utilizing edit boxes to design a report from a simple database. I have three edit boxes that I am using. They are called NameFirst, NameMiddle and NameLast. I want all of the edit boxes to automatically set their own width. For example if I have an edit box that contains "Gloria" I would like that edit box to be only wide enough to display the text "Gloria" and not a pixel wider.
Also the editbox called NameMiddle is located directly to the right of NameFirst. I would like the NameMiddle editbox to automatically calculate the size of NameFirst and place itself 2 pixels to the right of NameFirst.
How can these things be accomplished?
Thank you,
Eric Sepich
|
|
|
|
|
Is there anyway to print an entire Visual Studio project in one shot?
thanks
|
|
|
|
|
You can record/write a Macro for this.
Tools/Macros/Record...
Then open and edit the recorded macro to suit your needs.
Peter Molnar
|
|
|
|
|
I have a datafile that has input data that is loaded in in two different functions. In one place I'll read in the first say 5 lines using ReadString(). In the other place I want the strings that occupy the 6th place and onward.........
Do I have to read the whole file into a CStringArray and then pick out the elements i need? Or can I somehow direct the pointer to go to the 6th line?
Thanks,ns
|
|
|
|
|
Imho, you're much better off reading in the entire file into an object and exposing access methods in that object. File I/O is inherently slow. Further, since you're reading ASCII data (strings) and not binary fixed length records, you don't want to keep the file open for the lifetime of the app.
However, this may be a problem if your file is very large (eg: more than 64K strings).
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Hello,
Now I need a 16-bit compiler to build a 16-bit DLL. How can I get Visual C++ 1.5?
Thanks for reading.
Sincerely.
____
Tuan
|
|
|
|
|
Jokes should be posted in the Soapbox section
|
|
|
|
|
As it happens, that's actually not that unreasonable a thing to ask
I know there are a lot of DOS based handheld barcode terminals out there still getting new software written for them (I work somewhere that does just that), and there's probably a lot of DOS apps on PCs that still need maintaining (much as we'd all like to be using .NET), and version 1.5 is the last version of Visual C++ to support compiling for DOS.
But yeah
--
Ian Darling
"The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky
|
|
|
|
|
As it happens I've just started a new contract where I've got to provide fixes and enhancements to VC++ 1.5 applications. I've not used 1.5 for almost 10 years so it's like going back to the dark ages but it pays the bills!
Luckily, the same client is also doing and moving to .NET so I should be able to work on this too.
Kevin
|
|
|
|
|
I think you can get it from MSDN subscriber downloads. Or room 101.
Ryan.
|
|
|
|
|
Even though it's an obsolete Win16 product I sure microsoft still charge a small fee.
The only real way I can think of it a MSDN it's
and it's only avaible in Visual C++ 1.52 (English)
I am that is
|
|
|
|
|
|
Thank you very much for all replies. Now I'm downloading it from MSDN.
Special thanks to Normski. Yes, it's Visual C++ 1.52 (English).
Best regard.
____
Tuan
|
|
|
|
|
|
Dear Mr. Archer,
Thank you very much for your suggestion.
Actually, my company has a license for MSDN Subscriber downloads. So I found it after getting Mr. Normski's reply.
Again, thank you so much.
____
Tuan
|
|
|
|
|