I did not understand how the UIHelper.dll can be used in VC++ application. The article explains using the dll in VB. Can anybody tell me how do we need to use this dll VC application? please mail me at kmcy@chevron.com
can any one help?Reply
Kraig Hiersche, You said "VB can't handle these formats at all". I don't agree. Believe me, VB is more powerful than you thought. Actually, I already find a way to hanlde this task in pure VB, not even using WinAPI by "Declare".
Why did xidongzhang make that cryptic post, and then ignore requests for more info ?
ReplyHi all. Could anyone share the drag&drop VB.NET codes? Pls.email to coineroy@gmail.com. Thanks.
ReplyIs there anyone who can share the vb codes? My email address is vojzville@yahoo.com Thanks in advance!
ReplyIs anyone willing to share the code for this? Ideally VB.net, but VB6 will work. My email address is sreiter@foundrysoftware.com. Thanks in advance.
ReplyCould anybody share the code with me. My email address is Becker-Software@t-online.de. Thanks in advance Thomas
Reply"Actually, I already find a way to hanlde this task in pure VB, not even using WinAPI by Declare". Please post how you did it!
ReplyHi XidongZhang, I'm looking for VB code that can drag and drop email attachments. Appreciate that you could share the code with me ? My email address is yencheah@yahoo.com. Thanks in advance.
ReplyI have Visual C++ 6, but am getting errors on the compile. Has anyone had this issue?
Hi did you find the solution how to compile UIHelper.dll in VC++? please mail me at kmcy@chevron.com. Thank you in advance.
ReplyHi, Great works, but im only have VB6 and not C++. Please, send my the dll. ThanxReply
Not having c/++, it would be great if someone would tell me where to get the compiled dll.
I too have no means to compile the DLL. Actually I am interested in the ability to drop the email from Outlook onto a VB6 Form, which would then place the .msg file into a folder. Any advice would be appreciated.
ReplyActually, there is a command GetClipboardFormatName
which returns LPSTR by given ID. More then that, if you want to see all transfered ID's, you could use the loop to check it.
(it is all in C, MFC, so the IDataObject is COleDataObject class. Anyway, the interface should have the same functionality as COleDataObject;
at least I was able to find the IDataObject functions in COleDataObject class).
The sample of this is:
pDataObject->BeginEnumFormats(); //received in Drop function
FORMATETC lpFormatEtc;
while (pDataObject->GetNextFormat(&lpFormatEtc))
{
if (pDataObject->IsDataAvailable(lpFormatEtc.cfFormat))
{
//get format's name
char strFormatName[MAX_PATH];
if (GetClipboardFormatName(lpFormatEtc.cfFormat, strFormatName, MAX_PATH) == 0)
{
LPVOID lpMsgBuf;
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
(LPTSTR) &lpMsgBuf, 0, NULL);
// Display the string.
TRACE("Cannot get eudora format :%d:'s name: %s", lpFormatEtc.cfFormat, (LPCTSTR)lpMsgBuf);
// Free the buffer.
LocalFree( lpMsgBuf );
}
else
{
TRACE("Format :%d: Means :%s:\n", lpFormatEtc.cfFormat, strFormatName);
}
if (GetClipboardFormatName(-16370, strFormatName, MAX_PATH) == 0)
{
TRACE("Error getting -16370 format\n");
}
else
{
TRACE("Format :%d: Means :%s:\n", -16370, strFormatName);
}
}
}
Reply
Just select 'Debug' under Tools/Set Active Configuration in Visual Studio 6.
ReplyThe source didn't link on my Win2K machine. I would like the complete source that does build, but I can live with just a compiled version. It was an unresolved external error on the symbol _main if that tells you anything.
ReplyHi, since I need the compiled dll, too, I wanted to ask if anyone got it, yet? Anyway, very good article.
ReplyI think that the default email format is not rich text for the newer outlook packages. Goto Tools, Options, Mail Format, and then select Rich Text. Hope this helps.
Reply