newbie basic question

  • Thread starter Thread starter Colin Peters
  • Start date Start date
C

Colin Peters

Is it possible to export a C style function from a .Net module?

[Why on earth would you want to do that?????]

Glad you asked.

Because this function returns a string of DB tables that ought to be
present in the DB for the module to work. I want to be able to locate
this function using GetProcAddress and test the currently configured DB
for compatibility.

I want this function to be independent from the module as much as possible.

Is there such a compiler switch to spit out a bit of native code?
 
No, but you might trial .NET Reactor, which can create native DLLs from .NET
assemblies. I am not sure how it does it.

--
Gregory A. Beamer
MCP: +I, SE, SD, DBA

*********************************************
| Think outside the box!
|
*********************************************
 
Is it possible to export a C style function from a .Net module?

[Why on earth would you want to do that?????]

Glad you asked.

Because this function returns a string of DB tables that ought to be
present in the DB for the module to work. I want to be able to locate
this function using GetProcAddress and test the currently configured DB
for compatibility.

I want this function to be independent from the module as much as possible.

Is there such a compiler switch to spit out a bit of native code?

Since you didn't mention a specific .NET language for which you want
to do this, it's impossible to tell with certainty. But, in general, C+
+/CLI allows to do what you want in a straightforward way (just export
your functions as you normally would in an unmanaged DLL).
 
Back
Top