|
It should be added that
a/ CArray is an array class, and CList is a linked list
b/ unlike STL, if you use MFC container classes you'll need to write al your own algorithms for sorting, partitioning, shuffling, etc.
c/ This guy is really struggling with an assignment and he's not allowed to use std::string, let alone crappy MFC classes.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Picture the daffodil. And while you do that, I'll be over here going through your stuff.
|
|
|
|
|
Hi,
Is there anyway to get back the proper cpp file which is been corrupted?.I have the .obj file also,is it possible to get the .cpp file from .obj file.
Could anyone pl help me...
|
|
|
|
|
No, it is not. I should think not, anyway.
If it is a debug version then you might be able to extract some of the code, but mostly it will be garbled.
Since it's not a proper exe, you cant even disassemble it which would in any way have given you only an asm version.
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
It was in a debug version.i could extract some code.not completely.I have the proper exe of my application.how can i go about to get atleast the asm version.
|
|
|
|
|
If you have the .exe of your app then you can use a disassembler to get the asm version (however IMO I do not know how much of use is this). You can try using one of the best disassembler's, URSoft's W32Dasm v8.93.
If your exe is debug release then you will get as is asm i.e. without any optimizations like entire code knockout's.
Atul
Sonork ID : 100.13714 netdiva
|
|
|
|
|
Hi,
I've been banging my head against the wall for hours because of this one. I have figured out how to draw a minimize button, using the WP_MINBUTTON part id and Theme->DrawBackground(). Now this only draws the button as it should look when the app is in focus, but what about when the app is not in focus? I haven't been able to find any way to do this anywhere in the docs. Any ideas?
Here's my code:
(note that this is using the theme wrapper class from the article http://www.codeproject.com/useritems/themewrapper.asp)
Theme = new cTheme(GetSafeHwnd(), L"WINDOW");
....
int stateId = MINBS_NORMAL;
if(IsPressed())
{
stateId = MINBS_PUSHED;
}
else if(IsHot())
{
stateId = MINBS_HOT;
}
else
{
stateId = MINBS_NORMAL;
}
if(Theme)
{
Theme->DrawBackground(Dc.m_hDC, WP_MINBUTTON, stateId, &ClientRect,
NULL);
}
else
{
// Original painting.
}
Thanks!
swinefeaster
Check out Aephid Photokeeper, the powerful digital
photo album solution at www.aephid.com.
|
|
|
|
|
I have CRichEditView,I want ONLY when I press ENTER ,it goes to new line,and I want it to scroll as long as I want
I test 'SetWordWrapMode'but MSDN said it only work for asian language,I also test this but it does not wotk:
GetRichEditCtrl().SetOptions(ECOOP_SET, ECO_AUTOHSCROLL |
ECO_WANTRETURN | ECO_AUTOVSCROLL);
WORDPAD sample in MSDN does it but I can't figure out how it does it?
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
Hi,
I have written an application.In that i want to modify the the combobox item dynamically.I just want to update the existing value ,i don't want to enter any extra value.
Can anyone tell me how can i do that?
Regards
Neha
|
|
|
|
|
You'll need to implement your own ModifyString() using InsertString() and DeleteString(). You can modify an item's data using SetItemData() and SetItemDataPtr().
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Thanks for the reply.
I was searching about replacing in a single step.
Thanks
Neha
|
|
|
|
|
You'll need to delete the old string and insert a new one at the same index. There isn't a message for replacing a string in one step.
--Mike--
"Everyone has figured out what 'service pack' really means, so they had to go and change the language. Perhaps this is what Bill was talking about in the 'security is top priority' letter."
-- Daniel Ferguson, 1/31/2002
My really out-of-date homepage
Sonork - 100.10414 AcidHelm
Big fan of Alyson Hannigan.
|
|
|
|
|
|
The previous posters answered the question but here is one little tip : you can send a WM_SETREDRAW message to the control to tell it NOT to redraw itself while you do the update, followed by another message to enable redraws. If you have a large number of data items in the combo box this will improve the appearance of the update quite a bit.
|
|
|
|
|
It is really a nice tip.Thanks for that.
Neha
|
|
|
|
|
Constructors and destructors will NOT inline in debug mode huh...?
I have viewed my code in the disassembly window and it appears you can't does this, or I am i missing something...?
tried __forceinline but that didn't work either..
Thanx again
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Why do you want to ?
The standard states you are only allowed to *suggest* your compiler inline code, it is always free to ignore you.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Picture the daffodil. And while you do that, I'll be over here going through your stuff.
|
|
|
|
|
Inlining is disabled in debug mode. Makes it much easier to debug these inline routines.
Tim Smith
Descartes Systems Sciences, Inc.
|
|
|
|
|
Tis what i was afraid of...
Thanx
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
I am working on an MFC SDI application. The Main View is a CListView,with the CDoc holding a list with the root data for the view. The View is initialized to 7 columns and report mode in OnInitialUpdate, and the items are modified in OnUpdate. This works fine so far.
The problem is that when a saved file is loaded, although the data is correctly loaded into place in both CDoc and in the View (OnUpdate does execute), Only the first column displays. When another item is then added to the data, causing another call to OnUpdate, the full list (including the loaded data) displays correctly.
Why would this happen?
Thanks in advance
WJ
|
|
|
|
|
How can I install a driver for a hardware in my VC program?
thanks again!
|
|
|
|
|
You should talk with Service Manager. See OpenSCManager, CreateService. Site http://www.sysinternals.com/ contains number of programs with source code that do this, for example, RegMon.
|
|
|
|
|
I don't want to install a NT service,but a hardware driver!
|
|
|
|
|
The same functions work with drivers. See, for example, dwStartType parameter of CreateService - it's SERVICE_BOOT_START value is used for drivers.
|
|
|
|
|
But How can I install a hardware driver on Win98?
you know,Win98 does not have any service!
|
|
|
|
|
I am trying to develop a prototype that will display text the following way:
Help Me!
e......e
l......M
p.......
.......p
M......l
e......e
!......H
Help Me!
*Note- Dots represent spaces.
Can anyone provide any suggestions? I beleive that a prototype names such as ShowTop, ShowSides and ShowBottom would work, but I just can't figure the logic for sides.
Thanks,
Brad
"If you fell sad about your life, just go to the mall"
|
|
|
|