Register for your free account! | Forgot your password?

You last visited: Today at 06:26

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Help needed] C#

Discussion on [Help needed] C# within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1

 
jackpotsvr's Avatar
 
elite*gold: 20
Join Date: Oct 2008
Posts: 328
Received Thanks: 43
Smile [Help needed] C#

Hey guys! I'm learning C# and now i would like to know how to use .dll's with my form. Now i watched this
on youtube, but i got an error and don't know how to fix it/what i do wrong.

This was source code of the DLL (here was no problem with building)

Quote:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Function
{
public class Function
{
public string MESG = "Succesfully Logged in!";
}
}
And this was from the Form
Quote:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Function;
namespace Starter
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}


private void

DLL;Function MEGH = new.Function();
MessageBox.Show (MEHG.MESG);

}
}

As you can see in the picture down here i created the Reference.
In the screenshot down here you see the errors!



Please help me!
Attached Images
File Type: jpg Image.jpg (278.2 KB, 52 views)
jackpotsvr is offline  
Old 03/23/2010, 21:22   #2
 
Nullable's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 321
Hope I understood this correctly.. anyways after adding references to your dll, you should be able to make instances of public classes easily:
Code:
using Function;
Function.Function MyFunction = new Function.Function();
MessageBox.Show(MyFunction.MESG);
Nullable is offline  
Reply

Tags
c# help needed dll


Similar Threads Similar Threads
Help Needed
06/07/2009 - CO2 Private Server - 0 Replies
hello i need some help translating binary, i know how to do the translation already but how can i translate the language to english, i've tried to google translate it and all that but the translation dont come out rite, what can i use to translate the language to english?or how can i?
Help Needed -.-
02/19/2008 - Kal Online - 4 Replies
Need Help i get error if i start shak3.exe windows show that t got a problem and close it help pls what to do -.-
Help needed
03/01/2005 - World of Warcraft - 4 Replies
I am really newb, I dont know how the Tinytoon 1.2 Works, Ive compiled it with forseshock and then when I open wow and open the Tinytoon and put the Coords with f6 and f7 and then i start the bot, he only looks around but does nothing else :( Please someone help, tyvm for advance.



All times are GMT +2. The time now is 06:26.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.