How to execute a function which exist in a DLL

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
rahul
Posts: 7
Joined: 07 Aug 2010 01:18

How to execute a function which exist in a DLL

#1 Post by rahul » 12 Aug 2010 12:05

I had a C++ Dll, And I would like to you the function to be called in the batch program.


Example:
OUR.dll(dll name)---> it contains 2 function 1)add 2)subtract

test.bat---> is my batch program in which i want to pass the variable like 5,3 to dlll(add function)
test.bat---> I should get the executation output in the dll.

--------------------------------------------------------------------------------------------
I am able to call in perl program , i am not able to know how to call in batch program :x

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: How to execute a function which exist in a DLL

#2 Post by aGerman » 12 Aug 2010 15:56

Maybe there is a way to do it using rundll32.exe. Idk. It depends on what is specified in the source code of the .dll. Did you write it yourself? I never tried to write a .dll in C++ that can be used with rundll32. Found this in the internet.

Regards
aGerman

Post Reply