<div class="gmail_quote">On 14 May 2012 09:16, Rainer Schuetze <span dir="ltr"><<a href="mailto:r.sagitario@gmx.de" target="_blank">r.sagitario@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Than try to load it:<br>
HINSTANCE LoadME;<br>
LoadME = LoadLibrary(L"C:\\Users\\<u></u>CrashTUA\\Documents\\visual studio<br>
2010\\Projects\\DynamicLib1\\<u></u>DynamicLib1\\Release\\<u></u>DynamicLib1.dll");<br>
func dllprintt;<br>
dllprintt = (func)GetProcAddress(LoadME,"<u></u>trololo");<br>
</blockquote>
<br></div>
The C calling convention prepends an underscore to the function name:<br>
dllprintt = (func)GetProcAddress(LoadME,"_<u></u>trololo");</blockquote><div> </div><div>It seems GetProcAddress pulls that off for you. I thought that too, but it always workout without adding the _ for me.</div>
</div>