|
But here i want the control id which lost its input.
|
|
|
|
|
Super Hornet wrote: i want the control id which lost its input.
The notification is sent to the control that has lost focus.
/ravi
|
|
|
|
|
has anyone used pkunzip.exe for unzipping files
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: has anyone used pkunzip.exe for unzipping files
It's not a good question for this forum and this question has two answers yes|no,however I suggest use of WinRar
|
|
|
|
|
deeps_cute wrote: has anyone used pkunzip.exe for unzipping files
Yes.
|
|
|
|
|
I use it regularly.
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Hi,
I wish to parse the EML file ie, storing the EML file contents into
From, To, Cc, Bcc strings and attachments to the corresponding formats.
Please could you specify where i can get the source code for doing this task or suggestions for achieving this would be appreciated in advance...
Regards,
nag.
|
|
|
|
|
Refer to this[^] link.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
Hi,
Thanq for ur prompt response...sorry for the delayed reply...
I searched on "Parse eml files" in the google...but all the links are showing the third party softwares and using MAPI.
I don't wish to use third party tools and MAPI. It should be done by reading the raw data. EML file should be parsed and stored the Attachments in the corresponding files, From, To, Cc and other fields in respective fields. The html body should be stored in plain data.
Please could you specify where can i get the code snippets for achieving this.
Regards,
nag.
|
|
|
|
|
Hi,
I want to use gdi+ in VC++ 6 from where I can get the GDI+ SDK i.e. gdiplus.lib .. etc?
Please help.
Regards
Avinash Gupta
1st Year B-TECH Student(CSE),
ITER India.
|
|
|
|
|
|
u can search gd+ in net, you will get all these.. You need to include
gdiplus.h in your project to use it.
If u can Dream... U can do it
|
|
|
|
|
We are designing a program to diplay the contents of 2 files in an edit box by havin 4 buttons start1 stop1 start2 stop2 that do corresponding jobs.So we are clueless as to how to do the program.Can u send links relating to the program
|
|
|
|
|
Not enough clarity in your request for anyone to be able to help.
what, precisely, are start1, start2, stop1, stop2 expected to start and stop doing? When you say "display the contents of two files in an edit box" one would expect that you mean you are diplaying the text content of two files (that's what edit boxes do). So what is the pupose behind the start and stop buttons (are they meant to browse for and open the files?, close the files?).
Read the post at the top entitled "How to get an answer to your question". Pay particular notice to item 2.
|
|
|
|
|
how to know that the adapter(either lan or wireless) is disconnected in wmi
|
|
|
|
|
use netconnectionstatus in win32-networkadpater. if this is 0 -> disconnected
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
hi..
My problem is about registry read/write, and i used VC6.0 to access vista registry but it did not work; does it need to re-compile by Mt.exe or it has other way.....
Tnanks~
Benson
Just try it!!
|
|
|
|
|
I was having trouble with this as well. Daniel Grunwald was kind enough to point me to an item I must have missed when reading "Windows Vista Application Development Requirements for User Account Control Compatibility" around page 63 and up concerning manifests.
The UAC(User Access Control) junk for Vista, specifically the registry and file virtualization technologies, were kicking in for my windows NT based apps. Apparently, we need to embed one of those darn manifest files in our app to prevent virtualization from kicking in. I've been playing with it for a couple of days and it seems to work. (so far)
Having the manifest with the <trustInfo> section apparently disables virtualization for the app.
Anyway, be forewarned, there are some issues with the manifests from VS 2005 causing some parsing bugs on XP if those manifests are used as is. I'm using the manifest that gets added to my VC++ 2003 projects and modifying it accordingly and things have been stable.
Here's the layout I'm using for standard apps...
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="Microsoft.Windows.YourAppNameGoesHere"
type="win32"
/>
<description>Your app description here</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
<ms_asmv2:trustInfo xmlns:ms_asmv2="urn:schemas-microsoft-com:asm.v2">
<ms_asmv2:security>
<ms_asmv2:requestedPrivileges>
<ms_asmv2:requestedExecutionLevel level="asInvoker">
</ms_asmv2:requestedExecutionLevel>
</ms_asmv2:requestedPrivileges>
</ms_asmv2:security>
</ms_asmv2:trustInfo>
</assembly>
for administrative utility apps, simply replace the "asInvoker" to "requireAdministrator" and it'll put one of those nifty shields in your icon identifying it as such and ask the user if it's ok to run as admin whenever they try to run it on Vista. This eliminates the need to remember to right click the icon and choose "Run as Administrator".
The article "Using Windows XP Styles in your MFC/WIN32 Applications" here on CP has a decent description on how to embed the manifest file quickly. The Microsoft way requires some defined symbols and it is probably more elegant but if your in a hurry, and want to get this working fast, his article does the job.
Disclaimer: I'm still trying to verify that this doesn't hose my apps on other versions of Windows but so far, XP and W2K have not complained. I've only known about this for a few days myself.
I hope that helps. (Sorry for the long post. I just thought I'd bundle everything people have helped me piece together in one place for others to use)
|
|
|
|
|
Hi bob~
i would like to say thank you and now i'm trying to do ur way,it seems useful to me, but i used VC6.0 to build lib and dll, does VS2003 has some converter to re-compile them for VS2003..
Thanks a lots~
Benson
Just try it!!
|
|
|
|
|
hi
is there a way i can check the current logged user is admin.
thnx
|
|
|
|
|
Win32 API call IsUserAnAdmin
thanks Judy - see this post[^]
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
|
|
|
|
|
|
I need to write a program which using CBitmapButton class in a dialog box, so I find the sample code in MSDN and put the code into my program as follow:
In my header file(in a CDialog class)
<br />
CBitmapButton btnBitmapButton;<br />
BOOL m_btnChecked;<br />
In my resource header file
<br />
#define IDC_BTN_BMPBTN 1020<br />
In my CPP file
<br />
m_btnChecked = FALSE;
<br />
BOOL CMyDialog::OnInitDialog()<br />
{<br />
.<br />
.<br />
.<br />
btnBitmapButton.Create( "", WS_CHILD|WS_VISIBLE|BS_OWNERDRAW, CRect(200, 200, 10, 10), this, IDC_BTN_BMPBTN );<br />
<br />
if( ! btnBitmapButton.LoadBitmaps(_T("MYBUTTONU"), _T("MYBUTTOND")) )<br />
{<br />
TRACE0("Failed to load bitmaps for buttons\n");<br />
AfxThrowResourceException();<br />
}<br />
<br />
<br />
btnBitmapButton.SizeToContent();<br />
.<br />
.<br />
.<br />
}<br />
In Event Handler
<br />
void CMyDialog::OnBtnBitmapButton()<br />
{<br />
if(m_btnChecked)<br />
{<br />
btnBitmapButton.SetState(FALSE);<br />
m_btnChecked = FALSE;<br />
}<br />
else<br />
{<br />
btnBitmapButton.SetState(TRUE);<br />
m_btnChecked=TRUE;<br />
}<br />
<br />
}<br />
After compile and run the project, the codes above runs well, but there is a problem which I need the bitmap displays with transparent, and I can only use BMP format picture, so use a GIF transparent picture is not an option, I know how to load a bitmap to a CDC object, and know how to make it be a transparent bitmap, but I just don't know how to put this transparent picture on the CBitmapButton object.
I had search articles about how to implement a tranparent bitmap button both on CG and CodeProject website, and also find some articles which might useful to me, but those codes are all too complex to me, and I don't have time to check the code to figure out how I can use them.
I think I might need to create a class that inherit from CBitmapButton, then override the DrawItem member function, but I didn't have any clue to tell me how to override it.
So, does any one can tell me how to use CBitmapButton class and can use a transparent picture which doing transparent job dynamically?
-- modified at 7:01 Monday 9th April, 2007
|
|
|
|
|
If you're able to convert the .gif image to a .bmp , you can use this[^] button class if you add the .bmp to your app's resource.
/ravi
|
|
|
|
|
Thanks for your help, I had downloaded and tested, it's a really good button class, but it's like all the other classes, it's too many function, but I just want my button can act like a CBitmapButton and can use a bmp which make it transparent by myself, so if I want to fetch some codes that I really need, then insert into my project, it would cost too much time, because I still not familiar with MFC, and the time I have is too less, so, I need a component which simply for single subject for me to use, otherwise, override maybe my best choice, if there is any one can tell me the way, but thanks for you help anyway
|
|
|
|