|
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
|
|
|
|
|
|
I guess if you do some changes in the project settings prorbably you can generated win16 output, not sure, but its a pointer to a sol.
|
|
|
|
|
I am having a similar problem as Keck (about 5 posts down). A few years ago I wrote some templated storage classes (Arrays, Linked Lists, Stacks, Queues) and I still use them all the time in applications, and I've never had problems with them working. Just recently I wrote a Table class which is basically an array of my templated Arrays. So my one private variable WAS defined as:
const static int SIZE = 100;
Array<T> * MyTable = new Array<T>[SIZE];
This worked perfectly, no errors, no memory leaks (as far as I could tell)...I never had a single problem with it. But I am using this same class to store various datatypes, and sometimes there are many items, sometimes only a few hundred...so I changed the wanted to be able to define SIZE instead of always using 100. So basically I didn't define MyTable in the declaration anymore, now I define it in the constructor. So my declaration is now:
Array<T> * MyTable;
and in the constructor:
MyTable = NULL;
MyTable = new Array<T>[WHATEVER_SIZE];
This still seems to work fine, but now my program is crashing when it hits the destructor from this Table class. This is all I have in the constructor:
if ( MyTable )
delete []MyTable;
The debugger won't show me a line where my program crashes, but if I comment out the contents of the destructor function, then my program will run through to finish...and never releases memory. I do get the following error when the program crashes:
Expression: _CrtIsValidHeapPointer(pUserData)
But I don't know exactly what this means. I hope I wasn't vague at all in my explanation of my problem, and I appreciate the help! Thanks a ton to everybody who responds!
I have never failed when programming. Instead I have succeeded in finding thousands of ways of crashing a computer!
Douglas A. Wright
dawrigh3@kent.edu
|
|
|
|
|
if ( MyTable )
delete []MyTable;
This code is in the DESTRUCTOR. I had a typo in my original message, but the website won't allow me to modify it.
I have never failed when programming. Instead I have succeeded in finding thousands of ways of crashing a computer!
Douglas A. Wright
dawrigh3@kent.edu
|
|
|
|