|
|
must be a MS (DirectX) conspiracy
|
|
|
|
|
I'm working on an application which contains a class called CSpecialWnd which is a child of CWnd.
CSpecialWnd handles its own paint and timer events but I want it to be totally transparent to all mouse events. For example, if an instance of CSpecialWnd is running and it happens to be in front of a Notepad window, I should be able to click on CSpecialWnd but have Notepad still receive that click and not have CSpecialWnd get the focus.
How can I do that?
|
|
|
|
|
hi all,
I am using "mciSendString" api function to record the wave audio through
microphone.
My question is how can i capture the audio data in Integer array while recording?
Because I have to Plot the line graph(spectrum) by using these values while recording(real Time)
Please help me.
Is there any other method to Plot the graph while recording(realTime)
Thank in advance.
|
|
|
|
|
Hi !!!
I've have to build a autorun CD-Rom to automatically install my App from the CD. The installation is quite simple : I would like to copy files and folders, register the OCXs and DLLs, run a few batch files to setup some parameters, and that's all !
I started to have a look at InstallShield to do that, but it looks awfully complicated to me !!! Is it the good tool for what I want to do ? Is it possible to register DLLs, to run batch files with it and to easily copy files and folders ? Or should I just use another tool ?
Thank you for your advices....
Jerome
|
|
|
|
|
InstallShield is possibly the best tool for building installations. When I opened it first time, I found Step By Step Help topic and built the simplest installation project quickly. You can find other features simply learning InstallShield IDE. For example, to register Dll you need to set "Self-Register" feature in File Groups. The power of InstallShield is that you have standard features in IDE and can write advanced actions using script. See also WEB site http://www.installsite.org which is like CodeGuru and CodeProject for InstallShield programmers, and it has also discussion groups.
|
|
|
|
|
First of all, InstallShield is THE-industry leading company for Setup applications. Its latest Developer 7 is what you need. It can build MSI-only (MS Windows Installer technology), InstallScript-only or an MSI-InstallScript project. Naturally, the latter is the strongest of them all, but I always prefer MSI-only. It's more simple, and if I need any extra code, I scribble a few VBScript lines, which are internally supported by the Windows Installer component.
I have a lot of experience working with it. It's a monster, and many of the weird cases are a bit buggy. Luckily, you have the external utility ORCA, that helps you edit your project outside the IDE, and fix those bugs. It comes with Developer 7 on the CD.
The documentation that comes with the IDE is not sufficient. You will also have to use MSDN for the MSI documentation (and VBScript if you're going to add you're own code... and you will!).
Other good resources are the discussion boards at InstallSite.org and InstallShield.com.
Good luck!
/=/=/=/=
Deus
/=/=/=/=
|
|
|
|
|
Thank you both for your answers !!
Jerome
|
|
|
|
|
How can i extract the path "C:\Mine\VC\" from the complete path "C:\Mine\VC\abc.exe" and store it in a variable.
|
|
|
|
|
If you are using VC7 there is a class called ATLPath which you can use. Otherwise you can do something along these lines
TCHAR szPath[] = "C:\\Mine\\VC\\abc.exe";
TCHAR szDir[_MAX_PATH];
StrNCpy(szDir, szPath, PathGetFileName(szPath) - &szPath[0] - 1);
There are lot of Pathxxx functions in Shlwapi.h.
|
|
|
|
|
Using MFC:
CString strPathAndName = "C:\Mine\VC\abc.exe";
int nSlashLoc = strPathAndName.ReverseFind('\\');
CString strPath = strPathAndName.Left(nSlashLoc);
- Shog9 - Aaah... It's time to relax. You know what that means: a glass of beer, your favorite ergo chair... And of course, The Code Project loaded on your Personal Computer System. So go on, and indulge yourself, put your feet up. Lean back and just enjoy the articles. After all, CP sooths even the savage
|
|
|
|
|
_splitpath()
---
CPUA 0x5041
Sonork 100.11743 Chicken Little
Within you lies the power for good - Use it!
|
|
|
|
|
I want my application to check for an active VPN connection.
Any ideas?
Thanks
A reasonable man adapts himself to the world. An unreasonable one persists, trying to adapt the world to himself. That is why all the progress in the world depends on the unreasonable men.
|
|
|
|
|
I am trying to build a project and I have included atlconv.h so I can do atl conversions between ansi and unicode.
My application is not using MFC BTW. I am getting the following error:
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(48) : error C2065: '_ASSERTE' : undeclared identifier
Any ideas what the problem maybe?
thanks
|
|
|
|
|
You need to include comutils.h instead and use _bstr_t to do your conversions.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
|
|
|
|
|
actually sorry I had forgotten atlbase.h along the path.
thanks
|
|
|
|
|
hi
can one display on the the editbox part of a ccombo and not the dropdown arrow?
(want to show the edit part until certain conditions are met then show the dropdown etc)
cheers
Bryce
|
|
|
|
|
I need some more details, but the most common context I assume you're talking about is how to correctly use the SetItemHeight method of CComboBox. Notice that if you use SetItemHeight( -1, .... ), where -1 is the index of the editbox, then you can set the size of the editbox, thus making it show...
/=/=/=/=
Deus
/=/=/=/=
|
|
|
|
|
umm i want to have the ccombobox, but i don't want to show the dropdown arrow on the right hand side
unless the user double clicks the control
Bryce
|
|
|
|
|
Very strange behavior if I may say so... Let me get this straight:
You have a control that looks like a regular editbox. When you double-click on it, a dropdown arrow appears and a dropdown list. Is this correct?
A friend of mine showed me a simple trick to do this: Create a normal editbox, and hook its double-click message. When the event occurs, dynamically create a combobox, with the same size and position of the editbox (so it completely hides the editbox). The user will choose whatever he likes, and when he presses ENTER or loses focus of the control, you xfer the information from the combobox back to the editbox, and destroy the combobox.
To sum things up:
OnDoubleClickOnEditBox:
Create Combobox on top of editbox
On ENTER or Loss-of-focus:
Xfer the data from the combobox to the editbox
Destroy the combobox.
/=/=/=/=
Deus
/=/=/=/=
|
|
|
|
|
I found some cool strings to edit in the registry that affect where the desktop wallpaper is placed. Now, I wrote some code to modify those strings, but I need to showhow force a refresh/redraw on the desktop to get it to use the new settings.
Currently, the only way for the settings to be updated is for me to use the Desktop Control Panel applet and click "Apply", forcing it to redraw the background.
I tried, GetDesktopWindow()->Invalidate() but that didn't work.
I'm using C++/MFC, VC6.0
Any help/ideas people have would be great.
Thanks!
|
|
|
|
|
Have you tried GetDeskTopWindow()->RedrawWindow()??
Don't know if it will work, but it is worth a try.
---
CPUA 0x5041
Sonork 100.11743 Chicken Little
Within you lies the power for good - Use it!
|
|
|
|
|
Try calling SystemParametersInfo() with the SPI_SETDESKWALLPAPER parameter (specify the existing wallpaper if you don't need to change it) and the SPIF_SENDCHANGE flag set.
- Shog9 - Aaah... It's time to relax. You know what that means: a glass of beer, your favorite ergo chair... And of course, The Code Project loaded on your Personal Computer System. So go on, and indulge yourself, put your feet up. Lean back and just enjoy the articles. After all, CP sooths even the savage
|
|
|
|
|
Thank You!
Seems way too easy, now that I know what I need to do.
|
|
|
|
|
How can I launch .hlp files from my application? (IE user clicks "help" button it luanches the help file).
Thanks
|
|
|
|