|
Have you tried plugging in some headphones to see if those sound loud enough? Like David said, it may just be your speakers.
Regards,
Alvaro
Can I ask you a question?
|
|
|
|
|
i tried, same problem. all the volume levels are at max
|
|
|
|
|
Some laptops (like Dell's) have a keyboard short-cut to adjust
speaker volume. If I am not mistaken, if this is turned all the way
down, even with the system tray volume turned right up you will hear nothing.
For example on a Dell Inspiron 1100, pressing Fn and the blue-color-coded speaker image on one of the arrow keys will raise the volume. Maybe you should check your laptop manual for a similar feature...
John Theal
Physicist/Mathematical Programmer
Digital Immersion Software Corporation
Got CAD?
http://www.presenter3d.com[^]
http://www.merlin3d.com[^]
|
|
|
|
|
hi all...
I have a window... that I want to use in difrent projects...
Should I call CreateWindow(with this window classname)
in that case: How do I permenantly register a window class???
.
.
.
assamption:
Lets say... that I created a win32 app (no MFC or ATL);
Lets say... that this window acts as a control;
problem:
The output file is MyControl.EXE ,
Do I actually need MyControl.OCX ...
----------
Please...
I m very confused....
10x
-=-=-=-=-
The Server
|
|
|
|
|
Not purfect, but extremely small and a nice place to start:
The World’s Smallest Icon Editor:
http://home.online.no/~pethesse/features.html#TWSIE
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|
|
|
Hi,
I recently developed MFC application and it is about to be shipped to customers in a couple of weeks. Before that I want to test my application for memory leaks etc.
1. Is there any automated testing tools to test my MFC application???
2. This question might be silly. But it has been bugging me since day one. What is the basic difference between VC++ application and MFC application??
WHen do I say that my application is VC++ or MFC application???
Thanks in advance for your valuable response.
|
|
|
|
|
Anamika1 wrote:
What is the basic difference between VC++ application and MFC application??
One is a subset of the other, and not vice-versa. A customer might be interested in knowing that your application was created using VC++. They probably couldn't care less that you created it with MFC.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
1. WinRunner. Expensive, but my tester at my last company swore by it.
2. Visual C++ is the compiler, MFC is a class library. An MFC based application could actually be compiled with other compilers.
Joe Woodbury
When all else fails, there's always delusion.
- Conan O'Brien
|
|
|
|
|
Can I Write data to a CD using Visual C++?
If Yes then please give some sample codes for doing so.
Amit
|
|
|
|
|
Assuming you meant CD-R/CD-RW, look for MSDN article Q260992.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
hi internet... please do the work for me...
Don't try it, just do it!
|
|
|
|
|
I have a CListCtrl that I'm attempting to add items to. I have followed what it says to do for inserting items in the Using the List Control article by Matt Weagle: http://www.codeproject.com/listctrl/listctrldemo.asp?target=clistctrl%7Creport%7Cview%7Cinsert
I have created 2 columns that I'm attempting to add items to. The first row that I insert does go in the correct place, but when I insert the second row, the item in the first column gets entered into row 0 and the contents of the current row 0 get shifted down to row 1. This wouldn't be a huge problem for me, except that that I enter into the second column, doesn't get inserted into row 0, but goes into row 1, overwriting the current value in row 1. Here's my code so far, if anyone notices any mistakes, please let me know!
CString tempstr, strItem;
CStdioFile browseFile;
LVITEM lvi;
int numRead = browseFile.Read(readBuffer, fileLength);
....
int rowNumber = 0;
//read in/set z and concentration values in CListCtrl, use InsertItem
for (counter = 0; counter < numRead; counter++)
{
tempstr = "";
while((readBuffer[counter] != ' ') && (readBuffer[counter] != '\n') && (counter < numRead))
{
tempstr += readBuffer[counter];
counter++;
}
if(readBuffer[counter] == ' ')
{
//if a space, tempstr is for the first column
lvi.mask = LVIF_TEXT;
strItem.Format(_T(tempstr));
lvi.iItem = rowNumber;
lvi.iSubItem = 0;
lvi.pszText = (LPTSTR)(LPCTSTR)(strItem);
m_elementList.InsertItem(&lvi);
}
else if(readBuffer[counter] == '\n')
{
//if a newline, tempstr is for the second column
strItem.Format(_T(tempstr));
lvi.iSubItem = 1;
lvi.pszText = (LPTSTR)(LPCTSTR)(strItem);
m_elementList.SetItem(&lvi);
//increase the row number
rowNumber++;
}
else if(counter >= numRead)
{
//if the last element in the file, tempstr is for the second column
strItem.Format(_T(tempstr));
lvi.iSubItem = 1;
lvi.pszText = (LPTSTR)(LPCTSTR)(strItem);
m_elementList.SetItem(&lvi);
}
}
|
|
|
|
|
|
It still doesn't work.
My column names are: Z and Concentration
What I want is either:
Z Concentration OR Z Concentration
12 3.4 100 12.04
100 12.04 12 3.4
But, what I'm getting is:
Z Concentration
12 3.4
followed by:
Z Concentration
100
12 12.04
I print out the row numbers in using AfxMessageBox before inserting each item, and the row numbers appear to be correct, but things are still getting added in the wrong place.
|
|
|
|
|
Check your list control properties. If you have "Sort" equal to "ascending" or "descending," the final position is not necessarily the one where you inserted your text.
Check the value of InsertItem() after inserting the text;
LVITEM lvi = {0};
..
..
..
INT nRow;
nRow = m_elementList.InsertItem(&lvi);
lvi.iItem = nRow;
strItem.Format(_T(tempstr));
lvi.iSubItem = 1;
lvi.pszText = (LPTSTR)(LPCTSTR)(strItem);
m_elementList.SetItem(&lvi);
|
|
|
|
|
Thanks. that fixed it. I didn't realize that there was a sorting option on the thing.
|
|
|
|
|
Is it possible to allow the user to edit the contents of the second column and NOT the first column?
Also, when a user selects an item in my CListCtrl, how to I get it to highlight the entire row, and not just the item in the first column?
|
|
|
|
|
b_girl wrote:
how to I get it to highlight the entire row
Use the extended style LVS_EX_FULLROWSELECT .
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
I got a own draw controller. And I takes this controller 0.5sec to redraw because it does a lot of stuff and this is okay.
But I wonder if I can speed up some thing. If I move an application over my program, a lot of redraws are done. And since every redraw take 0.5sec it flicker a little too much. So I wonder if there are anyway to cache the last draw result and use that if nothing in my program has changed.
Since I'm using a MemDC in my program I think I should be able to cache a copy of it and use it. But how do I do that.
/Mathias
|
|
|
|
|
If the draw functions are taking too long you can create a boolean that keeps track of if anything has been actually changed in your CMemDC. This is somewhat tedious as you must set it to true for every change made, but then include it in OnDraw(CDC* pDC). You must also use a more sophisticated version of CMemDC from the destructor into a function like CMemDC::Rredraw(), include CMemDC in your CView as a member (do not destroy it, with every OnDraw or OnPaint). You must also update it in OnSize()
J.
----------------------------
|
|
|
|
|
|
I would like to press a button in an mfc application and bring another application to the top. I searched the documentation and found commands like SetForegroundWindow() and ActivateWindow(), but I only made it that the application blinks in the task bar (Win 2000). Can anyone tell me a solution of this problem. It must be working with VC6/VC7(2003) on Win 2000 and NT 4.
|
|
|
|
|
Clicking a button in your app will give it focus, so you need to do this after the button up message. BringWindowToTop() should do the trick.
Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
|
|
|
|
|
Starting with Win2000, MSFT desided to restrict ability of not active application to become active (to fight those IE popups).
I'll recommend looking into AllowSetForegroundWindow to understand invented concept.
However, there are several workarounds that can do the trick -- It's not allowed to post them here, but if you email me I'll share them with you...
Regards
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|