-
Jan 8th, 2008, 12:45 AM
#1
Thread Starter
Junior Member
[RESOLVED] Method ~ of object ~ failed in VB6
I am getting the message "Method ~ of object ~ failed" when i am trying to add Resource editor in my VB application.
I have an existing VB application now I am trying to add Resource file to it as I have to attach a manifest for MS Vista.
While doing so when I am trying to add through Add in->Add In Manager->checking the checkbox loaded/unloaded for vb6 resource editor as soon as I press OK I am getting the above mentioned error.
Please help !!!
Thanx In Advance
-
Jan 8th, 2008, 12:52 PM
#2
Re: Method ~ of object ~ failed in VB6
Is Vista loaded on the machine that this is happening on?
-
Jan 8th, 2008, 12:57 PM
#3
Re: Method ~ of object ~ failed in VB6
Run your vb6 instance as Administrator
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
-
Jan 10th, 2008, 03:11 PM
#4
New Member
Re: Method ~ of object ~ failed in VB6
I Have the same problem here and I tried to run my VB as Administrator but got the same error.
-
Jan 11th, 2008, 04:06 AM
#5
Re: Method ~ of object ~ failed in VB6
Did you guys install SP-6 for VS/VB?
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
-
Jan 11th, 2008, 05:22 AM
#6
Thread Starter
Junior Member
Re: Method ~ of object ~ failed in VB6
I am having Visual Studoio SP5 and.
But I got the solution for my problem and able to embedded a manifest file to my exe
"http://www.***********/vistaadmin.html"
Fabiovaz you can also search for some third party resource editor and can create and embedded your resource file using that tool.
Regards,
Pragya
-
Jan 13th, 2008, 10:13 PM
#7
Re: Method ~ of object ~ failed in VB6
You dont need to use a third party resource editor. Just use the one with VB 6. Specify the proper Id and your set.
I dont see how this relates to the manifest file because if you were running SP-6 it may be fixed. I installed VS 6 with SP-6 and did not have this issue.
Marking your entire app to run as administrator is not a good idea as its a security concern and Randem did not write that xml file, Microsoft did.
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
-
Jan 15th, 2008, 04:31 AM
#8
Thread Starter
Junior Member
Re: Method ~ of object ~ failed in VB6
Hi rob,
My application required admin privlidges thats why I added a manifest for admin privlidges .Still i am getting that error in VB6 IDE for resource editor ... But I had a deadline so I have used a third party Res Editor and thats why I suggested to use a 3rd party res editor to get things faster ... I didnt mean to provide admin privlidges (its just an example) ... it was just a suggestion no other intensions.
Pragya
-
Jan 15th, 2008, 08:13 AM
#9
Re: Method ~ of object ~ failed in VB6
So, did this third party Resource Editor solve your problem?
-
Jan 15th, 2008, 02:58 PM
#10
Re: Method ~ of object ~ failed in VB6
You elevated the permissions required for your aplication, not of the VB 6 IDE. You can add a manifest file for VB6.EXE too as I use.
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
-
Jan 16th, 2008, 12:52 AM
#11
Thread Starter
Junior Member
Re: Method ~ of object ~ failed in VB6
Actually my requirement was to embedded an manifest to my vb6 exe so I used that 3rd party resource editor to embedded the manifest because my VB6 editor was giving problem.
Yes HACK that third party resource solved my problem
Thanks to Rob too for nice suggestions.
Thanks
Pragya
-
Jan 16th, 2008, 01:28 AM
#12
Re: Method ~ of object ~ failed in VB6
We are gld to have helped.
If you add the manifest file to the vb ide you can startup your ide and use its resource editor with no issues.
Ps, dont forget to Resolve your thread from the Thread tools menu since its now solved.
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
-
Jan 16th, 2008, 01:29 AM
#13
Thread Starter
Junior Member
Re: Method ~ of object ~ failed in VB6
-
Jul 4th, 2013, 03:28 PM
#14
Junior Member
Re: [RESOLVED] Method ~ of object ~ failed in VB6
Originally Posted by pragya
I am getting the message "Method ~ of object ~ failed" when i am trying to add Resource editor in my VB application.
I have an existing VB application now I am trying to add Resource file to it as I have to attach a manifest for MS Vista.
While doing so when I am trying to add through Add in->Add In Manager->checking the checkbox loaded/unloaded for vb6 resource editor as soon as I press OK I am getting the above mentioned error.
Please help !!!
Thanx In Advance
You are Missing the Microsoft Button Editor DLL Thats why it shows that message and that the icon in the toolbar is invisible, It also affects the Menu Creator add-in with the Menu Extended add-in.
Link: http://www.dllme.com/dll/files/commtb32_dll.html
EDIT: Put dll in same Directory as VB6.exe.
Don't forget to register it afterwards.
Last edited by PSXGamerPro1; Jul 4th, 2013 at 09:31 PM.
-
Dec 3rd, 2013, 01:15 PM
#15
New Member
Re: [RESOLVED] Method ~ of object ~ failed in VB6
Originally Posted by PSXGamerPro1
You are Missing the Microsoft Button Editor DLL Thats why it shows that message and that the icon in the toolbar is invisible, It also affects the Menu Creator add-in with the Menu Extended add-in.
Link: http://www.dllme.com/dll/files/commtb32_dll.html
EDIT: Put dll in same Directory as VB6.exe.
Don't forget to register it afterwards.
Thanks this fixed it for me.
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
|