|
-
Nov 14th, 2005, 08:53 PM
#1
Thread Starter
PowerPoster
[RESOLVED] Attn: MartinLiss
Hi:
I am checking out the registration program from the Code Bank from MartinLiss and I am getting an problem with a missing file. I recently had to uninstall and reinstall VB6 Enterprise Edition and I also installed VB6 SP6 but when I run the Protect, I have a problem with a reference. Screen shot attached. I have Office XP installed on this machine too. (I have no problems in running the KeyGen though)
Please advise
Last edited by BrailleSchool; Nov 14th, 2005 at 09:04 PM.
-
Nov 14th, 2005, 09:03 PM
#2
Re: Attn: MartinLiss
I havent seen it but it looks like it was written to send information via email. Martin probably used a reference to Outlook 98. You should just be able to remove it and add a new reference to your version of Outlook.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 14th, 2005, 09:04 PM
#3
Re: Attn: MartinLiss
Or use late binding instead so versioning wouldn't be an issue.
-
Nov 14th, 2005, 09:11 PM
#4
Thread Starter
PowerPoster
Re: Attn: MartinLiss
The version of Outlook I use is Outlook Express
-
Nov 14th, 2005, 09:13 PM
#5
Re: Attn: MartinLiss
Cant automate anything with Outlook Express as it doesnt expose any valid COM interfaces.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 14th, 2005, 09:14 PM
#6
-
Nov 14th, 2005, 09:17 PM
#7
Re: Attn: MartinLiss
 Originally Posted by dglienna
You read the question wrong dglienna. The missing reference is Outlook and not the selected reference "OLE Automation".
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 14th, 2005, 09:23 PM
#8
Re: Attn: MartinLiss
Oops. I thought it was pointing to the missing location
EDIT: Select "microsoft outlook 10.0 library" instead
Last edited by dglienna; Nov 14th, 2005 at 09:28 PM.
-
Nov 14th, 2005, 09:25 PM
#9
Re: Attn: MartinLiss
I know, I had to read it twice to make sure I responded correctly. 
Edit: Solution in post #2.
Last edited by RobDog888; Nov 14th, 2005 at 09:29 PM.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 14th, 2005, 09:34 PM
#10
Thread Starter
PowerPoster
Re: Attn: MartinLiss
 Originally Posted by RobDog888
I havent seen it but it looks like it was written to send information via email. Martin probably used a reference to Outlook 98. You should just be able to remove it and add a new reference to your version of Outlook.
How? lol
-
Nov 14th, 2005, 09:34 PM
#11
Re: Attn: MartinLiss
 Originally Posted by RobDog888
I know, I had to read it twice ... 
I thought it was crystal clear...
 Originally Posted by RobDog888
I...Solution in post #2. 
Nah, #3 is better... unless you meant reply #2 ...
-
Nov 14th, 2005, 09:45 PM
#12
Re: Attn: MartinLiss
He didn't install Outlook when he loaded Office XP.
-
Nov 14th, 2005, 09:52 PM
#13
Thread Starter
PowerPoster
Re: Attn: MartinLiss
 Originally Posted by RhinoBull
I thought it was crystal clear...
Nah, #3 is better... unless you meant reply #2 ... 
checking for different versions might be the best solution because you never know who is using what.
-
Nov 14th, 2005, 09:52 PM
#14
Thread Starter
PowerPoster
Re: Attn: MartinLiss
 Originally Posted by dglienna
He didn't install Outlook when he loaded Office XP.
thought i did but seems not. going to rectify that problem either tonight or tomorrow but would love to be able to check for different versions of outlook.
-
Nov 14th, 2005, 09:55 PM
#15
Re: Attn: MartinLiss
I don't know why that reference is there since I use MAPI and not Outlook so you should be able to just remove it.
-
Nov 14th, 2005, 09:55 PM
#16
Re: Attn: MartinLiss
rhino posted the answer to that one. use late binding to use the one that's installed.
-
Nov 14th, 2005, 09:56 PM
#17
Re: Attn: MartinLiss
BTW if you want to get my attention, an email or PM is better.
-
Nov 14th, 2005, 09:57 PM
#18
Thread Starter
PowerPoster
Re: Attn: MartinLiss
 Originally Posted by MartinLiss
BTW if you want to get my attention, an email or PM is better.
ok, ill remember that for the future
-
Nov 14th, 2005, 09:57 PM
#19
Re: Attn: MartinLiss
@RB, I thought I was clear. Post #2 
Either way you can not rely on the user having Outlook.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 14th, 2005, 10:00 PM
#20
Re: Attn: MartinLiss
 Originally Posted by BrailleSchool
checking for different versions might be the best solution because you never know who is using what.
So that is why I suggested the "late binding".
-
Nov 14th, 2005, 10:03 PM
#21
Re: Attn: MartinLiss
That is true if user "category" is uknown - for corporate type user late binding is pretty much what's needed.
-
Nov 14th, 2005, 10:30 PM
#22
Thread Starter
PowerPoster
-
Nov 14th, 2005, 10:38 PM
#23
Re: Attn: MartinLiss
You would use CreateObject() function:
VB Code:
Dim objOutlook As Object
Set objOutlook = CreateObject("Outlook.Application")
'and so and so forth ...
-
Nov 14th, 2005, 11:20 PM
#24
Re: Attn: MartinLiss
And any Outlook constants need to be defined too or just use the equilivalent values.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 14th, 2005, 11:30 PM
#25
Re: Attn: MartinLiss
I usually use early binding in development - it's much easier to get all the properties.methods/const - once I'm done I would simply "switch" back to late binding and check off the references.
-
Nov 15th, 2005, 07:45 AM
#26
Thread Starter
PowerPoster
Re: Attn: MartinLiss
ill have to check out MSDN to find out what all these values would be. this is totally new to me.
-
Nov 15th, 2005, 09:36 AM
#27
Re: Attn: MartinLiss
That might be a little difficult, though.
Here is what may try:
- (while in development) set references to MS Outlook
- declare all of your object variable as you would normally do (as Outlook.Aplication, etc)
- do your coding (intellisense will definitely help you to define all you need)
- when you done coding and everything works - turn off references and re-declare your object vars As Object
- use CreateObject function to create instance of Outlook.Application
- declare your own const using those values that Outlook has
- rest fo your code should remain unchanged
Good luck.
-
Nov 15th, 2005, 09:57 AM
#28
Thread Starter
PowerPoster
Re: Attn: MartinLiss
 Originally Posted by RhinoBull
That might be a little difficult, though.
Here is what may try:
- (while in development) set references to MS Outlook
- declare all of your object variable as you would normally do (as Outlook.Aplication, etc)
- do your coding (intellisense will definitely help you to define all you need)
- when you done coding and everything works  - turn off references and re-declare your object vars As Object
- use CreateObject function to create instance of Outlook.Application
- declare your own const using those values that Outlook has
- rest fo your code should remain unchanged
Good luck. 
This seems to be overwhelming stuff for a newb like me, lol.
-
Nov 15th, 2005, 10:28 AM
#29
Re: Attn: MartinLiss
 Originally Posted by BrailleSchool
This seems to be overwhelming stuff for a newb like me, lol.
But as I said above, you don't need to worry about it. Just remove the reference and I believe it will still work.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|