|
In an application I am using a CListCtrl, with a lot of text in each cell. Because I cannt see the hole text I want to make a multiline CListCtrl.
How can I do this????
Thanks for the help
Erich
|
|
|
|
|
Changing item height in CListCtrl is not supported by control behaviour. But there is an indirect method of doing so. For this, first of all, set the font of your control to a big size (depending on how many lines per item you need), subclass your control to handle custom draw notification messages, and paint list items yourself. That is the only way according to me.
Gurmeet BTW, can Google help me search my lost pajamas?
My Articles: HTML Reader C++ Class Library, Numeric Edit Control
|
|
|
|
|
Hi guys
Any one knows hoe to recover deleted files in windows
I don't want any tool. i want code which can do it.
pls help me if any one knows
cheers
Krishnadevan
KD
|
|
|
|
|
krishnadevank wrote:
Any one knows hoe to recover deleted files...
Do you mean a file that is in the Recycle Bin, or a file that is truly deleted?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I don't know if that's what the original post was asking, but I'd like to know how it can be done with a truly deleted file
If it's broken, I probably did it
bdiamond
|
|
|
|
|
i don't know either, but what did the old undelete MS program ?
TOXCCT >>> GEII power
|
|
|
|
|
I don't understand what you're saying
If it's broken, I probably did it
bdiamond
|
|
|
|
|
in the old age of MS-DOS, there was a utility program called undelete.exe.
How do you think it was working ?
TOXCCT >>> GEII power
|
|
|
|
|
It was a glorified rename utility. When a file was deleted in DOS, the first letter of the filename was changed to 0xe5. Then the marker in the FAT was flagged as "available."
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
bdiamond wrote:
I don't know if that's what the original post was asking...
Me neither, hence my question.
bdiamond wrote:
but I'd like to know how it can be done with a truly deleted file
I've not written code to undelete files since before Windows was introduced. Given the many file systems that are available today, the way it was done back in the late 80s is no doubt different than how it is done today.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Hai friends
I mean that i u delete a file in windows it first goes to recycle bin. if u further delete it it goes.. But i think it does not goes any ware instead it is removed from the file table..
i heared that some utility did it.. Nortan had released a utility for file recovery . did u know it.
i like to do it .. that i ask any knows..
i think now what i earlier said is clear
krishnadk
|
|
|
|
|
you would have to browse the entiere part of the FS on the hard disk to check the deleted file.
you would also have to watch if some sectors were your deleted file was, hadn'd been overwritten by another more recent file.
no more idea... but that's quite a hard task to do !
TOXCCT >>> GEII power
|
|
|
|
|
Can u give me some site address which provide some information related to this ? It is very useful . I found yesterday that it can be done using driver programs.
krishnadk
|
|
|
|
|
to reply to your mail, no, i've got absolutely no idea on the way to proceed to do that, but i'm quite sure it's like this.
google on this...
see you
TOXCCT >>> GEII power
|
|
|
|
|
There are dozens of utilities available that can recover files on FAT16, FAT32, and NTFS file systems. Unfortunately, I know of no source code. That is a realm of Windows that I have not delved into.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I have to Find it...
I will publish it in codeproject if i get any idea
Bye friends
krishnadk
|
|
|
|
|
Used to be in the good ole DOS days, Undelete was one option. However, in addition to renaming the first letter back to the original letter, it also did several other things:
First, the directory entry for the file also held the starting cluster number on the HD, as well as the total file size.
Then it calculated the number of clusters needed to contain the file completely (the last partial cluster was upgraded to a whole cluster).
Lastly it went through the FAT, starting with the first cluster, and started linking the required number of clusters into a chain. The odd twist in the whole thing was that the entries were 12-bits wide, so two FAT entries were coded into a three byte field, and had to be decoded accordingly.
This should explain why Undelete worked only part of the time. If you did not run it immediately after deleting a file, chances of recovering the file decreased drastically.
Now, in more modern times, we have several different File Systems, like FAT32 (well, people still use it), NTFS, and maybe HPFS. They all have their own way of tracking the sectors/clusters used by each file. From what I have seen of NTFS, the storage scheme used some sort of an index node mechanism, I was given to understand it may have been a derivative of the Digital's VAX storage architecture. Admittedly, I did not find any documentation on this. No, I did not delve as deeply into this as I did for DOS. In addition, these OSes use temp files that can't be moved physically, and so on. Plus, there are now things such as RAID and so on.
The only reason I can see you would want to muck with such low-level stuff is that you are writing a data recovery program, or you are writing a defragmentation program.
|
|
|
|
|
I would like to allow my MFC program to execute a VB script.
This script would also include command specific to my application.
Can someone point me in the right (probably COM) direction?
Neil
|
|
|
|
|
If you are wanting to execute a .vbs or .wsh file, you can use ShellExecute() .
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I think, start from Windows Script Interfaces[^] and continue from there.
You'll find Eric Lippert's blog[^] helpful as well. Eric was one of the developers on the VBScript engine.
If you want simpler scripting, consider using the Microsoft Scripting Control, msscript.ocx .
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hye,
I think we don't have any article on development of dialogic based cards???
Jigar Mehta
(jigarmehta@gatescorp.com)
Software Developer
Gates Information Systems
|
|
|
|
|
|
Trollslayer wrote:
I don't know what you mean by 'cards' but look at http://www.codeproject.com/dialog/[^]
Dialogic is a make of CTI Telephony hardware. They make cards that plug into PC's. I think this is what the guy was asking about.
Michael
CP Blog [^]
|
|
|
|
|
Jigar Mehta wrote:
I think we don't have any article on development of dialogic based cards???
No their aren't any articles on using Dialogic cards. There are a few general TAPI articles, but non on the api's used by Dialogic and the like.
Michael
CP Blog [^]
|
|
|
|
|
hi everybody
im new to the windows programming
please let me know that how can i know whether my dll is registered or not.
and how can we know that in our system which dlls are registered and which are not.
i'm confident that there are lot of people who would help me out.
thanx a lot in advance.
|
|
|
|