|
I need to be able to automatically adjust recording mixer properties from inside my app such as making sure that "Line In" is selected versus Microphone or other device, set record volume to 50% and make sure left/right balance is set to 50%. I have looked at the mixer functions but n ot sure how to proceed. Can someone give me some sample code please? Thank you very much.
Bill Dennis
Orlando, FL
|
|
|
|
|
I have tried trapping the WM_CHAR message within a CDHtmlDialog based dialog but couldn't. I used Spy++ and discovered that the messages WM_KEYDOWN,WM_KEYUP and WM_CHAR were actually sent to my dialog. But they don't get passed to my code in either OnChar,OnKeyDown or OnKeyUp.
I need to handle either of the three messages so that I can read from either my barcode scanner or the keyboard. Please help?
What would life be without programmers and salesmen?
|
|
|
|
|
How could I get the number of bytes a process has written to disk during its run-time on a Windows system?
The process could be any running process like explorer.exe.
I heard there are some ways to do this on other operating systems, like by getting the truss output of the process, but I can't figure out how to do this in Windows.
Could someone suggest any ideas?
|
|
|
|
|
|
Hi folks,
I'm new here and very new to c++ i have however programmed a lot in visual basic.
I have managed to make a window with some controls on it (simple ones) however i have a problem.
How do i read in a gif file and go through it pixel by pixel checking the color? (are there tutorials on this?) then after i have done some calculations how do i rotate the picture like 20 degrees and then save it so i can read the pixels again of the rotated object? (are there any tutorials on this?)
I'm very new to this all but i have to make it for school any help or tips/ideas are welcome
thanks in advance
|
|
|
|
|
u can use GDI+. The classes Graphics and Image let u manupulate images. see msdn help on GDI+ for more.
"Do first things first, and second things not at all."
— Peter Drucker.
|
|
|
|
|
Hi thanks for the fast reply but i have searched and GDI+ seems to be only for .NET? i have the visual c++ 6 version. Do you have by any chance a tutorial for this subject (a link or so?) i'll try searching further hope you can provide me with some links.
greets
|
|
|
|
|
|
Hmmm but when i eventually make an executable of my program doesn't the users need to install GDI+ also on there computer?
|
|
|
|
|
|
Get the spec for a GIF file from http://www.wotsit.org/
To rotate, is just simple geometric calculations, a triangle, you know the angle and you know the length of 1 side, applied to each pixel, don't forget the resulting bit map will be larger than the one you started with.
If you search the net you will find better algorithms.
"An education isn't how much you have committed to memory, or even how much you know. It's being able to differentiate between what you do know and what you don't." - Anatole France
|
|
|
|
|
CString strExtra;
TBBUTTON tbb;
tbb.dwData = strExtra;
Of course ,I can't do it like this.
But how could I do so?
Thank you very much.
|
|
|
|
|
What exactly are you trying to accomplish?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
maybe like this :
CString * pStr = new CString;
tbb.dwData = (DWORD)pStr;
|
|
|
|
|
CString strExtra;
TBBUTTON tbb;
tbb.dwData = (DWORD) (LPCTSTR) strExtra;
--
======
Arman
|
|
|
|
|
CString strExtra;
TBBUTTON tbb;
tbb.dwData = (DWORD) (LPCTSTR) strExtra;
... and why you are doing so?
--
======
Arman
|
|
|
|
|
Thank you.
I just want to create a self defined toolbar.There is just one command that all the buttons are handled .Only difference is that the buttons have different string attached.
Then I can fetch the string for advanced processing.
Thank you very much.
|
|
|
|
|
HI
How to update the View from other class not from Doc class?
bye
|
|
|
|
|
Why do you not want the document to update the view? The view is supposed to render what the document contains. When the document changes, it notifies the view that it needs to be updated. It makes sense that you should be updating the document and let it notify the view through normal channels.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
post message to the windows
-prakash
|
|
|
|
|
Hi,
// for SDI apps
CFrameWnd *pFrame = (CFrameWnd *) AfxGetMainWnd();
CDocument *pDoc = pFrame->GetActiveDocument();
pDoc->UpdateAllViews(NULL);
// for MDI apps
CMDIChildWnd * pChild =
((CMDIFrameWnd*)(AfxGetApp()->m_pMainWnd))->MDIGetActive();
CDocument *pDoc = pChild->GetActiveDocument();
pDoc->UpdateAllViews(NULL);
--
======
Arman
|
|
|
|
|
I'm developing an app that opens a connection to a database and makes a massive import to many tables of it.
To do that I open and close the tables several times in some loop statements.
The problem is that, when I open a table the service of the sql server (sqlservr.exe) increases the usage of the cpu it uses.
When I close the table it should release the resources, but it doesn't!
Does anyone know if there is a setting of the sql server that must be changed to do that?
Thanks in advance
sirtimid
|
|
|
|
|
sirtimid wrote: The problem is that, when I open a table the service of the sql server (sqlservr.exe) increases the usage of the cpu it uses.
When I close the table it should release the resources, but it doesn't!
So are you concerned with CPU usage, or resource consumption?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
I mean the CPU usage.
So, after plenty opens of tables I have serious memory problems!!!
Thanks
sirtimid
|
|
|
|
|
So is it the high CPU usage, or the serious memory problems that are bothering you? It's been five years since I've used SQL Server but I do recall it having a good profiler. SQL Server, in and of itself, is a very big application. For it to continue to tax the CPU even after you've closed a table is not surprising. I would not expect that to continue for any longer than a minute or so. Memory consumption is different, however. The number(s) you see in Task Manager are a bit misleading. Read the last part of this article for an explanation.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|