|
But Classwizrd does not give any options for that. I can get message handlers only for BN_CLICKED and BN_DOUBLECLICKED.
|| ART OF LIVING ||
|
|
|
|
|
Hi,
i am getting the following error:
error PRJ0019: A tool returned an error code from "Performing Custom Build Step"
how can i overcome this error.I think some build settings need to be changed.
Regards
|
|
|
|
|
Will this[^] help ??
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Hi everybody,
is it possible to drag an E-Mail of Thunderbird or MS Outlook into a MFC Application
and to drop it there?
I think yes, but which informations are delivered?
Is there propably an existing tool which accepts E-Mails and show the informations about it?
Big big thanks
|
|
|
|
|
Outlook allows dragging and dropping mails to different applications like a user can drag the item from the Outlook window to MS WORD, in essence you can drop an item on to a MFC application from Outlook or Thunderbird, read it using MAPI and then display the details of the item or do whatever you want.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Did you made an application which uses this technique?
Does a "MAPI Object" been stored into the clipboard or transfered via Message
and my MFC application need to read it and then i have all the informations ?
Seems simply but very hard without never working with it
|
|
|
|
|
I do not know about Thunderbird, but Outlook's drag-n-drop data format is not an easy one to work through. There are quite a few steps you have to do to actually get to the message portion of the email.
I was trying this a few months ago for an application I was working on, and it was a serious PITA - the data formats and structures used are not documented very well and in fact, I never got it working in a completely stable way (random memory problems), so I left it out of the product.
I wish you good luck!
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> 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! See DeleteFXPFiles
|
|
|
|
|
MUHAHAHAHAHA,
if a C++ expert like you don't get it workin, so it's at the moment impossible for me.
I'll consider to change the expiration.
The user should save the mail in .eml and the tool extracts the file
Thanks anyway you two !
|
|
|
|
|
Being a C++ expert does not automatically mean that you can figure out how things work in Windows, but thanks for the complement anyway!
Not impossible - you may have more time on your hands do figure it out than I did...
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> 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! See DeleteFXPFiles
|
|
|
|
|
Hi,
I am using CryptAcquireContext, it works fine everywhere except safe mode in windows 2000.
Thanks in advance
|
|
|
|
|
sudarshan124 wrote: CryptAcquireContext
What's the error code?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
can anybody tell me how to create a gantt chart in vc++
thanks in advance
|
|
|
|
|
for this,
you have to create your own active X control.
i can help you to create an active X control.
|
|
|
|
|
You don't need to create an ActiveX control for that. You can simply create a standard user control.
|
|
|
|
|
can you just educate me the regarding the difference between creating an active X control and a standard user control?
thank you.
|
|
|
|
|
You create an ActiveX control (in general) when you want it to be usable from a different language. If you want an good introduction on custom controls, I suggest this article[^].
In brief, a custom control are just source files that you include in your application (as opposite to an ActiveX which is dynamically loaded).
|
|
|
|
|
thanks a lot for the information.
|
|
|
|
|
Look here[^], there are some charting controls. That will give you an idea of what you need to do.
If you are new to this, I suggest to use an existing control (maybe buy such control ?).
|
|
|
|
|
Here is a snippet of my .h file
[
coclass,
noncreatable,
threading(apartment),
support_error_info("IAttachment"),
vi_progid("RMMAPIParserLib.Attachment"),
progid("RMMAPIParserLib.Attachment.1"),
version(1.0),
uuid("32ECA67C-0B5F-4489-B163-85C6CEDDB746"),
helpstring("Attachment Class")
]
class ATL_NO_VTABLE Attachment :
public IAttachment
{
.....
STDMETHOD(GetPropUNICODE)(LONG PropertyID, BSTR* pRetVal);
.....
}
and here is the function
STDMETHODIMP Attachment::GetPropUNICODE(LONG PropertyID, BSTR* pRetVal)
{
if ((PROP_TYPE_MASK & PropertyID) != PT_UNICODE)
{
return E_FAIL;
}
redmap::mapi::FoundProperty prop
= m_Attachment->FindProperty(PropertyID);
if (prop.second)
{
ATL::CComBSTR bstr (prop.first.lpszW);
return bstr.CopyTo(pRetVal);
}
else
{
ATL::CComBSTR bstr (L"");
return bstr.CopyTo(pRetVal);
}
}
Now my problem is I am getting the support_error_info error, what is wrong with the code?
Thanks
Jj
|
|
|
|
|
Hello Friends,
I need to Convert WCHAR string into BYTE * To Use in the RetSetValueEx() function as it takes the value in BYTE Format. But dont know How to Do It.
I am Using Following code.
When I dubug the Programme the Value of the Byte seem to be Ok in the Debugger. But I am using this BYTE value to set it in the registry. And when I see in the Registry I only able to see this 㩃坜义呎 .
The Code I am using is as follow.
<br />
TCHAR *Path;<br />
char ch[256] = {};<br />
BYTE *Byte;<br />
RegOpenKey(HKEY_CURRENT_USER,L"Software\\PersonalMenu",&hKey);<br />
Byte = new BYTE[strlen(ch)];<br />
Byte =(BYTE *) ch;<br />
Byte[strlen(ch)] = NULL;<br />
RegSetValueEx(hKey,Name,0,REG_SZ,Byte,sizeof(Path)*2+1);
|
|
|
|
|
Are you quite sure you need to "convert" it and not just cast it using (LPBYTE). If you are compiling with UNICODE then RegSetValueEx isexpanded to RegSetValueExW by the precompiler and the string should be UNICODE in a WCHAR*. If you are compiling without UNICODE then it is expanded to RegSetValueExA and the string, which should be ANSI in a char*, is converted to UNICODE before being stored.
|
|
|
|
|
That was the First thing I have done. I When I simple Type Cast it and Put dutring settring the registry It doenst take the whole path;
For Example this is the code privously using. And now I got it where is the problem. its in sizeof() function.I was using it wchar.
void AddInReg(WCHAR *Name,TCHAR *Path)<br />
{<br />
HKEY hKey;<br />
RegOpenKey(HKEY_CURRENT_USER,L"Software\\PersonalMenu",&hKey);<br />
RegSetValueEx(hKey,Name,0,REG_SZ,(BYTE *)Path,sizeof(Path));<br />
}
Now I have replaced the sizeof(Path) with wcslen(path)*2+1;
and Its Working.
|
|
|
|
|
Your string handling is, well, all messed up. You have three different variables there, but none hold a meaningful string. You are also passing a non-Unicode string to the Unicode RegSetValueEx() API. This is wrong - REG_SZ means a zero-terminated string that matches the character set that the API is expecting.
|
|
|
|
|
Hi,
I want to add a underlined hyperlink on a dialog box as a text and taking mouse over it makes it blue and on clicking on it an instance of internet explorer opens with the specified URL hyperlink.
i want to do this in an mfc application as it happens in webshots desktops application.
Thanks In advance
Dhiraj
Dhiraj Kumar saini
|
|
|
|
|