0

I am working on a game in unity and it requires some kind of chat client. I have to bind mIRC to Visual Studio and Unity so I can begin the next phase, coding the client. I am having issues with finding a tutorial since this is kind of a complicated situation.

I chose mIRC so I don't have to reinvent the wheel completely with a chat client and it looks prettier than what I can do. I want to do this in C# since I am very familiar with this language. I tried searching the internet for tutorials on how to do so but none of them suit my needs.

At the end, I want to have a DLL ready so Visual Studio can communicate with Unity and mIRC.

Matt
  • 21
  • 5
  • 1
    Duplicate? https://stackoverflow.com/questions/1962075/irc-library-in-c-sharp – thepirat000 May 12 '19 at 23:45
  • It is not a duplicate because I have a list of software that I want to use to make a DLL. Just unsure of how to bind them together. – Matt May 12 '19 at 23:47
  • You...want to embed the actual mIRC client into your own application? Or...what? – Ben May 13 '19 at 00:04
  • @Ben That is a part of what I want. I wanted to make a DLL so I can make scripts in Visual Studio so it can communicate with mIRC. – Matt May 13 '19 at 00:31
  • Question edit: I changed the last sentence to add some more clarification. – Matt May 13 '19 at 00:38
  • 2
    I think you're making life difficult on yourself. You can find c# irc clients you can reference, or build something using signalr. Literally thousands of tutorials and example projects along with a heap of ready to go nuget packages and libraries. If you really want to do it this way though, this is old but worth trying: https://stackoverflow.com/questions/523669/how-to-write-and-send-text-to-mirc-in-c-win32 – Ben May 13 '19 at 01:30
  • I agree with Ben : this is going about it the wrong way and making life hard. In software dev we don't look around for some example of a full blown app that we would use standalone and then try to work out a way to control it from c#- we look for a library written in .net and shared/sold, so we could import it and get it to do the donkey work – Caius Jard May 13 '19 at 01:43
  • 1
    @Ben Took a look at Signalr and decided to use that instead! Thanks! This helps a lot! – Matt May 13 '19 at 01:45

1 Answers1

-1

Your question isn't 100% clear, is this what you mean?...

It sounds like you want to embed a mIRC window in your application...

The easiest way would be to get mIRC to load a DLL of yours, then use that interface to get the hwnd of a window via the mIRC $window alias (or similar).

Once you have that, you should be able to embed the window within your own app (and potentially hide the rest of mIRC) using Windows APIs.

JD Byrnes
  • 783
  • 6
  • 17