Problem with LicenseKey ? (General questions)
Is this where they are supposed to go in vb.net ?
--- Start Code ---
Public Class Form1
Inherits System.Windows.Forms.Form
Dim mBox As WODMAILBOXCOMLib.wodMailboxCom
Dim Msg As WODMAILBOXCOMLib.Message
Private Sub Form1_Load(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
mBox = New WODMAILBOXCOMLib.wodMailboxCom
mBox.LicenseKey = ****-****-****-****
Msg = New WODMAILBOXCOMLib.Message
Msg.LicenseKey = ****-****-****-****
End Sub
End Class
--- End Code ---
Because when I install the app on a machine that does not have the components installed, it pops up the wod logo,
that is a problem...
Thanks,
Mav
[:smile:]
Re: Problem with LicenseKey ?
Yes, this looks ok. Can you send me that app overwhere so I can see why it fails?
Re: Problem with LicenseKey ?
I'm still sure it's something to do with when I'm putting the license key in...
I uninstalled the components to do some testing on my TEST machine running Win2kp, I noticed the license keys don't uninstall from the registery, so I nuked them... sure enough after a restart the application says No License Key .
I'm using the dll's...
as in my previous message;
I imports WODMAILBOXCOMLib at the top of vb.net,
in the form class I
Dim mBox As WODMAILBOXCOMLib.wodMailboxCom
Dim Msg As WODMAILBOXCOMLib.Message
then in form_load I set licenses for dll's;
mBox = New WODMAILBOXCOMLib.wodMailboxCom
mBox.LicenseKey = ****-****-****-****
Msg = New WODMAILBOXCOMLib.Message
Msg.LicenseKey = ****-****-****-****
I then created a sub proc to load message dynamically;
mBox.Filename = msgPath
mBox.Lock()
mBox.AutoUpdate = True
If Msg.Headers.Exists( From ) Then
tbFrom.Text = Msg.Headers( From ).Value
End If
Msg.Unload()
mBox.Unlock()
I unload & unlock the message in the same proc, but I don't set Msg to nothing until closing app...
Can you please just reply with code that shows exactly where each reg part should be ?
Thanks,
Mav
[:doh:]
Re: Problem with LicenseKey ?
I forgot to mention: very important !
I used the same methods with the wodPop3,
and it works fine !
thanks,
Mav
[:wink:]
Re: Problem with LicenseKey ?
Mav,
but I don't know why it fails. Your code looks ok to me, that's why I want to see it in action to see why it fails.
Perhaps just a note: why do you initialize wodMailbox at all, since you only use Message object?
Re: Problem with LicenseKey ?
I did it again, setup a whole new machine, fresh install of Windows 2000 pro & sp3, and it did the same thing, the pop3 works great and the mailbox component keeps poping up wod logo that says no registeration key,
Can you please send me a different key,
so I can try to do more testing?
This is the component that you made some mods on to get it to work for my last problem(files were locked and would not move), I think it may not recognize my current key...
Thanks,
Mav
[:sad:]
Re: Problem with LicenseKey ?
Mav,
seems this was a bug afterall (can you believe it??!). Problem was that you did set license key for the message, but that message had parts which are also message objects which require license key, so it failed..
No, you couldn't do it automatically, but I think now it will work ok.
Kreso