|
hi all,
I have created a player in vc++ 6.0 which plays video files.
If i play two video files at a time,one file is crashing.
can i able play 2 video files simultaneously.how can i do that.Also please tell me "how to stream video files in vc++".
Thanks in advance
cheers
sangeet
|
|
|
|
|
Hi ramyasangeet ,
Hope I understood your question you need to play video files(avi,mpg,...)
I Played 4 video files and no problem
I use MCI to paly in 4 video files in 4 windows
plaese use functions MCI(I use vs2003)
|
|
|
|
|
hi all
i want to show the printer dialog using api.i had use this code from msdn.
PRINTDLG pd;
ZeroMemory(&pd, sizeof(pd));
pd.lStructSize = sizeof(pd);
pd.Flags = PD_USEDEVMODECOPIESANDCOLLATE | PD_RETURNDC;
pd.nMaxPage = 1;
if(PrintDlg(pd)==TRUE) this line give error that
d:\_Tasleem\BcGenerator 310306\Barcode Generator\PrinteBitmaps.cpp(61): error C2664: 'PrintDlgA' : cannot convert parameter 1 from 'PRINTDLG' to 'LPPRINTDLGA'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
i tried to use by declaring onject of LPPRINTDLGA but it had no member data i.e LPPRINTDLGA pd;
pd.mMaxPage=1;
Tasleem Arif
|
|
|
|
|
PRINTDLG pd;
ZeroMemory(&pd, sizeof(pd));
pd.lStructSize = sizeof(pd);
pd.Flags = PD_USEDEVMODECOPIESANDCOLLATE | PD_RETURNDC;
pd.nMaxPage = 1;
if(PrintDlg(&pd)==TRUE)
(I think you need to specify a reference to that variable)
|
|
|
|
|
thank u it works
Tasleem Arif
|
|
|
|
|
maybe it is some helpful to you
DOCINFO di;
PRINTDLG pd;
memset((void *)&pd, 0,sizeof(PRINTDLG));
pd.lStructSize = sizeof(PRINTDLG);
pd.hwndOwner = this->m_hWnd;
pd.Flags =PD_RETURNDC|PD_ENABLESETUPTEMPLATE;
pd.hInstance = NULL;
pd.nMaxPage=1;
pd.nMinPage=1;
pd.nCopies=1;
pd.hDevMode=lpdevmode;
pd.nFromPage=1;
pd.nToPage=1;
PrintDlg(&pd);
|
|
|
|
|
im tryin to do a collision detection project and need to us a library called MagicFM.lib but im getting a link error "collision1 fatal error LNK1181: cannot open input file 'MagicFM.lib'" i am able to run it in visual studios c++ but when i come into college thers only .net and i keep getting the link error. anyone any ideas on this
thansk rosco
|
|
|
|
|
Did you add the directory to the library directories in the project options ?
|
|
|
|
|
yeh i opened the project up that i had working and it converted it to a .net project. i checked the settings and the librarys seem to be the same.
|
|
|
|
|
rossol219 wrote: converted it to a .net project
Did you copy the library you need also ? And in the proper folder (that is, the one indicated in your project settings).
|
|
|
|
|
yeh i had these libraries already workin in diiferent projects on this computer alreday. the directories are the exact same on my home pc. ive just trie dto create a new project to see if that worked but i am now getting a lnk 1104 error for the same library
|
|
|
|
|
1) Goto 'Project' Menu ---> Select 'Properties'.
2) In the lefthand treeview of the dialog dispalyed, select 'Linker' folder.
3) Then click the 'Input' subitem.
4) In the righthand grid, click 'Aditional Dependencies' and add the full path of your library file including library name.
cheers..mil10.
|
|
|
|
|
Can you maybe explain in details which compiler you use at home and to which one you want to convert ?
I think you have a problem with your library directories. Are you 100 % sure that they are correct ? I mean copying your project to the new computer is not be sure of the correct path. Open the project properties, link tab, and check the "Additional Library Directories". Even better, remove the previous path to your library folder and write it again, to be sure it is redirected to the correct path.
|
|
|
|
|
Does MagicFM.lib exist on the development machine?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Hi.
Last week I experience next problem. I need to substitute content of some web-pages and return it to browser.
I use IHTMLElement->put_innerHTML() method.
Problems are - with sites like Yahoo.com, msn.com browser
falls with the exceptions of different types - stack overflow just after "put_innerHTML()" call, or access violations, etc.
With Google, and lots of other pages everything is OK.
NOTE: When i return the original content of msn.com start page with put_inerHTML to body element, browser falls.
The interesting detail, when I call IHTMLWindow2->blur(), then inserting innerHTML, then call IHTMLWindow2->focus() - the chances of browser's hangup are much smaller
==ORIGIN:
Record additional transactions on back of previous stub.
|
|
|
|
|
Hi,
I want to have a program containing 2 queues. I want to pop() from both queues at the same time. It is like two threads. Did anybody know how to do it?
Thank you.
|
|
|
|
|
Yes, You can have two STL queues and have the threads read from both simultaniously. Remember to lock the queues using CCriticalSection in case both threads accessing the same queue.
cheers ...mil10.
|
|
|
|
|
justcallmedin wrote: I want to pop() from both queues at the same time.
Technically, true parallelism cannot be achieved on a uniprocessor machine. I doubt if that's what you were really after anyway, however.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
I am confused with the subject and the content of message.
Subject states you want multiple processes and message talks about threads.
Could you please be more specific?
In case of process, use kernel-objects like events, mutex, semaphore etc. to synchronize and for threads you can use user-objects like critical section(as well as kernel-objects).
|
|
|
|
|
42 ? Oooops, no that was the answer to the universal question
BTW, what does it have to do with C++ ?
|
|
|
|
|
YES.
The full question is
S=1+22+32...+...., until s > 10000
s=?
|
|
|
|
|
FlyWithYou wrote: YES.
Errr, yes to what ? I was asking what your question had to do with C++ and you answer me YES.
FlyWithYou wrote: The full question is
S=1+22+32...+...., until s > 10000
s=?
Aaah ok, this is the full question. Now things are really clear .
Seriously, what do you want us to answer exactly ? I mean you post in the C++ forum, so obviously it has something to do with C++...
|
|
|
|
|
v2.0 wrote: could you please rephrase what you understood ?
That will be difficult as I didn't get anything neither
I just understood that he want to solve a mathematical problem with numbers.
|
|
|
|
|
Solved already, thanks everybody.
Sorry, my english is so bad.
|
|
|
|
|
FlyWithYou wrote: Solved already, thanks everybody
may you share your solution ?
|
|
|
|