Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Other » A couple of programming questions
A couple of programming questions [message #389501] Sun, 07 June 2009 06:22 Go to next message
AmunRa is currently offline  AmunRa
Messages: 574
Registered: September 2005
Location: Lilburn, Georgia
Karma: 0
Colonel

Two questions.

is it possible to make one console application interact with one another? (like send commands etc.)

how do I find out what parameters and stuff a dll has so I can use it in my program
Re: A couple of programming questions [message #389504 is a reply to message #389501] Sun, 07 June 2009 06:37 Go to previous messageGo to next message
CarrierII is currently offline  CarrierII
Messages: 3804
Registered: February 2006
Location: England
Karma: 0
General (3 Stars)

DLL's should have header files available, if they don't, the writer doesn't intend you to use it.

You could get the console applications to interact by using windows messages (fairly nasty) or doing some trick involving writing to text files... (very bad programming practice)

Can't you roll the two applications into one?


Renguard is a wonderful initiative
Toggle Spoiler
Re: A couple of programming questions [message #389506 is a reply to message #389501] Sun, 07 June 2009 06:41 Go to previous messageGo to next message
AmunRa is currently offline  AmunRa
Messages: 574
Registered: September 2005
Location: Lilburn, Georgia
Karma: 0
Colonel

no, the other program is a console ded server for halo, i just wanna use it to send commands to the server.
Re: A couple of programming questions [message #389508 is a reply to message #389501] Sun, 07 June 2009 07:07 Go to previous messageGo to next message
CarrierII is currently offline  CarrierII
Messages: 3804
Registered: February 2006
Location: England
Karma: 0
General (3 Stars)

Then you'll probably need to find or reverse engineer the protocool details yourself, and send commands via 127.0.0.1.

If, like Renegade, there is a RenRem.exe type application (IE, another EXE which takes command line parameters and sends the correct packet to the specified destination) then you can use that.
(That's how BrenBot works, I think)


Renguard is a wonderful initiative
Toggle Spoiler
Re: A couple of programming questions [message #389686 is a reply to message #389501] Mon, 08 June 2009 10:14 Go to previous messageGo to next message
AmunRa is currently offline  AmunRa
Messages: 574
Registered: September 2005
Location: Lilburn, Georgia
Karma: 0
Colonel

function QueryInterface(riid: ^GUID; out ppvObj: ^^VOID); stdcall;
function AddRef: UI4; stdcall;
function Release: UI4; stdcall;
function GetTypeInfoCount(out pctinfo: ^UINT); stdcall;
function GetTypeInfo(itinfo: UINT; lcid: UI4; out pptinfo: ^^VOID); stdcall;
function GetIDsOfNames(riid: ^GUID; rgszNames: ^^I1; cNames: UINT; lcid: UI4; out rgdispid: ^I4); stdcall;
function Invoke(dispidMember: I4; riid: ^GUID; lcid: UI4; wFlags: UI2; pdispparams: ^DISPPARAMS; out pvarResult: ^Variant; out pexcepinfo: ^EXCEPINFO; out puArgErr: ^UINT); stdcall;
function sendText(out console: ^BSTR; out Command: ^BSTR): Bool; stdcall;
function SysDir: BSTR; stdcall;

this is from the dll i was talking about
i found all this in the resource editor of pe explorer. does it carry any significance?

[Updated on: Mon, 08 June 2009 10:16]

Report message to a moderator

Re: A couple of programming questions [message #389783 is a reply to message #389501] Tue, 09 June 2009 08:23 Go to previous message
CarrierII is currently offline  CarrierII
Messages: 3804
Registered: February 2006
Location: England
Karma: 0
General (3 Stars)

Assuming the DLL is related to the server, which I'm sure it isn't (Reverse engineering is a violation of the license, I would not doubt) then I could guess that the sendText function might do what you want, maybe.


Renguard is a wonderful initiative
Toggle Spoiler
Previous Topic: resurrection.exe error!!!! help me please!
Next Topic: BF2
Goto Forum:
  


Current Time: Tue Dec 17 22:32:16 MST 2024

Total time taken to generate the page: 0.00732 seconds