[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]]
==== re: converting assembly routines to dll's (OpenInsight 32-bit Specific) ====
=== At 16 JUL 2002 03:11:23PM Anne W Belsito wrote: ===
{{tag>"OpenInsight 32-bit Specific"}}
Has anyone gone through process of converting your own assembly language routines to dll (required for conversion from AREV to OpenInsight)?
----
=== At 16 JUL 2002 04:04PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote: ===
Anne,
Which assembly routines in particular? It will depend on their functionality as to whether you create a new DLL or merely use an existing Win32 API call.
[url=http://www.sprezzatura.com]The Sprezzatura Group[/url]
[i]World Leaders in all things RevSoft[/i]
[img]http://www.sprezzatura.com/zz.gif[/img]
----
=== At 16 JUL 2002 04:26PM Pat McNerthney wrote: ===
Yes, I have.
My advice is to bite the bullet and recode it in C. The main reason for this is because you are going to have to convert it from 16-bit assembly to 32-bit assembly anyway.
Pat
----
=== At 08 AUG 2002 09:36AM Anne W Belsito wrote: ===
They are our own ASSEMBLY routines.
I have converted several from assembly to C++. Using Microsoft Visual Studio 6.00. I can call the functions from my 32-bit C++ programs, but when trying to use them from OpenInsight I get the following error:
ENG0805 TEST, line 7. Function fnTest2dll does not exist in dynamic link library TEST2DLL.
Here is my TEST procedue:
Compile Function Test(a,b)
Declare Function fnTestdll
Declare Function fnTest2dll
Declare Function GetSystemMetrics
Declare Subroutine RowSel
i=GetSystemMetrics(22)
val=fnTest2dll()
RowSel("",252,253,"","",0,"","")
output=a:" plus ":b
Return output
Here is my Prototype Record DLL_TEST2DLL:
TEST2DLL
INT STDCALL fnTest2dll(VOID)
----
=== At 08 AUG 2002 11:25AM Donald Bakke wrote: ===
Anne,
[i]Here is my Prototype Record DLL_TEST2DLL:
TEST2DLL
INT STDCALL fnTest2dll(VOID)[/i]
What is the actual name of your DLL file? If it is TEST2.DLL then I believe your prototype record should have TEST2 (or TEST2.DLL) instead of TEST2DLL in the first line.
dbakke@srpcs.com
[url=http://www.srpcs.com]SRP Computer Solutions, Inc.[/url]
[img]http://www.srpcs.com/srpicon1.gif[/img]
----
=== At 08 AUG 2002 12:07PM Anne W Belsito wrote: ===
The name is TEST2DLL.DLL.
But I think that I know what the problem may be. For some reason the DLL has the "decorated names" exported, so OI is not recognizing them.
I need to rewrite the DLL's so that it exports the "simple name"
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=C036F91BE2B3547B85256BF8006969C2|View this thread on the forum...]]