|
Thanks for the advice...
Sandip
|
|
|
|
|
g_sandipan wrote: I need to check if any mouse/key input didn't occured for a specific time period.
GetLastInputInfo[^] is useful to detect input idle time.
|
|
|
|
|
For that u need to user TIMER, on Application startup u need to start it, and if any MOUSE/key input occurred, then u need to again restart the timer.
Regards,
Sunil
|
|
|
|
|
Hi i have added a new XML file in my project . This xml file is at some other location in my project directory and i want this file to get installed in my C:\<projectname>\XML\Grid_AdditionalInfoFeature.xml. i have done changed in Installer . But while installing new build i am getting the erro specified in subject line . I have checkd the installer changes but could not able to trace. In error message i am not getting .xml extension to my file name .
Please provide comments if any...
|
|
|
|
|
I want to know which message is associted with number 131?
|
|
|
|
|
Hello VCD,
Could you please elaborate your question? which message do you mean?
Error Message or Window Message?
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
I'm talking about the window message, I want a list of all message
with respective numbers that msg Q uses? when I'm debugging I'm getting
only numbers I want the message name too.
|
|
|
|
|
VCD_A wrote: when I'm debugging I'm getting
only numbers I want the message name too.
Typing @eax,wm into debugger watch window helps sometimes!
|
|
|
|
|
The value which you have given 131, if it is in Decimal format, the HEX equivalent of that is 0x0083, and its stands for WM_NCCALCSIZE message.
You can check below link for more details:
http://msdn.microsoft.com/en-us/library/ms632634(VS.85).aspx#[^]
Regards
|
|
|
|
|
would you plz tell me how did you know that this message is associated with 131 number?
|
|
|
|
|
First let me know, the value 131, which u have given in Decimal format or HEX format.
|
|
|
|
|
Linkety[^]
But that's for Winuser.h .. You should know on what context you are searching that number and search in the corresponding .h file.
If it's an error constant, there's one:Check here[^]
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
You can get all Windows message values in WinUser.h file, in your include directory
|
|
|
|
|
VCD_A wrote: I want to know which message is associted with number 131?
"Abort, retry, ignore?"
|
|
|
|
|
HI,
Suppose if i create a Class object dynamically using a stack pointer should i delete the pointer bcos as it is a stack pointer it gets freed at the end of the function...
and what happens to the object created on the heap...(will it be deleted...)?
Please correct me if im wrong...
|
|
|
|
|
p_1960 wrote: Suppose if i create a Class object dynamically using a stack pointer
You cannot do that.
You may allocate dynamically 'objects' (i.e. memory) only using the heap (and yes, you've to perform yourself the cleanup, deleting heap allocated memory).
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
In fact the rule is extremly simple: if you create an object using new, you should remove it by calling delete (one delete for one new), the same with new[] and delete[]. For the rest, you don't have to care.
If your object was created on the stack, you can't delete it but the destructor will still be called.
|
|
|
|
|
There are two things, a pointer variable getting created in the stack and an object getting created in the heap. When you simply create a pointer, there's no need to delete it. Of course you shouldn't. Also even if you make it point to a heap,(That you allocate using "new",you need to delete the original heap manually only not all pointers pointing to it. Also remember, when you delete the duplicate pointer, it actually deletes the object in the heap.
An example for you :
void main()
{
int* pInt = new int(100);
{
int* pX = pInt;
}
delete pInt;
pInt=NULL;
}
Another example, If both the pointer remains in the same scope:
int* pX = new int(100);
int* pY = pX;
delete Px;
Px=NULL;
pY=NULL;
So you get the difference between an empty pointer and original one that points to heap?
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
i want to make a movie player for mov mpeg swf file format with visual c++ 6.0
i'm so confused how can it play?
thx for help
|
|
|
|
|
How are you doing it? To play flash you need to use the flash component, and query for it's interface. Once it's done, the operations are simple. It would look something like :
pObj->LoadMovie(0,"C:\myflashmovie.swf");
pObj->Play();
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
I cant use of your code it shows me: cannot convert from 'const char [9]' to 'LPCTSTR',is it possible to change your code?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
That was pseudo code. Here comes the real : Clicky[^]
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
where i can find the component and that query
please...
i just like a new born baby in vc++ 6.0
i dont want to use activeX controls..
|
|
|
|
|
dimasfitria wrote: i dont want to use activeX controls..
Any particular reason to do that ?
So, you mean that you prefer to write a full flash player yourself ? Good luck with that...
|
|
|
|
|
i'm confuse..
i have a job to make a video player which is can play the mov mpeg n swf format
my friend says, if i use the activeX control such as shockwave flash object it's so hard when compiling..
because this application must had run in any windows computer
can help me to give me some advice for my job..
thx..
|
|
|
|