|
Thank you !
This guides to my next question: What is with conflicts in different resource-files.
|
|
|
|
|
Hi.... I have created a SDI Application. I want a Dialog to be appeared on the top of the Document. Can anybody help me out?
|
|
|
|
|
have you tried something yet ?
is CDialog::DoModal() of any help ?
|
|
|
|
|
Hi All,
I'm looking for an unmanaged memory profiler which *also* tracks pages (to the page file). Is there such a product?
Jeff
|
|
|
|
|
Perfmon? :P
Peace!
-=- James Please rate this message - let me know if I helped or not!<hr></hr> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Sorry Wrong Line
Bram van Kampen
|
|
|
|
|
What do you mean 'Unmanaged Memory'? Is that the stuff you forgot to free before you lost the pointer?
Bram van Kampen
|
|
|
|
|
Bram van Kampen wrote: Is that the stuff you forgot to free before you lost the pointer?
If I could have voted 6, I would have (there's no bug in the new site to exploit in votiong twice either
I want watch a particular chunk of memory. Specifically, I need to know if a block obtained from AWE extensions is being paged out. I also want to compare overall paging (without AWE extension acquired) with the page I am trying to lock into memory.
Jeff
|
|
|
|
|
Jeffrey Walton wrote: Specifically, I need to know if a block obtained from AWE extensions is being paged out.
That's easy to answer. It can't be. Memory gained from AWE extensions is mapped directly into your process address space and is no longer managed by the OS.
DoEvents : Generating unexpected recursion since 1991
|
|
|
|
|
Hi Mike,
Mike Dimmick wrote: That's easy to answer. It can't be.
I think I have to break down and use Windgb or cdb. I was trying to avoid it, sice I don't know any of the MM command. Yuk...
|
|
|
|
|
Hmm
Sounds as if you want to do some very very low level tracking, and monitoring at OS Level. Also sounds like heavy stuff, like intercepting at OS Level, and surrepticiously maintaining the Intercept link. Matt Pietreck and 'SoftIce' would be where I would start my research on this.
It also occurs to me that it is one of those things one is not supposed to do, meaning that:-
1: Your Compiler/OS combination has an alternative method to achieve your ultimate goal.
2: If you are successful, and rely on what you develop this way, Whatever resulting code you may arrive at, is NOT guaranteed to work at any configuration other than your own. So, if you ship your code, you have a built in time bomb, because the chances are that at some time in future, on some of your clients machine, things will work out ever so slightly different, and come to grief.
I Strongly suggest that you re-design your code in such a way so that the question you ask does not arrise. DOS ran away with all of us, because it was so easy to modify and extend. Everybody had a go at any aspect they did not like. Win32 is different. It has a larger mission, the OS provides documented services, which allow code to run on diverse platforms, often from Win95 to Vista.
In Short, Tinkering inside the OS Calls is not the way to develop code!
Regards
Bram van Kampen
|
|
|
|
|
Hi Bram,
Bram van Kampen wrote: re-design your code in such a way so that the question you ask does not arrise.
This is kind of tough. I'm working to extend Crypto++'s secure allocator. At this point, the Crypto++ allocator zeros memory. But the memory can be paged out. In my minds eye, the next step is a secure heap with no paging. The secure heap is easy enough through AWE extensions.
However, verifying correctness is more difficult. I've begun assembling tools. WinDbg or cdb (SoftICE is no longer around), a raw disk editor, etc.
Bram van Kampen wrote: ... tinkering inside the OS Calls is not the way to develop code!
Pietrek does it all the time to develop an understanding of undocumented behavior
Jeff
|
|
|
|
|
That's Fine, Yo go that way, that's your project! Just do not be surprised if it refuses to run on any other machine other than your own!
I now understand where you come from. You are trying to implement a security system and to match it with the WindowsOS security system. The Bottom Line is: No Chance. Known Criminals in Northern Ireland have escaped prosecution, because the assembled forces of MI5, and GCHQ had to give up after five years of trying to decript MS encripted disks.
Microsoft is unlikely to give up it's market advantage it got in the european market by employing their proprietary encription mechanism.
Microsoft in Europe uses a Swiss encription algoritm, Invented in Switzerland, and which is much stronger than the American version but not subject to American export controls. (It did not Orriginate in the USA).
You appear to be intend on designing some encription taking place at base level. (i.e. Page Saving) Unfortunately, you'll have to write your own Encription/Decription, and it appears that you will have to write your own Device Managers to Implement the code. This is a Very Hard One to do, even at just your own computer! Unless you proceed very very Carefully. e.g. After you install the Encription/Decription handler, Unless it is able to establish which file is stored encripted, you may loose your entire disk!!
Believe me, I've been there. After you make it work at your own computer, you now want to makle it run on your customers'computers. This typically comprises of a mottly crew ranging from ancient Win95 Machines, NT, Win2000, etc, each updated to their service packs,
This was my Long Answer.
My Short Answer is:
Merry XMas, I Wish you Luck.
Regards
Bram van Kampen
|
|
|
|
|
Hi ALL,
I am using property page in my project. In Property page class i used pagePAth object of CStringArray class. I store paths in pagePath object. Now I want to retreive paths by using pagePAth object in CMyView class which is derived from CView class. I am unable to acces pahePAth object in CMyView class. Please send me solution if u have.
Thanks in Advance
am
hi
|
|
|
|
|
You may:
(1) declare it public .
(2) make a public accessor method to it.
(3) change is scope (relocate it and make it available to both classes).
(4) ...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Does CMyView own (i.e., bring up) the property sheet? If so, make pagePAth a member of CMyView . Then when you construct the property sheet, pass it a pointer to pagePAth .
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
See the problem an other way: Your CStringArray in the wrong scope (class).
It belongs to a place where both can see it. A common parent or prefer a settings object.
Greetings from Germany
|
|
|
|
|
Atul23 wrote: I am unable to acces pahePAth object in CMyView class.
What Exactly happens! How do you try to Access it. As a Member Variable?, or how else;
What do you get? a Compiler Error or garbage Data?
regards
Bram van Kampen
|
|
|
|
|
Hi, I'm trying to start using VC++2005 instead of an VC++6.0.
I'm trying to write a small application where I added some files (.cpp and .h) from VC++ 6.0 applications and reuse them!
When I tried to compile I've got all this errors and warnings about using new functions types (secured ones...).
But conversation of typs is what I cant deal with. E.g.: in my code line
"Column.pszText=bfields[i].label;", 'Column' is LV_COLUMN and 'label' is char*.
At first error about conversion(error C2440: '=' : cannot convert from 'char *' to 'LPWSTR') I added '(LPWSTR)': "Column.pszText=(LPWSTR)bfields[i].label;" it compiled ok but at run time this didn't put label I provided but some squares! Why? When I place brake_point on this line I noticed this is not working right. Instead of placing a text 'Id' it placed several odd looking squares.
I think the conversion is bad, how to fix this?
Thanks
|
|
|
|
|
Your problem arises because VC++6.0 default builds were ANSI while VC++2005 ones are UNICODE. You can fix it either:
(1) Changing the project properties to make an ANSI build (i.e. modifying the character set property). This way you'll obtain a buld close to the old VC++6 one.
(2) Modifying you code to be UNICODE (or, better, generic text mapping) compliant. Maybe a major effort, maybe it is worthy. You must be careful though. For instance you cannot simply cast character arrays, as you've done in the following sample:
josip cagalj wrote: Column.pszText=(LPWSTR)bfields[i].label;
It is a bad mistake.
You can either dinamically convert ANSI strings to UNICODE ones (see, for instance [^]) or simply replace ANSI data with UNICODE counterpart or, better, generic ones (i.e. TCHAR instead of char, T_("foo") instead of "foo" and so on.. ).
Hope that helps
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
You were right, I set Character set to 'Use Multi-Byte Character Set' at project properties, project defaults.
It compiled fine and everything works ok.
Next thing I tried is to connect to mysql database. With VC++6 all i needed is to add 'libmysql.lib' (under Object\library modules) and specified lib path (under Additional library path). In VC2005 I can find where to place lib path(under 'Additional Library Directories' in project properties in 'Linker->General'), but where to insert 'libmysql.lib'?
P.S.
I also incude "mysql.h":
#include "d:/msdev/mysql/mysql.h"<br />
<code />
|
|
|
|
|
josip cagalj wrote: but where to insert 'libmysql.lib'
Into (Project Properties) Linker->Command Line, Additional Options text box.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Warnings tell me to: "To disable deprecation, use _CRT_SECURE_NO_WARNINGS." How can I use this? (#define or #using...)
Thanks!
|
|
|
|
|
Yes, you may do:
#define _CRT_SECURE_NO_WARNINGS
or use the compiler /D _CRT_SECURE_NO_WARNINGS option.
Anyway have a look at http://msdn2.microsoft.com/en-us/library/8ef0s5kh(VS.80).aspx[^]
before doing so.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
When I:
#define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1
I'm getting warning:
warning C4005: '_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES' : macro redefinition.
The previous definition is in crtdefs.h(431)!
Big thanks for your help!
|
|
|
|