Is anyone familiar with the MAPI embedded attachments? I need to combine a message from my code, and attach an Image inside the message, so it will be visible as an image.
I was able to find an article from Microsoft that is supposed to explain how to do it(http://support.microsoft.com/kb/168903[^], but when I do it Outlook tells me (at the top of the new message) that the attachment was blocked since it unsafe. Does anybody have a clue? A code that does it or what flags / functions can solve it?
Outlook tells me (at the top of the new message) that the attachment was blocked since it unsafe.
All versions of Outlook since Outlook 2000 Service Release 1 (SR1) include a security feature that blocks attachments that might put your computer at risk for viruses or other threats. Although Outlook blocks access to the attachment, the attachment still exists in the e-mail message.
Does anybody have a clue? A code that does it or what flags / functions can solve it?
This[^] MSDN article gives more detail on this; no codes.
Look at the Advanced troubleshooting section of the article, I am sure you can do some tweaking with outlook registry entries to Outlook's attachment security behavior locally. Or you can ZIP the image and attach to a mail so that your recipients may not see a security warning.
First of all, thanks for your quick answer.
I am familiar with the security issue, but I'm afraid my problem is a bit more complex than that - I am able to attach images in the 'regular' way (as an attachment), the problem is only when I try to embed it (so the image will appear as a part of the text). This is why I believe what you suggest cannot help me...
Any other ideas?
This is why I believe what you suggest cannot help me...
Sorry for that!
Any other ideas?
I haven't played much with MAPI; How about attaching certificate[^] with your message so that outlook may identify your mail as a 'safe' one ? Please look at this, and check whether this works for you... [Just a suggestion, and am not sure about this approach]
There are lot of samples on MAPI programmes here[^]; I think you may get some more ideas from there.
Our project(client\server application) support redundancy(i.e there 2 running servers,one of them is the root and the other is the secondary,and there are multiple clients connected to each one of the servers.once the root server is down,the secondary becomes the root server and continue to serve the clients from the same location the other server stopped).
The servers uses PING messages between them to realize when a server(which can be the root server) is down(to switch to another root).
In addition,we wrote some kind of watchdog application,which is running on each server,and which is being notified by it's server(keep alive events).
In case that the watchdog didn't get such keepalive event for a predefined period of time(for example - the server is in endless loop) - the watchdog resets it's server in order to let another server to become a root server.
So far so good
During one of our unit test,we encountered a problem which causes the operating system(Windows XP) of the root server to hangs(note that not only the server application hangs but the computer is not responding).
In such case the watchdog application is not working also,therefor - cannot reset the root server.
You probably ask yourself:
"So whats the problem?
The other server will try to PING to the other root server,and since the PING process will fail,the
other server will become the root server."
For some reason,though the operating system hangs - it still response to PING request.
Now for the questions...
1. We're looking for an API which causes the operating system to hangs (so when we'll fiind a
solution we will be able test it.
2. Is there another way to stop PING handling while the operating system hangs?
3. Is there a built in watchdog mechanism in Windows XP that we can use(or another watchdog
application which runs in a lower level and can reset the computer in case that the operating
Sorry for the (very) lonk post...
With best regards,
i have read something in internet how to call c++ .dll, and tried to declare functions in vb 6, but however after i compiled, the error was there:" can't find DLL entry point in xxxx.dll". so how to invoke the c++ member function in one .dll, someone can give me help to realize step by step. thanks a lot in advance.
note: probably one library has several classes, so how can i know which library i can use or how to use it?
Private Declare Function DataFormat Lib "icon_vc80_40d.dll" (ByVal cpIpAddress As String, _
ByVal dnsFlag As Boolean) As Boolean
Private Sub Command1_Click()
Dim a As String
Dim b As Boolean
Dim c As String
a = Text1.Text
c = DataFormat(a, True)
Text2.Text = c
i used this code to test the .dll, but the error occurred: didn't find .dll file. or couldn't find entry point of .dll. what is problem?
Note: ICON_API icon::DataFormat::DataFormat ( const DataFormat& df,
bool cloneComponents = true
[in] df DataFormat object to copy.
[in] cloneComponents Specifies if a deep or shallow copy is made.
Not thread safe. The data being copied can change at any time.
could you help me to check, is this right? the Note above just showed dataformat() detail.
thanks a lot, i have documentation of .dll, so i know the actual function name, is this right? sorry, i dun know more this point. now i used the code to test one function DataFormat() what i posted in previous reply. so the error occurred: file not found: icon.dll. so what is problem? and also i have several classes in one library, how i can call the functions properly?thanks.
Last Visit: 31-Dec-99 18:00 Last Update: 23-Sep-23 18:35