|
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..
|
|
|
|
|
It depends to you if you want to write yourself its not easy work you need to detail fo these formats but for mpeg files you can use of MCI functions tht they can play avi,mepg,mp3,wav... and I think wmv(not sure) for swf/mov you can use of a library(search on the net).
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 )
|
|
|
|
|
mm...yes i know about mci functions
its source in codeproject,isn't it?
do you know site where i can find the library
hehe...
i try it but still not found
thx for your help friend...
|
|
|
|
|
Yes codeproject has articles about mci functions.
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 )
|
|
|
|
|
You can do one thing.
1. Right click on your dialog
2. Insert ActiveX control
3. Choose ShockWave Flash object
4. Right click on the inserted control then "Add variable".
5. Enter the variable name, close.
You will find a class getting created for the flash object. Now you can start using it like any other object.
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
|
|
|
|
|
Okay, I just tried it for you: As I said in my initial post,
m_cFlash.LoadMovie(0,_T("C:\\files\\About.swf"));
m_cFlash.Play();
Follow those 6 steps I mention in my previous post and try the above code.Works for me.
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
|
|
|
|
|
|
Application = Process = Program in execution. Or in short your .exe.
"Application Directory" means your executable's directory.
In a subfolder in the application's folder. The subfolder must have the same name as the assembly.
So , you need to create a sub folder in your .exe's folder in the name of your assembly. They mean it.
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
|
|
|
|
|
There is a embedded manifest in dll too, if a dll's embedded manifest referring a specific version of crt, which you want to redirect( in my situation, it's necessary).
And How can you manage to do it with application configure files?
see here:
http://msdn.microsoft.com/en-us/library/aa375667(VS.85).aspx
|
|
|
|
|
InvokeStock()!! (C) SD
Wrong forum. You should post your questions here :
C#[^]
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
|
|
|
|
|