|
That did the trick!
Thanks for your help
Wim
|
|
|
|
|
Hi,
I am Adding about 30000 items to combobox from database.
It's taking long time. Any Tips for Improving this Heavy
Operation.
|
|
|
|
|
My first reaction is are you sure that you want to do this?? It will be very difficult impossible for the user to find an item in your combo if there are 30K different choices...
John
|
|
|
|
|
think about your program concept, 30k entries in a combo box would annoy me!
Don't try it, just do it!
|
|
|
|
|
|
Yah my tip to you is to go to your favorite bookstore and purchase "GUI Bloopers" (its a purple book, hard to miss), and "About Face 2.0" by Alan Cooper. Read these books throughly, and I'm sure you'll find the answer to your question.
|
|
|
|
|
i am trying to make phonebook program for an exercise in a learning book, and I have an idea as to how I am going to do it, but i need to know how to save and delete files using a command in the program. If someone could enlighten me on how to do this id be grateful.
Thanks
|
|
|
|
|
There are numerous ways. You can use FILE* (streams), CFile (MFC), CreateFile (handles), cout (C++).
|
|
|
|
|
Hi folks out there !
I am new to working with VC7.0 so maybe this is my fault, but I discovered some strange linking error which is really driving me insane. And maybe some of you can tell me, what could be wrong:
The basic structure is the following :
I have header files
"HWStructs.H" with some struct declarations
"System.h" containing some namespaces. It is using the "HWStructs.H" for some namespace variables;
I also have a "SystemInfo.cpp", which is including "System.h", containing the definitions of the namespace "SystemInfo".
(All of my headers use include guards)
Last but not least I have my "main.cpp" which is including "System.h" to gain access to the namespaces;
The weird thing I am talking about is that it doesnt link on a regular basis. It links once, then not at all for quite a while, complaining abt redefinitions of all the structs I have in "HWStructs.h". Somewhen it just starts working again and at some not understandable point it stops, giving me lots of redefinitions in eithter "main.cpp" or "SystemInfo.cpp" again.
I even managed to reproduce this behaviour with some example files. There it wouldn't link the first time, only the second time hitting compile.
So what the heck is wrong ?
I'd be incredibly grateful for any suggestions,
Chris
|
|
|
|
|
How do we see TRACE() statement output, for an application that is written with VS6.0. I remember of a program that did that, but I cannot seem to find it.
|
|
|
|
|
They appear in the output window of Visual Studio. The app must be started with F5.
|
|
|
|
|
I don't have that luxury. I know of an utility that can capture it from a running program, but can't remember and can't find it, it has been a very long time.
|
|
|
|
|
Perhaps this was it:
http://www.sysinternals.com/ntw2k/freeware/debugview.shtml
|
|
|
|
|
|
DbMon that comes with the Platform SDK does that
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
exactly the program I was looking for. Tx
|
|
|
|
|
You're welcome
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
|
How to play a buffer? Can you elaborate a bit more?
|
|
|
|
|
Well,now i am doing a web streamming project. Client receives data from the server via UDP protocol and plays the data buffer(wave).
Now I have tried many methods,including MCI and DirectSound,but still haven't found a better solution.
With MCI,I use waveOutWrite() to play the data buffer.But waveOutWrite() will spend about 0.2 second to send the data block to the playing device and then return.This is deal to that there is about 0.2s interval
when playing the sound continually. I can't fix the problem. So now it is not smooth when playing the sound. (the sound buffer is about 800K).
DirectSound is usually used for game,and it base on focus.This is meant that when the program loses focus it can't play the sound in the background. Now I need it to play the sound whenever the program loses focus or not.
Now I am seeking a method to play the sound buffer(wave) without any delays.
My current method that plays the sound buffer go as follows:
when MCI(waveOutWrite()) finishs playing the current buffer,it singals the event. Thread receives this notification,then it fills in the buffer with new data.
And then use waveOutWrite() playing it again.
but waveOutWrite() has about 0.2s delay.
Now I want to find a better method without any delays.
Can anyone help me? You can contact me at this email address: xiaochengwx@163.com
Hoping your replies.
|
|
|
|
|
??
what kind of buffer?? sound?
if sound-> copy it to a sound buffer and play it!
Don't try it, just do it!
|
|
|
|
|
The functions you need are:
waveOutOpen()
waveOutPrepareHeader()
waveOutWrite()
waveOutClose()
|
|
|
|
|
But it seams that waveOutWrite() has about 0.2 second delay before it returns to main program.
|
|
|
|
|
Hello all
I'm need to write a click event for a Dialog. This Dialog subclasses CDialog. When I select properties for this Dialog the ID is shown as IDD_ABOUT. But when I use classwizard the to write a click event the OBJECT ID is not at all shown in the object id list.
Can any one help me in this?
Thanks for your help.
Hari.
|
|
|
|
|
Hi Hari,
if I understand you, then you have a "About-CDialog-class" and want to insert an event for a mouse-click.(?)
Open the classwizard and look for your "Class name" (a field also named in the wizard). Select your class and the same name is available in the listbox Object IDs.
Now you can insert/add an event-handler for e.g. WM_LBUTTONDOWN (left mouse button, in the right message-listbox).
I hope, this was the problem.
Regards
Frank
|
|
|
|