|
-
Jul 26th, 2007, 04:41 AM
#1
Thread Starter
Lively Member
Debugging dotnet DLL
can i debug Csharp DLL in vb6?.... plz help
-
Jul 26th, 2007, 04:41 AM
#2
Re: Debugging dotnet DLL
If you don't have the source... No.
-
Jul 26th, 2007, 04:45 AM
#3
Re: Debugging dotnet DLL
You need to have Visual Studio.NET of the same version or a compatible version that the dll was written in. Then if you have that you need the source code like randem posts. Then after that you would need to create a test project in .NET to allow you to debug during runtime.
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 
-
Jul 26th, 2007, 04:49 AM
#4
Thread Starter
Lively Member
Re: Debugging dotnet DLL
i have source code and tlb file
-
Jul 26th, 2007, 04:50 AM
#5
Re: Debugging dotnet DLL
Then what version of .NET was it writen in? Also, was it written in VB.NET or C#?
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 
-
Jul 26th, 2007, 04:52 AM
#6
Re: Debugging dotnet DLL
The source to the CSharp file? If you have the source to that file and the source to the vb file. You can compile each with the create Symbolic Debugging Info switch and you can load the source and the exe into the VS C++ workspace and debug it from there.
-
Jul 26th, 2007, 04:53 AM
#7
Thread Starter
Lively Member
Re: Debugging dotnet DLL
thx Rob
Then after that you would need to create a test project in .NET to allow you to debug during runtime
why i need test project?
can i break directly into .NET DLL?
-
Jul 26th, 2007, 04:54 AM
#8
Thread Starter
Lively Member
Re: Debugging dotnet DLL
yes, source code is in CSharp file
it's in VS.NET 2003
-
Jul 26th, 2007, 04:54 AM
#9
Re: Debugging dotnet DLL
Yes, since you are going to be running the dll source code it needs the same environment as it compiled use. So you would add a reference to your dll source code project from the test project. You will have to simulate the things you are doing in VB 6 but in VB.NET as you cant debug across them.
Thread Moved
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 
-
Jul 26th, 2007, 04:59 AM
#10
Thread Starter
Lively Member
Re: Debugging dotnet DLL
i have vb6 application which use CSharp DLL through TLB file so if i call CSharp DLL will it break?
CSharp DLL also running and i have set CSharp DLL(TLB) in my vb6 project
-
Jul 27th, 2007, 11:14 AM
#11
Re: Debugging dotnet DLL
 Originally Posted by xor83
i have vb6 application which use CSharp DLL through TLB file so if i call CSharp DLL will it break?
CSharp DLL also running and i have set CSharp DLL(TLB) in my vb6 project
If I've understood the explanation of your setup correctly, no, it won't break in.
-
Jul 27th, 2007, 11:44 AM
#12
Re: Debugging dotnet DLL
Actually... it is possible....
Start the application, not in the IDE though....
Fire up VS2005 -- ooh... I see you have 2003.... I think this will still work...
Load up the project in the VS2003 IDE.... then from the Debug menu, select Attach to Process... you should get a listing of all processes runnig. Find your app.... and select it...
in the code, set your breakpoints where you want them in the .NET code....
switch back to your app and do what ever you need to do that invokes the call to the .NET DLL.... it *should* break at your break points....
-tg
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
|