Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-09-2017, 11:21
MCI MCI is offline
Registered User
 
Join Date: Sep 2017
Location: Venezuela
Posts: 9
Thanks: 0
Thanked 6 Times in 2 Posts
MCI is on a distinguished road
Cool

Quote:
Originally Posted by kassane View Post
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

#ifdef MYDLL_EXPORTS
#define MYDLL __declspec(dllexport) 
#else
#define MYDLL __declspec(dllimport) 
#endif

typedef long int HWND;

extern "C" __declspec(dllexport) HWND Func(void)
{
	return 30*5;
}
not working, same problem occurs
Reply With Quote
Sponsored Links
  #2  
Old 06-09-2017, 11:58
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
Quote:
Originally Posted by MCI View Post
not working, same problem occurs
Weird! Well, it worked normally here. Did you test my simple example?

--------------------------------------------------------------------
Update:

-- c++ src updated english strings example
-- Obj. Pascal (freepascal and Delphi) src added
-- setup src and demo

Note: (demo) C++ DLL require vcredist 2017!
Install vcredist 2017:
Code:
https://go.microsoft.com/fwlink/?LinkId=746571
Attached Files
File Type: zip IS_DLLlib.zip (868.9 KB, 29 views)
__________________
"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; 03-12-2017 at 04:25. Reason: vcredist2017 x86
Reply With Quote
The Following User Says Thank You to kassane For This Useful Post:
Simorq (08-09-2017)
  #3  
Old 06-09-2017, 12:14
MCI MCI is offline
Registered User
 
Join Date: Sep 2017
Location: Venezuela
Posts: 9
Thanks: 0
Thanked 6 Times in 2 Posts
MCI is on a distinguished road
Cool Thank you..

Quote:
Originally Posted by kassane View Post
Weird! Well, it worked normally here. Did you test my simple example?
The problem seems to have already been resolved. Apparently a bad set up the C ++ compiler.

anyway, thank you.

I'm going to upload a file so that you can test it all that you want, and I'd appreciate it if you inform me the result ..
Reply With Quote
The Following User Says Thank You to MCI For This Useful Post:
kassane (06-09-2017)
Reply

Tags
dll

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BlackBox v2 y_thelastknight Conversion Tutorials 567 11-03-2025 07:16
INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup REV0 Conversion Tutorials 129 21-05-2021 05:51
Inno Setup: Additional Libraries altef_4 Conversion Tutorials 50 21-10-2020 09:59
Useful Dll for Inno Setup users peterf1999 Conversion Tutorials 88 01-12-2017 16:00
INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup REV0 Conversion Tutorials 51 26-03-2015 06:57



All times are GMT -7. The time now is 08:22.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com