Hack Forums
[.NET] Errors when trying to compile dll - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Errors when trying to compile dll (/showthread.php?tid=5845441)



Errors when trying to compile dll - M O D E R N - Jun 6, 2018

I am trying to compile aeonhack's vb.net net seal theme to a dll so that i can play with it in my c# form.

If anyone can help it would be greatly appreciated!

https://paste.ubuntu.com/p/7sKyxwCnV3/


RE: Errors when trying to compile dll - HFDone - Jun 7, 2018

create dll project put the code and compile it.


RE: Errors when trying to compile dll - M O D E R N - Jun 7, 2018

Should it be a .NET Framework or .NET Standard or does that not matter?

When I do either I get a ton of "is not defined or cannot be declared thus stopping me from building.

[Image: jieMOou.png]


RE: Errors when trying to compile dll - Juffar - Jun 7, 2018

(Jun 7, 2018 08:23 AM)M O D E R N Wrote:  Should it be a .NET Framework or .NET Standard or does that not matter?

When I do either I get a ton of "is not defined or cannot be declared thus stopping me from building.

[Image: jieMOou.png]

Create the project as class library.


RE: Errors when trying to compile dll - M O D E R N - Jun 7, 2018

(Jun 7, 2018 09:50 AM)Juffar Wrote:  Create the project as class library.

That's what I'm doing
[Image: bf0Txud.png]


RE: Errors when trying to compile dll - HFDone - Jun 7, 2018

if iremember the problem is that you need to properties subs and functions to shared.
try one error and see if the error fixed. if fixed do it to all.


RE: Errors when trying to compile dll - M O D E R N - Jun 7, 2018

(Jun 7, 2018 10:43 AM)HFDone Wrote:  if iremember the problem is that you need to properties subs and functions to shared.
try one error and see if the error fixed. if fixed do it to all.

Not sure I understand what you are saying


RE: Errors when trying to compile dll - HFDone - Jun 7, 2018

(Jun 7, 2018 11:15 AM)M O D E R N Wrote:  Not sure I understand what you are saying

... you need to change the properties subs and functions to shared

Private Shared TextBitmap As Bitmap


RE: Errors when trying to compile dll - M O D E R N - Jun 7, 2018

Got it all sorted out, thanks!


RE: Errors when trying to compile dll - Juffar - Jun 7, 2018

(Jun 7, 2018 01:45 PM)M O D E R N Wrote:  Got it all sorted out, thanks!

Copy all code from here:
https://pastebin.com/raw/0tQ2eqYV

In Visual Studio, add Reference to System.Windows.Forms and System.Drawing.
I compiled the DLL for you too: http://www.mediafire.com/file/6gis33qtihmahha/ClassLibrary13.dll

If you still don't get it I can help you through Team Viewer.


RE: Errors when trying to compile dll - M O D E R N - Jun 7, 2018

(Jun 7, 2018 02:00 PM)Juffar Wrote:  Copy all code from here:
https://pastebin.com/raw/0tQ2eqYV

In Visual Studio, add Reference to System.Windows.Forms and System.Drawing.
I compiled the DLL for you too: http://www.mediafire.com/file/6gis33qtihmahha/ClassLibrary13.dll

If you still don't get it I can help you through Team Viewer.

Thanks for all of the assistance, I was actually able to resolve it myself :)