|
Raistlfiren wrote: So was that right for me assuming that AVIfile is part of C# and not part of VC++?
No
Jesus Loves <marquee direction="up" height="40" scrolldelay="1" step="1" scrollamount="1" style="background:#aabbcc;border-bottom:thin solid 1px #6699cc">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
Oh really... How do I include AVIfile then in my program to use its functions?
|
|
|
|
|
|
|
Im sorry I understand what you mean about having a resource file and all, but I dont understand how to add it in there. As you can see Im still right now trying to learn more about the language on my own and Im having some trouble. I can find all of the functions for MCIWND and AVIFile, but the thing is Im right now just trying to figure out how ot use those functions in my own program. Is there a site you are actually looking this up or is this just personal knowledge? I have seen these two sites that look like they might be useful, but Im not sure :
http://docs.rinet.ru/VidimyyC/vcu37fi.htm#I18[http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_mciwnd_reference.asp[^]href="http://docs.rinet.ru/VidimyyC/vcu37fi.htm#I18" target="_blank" rel="nofollow" title="New Window">^]
So could you kind of hint me as to how I would go about adding that to my resources file in my program and a little bit about how to use some of the functions of that library....
Oh yes might I also add that I am tearing down the one windows program on this site already to figure out more about the AVI functions and all of MCIwnd!
Thanks,
Rat
-- modified at 12:47 Friday 20th January, 2006
|
|
|
|
|
|
Yeah I believe I lost you at Owner drawn wrote: Add a member variable for this control.
hahahaha... It looks like I may have to just mess around with VC++ a little bit more, then I will probably understand a little bit more than what I did before. Im sorry to have wasted all your time on this, but I'm at one of those stages that I want to jump right into it, but my code structure is horrible, let alone knowing what I am doing. I just really don't what to look at reference books and information on C++, I just want to do it now! Well seeing as though I am lost at the moment, as to what to really study and get better at, I guess I will just have to hit the books again. Maybe I will mainly just work on C programming and forget about C++ at this time... Hmmm... Oh well, anyway thanks for all of your hlp again! It was great and I appreciate your time you have put in it.
Rat
-- modified at 0:19 Monday 23rd January, 2006
|
|
|
|
|
|
I don't understand any think
On my PC where I write my program, I print without problem
But when I go on another pC with my exe file with my database I don't print with the same USB Printer.
But when I print Help that I build on my problem I print.
What's wrong ?
To print I use dc.TEXTOUT fonction( dc is CDC)
I am using not view capabilities.
This is what I write:
DWORD dwFlags = PD_ALLPAGES ;
CWnd *pParent = this;
CPrintDialog printdlg(true, dwFlags,pParent);
if(printdlg.DoModal() == IDCANCEL)
return;
DEVMODE *MyPrintMode;
// MyPrintMode = NULL;
MyPrintMode = printdlg.GetDevMode();
dc.CreateDC(printdlg.GetDriverName(), // Ignored for Printer DC's
printdlg.GetDeviceName(), // The only required item for Printer DC's
printdlg.GetPortName(), // Ignored for Printer DC's
MyPrintMode);
DOCINFO docinfo;
::memset(&docinfo,0,sizeof(docinfo));
docinfo.cbSize = sizeof(docinfo);
docinfo.lpszDocName = _T("Followup");
bool bprintingOK = dc.StartDoc(&docinfo);
CPrintInfo Info;
CRect Myrea;
// fixed margin in inches
Myrea = UserPAge(&dc, 0.9f);
Info.m_rectDraw.SetRect(Myrea.left,
Myrea.top ,
Myrea.right,
Myrea.bottom );
if (bprintingOK < 0)
{
AfxMessageBox("L'Imprimante n'est pas initialisée");
}
else
{
if (dc.StartPage()<0)
{
AfxMessageBox(" Ne peut démarrer la page");
dc.AbortDoc();
}
else
{
/* memBMP.CreateCompatibleBitmap(&dc,500,400);
pOldBMP = memoriDC.SelectObject (&memBMP);
memoriDC.SetBkMode(TRANSPARENT);
memoriDC.SetTextColor(RGB(0,0,0));
memoriDC.PatBlt(0,0,500,400,WHITENESS);
int iPointz = 100;
CFont fnt;
fnt.CreatePointFont(iPointz, "OCR A",&memoriDC);
pOldFnt = memoriDC.SelectObject (&fnt);
memoriDC.TextOut(5,150,_T("MIKOBI"));
*/
dc.SetMapMode(MM_TEXT);
dc.GetTextMetrics(&tm);
nHeight = tm.tmHeight + tm.tmExternalLeading ;
hauteur = nHeight;
int N = 1;
CString s7( '-', 92);
numpage.Format("%d",N);
Entete(&dc,&Info,titre);
int k = 30;
int l = 4;
dc.TextOut(Info.m_rectDraw.left ,Info.m_rectDraw.top + l*hauteur , s7);
l += 1;
-- modified at 1:51 Thursday 19th January, 2006
|
|
|
|
|
I want to give you some precision,
The printing is sended to the printer, I see it in the Spool but the file is not printed.
My workstation where I print has Windows 98 system, where I go to print it is Windows XP,
Why in windows 98 I print but In Xp I can'nt with the same code
I learn my self
|
|
|
|
|
I have found some thing new,
When I print with defaults (printdlg.defaults())parameters, the output is printing but the horizontal lignes are shorted with the same number of caracters (-) but it is small. From my PC this caracter(-)is little big.
What to do so to have the same size anywhere
|
|
|
|
|
Hi,
I'm looking for a way to encode frames taken from a camera and encoding them using the MPEG4 algorithm for a school project
Is there any place that teaches the method on how to do this
Thanks
|
|
|
|
|
e.g:
class DerivedClass:BaseClass
{
void functionInDerivedClassOnly();
}
BaseClass pBaseClass = new BaseClass();
(DerivedClass*)pBaseClass->functionInDerivedClassOnly();
delete pBaseClass;
Thank you very much!!!
-------------------
I am learning C++ and English
|
|
|
|
|
In general no. In the code above the compiler will go ahead and treat pBaseClass as a DerivedClass but unless it really is one you're asking for trouble.
Steve
|
|
|
|
|
your answer is similar with my guess.
but is there any way to implement the dynamical conversion from the base class object to a derived one.
if not ,I would have to delete the base class object and recreate a derived one with the new operator. in this case I can't see the benefit of the inheritance, can I?
Thank you very much!!!
-------------------
I am learning C++ and English
|
|
|
|
|
You could write a constructor in the derived type that takes a reference to the base type. Why do you need to do this? It is not something that one finds he has to do often in OO code. Typically the situation is that you create a derived type but talk to it using a base class interface.
Steve
|
|
|
|
|
Maybe we can help you if you describe clearly what you need to do
|
|
|
|
|
Thank you guys, I finally understand it with your help.
Only if it "is" actually the "specified type" in the memory can you convert it into the "specified type" .
I have thought through and figure that maybe my problem dose be a complicated one and I can't find a short cut for it .
Thank you very much, again!!!
-------------------
I am learning C++ and English
|
|
|
|
|
Score: 1.8 (2 votes).
How are the scores calculated? Obviously not an average as 3.6 (2x1.8) can't be obtained by adding 2 scores.
Steve
|
|
|
|
|
I have no idea what happened, either. I remember I voted for to 4 or 5.
could someone in charge of this explain the problem?
Thank you very much!!!
-------------------
I am learning C++ and English
|
|
|
|
|
the scores are ponderated with the level of the members...
- a bronze member votes for 1 voice
- a silver member votes for 2 voices
- a gold member votes for 4 voices
- a platinum member votes for 8 voices
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
|
|
|
|
|
|
|
ewighell wrote: BaseClass pBaseClass = new BaseClass();
replace with
BaseClass pBaseClass = new DerivedClass();
that's what polymorphism was designed for !
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
-- modified at 3:46 Thursday 19th January, 2006
|
|
|
|
|
just by casting the baseclass pointer to derived class pointer does not make the object that was created i.e. baseclass into a dereived class.
Its just like calling Donkey a dog does not make donkey to bark .
so you can do this.
BaseClass* pBaseClass = new DerivedClass();<br />
<br />
((DerivedClass*)pBaseClass)->functionInDerivedClassOnly();
or use reinterpret_cast
-Prakash
|
|
|
|