|
Any source code examples on how to merge multiple mpeg files or maybe a commandline utility that would do it?
|
|
|
|
|
Just use
c:\copy 1.mpeg /B + 2.mpeg /B myMpeg.mprg /B
This is the command that I merge porn mpeg clips into a mpeg "movie". Is this what you need?
|
|
|
|
|
No, I am NOT saying that you want to merge porn mpeg clips into a mpeg "movie". Nooooooooo
|
|
|
|
|
Heh. It's powervcr that's my problem. Cuts recorded mpegs to 600mb. But the problem with using copy /b is that it uses the movie length (total time) of the last mpeg. So seeking only seeks within the first part of the final mpeg.
|
|
|
|
|
Anonymous wrote:
This is the command that I merge porn mpeg clips into a mpeg "movie".
Too much information.
|
|
|
|
|
Hi!
I am trying to use CString in my project, after including the file afx.h I received the following error:"G:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afx.h(15) : fatal error C1189: #error : MFC requires C++ compilation (use a .cpp suffix)". I went to project->settings->C/C++ and I choosed "category"->precompiled headers->use precompiled headers and I added stdafx.h
I don't understand! the error is still there!
Please help!!
|
|
|
|
|
Include windows.h.
Kuphryn
|
|
|
|
|
One of the files that include afx.h has a .c or similar ending (VC++ decides whether to use it's C or C++ compiler based on the file extension).
Using CString is not as easy as just #including stdafx.h - you need to link with MFC, change compile settings, etc, and get a whole lot of dependencies.
You can either use WTL[^], which comes with a perfectly compatible CString class, or "extract" the CString class from the MFC sources (again, complicated, but there#s a Macro on CodeGuru that can do that. Lost the link though...)
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
I tried to link with MFC, change compile settings...etc but many other errors appeared...I still don't know how to convert from C to C++...beginner's problem!
Maybe I will create a dll with all the MFC functions that I'll need and I'll call them from my application.
Thanks a lot for your help.
|
|
|
|
|
I'm looking for help on how to draw a semi-circle in Visual C++. I'm trying to do an animation of the level changes in a spherical tank and the only way I can think of doing this is using two semi-circles but I can't draw seem to draw a semi-circle. I'd appreciate any suggestions!!
|
|
|
|
|
I think VC++ has functionality for drawing a portion of
an ellipse (arc). Of course a circle is just an ellipse
with eccentricity 1.
Below are two ways to draw something like what you are after.
The first draws an ellipse in a box, the 2nd draws the
(sort of) bottom half of an arc.
You could put something like this in your OnDraw() and play
around with it abit:
pDC->SetMapMode( m_nMapMode );
CRect rcClient;
GetClientRect( rcClient );
pDC->DPtoLP( rcClient );
CPoint ptCenter( rcClient.Width()/2, rcClient.Height()/2 );
CRect rcEllipse( ptCenter.x - ( m_cxEllipse/2 ),
ptCenter.y - ( m_cyEllipse/2 ),
ptCenter.x + ( m_cxEllipse/2 ),
ptCenter.y + ( m_cyEllipse/2 ) );
CPen penRed( PS_SOLID, m_nPenWidth, RGB(255,0,0) );
CPen* pOldPen = pDC->SelectObject( &penRed );
pDC->Ellipse( rcEllipse );
pDC->SelectStockObject( BLACK_PEN );
pDC->MoveTo( rcEllipse.TopLeft() );
pDC->LineTo( rcEllipse.right, rcEllipse.top );
pDC->LineTo( rcEllipse.BottomRight() );
pDC->LineTo( rcEllipse.left, rcEllipse.bottom );
pDC->LineTo( rcEllipse.left, rcEllipse.top );
CPen penDottedAndGreen( PS_DOT, 1, RGB(0,255,0) );
pDC->SelectObject( &penDottedAndGreen );
pDC->Arc(rcClient, rcClient.TopLeft(),rcClient.TopRight());
pDC->SelectObject( &pOldPen );
|
|
|
|
|
This will draw the bottom half of an ellipse. The first four points define a rectangle for the
ellipse to be in. (Make it a square for a circle.)
Lines from the centre of the ellipse to the next two points define the start & finish of the arc.
pDC->Arc (100,100,300,200,-1000,150,1000,150);
Iain.
|
|
|
|
|
Thank you........it's somewhere to start anyway. I'm trying to animate the level rising in a spherical tank. I have a file containing the values of level against time that I need. I can't think of any way to do this though! I wish my tank was rectangular and then it would be easy!
|
|
|
|
|
I am not an expert in animation, but one thing you could do is draw one
frame in memory and then paint it to the DC. Then draw the next frame in
memory, delete the current picture and then draw the frame from memory
to the DC. This may not be the most efficient way.
http://mathworld.wolfram.com/Circle-LineIntersection.html[^]
should give you a good outline of line-circle intersection.
You could use the lowest point on your circle as the coordinate origin.
|
|
|
|
|
Hi
I have aproblem using SQL Command in VC++.
example:
I have an int variable and I Want to say
_T("select * from table where n= ? ")
what should I say infront of n .
for string variable I should say say something like this
'"+x+"' but for int variable I cann't do this
Please help me
|
|
|
|
|
CString strSQL;
strSQL.Format("select * from table where %d = ?", intvalue);
This should be enough.
BD
|
|
|
|
|
I am trying to figure out how to get the version number of Access that was used to create an MDB file.
I have a need to detect if a specified MDB file was created with Access 97, or Access 2000.
I know there must be a way of detecting this, since Access can tell when it opens the file.
Just so you know, I am using ADO. I am not sure if I even use ADO to get this version number.
: Dean 'Karnatos' Michaud
|
|
|
|
|
Hy everybody!
I have a question :P
I have an object of class A, and an object of class B.
I'm tryng to declare an object (pointer) of A in B, and a object (pointer) of B in A. In my includes I have:
class A header:
#include "B.h"
class B header:
#include "A.h"
But this causes serious errors in compilation, and I need global variables.
Can anybody help me how can I do this without errors?
thanks All!
cheers!
Ricky
|
|
|
|
|
In the header of class B, place
class A;
and in the header of class A, place
class B;
for example....
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class B;
class A
{
public:
|
|
|
|
|
Hy John!
man, this doens't work
I put:
class A;
class B : public CDialog
{
...
A objA;//just for test
}
and give's me the error:
'objA' uses undefined class 'A'
thanks!
Ricky
|
|
|
|
|
Are you still including the .h file for the class?
|
|
|
|
|
|
You will need to retain the .h includes as well as the
declaration of the class.
Or, you can see Rage's post below. Both methods should work.
|
|
|
|
|
when you say "...as well as the
declaration of the class.", you're saying all the code
(functions and variables)?
thanks for the patience John, I'll try the two methods.
Ricky
|
|
|
|
|
No no. Just include the header file for class A in the .cpp file of
class B. Then in Class B's header file place "Class A;" as indicated
previously.
ie:
in B's .cpp fild, #include<classA.h>
in B's .h file, class A;
Do the same for class A.
In A's .cpp file, #include<classB.h>
in A's .h file, class B;
This should work.
|
|
|
|