|
Try
void func( LPSTR lpsz )
{
USES_CONVERSION;
...
LPWSTR x = A2W(lpsz)
// Do something with x
...
}
(From MSDN)
- NS -
|
|
|
|
|
sprintf(dest,(LPCTSTR)CString_variable);
see the format of sprintf.
hope it works for you.
|
|
|
|
|
A lot of results to resolve my problem
This site is really great :->
|
|
|
|
|
Hi Everybody.
I have some trouble for mixing the input level of a microphone connected to the sound card of my laptop. My laptop is a Dell D420 with SigmaTel Audio soundcard.
While trying to use the function put_MixLevel( ) of the IAMAudioInputMixer interface, the hr result return is E_NOTIMPL.
I tried to reinstall the driver, and also tried to do the same thing with a USB sound card (Hercules Muse Pocket LT), it's still the same result.
However, while trying to use this function with a usb headset or with a webcam, it worked perfectly. Does anybody knows what is wrong?? How can I fix the problem and a the end use this function with my soundcard?
Thanks in advance.
|
|
|
|
|
I need to browse to page in hosted web browse rcontrol to HTTPS page with
invalid certificate. How can I silently accept it ?
The silent mode disables the popup but it revokes the certificate.
Adding this certificate to accepted certificates manually does not help, I
need general solution for any site.
Is there some interface I can implement to handle this or some registry key
I can change?
Thank you!
rrrado
|
|
|
|
|
DId u tried IObjectSafety ,not sure.
If u can Dream... U can do it
|
|
|
|
|
it seems this interface is for some AciveX controls, not SSL/HTTPS
rrrado
|
|
|
|
|
if your certificate is out of date, why would you enforce the security of the web site ?!
|
|
|
|
|
some sites are invalid (self-signed) certificates and surfer can do nothing about it,
he wants the software to work
rrrado
|
|
|
|
|
but obviously, it's not your fault...
you don't have to adapt your code one's problems. someone has to fix the website, not you to try to pass at any cost
|
|
|
|
|
i have created a 3D array, and now i want to delete it......what is the syntex and function to delete the 3D array??? plzzzz reply me sooooooooon!
|
|
|
|
|
|
MahaKh wrote: ......what is the syntex and function to delete the 3D array??? plzzzz reply me sooooooooon!
how do you create the 3d array!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
oho , it is very complicated.
int 3Darray;
If u can Dream... U can do it
|
|
|
|
|
If you used the new[] operator to create the array, then you must use the delete[] operator to destroy it, just in reverse order.
int *pNum = new int[5];
...
delete [] pNum;
int **p = new int*[5];
for(int i = 0; i < 5; i++)
p[i] = new int[8];
...
for(int i = 0; i < 5; i++)
delete [] p[i];
delete [] p;
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I want to change my parent window's appearance when clicking on one of its child windows. Is there any clean way to notify the parent window of getting focus? Since if I have many child windows or several levels of descendants, I have to process the focus message everywhere.Thanks for your help.
|
|
|
|
|
Hi,
you get the parent-window this way :
CWnd *par = GetParent();
You can even do it in a loop, but you need to check when you reach the Frame.
For example by testing to pointer with ->IsKindof(RUNTIME_CLASS(YourFrame or StandardFrame))
I hope it works
|
|
|
|
|
if you need mfc Mainframe window , you can use AfxGetMainWnd() , Otherwise use GetParent.
If u can Dream... U can do it
|
|
|
|
|
Try WM_ACTIVATE, WM_ACTIVATEAPP, WM_NCACTIVATE, etc...
- NS -
|
|
|
|
|
Thanks, WM_MOUSEACTIVATE works. The parent window always gets this message when I click on its child, even it is already active. This is a little different from that mentioned in document. Not perfect but it works for me.
For other solutions, they are good ideas, too. Maybe I can use them in other cases. Thanks a lot.
|
|
|
|
|
Welcome
I think you may have to take care about the following MSDN description:
"The parent window receives this message only if the child window passes it to the DefWindowProc function."
Anyway I didn't have done any further dig on it...
- NS -
|
|
|
|
|
Thanks. Finally, it's my fault. MSDN says only the top-level windows can be activated. My child window is, of course, not a top-level window, so I always get the clicking message. And the parent window doesn't get WM_ACTIVATE message because it is not a top-level window either.
Anyway, this website is really helpful. There are so many resources and I can usaually get my answer in a short time. Unfortunately, I'm working on embedded systems instead of PC systems. If anyone knows where I can find as many resources as this website has, please tell me. Our product is set top box. Thanks.
|
|
|
|
|
Hi there!
I'm trying to build a simple dialog-based application for a Windows Mobile 5.0 Pocket PC which uses the Windows Media Player SDK to play audio as well as video. But I can't get it to work...
I downloaded the WMPSDK 10, created a new dialog-based app and included a ActiveX-Control as provided in the SDKs Help. Compiling works well without any warnings or errors. But after deploying either to the emulator or the device, i get the following debug-message:
<br />
Persistence not supported on OLE control {6BF52A52-394A-11D3-B153-00C04F79FAA6}.<br />
>>> Result code: 0x00000000<br />
Warning: Resource items and Win32 Z-order lists are out of sync. Tab order may be not defined well.<br />
On the device i get a 'Debug Assertion Failed!' referring to 'occont.cpp' file.
google didn't help me any further. Is there anybody out there how as a small hint?
greetings from Munich,
m.
PS: sorry for my bad english...
|
|
|
|
|
|
Hi,
I'm creating the setup of my application, I need to execute an exe file during the setup, so I added that exe to the setup files and I added an custom-action to run it.
It is runned as well, but I need to create 2 different solytion types (like Release and Debug), and I need that that exe is runned only in one case (i.e. for example in "Release" case and not in "Debug" case). To do this I'm thinking that I can use the "condition" related to the custom action.
But,... what I have to write there? I tryed "Release" and "!Debug", but this isn't well understanded to the setup compiler.
Any suggestions?
thanks
Russell
|
|
|
|