|
I think that you can use MessageBoxIndirect(...) to specify a different Language ID to use for the text on the standard button(s).
It looks like MessageBoxEx(...) can be used, but I do not think the "cross-language" functionality is implemented in it.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
Thanks to all for helps. I love you and thank you very much!
Software Engineer
|
|
|
|
|
Does any body a way to remote access a computer on a network to add/remove files.
I know using 'CreateFile()' I can create file on the network but that requires me to login on the local computer with the same username and password as registered on the remote computer. Is there any way to create a token to use for accessing remote computers?
|
|
|
|
|
Take a look at WNetAddConnection2 and its related functions.
|
|
|
|
|
You can use LogonUser() and ImpersonateLoggedonUser() to get access to a remote machine for a specific user with username and password.
cheers...milton kb.
|
|
|
|
|
After googling little bit I found out two different meanings for Alt Gr.
Does it mean Alternate German or Alt Grpahics or Alt group?
Also how to trap in PreTranslateMessage()? Is this the correct way or is there any better way?
<br />
bool bAltGrp = false;<br />
if((::GetKeyState(VK_CONTROL) & 0x8000) && (::GetKeyState(VK_LMENU) & 0x8000))<br />
{<br />
bAltGrp = true;<br />
}<br />
else if(::GetKeyState(VK_RMENU) & 0x8000)
{<br />
bAltGrp = true;<br />
}<br />
Thanks and Regards,
Arti Gujare
|
|
|
|
|
try out :-WM_SYSCHAR
Regards,
FarPointer
Blog:http://farpointer.blogspot.com/
|
|
|
|
|
Hi
I needed to develop HTTP listener in C++. This listener should support SSL. After searching for the technology for this I chose HTTP API which seems to support SSL. First I developed all the functionality of the listener and added request handlers. So now HTTP works well.
I started to add SSL support. Step-by-step I did all the recommendations found in MSDN: added certificate to the store with HttpSetServiceConfiguration (checked with httpcfg - it is there), and changed scheme in URLs to "https".
And... HTTPS does not work. I have absolutely no idea why. I even do not have an idea how to get know why. There are no errors (no errors even in HTTP API logs). HTTP Requests are not accepted. Port is opened but when I try to send data server just disconnects. The requests is not received by the service. Seems like it is rejected inside HTTP API.
Please help! How can I get this work? How, at least, I can get the reason why it does not work?
Thanks,
Andriy
Andriy Lesyuk
|
|
|
|
|
I feel I have to answer your question, since noone else does.
I know nothing about HTTP API, but if it doesn't work, maybe you could use OpenSSL for the https sessions?
That solution is used in one of the programs I'm responsible for maintaining. (I didn't write it, though). Works well.
It uses winsock for http sessions and OpenSSL for https.
|
|
|
|
|
To use winsock + OpenSSL i need to rewrite almost all code. I'm not sure that this is acceptable way out.
|
|
|
|
|
how can i set font to my edit contol
sree.
|
|
|
|
|
|
can u give me some more information,
or any examples or links,
sree.
|
|
|
|
|
I think SetFont can help you.
CFont m_MyFont;
m_MyFont.CreateFont(14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "Courier New");
m_cMyEditControl.SetFont(&m_MyFont);
|
|
|
|
|
thank u i got it.
bye
sree.
|
|
|
|
|
see
<br />
CFont m_FontEdit;<br />
CFontDialog m_dlg;<br />
if(m_dlg.DoModal()==IDOK)<br />
{<br />
FontEdit.CreateFontIndirect(&m_dlg.m_lf);<br />
m_Edit.SetFont(&m_FontEdit);<br />
}<br />
whitesky
|
|
|
|
|
While it appears that your CFont object is a member, it might be worth saying that the CFont object used with CWnd::SetFont(...) should not be destroyed until after the control using it is done with it (or has been destroyed). (At least - I think it has to hang around...)
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
how to remove default OK CANCEL APPLY HELP button from bottom of property sheet and our oun button
please mail
rahul
|
|
|
|
|
Hi,
You can't remove those buttons, but can hide. To hide back button use the below code.
CWnd* pWnd = GetDlgItem(ID_WIZBACK);<br />
if(pWnd)<br />
{<br />
pWnd->ShowWindow(SW_HIDE);<br />
}<br />
Adios,
Cool Ju
Dream Ur Destiny
|
|
|
|
|
thanx for solution
prashant jain malviya national institute of technology
|
|
|
|
|
Hi
What would be the best way of comparing two dates, so i am left with the difference in days
between the two dates
thanks
si
|
|
|
|
|
|
See Here[^]maybe it is some helpful to you
whitesky
|
|
|
|
|
I'm developing a piece of equipment that requires me to send data via USB. I open a text file and click another button to send it.
I found CFileDialog crashes with an access violation after about the third 'visit' to my desktop. This happens whether I open a file or not.
I thought it might be something in MFC, so I created a simple SDK app and used the following:
OPENFILENAME ofn; <br />
char szFile[1000];<br />
<br />
szFile[0] = '\0'; <br />
ZeroMemory(&ofn, sizeof(OPENFILENAME));<br />
ofn.lStructSize = sizeof(ofn);<br />
GetOpenFileName(&ofn);
This is the ONLY code I added to the bare app. And this crashes too. Only when visiting the desktop and only on the third or fourth 'visit'. I haven't tried it on other machines / OS. I'm running XP Pro SP2.
RA
|
|
|
|
|
You may have to initialize other members of the OPENFILENAME structure.
Knock out 't' from can't,
You can if you think you can
|
|
|
|