G
gs
I have searched Google, MSDN,... for a week. I am still unable to make
available functions in my csharp dll as native windows functions for some
legacy non dotnet application
I just want to expose the regex function to my old legacy application built
with some tools that runs a VM with capability to access windows native DLL
via declaration syntax like
public int function setRegexp(String argRegexp) alias
"ClassIeString.setRegexp"
That Vm also can access OLE automation just like vbscript or vba
In other word the VM can access any dll public functions built for windows
native non dotnet app.
I must be getting old and senile or just too dense. for anything but simple
tools. otherwise I just did not have the right search term to get succinctly
the step I need to get working. I have seen one example that did not work
and could not recompiled either
I have in my csharp code something like these
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using System.Runtime.InteropServices;
public class ClassIeString
{
Regex myregexp;
public int setRegexp(String argRegexp)
{
...the code....
}
public int getMatches(String myString2Match, String[] strResult,
long[] matchposn)
{
... some code...
}
}
the project properties were:
assembly name ClassIeString
deflt namespace ClassIeString
Output type Class Library
enable XP-visual styles
I also tried without and without com visible attribute
I understand what I got built was managed code so I need to wrap the
resulting dll from above built via visual studio c# 2005 beta 2..
Actually I don't care if have to use C++ to get the job done although I
would be absolutely green and ignorant there.
I would very much appreciate if someone give me some foolproof steps to make
available some regex function to the legacy application.
Please bear with me that I am not a dot net developer nor much of c, C++
coder either.
available functions in my csharp dll as native windows functions for some
legacy non dotnet application
I just want to expose the regex function to my old legacy application built
with some tools that runs a VM with capability to access windows native DLL
via declaration syntax like
public int function setRegexp(String argRegexp) alias
"ClassIeString.setRegexp"
That Vm also can access OLE automation just like vbscript or vba
In other word the VM can access any dll public functions built for windows
native non dotnet app.
I must be getting old and senile or just too dense. for anything but simple
tools. otherwise I just did not have the right search term to get succinctly
the step I need to get working. I have seen one example that did not work
and could not recompiled either
I have in my csharp code something like these
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using System.Runtime.InteropServices;
public class ClassIeString
{
Regex myregexp;
public int setRegexp(String argRegexp)
{
...the code....
}
public int getMatches(String myString2Match, String[] strResult,
long[] matchposn)
{
... some code...
}
}
the project properties were:
assembly name ClassIeString
deflt namespace ClassIeString
Output type Class Library
enable XP-visual styles
I also tried without and without com visible attribute
I understand what I got built was managed code so I need to wrap the
resulting dll from above built via visual studio c# 2005 beta 2..
Actually I don't care if have to use C++ to get the job done although I
would be absolutely green and ignorant there.
I would very much appreciate if someone give me some foolproof steps to make
available some regex function to the legacy application.
Please bear with me that I am not a dot net developer nor much of c, C++
coder either.