|
Sorry about late reply, been on holiday...
I put that line of code after the play command and it worked a dream:
mciSendString(L"Open C:\\video.avi type AVIVideo Alias Video", NULL,NULL,NULL);
mciSendString(L"put Video window at 0 0 352 264",NULL,0,NULL);
I did get an error about vids:mp42 decompressor being missing. This codec is included with windows meadi player but apparently the later versions are direct show only (i'm using media player 11). However, I installed an older codec from here, http://www.moviecodec.com/downloads/28d.html[^], and it played the video correctly. Just thought i'd share that in case anyone else has the same problem.
Cheers for the help aks
czk
|
|
|
|
|
Thank u 'code-o-mat' for ur advice and link, but i want to make this device to discover my own world, i want to read book on my own pdf reader, but i am not so sure about the hardware structure, circuit diagram, circuit operation, software including operation, and many other things, if u any one have known any ebook in any website about this content,and any kind of tips please,, please let me know.if possible attach to my e-mail 'mammun_cse_iu00@yahoo.com', u will not believe but i have already had sufficient dream about this device And i have made my mind to make it possible, by learning necessary things, like c++ and electronics topics, i want all of the members co-operational hand about my discovery on my own ship,for my own island.. As Columbus discovered America but before his discovery America was still there.. Thanks...
Every man is unique
|
|
|
|
|
How do I do the above mentioned please.
Thanks
Simon
|
|
|
|
|
Check out the SetScrollPos API or the CProgressCtrl::SetPos method.
«_Superman_»
|
|
|
|
|
|
I am a new student of computer science for few days i am happening to think of making a ebook device, so that i need to program a pdf reader in c++ for that device, i do not have any knowledge how i can i do it so if anyone of u have any idea, tips, comment,known handbook list or any kind of help about it would be greatfully appreciated..PLZ help me!!!!
Every man is unique
|
|
|
|
|
Wow, for being a new student on computer science that seems to be a BIG project, however, these things can surely help you:
-your best friend, Google[^]
-Wikipedia[^]
-studying available source code, open-source PDF readers/writers like this one[^].
p.s: I supose you know there already are PDF readers for ebooks and you are not trying to reinvent the wheel but to learn about the wheel. Good luck.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
Hi Horizzzon,
How's it been?
If you are completely new, I rather think this is a very ambitious project for you to do in C++. If you're out to proceed, have a look at Haru[^]
I somehow feel that it must be relatively easier for you to use something like iTextSharp[^] instead and write your app in .NET (vb?)
Good luck.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
My project is about monitoring four sensor measurement from USB port.
In each sensor give me the data for plot graph in the same client area.
Because it is high speed input data (less than millisecond),so I separate each sensor data that I get in four thread and each thread use same client area to plot the graph.
So,It possible in each thread will plot the graph on client area in the same time.
My question is that when this occur the program will crash or not?
if the answer is "crash".
What about when I separate view in four view by splitter but same mainframe?
if the answer still "crash".
Please advise me the solution for this issue.
|
|
|
|
|
There can be a "crash" when multiple threads access the same resource. In your case it is the device context of the view.
You must use a critical section to lock the drawing code so that a thread cannot draw to the DC till other threads have released it.
«_Superman_»
|
|
|
|
|
What about separate it to different process and different plot client area.
Is it still crash ?
|
|
|
|
|
Then it will not because now there is no client areas being shared by multiple threads.
«_Superman_»
|
|
|
|
|
Can you give me some technic for mix multiple process and show on different client area but all process run on same program.
|
|
|
|
|
i have color mismatch problem in printpreview
pDC->SetTextColor(RGB(127,127,127));
pDC->TextOut(100,100,"hello");
and i m using Fujitsu DX2400 printer
the color looks proper in view but different in print preview
if i use diff printer like HP it works great
this color mismatch also happens for some more color codes
RGB(127,127,127) is one of them
read lot abt ICM in documentation also use Palettes
but no use
need some help...............
|
|
|
|
|
Hi
My application (say App.exe) is supposed to be launched by another process called Laucher.exe since some environment variables are needed to be set for App.exe to run. I am using CreateProcess API in Launcher.exe to set the necessary environment variables.
I had written a sample earlier where in both by Launcher.exe and App.exe were non-unicode (built in VC 6.0). But, currently I have moved to VS 2008 which where in the application comes with unicode settings by default. I have converted both Launcher.exe and App.exe to Unicode, but I am having a problem to use CreateProcess in Launcher.exe to launch App.exe
Since my App.exe is in unicode I think we have to set the lpEnvironment (in CreateProcess to CREATE_UNICODE_ENVIRONMENT flag) But just setting this and using the API the same way fails to launch my App.exe.
I could not find sufficient links on the internet which explain how to use this flag and launch the application in a unicode environment
Can somebody help me out if you have used this in advance?
Thanx
Vipin
|
|
|
|
|
After reading your question, I'm guessing your real problem is that CreateProcess API is failing in UNICODE builds. And that in the earlier NON_UNICODE builds it was successful.
If so, your title is very misleading.
Actually there is a difference in how you would call CreateProcess in UNICODE and NON-UNICODE builds.
In UNICODE builds, the lpCommandLine parameter of CreateProcess cannot be a constant because it will be modified internally. So you need to pass in a non-constant buffer here.
This is documented in MSDN, but you would need to read it properly, which most of us do not do.
«_Superman_»
|
|
|
|
|
Hi,
I am a retired social worker who creates eLearning materials that are given away to help people improve their health and to teach social work students. I need to create an unmanaged DLL that can be used to add drawing within an eLearning app which is capable of loading unmanaged DLL's and calling their functions, if these are specified.
On CodeProject, there is an excellent drawing DLL http://www.codeproject.com/KB/dialog/Basic_Drawing_Plug_in.aspx[^][^]but it is in C# which I suspect is managed code and not able to be loaded or functions called in the eLearning app.
As a novice in coding (have been trying to learn using MS's Express editions for VC++ and C#, which is a very steep learning curve for me), I am lost tyring to figure out a way to convert the C# to VC++, figure out the function calls so they can be scripted into the eLearning app, etc. With very limited understanding and skills, I keep getting error messages for whatever I try.
Any suggestions, leads, help in converting to unmanaged code plus specifying the function calls would be greatly appreciated. (Wrote to the DLL's author but have not heard back).
Thanks.
Kind Regards,
writer
|
|
|
|
|
No easy way I guess, unless somebody can do it for you. (somebody != 'I' )
Or you can get it done for a small fee by some freelancer.
Or you can wrap the managed code in a COM Callable Wrapper (CCW) and use it in unmanaged code.
But there is a steep (if not steeper) learning curve there as well.
«_Superman_»
|
|
|
|
|
Hi Superman,
Thanks for your reply.
It appears there is no easy solution.
However, I plan to try to learn more about unmanaged DLL's since these can be used by the eLearning authoring software that I use. Even if I can't create a drawing DLL in unmanaged code, I may learn enough to create something useful.
Again, thanks for your input.
Kind Regards,
writer
|
|
|
|
|
Post user defined Message and how to receive it
|
|
|
|
|
|
Hi ,
I want to compare 2 CStringArray... Please suggest best way to compare this arrays. Can it be easy to do using STL. I would like to have easiest way (using CStrinArray / STL )to do this..
Thanks:-
Mike
|
|
|
|
|
mikert_2008 wrote: Please suggest best way to compare this arrays.
Please explain what you mean by compare... You have two arrays of strings, what should compared exactly ? The number of strings in the arrays, each string to its corresponding in the other array, ... ?
|
|
|
|
|
It largely depends on what you mean by "compare". Are you wanting to compare each and element of two arrays? You can just do the comparison in a loop, can't you?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
How to merge two XML files in one XML file???
Thanks in Advance
|
|
|
|