|
Thank you very much!!!
-------------------
I am learning C++ and English
|
|
|
|
|
Hey,
I'm drawing a complex custom table with a lot of lines and style. All work fine up to the time i begin to scroll.
I do all my drawing in a memDC and bitblt it after drawing in my DeviceDC. I there any way to draw my table with less flickering?
Thank you for your great help...
|
|
|
|
|
Is it possible that it is an Erase-background problem?
try to use
Invalidate(FALSE) to overwrite the draws (if it is possible for you).
and try to stop the background clear overriding
....::OnEraseBkgnd(CDC *pDC){
return TRUE;
}
Bye
Have a nice code day
|
|
|
|
|
If the other suggestions do not help, your last resort is to draw just the minimum to give the impression of scrolling, and draw the lot properly when the user has finished scrolling your display. (Start a timer, reset it on every scroll, when it times out do a full redraw.)
Shraddhan
|
|
|
|
|
Does Visual Studio 2005 require activation over the Internet before it can be used, or does it just need the Registration code to be entered opon installation ?
|
|
|
|
|
PROCESS_INFORMATION ProcessInfo;
STARTUPINFO StartupInfo;
ZeroMemory(&StartupInfo, sizeof(StartupInfo));
ZeroMemory(&ProcessInfo, sizeof(ProcessInfo) );
StartupInfo.cb = sizeof(STARTUPINFO);
StartupInfo.dwFlags = STARTF_USESTDHANDLES | STARTF_USESHOWWINDOW;
StartupInfo.wShowWindow = SW_SHOWNORMAL ;
if(CreateProcess("notepad.exe", NULL,
NULL,NULL,FALSE,0,NULL,NULL,
&StartupInfo,&ProcessInfo))
{
WaitForInputIdle(ProcessInfo.hProcess, INFINITE);
// problem is here not hide...
ShowWindow(GetForegroundWindow(), SW_HIDE);
WaitForSingleObject(ProcessInfo.hProcess,INFINITE);
CloseHandle(ProcessInfo.hThread);
CloseHandle(ProcessInfo.hProcess);
}
|
|
|
|
|
|
You want to hide the application you're launching? Won't this change do it?
StartupInfo.wShowWindow = SW_HIDE;
Steve
|
|
|
|
|
Hi !!
i have a grid in my project. i want to display those grid values in word document. and that table in word document should not be editable.
Can any one please send me the source code for this....
It's very urgent.
Regards,
klvin.
|
|
|
|
|
|
Well I am on a journey to create one of my first files and this thing is driving me absolutely crazy!!!! Well after hours of research just on the program alone, I have came to one of those points where your now at the point that your pulling out each hair from your head one - by - one!!! Anyway I will try to start off with a brief description of the program I am trying to make and the problem I am encountering at the end.
Anyway I was hoping to create a program similiar to Gspot, which can be loctaed here : http://www.headbands.com/gspot/. The program detects the codec you need for the movie, tells you if you have the right codecs, and other information about your *.avi video file. Except I was hoping to take a way a few features and add some. The features I was hoping to add is the ability to also search for *.avi files throughout your computer instead of clicking on each one maually and of course still have the manual one though where you can manaually check a seperate video. One other thing that I was hoping to also add was the ability to then read the information like the video title of the video and send that then over to a database or similiar to what the batch command : dir *.avi /s /b > myMovies.txt that would do. One other rather complex function I was looking at is adding the wininet functions to my program where it will then go to the imdb.com database and search for that movie to find the rating and genre of the video.
Well my question is what library do I need to include for my *.avi files? I have read information over DirectShow and AVIfile. Whenever I try to do a sample program though in my compiler it doesn't like it. Now after about 20-30 minutes looking stuff up on AVIfile I figure out it is a C# class and has nothing to do with VC++(please correct me if Im wrong).I will include some links down at the bottom of additional links to the APIfile use in Microsofts SDK and others I have found. I have also figured out in my long journey that *.avi is a RIFF file format or Resource Interchange File Format. How do I open a dang *.avi file in the program Im trying to make? This is so irritating! I am doing this all in C++(well at least trying). Anyway here are aare a few links about *.avi, APIfile functions, and etc...
AVIfile - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_opening_an_avi_file.asp
AVI OVERVIEW - http://camars.kaist.ac.kr/~jaewon/special/avi/avi.html
AVI RIFF FORM - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcedshow/html/_dxce_dshow_avi_riff_form.asp
Anyway, I hope someone knows, because this irritating the crap out of me. Thanks a lot for any help and let me tell you there is a lot more information than that if you want it, but those were some of the more helpful links.
Raistlin
|
|
|
|
|
|
So was that right for me assuming that AVIfile is part of C# and not part of VC++? I will check that out. Thanks
Raistlin
|
|
|
|
|
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
|
|
|
|