User forums > Using Code::Blocks
Excel and dll compiled in Code:blocks
Mahobi:
You could try to add "-Wl,--add-stdcall-alias" to your linker flags.
Furthermore you could check the exported functions of the DLL with Dependency Walker.
Koryf21:
I changed the linker options but still... :(
I didn't find the dependency walker (my first day in Code::Blocks, sorry) but i asked Code::Blocks to create the .def file and I looked at it and saw that the "SomeFunction" is referenced inside.
stahta01:
http://www.dependencywalker.com/
Tim S
rjmyst3:
With Dependency Walker, you can do Profile->Start Profiling on Excel.exe to see what problems Excel encounters when it loads your dll, or when it calls functions from your dll.
Koryf21:
Hello,
Sorry to be late to be back to this post; I had to switch on another task. I came back to my question only today. I tried dependencywalker and saw Excel failed to load other DLLs, I suppressed these links and then Excel could load my dll and the above code worked. :D :D
I am not expert on MS products and it is the only explanation that I can find now. Anyway thanks to those who answered me.
Now I have a much more basic question about code::blocks. When I choose to build a project that is a DLL, code::blocks only offers to compile in C; what should I do to make it compile in C++ ( I used before other C++ IDE on different platforms and here I made the standard installation of Code::Blocks).
It sounds good, I might be able to use something else than MS products...
Thanks again :D
Patrick
Navigation
[0] Message Index
[*] Previous page
Go to full version