when a dll is created out of the source code in a given namespaces a,b with functions a::open,b::open will there be any conflict in calling these function.
+2
A:
No, because the function names exported from the DLLs are the C++ mangled names. The mangled names include the namespace, so there will be no conflict.
Greg Hewgill
2008-11-14 06:52:13
how do i call the function
yesraaj
2008-11-14 06:53:50
Just as you said in your question: a::open() or b::open(). No problems as long as you have the header files; otherwise you cannot call them at all.
Gorpik
2008-11-14 07:40:37
The problem might be in GetProcAddress, which doesn't like mangled names.
MSalters
2008-11-14 12:29:44
GetProcAddress is agnostic about mangled names - as long as you give it a correctly mangled name, it will give you back the correct function.
Greg Hewgill
2008-11-14 19:50:26