|
y did u delete the message?
|
|
|
|
|
may be he thought that since he got his answer he should delete the message :P
-Prakash
|
|
|
|
|
vamshin wrote: y did u delete the message?
he don't want to share this info with other
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Got lost
Jesus Loves You and Me <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
Why one WM_CHAR is hooked twice when install a WH_GETMESSAGE hook?
|
|
|
|
|
Could be one for your thread and one for the system.
Hence two.
Jesus Loves You and Me <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
I have a question of the *.bmp of the clipboard.
I want to attain the Gray value of the *.bmp in clipboard.but I fail!How to get the Gray value?
help me,please! thank you very much!
greenapplezlp
-- modified at 3:00 Thursday 29th December, 2005
|
|
|
|
|
You can simply use the below formula
Gray = (r*11 + g*16 + b*5)/32.
Get every Pixel and set it colors with the help of this formula.
I hope u get the basic !!!
|
|
|
|
|
Well I am a little confused with naming jargon of casting.
My intended goal was:
CBase* pBase = static_cast<CBase*>(derived);
What is it called upcasting/downcasting ?
The below articles says it is upcasting:
http:
While in MSDN they interpret as downcasting:
http:
Which one is correct ?
-- modified at 2:44 Thursday 29th December, 2005
|
|
|
|
|
Look at the class-hierarchy as an upside-down piramide.
When you cast to a base-class you cast down in the hierarchy -> downcast
When you cast to a derived class you cast up in the hierarchy -> upcast.
Hope this clears it up somewhat for you...
Greetz,
Davy
|
|
|
|
|
GDavy wrote: Look at the class-hierarchy as an upside-down piramide.
I agree with that, but different ppl should not have different way of representing a inheritance.
base
^
|
Derived
Microsoft always follows this notation in their documentation, so upcasting should have been the rite notation to use.
-Prakash
|
|
|
|
|
Mr.Prakash wrote: base
^
|
Derived
Microsoft always follows this notation in their documentation
yeah, you're right about that. I think the people writing those documents had problems with the concept of an upside-down piramide.
But I still have to disagree with your definition of down-cast / up-cast...
Here's another analogy (a better one perhaps?)->look at it as a tree (but only the part from the ground and up, skip the roots);).
the base-class is the trunk and all derived classes are the branches. Like a family tree.
I see an up-cast as an upgrade -> extra functionality, more specific so from base to derived class.
a down-cast is down-grade-> less functionality, more general handling so from derived to base class.
|
|
|
|
|
GDavy wrote: Here's another analogy (a better one perhaps?)->look at it as a tree (but only the part from the ground and up, skip the roots).
the base-class is the trunk and all derived classes are the branches. Like a family tree.
I agree with your analogy, but microsoft should follow the standard notation used for derivation IMHO
-Prakash
|
|
|
|
|
I guess the msdn documentation is wrong.
upcasting - derived to base
downcasting - base to derived
-Prakash
|
|
|
|
|
Software have BUG
whycant MSDN
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Let me mention the MSDN have not explicitly called it downcasting or even upcasting. Its the name STATIC_DOWNCAST which I thought implies downcasting but its for upcasting. So plz ppl dont get confused nor blame/curse MSDN. It may/may not be my fault or my understanding's fault. But one thing is clear the name jargon of STATIC_DOWNCAST for upcasting produces confusion.
Best Regards,
|
|
|
|
|
No problme Mr Khan
u have a soft corner for MSDN
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
abhi ghalti tow insaan say he hoti haina
Best Regards
|
|
|
|
|
Ibraheem Khan wrote: abhi ghalti tow insaan say he hoti haina
no Hindi please
-Prakash
|
|
|
|
|
Read the documentation properly.
STATIC_DOWNCAST(class_name, pobject )
pobject must either be NULL, or point to an object of a class which is derived directly, or indirectly, from class_name.
So they are refering to upcasting but they have documented it as downcast but then i could not find a STATIC_UPCAST macro either.
and also this macro is part of the MFC framework.
-Prakash
|
|
|
|
|
What I know upcasting downcasting is related to dynamic_cast
not static_cast for this at least one virtual function must be present
never say die
|
|
|
|
|
This project is being specifically developed to facilitate easy collaboration within workgroup which provides improved and fast backup and recovery facility.
The objective of the software is to provide a platform to the people working at different locations but on a single project. This software will enable them to maintain a log file of all the files being viewed at every computer. These files along with the log file are then copied to the required destination. Hence in this way the users can keep in touch with each other’s activity and the overall progress.
The software will help in keeping track of the files visited during a day. In this way one can keep track of all the work done
The main functionality of the system is to provide the backup facility and recovery procedure for highly reliable and maintainable systems. Moreover, using the system a user can keep track of all the files that have been visited per day. Also the user can take the backup of the desired files using any portable media and provide the recovery of files in case of system/disk crash.
please tell me any solution. i am clear with the functinality. i want to know the MFC commands to go through this application. please help me and reply as soon as possible.
RabiaAslam
|
|
|
|
|
Are those project files at one location? or are they copied to all systems? In both cases, a program will run on the PC where they files are located, and it will keep reading any changes to the files in the desired directory, like new file creation, file modification (date/time changes), deletion etc, and write to a log file. Then when the time comes to backup the files, the program can read-back the log in, and tell you what files have been modified and when, so you can take backups etc.
this is this.
|
|
|
|
|
ok, third time in 24 hours ...
First, no one will give you a definitive answer to what you are asking, this look like s a HUGE project, and no single API exists for that, either MFC, win32 or other APIs.
Second, you should scope down the project to a sandbox type of environment, not keep track of ALL files on ALL computers, this is way overkill; and who cares ( In my opinion ) what files are viewed on someone else's computer, normally, only modified ( created, modified, renamed, deleted ) files are logged and be candidate to be transfered to other systems; only work on a specific folder, or a project type sandbox ( for example a VS project )
Third, you will need to implement a kind of Peer-2-Peer system, that will replicate data across different systems.
Have a look at what the groove system is doing ( www.groove.net ).
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
You can use system wide hooks and trap the messages of the opening a file. You can know the user name using simple APIs. But I am afraid no one will help in a detail what u are requesting.
For recovering data procedure, understand the windows file system probably and implement ur own algoirthms for retreiving lost pointers.
You can look abt hooks on the following link:-
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/hooks.asp
Best Regards,
|
|
|
|