|
Yes but your views need to be shown inside a pane of the splitter.
Veni, vidi, abiit domum
|
|
|
|
|
I see what you mean. I created a test application with the MFC application wizard just to see how they use the CSplitterWnd .
And what they do is they put the splitter window as a member of the main form, NOT the view. This implies that the splitter does its thing over every view that gets displayed.
Apparently you can't just put the splitter on certain views.
Thanks for your input!
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Well you could, but it's a bit more complicated, because of the way that splitter windows work. And, I suspect, the CSplitterWnd class's design does not easily lend itself to doing that.
Veni, vidi, abiit domum
|
|
|
|
|
I often use TV in my room to watch some stuff from PC
Using Control Panel I can switch between default audio devices to hear sound from PC or from TV
Doing this too often using Control Panel is annoying
I need utility that can change default audio device, can anyone help with code?
|
|
|
|
|
You could try using RegMon to see what changes Control Panel is making to the registry.
"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
|
|
|
|
|
Is there any API to get outdated driver list?
|
|
|
|
|
john5632 wrote: ...outdated driver list? Your question is vague at best. Provide some context, please.
"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
|
|
|
|
|
Hi,
I want to give audio-input to a FFT code (KissFFT) written in C, on a real-time basis. While I can give a simple test signal (like sine wave) by writing the sine function as input, I am not sure how I should convert an audio-signal (e.g.: song) into a form that can be taken as input by the KissFFT C code.
Thank you.
|
|
|
|
|
As you say 'real time' then I guess you'll need some electronics to convert audio to a form suitable for input into your FFT system. I once built the circuitry to utilize an Analog To Digital (A/D) chip to take an external electrical signal, buffer and interface it to a PCs data-bus and then had to write a simple device driver to enable my C++ program to acquire the sampled data and plot it in real time. With a microphone on the front that's the very basics I suppose. I guess if you really mean real time you'll need the equivalent of a sound card or A/D card, i.e. some Audio interface device that you can use to convert the real time audio to your required format so that you can grab it.
|
|
|
|
|
Try "waveIn FFT audio" posted here, sorry cannot copy the link.
With little patience it is workable, but also buggy.
Cheers Vaclav
Here is the link
<a href="http://www.codeproject.com/Articles/6855/FFT-of-waveIn-audio-signals">FFT of waveIn audio signals</a>[<a href="http://www.codeproject.com/Articles/6855/FFT-of-waveIn-audio-signals" target="_blank" title="New Window">^</a>]
|
|
|
|
|
I need to create a view for my document that contains a tree control and a property grid, with a splitter between them.
What do you think would be the best CView class to use as a base?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Since you will have a splitter, you first use CView to create the base view on which you create the splitter.
In the left pane you can use CTreeView for the tree.
In the right pane you can use CFormView to place the grid control.</pre>
|
|
|
|
|
Thank you Superman.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Start with a CSplitterWnd [^], then use the tree and form view as suggested by Superman.
Veni, vidi, abiit domum
|
|
|
|
|
Thank you, Richard. I was unaware of the CSplitterWnd class, but it ought to make the job much easier.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
That's the problem with modern systems, they have so many ready made classes it's impossible to know them all.
Veni, vidi, abiit domum
|
|
|
|
|
First MIDL compiler is invoked then C++ compilation starts compiling source code for all the projects to generate .OBJ file. Then Linker is invoked to create entire application.
Isn't that right?
If it is right, then, why does linker has MIDL options?
|
|
|
|
|
Because, for instance, the linker generates type libraries (TLB files), see MSDN [^].
Veni, vidi, vici.
|
|
|
|
|
MSDN documentation is very poor for this subject.
I think, according to MSDN, linker calls IDL compiler to build, .c, .h and .tlb files. But it doesn't make any sense either.
I think before linking process begins, all of the files must be ready.
So I still don't understand why linker calls idl compiler.
A detailed description or reference to compilation and linking process is highly appreciated.
|
|
|
|
|
fb_serwe wrote: A detailed description or reference to compilation and linking process is highly appreciated. That information is provided by Microsoft at MSDN. If you don't find it good enough then you need to try the Microsoft forums.
Veni, vidi, abiit domum
|
|
|
|
|
i develop a update .exe and its on a web server. when i start my main program,
it'll query the version first.if there is a new version on the web server, it'll create a process and execute the update .exe. whats the update doing is that downloading the new setup.msi and setting up automatically.i use the the api MsiInstallProduct(path,"action=install"). but there's someting unfriendly,
it'll popup the setup dialog and make the user to choose to restore or to delete. how can i make it to execute reinstallation action directly. msdn says the second parameter mapping to an action,but i just dont find anyting userful. help me .plz
thank u in advance.
|
|
|
|
|
Instead of updating your application with an MSI, you're supposed to create a "patch". The MSI is only for installing, repairing and removing the application.
If you are only distributing an update, then use a patch instead.
What software are you using to author your MSI's?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
there'r 2 cases. one maybe means a "patch" for adding some more resources.
in the other case , i need an entirely new version. my question is about the second case.
so i want to take a solution of reinstallation,though, im not sure whether its resonable or not...
and i cant understand whats ur mean about authoring my msi's.
|
|
|
|
|
Try running the installer with the "\quiet" option. This prevents any user interface.
See: Installer Command Line Options[^]
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
yes,it works.there's also a doubt why i cant run the uninstall .exe if it has a different productcode from setup.msi.
and how can i get the productcode.
thank u for ur reply,its very useful
|
|
|
|