Oxygen Basic
Programming => Problems & Solutions => Topic started by: chrisc on January 26, 2018, 08:21:02 AM
-
I have C# programs that can call powerbasic dll and that they work very well.
I want to know how C# can call oxygen dll , any sample codes please?
Regards
Chris
-
OxygenBasic produces standard dlls.
Here is a demo 32bit standalone dll to try:
% dll
% filename "t.dll"
uses rtl32
function greet(s as char) as long, export
print "hello "+s
return 42
end function
[attachment deleted by admin]
-
Thanxx Charles
Do you have a C# code to make the calling ?
-
Do you have a C# code to make the calling ?
Would you like Charles to make dinner for you as well? ::)
-
easy johnny...easy.... ;D
@chris
just found some code in C# or VB.net which call dll.s
something like this:
http://www.dreamincode.net/forums/topic/121314-creating-a-dll-and-using-it-in-your-application/
-
I have never used .net but this enquiry might help:
https://stackoverflow.com/questions/16332701/how-to-call-c-dll-in-c-sharp
OxygenBasic does not mangle DLL function names, and does not alter the case of the name, unless you specify an alias to use.
-
Thanxx all
this has been resolved, please refer to
http://www.oxygenbasic.org/forum/index.php?topic=1631.msg17796;topicseen#msg17796 (http://www.oxygenbasic.org/forum/index.php?topic=1631.msg17796;topicseen#msg17796)