|
dliviu wrote: So, I want to do exactly like this in my application, but I don't know how! You want to look into SDI.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
|
If you're using MFC, you can find an option in the project wizard called Multiple top-level documents under Application type .
If not, what you need to do is to create a new UI thread each time a new file is opened.
|
|
|
|
|
I'm using MFC. Thanks for the suggestion.
|
|
|
|
|
Sometimes, I add some resource(png, string, bmp) to use. But because of some reasons, these resources may get redundant. The project is so large, many people join the development. So, there are lots of redundant resources.
Now, we need to translate the language in resource into other languages. So, we have to delete all redundant resource to increase the efficency.
Besides, have to remove all unnecessary png, bmp and other resources to make the final setup.exe smaller.
Resource Symbol Editor of Visual Studio is hard to use, I can delete an item one time. I need to find another tool.
I'm wondering if there are some existing tools to help me to that. Anybody can help me?
|
|
|
|
|
None that I am aware of. This would not be easy to do as any such tool would need to analyse every file in the project to see if there were any references to the resources before deleting them.
Use the best guess
|
|
|
|
|
Being a messy coder I run into this all the time.
I believe there were apps called “code beautifier” which did that or something similar, but I may be wrong.
I hope nobody will make a suggestion that “memory is cheap, don't worry about it”.
|
|
|
|
|
Code beautifiers, merely tidy up your source code. I don't believe they can tell you which of your files may no longer be needed. Why not just move all the resources away, try to build the project, and you will get a list of missing files.
Use the best guess
|
|
|
|
|
Redundant or unreferenced? Unless VS messed up and assigned two separate resources the same ID, I'm not sure how code could know if a resource was redundant.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
I am wondering if anyone could help me figure out a way to reliably play a sound using 'PlaySound' function and not interrupting other threads in an application.
I am currently playing a wav file loaded into a resource at a given point in time based on the events that happen in other threads in a real-time application. But whenever it plays, it is interrupting my other threads for a brief moment. Is there any other better way to do this?
Here is my command
PlaySound(MAKEINTRESOURCE(IDW_WAVE),AfxGetInstanceHandle(),SND_RESOURCE | SND_ASYNC);
The duration of the sound is less than a second.
thanks
PKNT
|
|
|
|
|
The SND_ASYNC flag plays the sound without interrupting other threads.
How do you measure that the other threads are interrupted?
In which thread is the PlaySound function being called.
Some info about how the threads are arranged in the application would help for better diagnosis.
|
|
|
|
|
I am using SND_ASYNC mainly to achieve that. But it still interrupts other threads. I am playing it in a separate thread that runs parallel to other threads and runs upon receiving an event or else waits indefinitely for the event to occur.
I can tell that playing a sound effects other threads by looking at the frame that I grab continuously from a framegrabber, where I miss a part of the frame whenever I play the sound.
All my threads run parallel and all the threads wait for a certain event to occur. I start all the threads when I run the application, but keep them waiting for certain events to occur. While couple of threads run most of the time, some threads only run when they receive certain event.
thanks
PKNT
|
|
|
|
|
Kiran Satish wrote: I can tell that playing a sound effects other threads by looking at the frame that I grab continuously from a framegrabber, where I miss a part of the frame whenever I play the sound. Do you have a multi-core processor?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Yes, its a dual Quad core Xeon Processor system.
PKNT
|
|
|
|
|
Start a new thread which will call PlaySound
|
|
|
|
|
I need to use the DDraw to display YU12 data. But I donot know how to copy YUV data to the surface.
|
|
|
|
|
|
The standard MFC windows provide full scrolling capability. Your code just needs to set the window and view sizes to enable scrolling. Take a look at the CFormView class[^].
Use the best guess
|
|
|
|
|
Dear,
How to develop window application project in asp.net and what is suitable back end database. How to launch my application in internet.
Thank you in advance.
With regards
Varadharaj A
|
|
|
|
|
What do you mean by "develop window application project in asp.net"? The two are mutually exclusive.
Use the best guess
|
|
|
|
|
What is the best choice for desktop application development.
Please suggest front-end and back-end list..
I want to develop desktop application, that application may use my client in their own group data transaction in internet.
We already developed our desktop application in oracle and d2k platform...Now we want to change platform.
Thank you.
|
|
|
|
|
Varadha Raj wrote: What is the best choice for desktop application development. There is no "best" choice, there are merely different solutions. The best one is the one that most closely offers a solution to your requirements: Win32, MFC, Windows Forms, WPF etc., it is up to you to decide which one to go with. However, you seem confused about the difference between desktop apps and web apps, so you should decide first which of those is necessary for you.
Use the best guess
|
|
|
|
|
When lock the CriticalSection, the same thread can enter this CCriticalSection more than once at the same time.
How to avoid this problem?
|
|
|
|
|
Hi All,
I have a compressed AVI file.
Can i use OPENCV to decompress the AVI file and read each frame in it?
OR should i go for a library like FFMPEG?
Can i used FFMPEG functions inside a MFC application to read AVI files?
Please help me in this.
Thanking you in advance.
Regards,
ashwath.
|
|
|
|
|
Hi,
I am having a lot of problems displaying the CFileDialog modal dialog box
after much research I have noticed many examples of the CfileDialog with Just 1 paramter
and then a DoModal e.g. CFileDialog mydialog(TRUE); mydialog.DoModal();
The problem I am encurring is when step to the mydialog.DoModal(); a breakpoint is hit "int 3"
and I get a access exception
has anyone had this problem trying to use a CFileDialog
Thsnks
|
|
|
|