-
May 15th, 2011, 06:20 PM
#1
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
thanks in advance
-
May 16th, 2011, 03:32 AM
#2
Re: calling non exported functions from dll
i want to call non exported functions from this dll they are COM METHOD functions
All COM methods are non exported. So you have to go regular COM way: register server, create coclass instance, query interface, etc.
Best regards,
Igor
-
May 16th, 2011, 03:47 PM
#3
Re: calling non exported functions from dll
Originally Posted by Igor Vartanov
All COM methods are non exported. So you have to go regular COM way: register server, create coclass instance, query interface, etc.
thank you for your fast reply
i know how to register the dll but the next steps can you please explain it in more details
because i am a beginner in this part
thanks in advance
-
May 16th, 2011, 03:54 PM
#4
Re: calling non exported functions from dll
Originally Posted by eng.comm
thank you for your fast reply
i know how to register the dll but the next steps can you please explain it in more details
All of those things are explained in any tutorial or book on COM programming.
Regards,
Paul McKenzie
-
May 16th, 2011, 04:03 PM
#5
Re: calling non exported functions from dll
Originally Posted by Igor Vartanov
All COM methods are non exported. So you have to go regular COM way: register server, create coclass instance, query interface, etc.
thank you for your fast reply
i know how to register the dll but the next steps can you please explain it in more details
because i am a beginner in this part
thanks in advance
-
May 16th, 2011, 04:11 PM
#6
Re: calling non exported functions from dll
Originally Posted by eng.comm
thank you for your fast reply
i know how to register the dll but the next steps can you please explain it in more details
because i am a beginner in this part
thanks in advance
I guess you didn't read my post.
All of that information is explained in great detail in many tutorials and books. Having one of us to retype that same information here is not fair. Just do your research -- you have the Internet.
Regards.
Paul McKenzie
-
May 16th, 2011, 04:40 PM
#7
Re: calling non exported functions from dll
Originally Posted by Paul McKenzie
I guess you didn't read my post.
All of that information is explained in great detail in many tutorials and books. Having one of us to retype that same information here is not fair. Just do your research -- you have the Internet.
Regards.
Paul McKenzie
you are right
i said this because i have a very limited time any way thank you
i will do my research
-
May 16th, 2011, 09:58 PM
#8
Re: calling non exported functions from dll
i said this because i have a very limited time any way thank you
I have to disappoint you. There's no way to learn something non-trivial (like COM) been having "a very limited time". Sorry.
Best regards,
Igor
-
May 18th, 2011, 06:47 PM
#9
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.
An example:
http://www.google.com/#sclient=psy&h...b94ef403c105f7
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
Last edited by Paul McKenzie; May 18th, 2011 at 06:50 PM.
-
May 19th, 2011, 05:28 PM
#10
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.
An example:
http://www.google.com/#sclient=psy&h...b94ef403c105f7
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
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|