newbie basic question

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?
 
C

Cowboy \(Gregory A. Beamer\)

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!
|
*********************************************
 
P

Pavel Minaev

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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top