|
I have a PC connected via HDMI to my TV but after a period with the TV on another input the PC's HDMI output switches off.
Is there a function I can call to force a display detection again as this sorts things out?
It's an ATI Radeon Express 1250 on a motherboard by the way.
Thanks.
Elaine
|
|
|
|
|
*If* its ACPI causing the port to power down, can't you just disable ACPI in the BIOS? Try it and see if it helps.
-Randor (David Delaune)
|
|
|
|
|
I want to write a program that would swap the left and right audio channel system wide (regardless of audio/video player). This is not a program that plays audio/video files, but works kind like a filter, any audio that outputs to the speaker/headphone should be affected by this program. Is this possible? if so, can someone point me in the right direction on how this could be done.
What should I look into? directsound? audio driver?
I only want to write this because I couldn't find any program that would do this. If such program exist, what is the name of the software?
Thanks
hi
|
|
|
|
|
often the driver of the audio card give you a boolean flag to choose if you want to reverse the speakers. Take a look to the control panel before start to write the program.
Russell
|
|
|
|
|
Hi all,
I need to select only exact file from directory.
For example file.ttt.
I am trying the following:
<br />
CFileDialog fileDialog( TRUE, NULL, "file.ttt", NULL, "file.ttt" );<br />
But there is no visible files.
Please help me to resolve the problem.
|
|
|
|
|
CFileDialog fileDialog( TRUE, NULL, "file.ttt", NULL, "All files(*.ttt)\0*.ttt\0" );
|
|
|
|
|
Romiks wrote: But there is no visible files.
Does file.ttt exist in the folder that is initially opened?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
This should do the task correctly....
CFileDialog FileDlg(TRUE,_T("file.ttt"),NULL,NULL,_T("ttt Files(*.ttt)|*.ttt||"),NULL );
Who am I?
Do you know me....
|
|
|
|
|
Rivezle wrote: If anyone could advise me as what to do...
What exactly is your question?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
How should i go about re-creating my old programs, through a 100% coding or another way.
|
|
|
|
|
Rivezle wrote: How should i go about re-creating my old programs...
Open the IDE, select the type of project you want. Do you want a doc/view (e.g., SDI), or a dialog-based, aplication? Once the bare framework has been created, start adding coding from there.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
My question was is there a way i can make GUIs in the VS2005 IDE without going a 100% coding route and not requiring the .net framework to run the application, maybe i should repost in the Visual studio section.
|
|
|
|
|
Hello,
The following functions
_cexit, _c_exit, exit and _exit works fine on release mode but in debug mode the processes/procedures are not terminated when the functions are called.
I use VS 2003 and I use both managed and unmanaged code. Anyway I tried those functions with #pragma managed and #pragma unmanaged but the problem is the same.
Do you know why and how to make them working on debug mode?
Thanks for your help.
|
|
|
|
|
Which one do you need to use? They al perform differently.
MArk
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I use _c_exit()
It allows me to exit from a procedure/process without closing the application.
|
|
|
|
|
Arris7 wrote: I use _c_exit()
I'm not sure what you expect it to do...
"Performs quick C library termination procedures and returns to the caller, but does not terminate the process."
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark,
Sorry for the confusion, I am not clear with my problem.
Let me give an example.
Suppose the user of my application type-in some data from within an edit control.
This calls a function which calls a 2nd function and finally a 3rd function is called.
But the 3rd function rejects the data entered by the user.
It returns a message to the user.
The user clicks on OK and finally gets the hand on the application.
So the unique solution I've found is _c_exit() that terminates the procedure and gives the hand to the application without closing it.
But is does not work in debug mode.
Any idea?
|
|
|
|
|
I think you may be misunderstanding what these functions are for.
They are not for flow control in function calls. They are for exiting a process (i.e. a running application).
Simple error codes returned from your functions will allow the caller to take the appropriate action
based on the value it gets back from a called function.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
THANKS FOR GREAT HELP...BUT STILL MY PROBLEM IS THERE...CAN U TELL ME HOW TO USE THESE FUNCTIONS EXACTLY??
|
|
|
|
|
Use any of the below to retrive text from your edit box
CString strWindowText;
editBoxObject.GetWindowText(strWindowText);
GetDlgItem(ID_OF_THE_EDIT_BOX)->GetWindowText(strWindowText);
then create an CStdiofile object
then the WriteString(strWindowText) function of CStrdiofile to save the text into disk
Rgds
Sivan
http://www.ktsinfotech.com
|
|
|
|
|
where to specify the path of file in which i want that string??
|
|
|
|
|
Just to be clear, are you using MFC or not ? If you aren't, this code is of no use for you. If you are, you should be able to create variables you can use to access the text in the controls.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Sivan Manimala wrote: CStdiofile
He is not using MFC, as far as I can tell. I have no idea why.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
GetWindowText or GetDlgItemText will get you the string. If you know C++ well, as you said, you should know how to use ofstream to write text to a file.
You really need to start posting your code, so we can see what you've done, establish that you're really not using MFC, and offer specific help, based on seeing what you've tried.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|