View Single Post
  #10  
Old 06-09-2017, 09:41
kassane's Avatar
kassane kassane is offline
Registered User
 
Join Date: Nov 2011
Location: Somewhere in the World
Posts: 174
Thanks: 578
Thanked 117 Times in 47 Posts
kassane is on a distinguished road
Code:
HANDLE __stdcall MyHandle(void)
{
  return AppHandler;
}
to:
Code:
extern "C" __declspec(dllexport) HANDLE MyHandle(void)
{
  return AppHandler;
}
My Example: using [Inno-Setup 5.5.1 + DLL(MSVC 2017 x86)] Works!
Code:
//MyDll.cpp

#pragma once

typedef long int HWND;

extern "C" __declspec(dllexport) HWND Func(void)
{
	return 30*5; //150
}
__________________
"There are three things that sages fear... The tormented sea, a moonless night and the wrath of a gentleness man." - The fear of the Sages.

Last edited by kassane; 06-09-2017 at 11:09. Reason: My example
Reply With Quote