|
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
|
|
|
|
|
|
So which language are you using for dotnet? CLI?
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
|
|
|
|
|
|
Hi,
Can I override DefWindowPro() in my MFC application, plz give me hint or steps to do this.
modified on Monday, March 16, 2009 4:49 AM
|
|
|
|
|
I'm sure you mean override.
The signature of the DefWindowProc function of the CWnd class is as follows
virtual LRESULT DefWindowProc(
UINT message,
WPARAM wParam,
LPARAM lParam
);
So you simply create a function with the same name in your class that is derived from CWnd .
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Overwrite?
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 )
|
|
|
|
|
Btw, why would someone need to intercept DefWindowPro() ?
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
|
|
|
|
|
when i use connect() fuction. I got a WASENOBUFS error,but when i restart computer,the application works.after a while the errors again.
MSDN says there is not enough buffer.but how to solve the problem?
thanks
|
|
|
|
|
See here[^].
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 )
|
|
|
|
|
the solution you gave me says that too many applications are running on my computer,but there is not so many applications on my computer.
so how to solve this?
|
|
|
|