If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

calling non exported functions from dll

dear all

this id the first time to me with dll

the problem is that i have a dll file and i don't have it's source code.
now i want to call non exported functions from this dll they are COM METHOD functions but after a lot of search and questions in many sites nothing till now.
i know every thing about these functions name,parameters and return type

Re: calling non exported functions from dll

you are really disappointed me, my project core is not how to call dll functions but the project supervisor gave me this dll to use some functions from it in my project and i don't know any thing about this dll except the functions prototype and the whole project depend on this dll so i asked you to explain in details because it is a side task in my project so i don't want to waste time in learning some thing i not interested in now and no time for it

Each way has its own quirks and pitfalls, but generally all looks quite similar: you create an object, query for some interface and finally call its method. Besides, threading model and everything that relates to it has to be understood in details to avoid improper use and unexplained behavior.

As long as the whole project depends on this dll, there should be few cases when the dll is used. You could learn something from that, if you have no time to learn COM regular way.

Of course, all the above has sense only if the dll is really COM dll which I doubt considering your project supervisor instructions (function prototype is the most suspicious part, as COM has its own ways to expose prototypes to developers ).

Re: calling non exported functions from dll

first thank you very much because you are really want to help me

but excuse me in the questions that appears to you very easy but this is the first time to me in dealing with this type of programming

i didn't said that the dll type is COM because i don't know it's type but if dll that containing functions of type COM METHOD is called COM dll so yes it is a COM dll
i used a small program to know the functions in the dll and their types it is called dll export view
and here is it's output when i used it on my dll

==================================================
Function Name : ITransCript::SetText
Address :
Relative Address :
Ordinal : 1 (0x1)
Filename : Trans_ATL.dll
Full Path : G:\Trans_ATL.dll
Type : COM Method
==================================================
the functions i want to use are those of type COM
i can load and use the functions of type exported but those of type COM i can't use them

Re: calling non exported functions from dll

Originally Posted by eng.comm

the functions i want to use are those of type COM
i can load and use the functions of type exported but those of type COM i can't use them

Again, there is a huge amount of source code available that shows how to load a COM DLL and call the functions using CoCreateInstance, QueryInterface, etc. Have you made any effort yourself to find and read this information?

Again, it really isn't fair to ask anyone here to go through a full tutorial on how to call COM methods. It's no different than asking us to explain the C++ language and the rules. A forum isn't designed to be a teacher -- it's there just to answer questions in a quick and efficient manner.

Just go to the Internet, search, and you will find ample amount of documentation that's out there. If it's so important for you to get this done, then you wouldn't waste time waiting for Igor, myself, or someone else to be your teacher. You have to be proactive and search for the vast number of tutorials that shows you not only how to use an ActiveX or COM control, but how to build one.

Re: calling non exported functions from dll

Originally Posted by Paul McKenzie

Again, there is a huge amount of source code available that shows how to load a COM DLL and call the functions using CoCreateInstance, QueryInterface, etc. Have you made any effort yourself to find and read this information?

Again, it really isn't fair to ask anyone here to go through a full tutorial on how to call COM methods. It's no different than asking us to explain the C++ language and the rules. A forum isn't designed to be a teacher -- it's there just to answer questions in a quick and efficient manner.

Just go to the Internet, search, and you will find ample amount of documentation that's out there. If it's so important for you to get this done, then you wouldn't waste time waiting for Igor, myself, or someone else to be your teacher. You have to be proactive and search for the vast number of tutorials that shows you not only how to use an ActiveX or COM control, but how to build one.

If after you have your code set up, and you have a specific issue with the Active-X program, then you can ask questions.

Regards,

Paul McKenzie

it seems that there is a big miss understand i didn't ask you to teach me any thing i was just show you the case to put me in the correct way when i posted last reply i tried to let you know the type of the dll as you said "if it is a com" and as i don't know its type so i posted the last reply

i totaly agree with you that i must do my research but at first i must know for what i will do my research is it about calling com dll if it is a com dll

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.