com >> C++ .def (definition file) equivilant in VB.net??

by SmVmZg » Sun, 02 Oct 2005 02:48:02 GMT

Hello all,
I've created a COM dll for a number-crunching program. However when I tell
the program what function to use from the DLL, it claims that it cant find
the function.

I have the original .dll code in C++, however I'm not a C++ guy :-(. It
appears that all the functions are declaired in the .def (definition file).
When I compile it, the program reconizes the functions without a problem.

My question is, what is the .def equivilant in VB.net? How do I get my
number-cruncher program to reconize whats available in the .dll??

Thanks in advance,
Jeff




com >> C++ .def (definition file) equivilant in VB.net??

by Ralph » Sun, 02 Oct 2005 04:28:53 GMT





tell
file).

You really should be asking this in a dotnet newsgroup.
(microsoft.public.dotnet.vc, ...dotnet.general,
...dotnet.framework.interopt, ...

When you repost to a dotnet group make it clearer if your component is
written in managed code and you wish to interopt, or written in unmanaged
code that you want to use with managed code.

-ralph





Similar Threads

1. C++ .def (definition file) equivilant in VB.net?? - Microsoft .NET Framework

2. Overloading functions exported from a C++ dll using .Def file

Ok, i am writing a dll in vc.net, i am trying to add an free source class to 
my dll, but several functions are overloaded. My question is, is there a way 
to overload these functions when they are exported using a .def file??

The dll is mainly for use in vb.net. I export the classes, and i have 
written vb wrapper functions, exported using __stdcall and a .def file, to 
deal with the object-oriented aspect. The problem i am having is when i 
overload the wrapper functions and the .def file trys to link it cant find a 
unqiue match. 

Any input would be much appreciated, thanks!

3. C++ to VB conversion and preprocessor definition - VB.Net

4. App.Major & App.Minor & [...] VB.Net Equivilant

Hello, 
   I'm new to VB.net, moving from VB6 to VB.net. My question is "In
VB.net what is the equivalent of the App.major (and others) VB6
property. I, like a lot of people I imaging, display the current
version number on my about form. Though I've used some code, I can't
get a version number that seems to update properly. I've read some
other posts that have mentioned 2 main things that I've learned.

1. <Assembly: AssemblyVersion("2.1.*")>   <-- I can modify this, and
that will change my version of my Assembly. (I think that means the
final compiled file?) I can look at my EXE file properties and that
seems to be up to date.

2nd: System.Reflection.Assembly.GetExecutingAssembly.GetName.Version.ToString
<-- I use that to get access to the version number that I set above.
(in this case, 2.1.*, and * being the build and revision that VB sets.

My concern and annoyance with this code that, it seems to only update
the revision and build code if i change my Assembly file.

So I guess in short, I'm looking for a version number that is for the
project globally.

Another question is what is the: System.Environment.Version.Major and
System.Environment.Version.Minor (and the rest) Are these form level
or what? and if so, is it possible to change them? Any input would be
appreciated, and I think you in advance!

-Frank Villasenor

5. equivilant declaration in vb .net? (from vb6 sample) - VB.Net

6. App.Major & App.Minor & [...] VB.Net Equivilant

Hello, 
   I'm new to VB.net, moving from VB6 to VB.net. My question is "In
VB.net what is the equivalent of the App.major (and others) VB6
property. I, like a lot of people I imaging, display the current
version number on my about form. Though I've used some code, I can't
get a version number that seems to update properly. I've read some
other posts that have mentioned 2 main things that I've learned.

1. <Assembly: AssemblyVersion("2.1.*")>   <-- I can modify this, and
that will change my version of my Assembly. (I think that means the
final compiled file?) I can look at my EXE file properties and that
seems to be up to date.

2nd: System.Reflection.Assembly.GetExecutingAssembly.GetName.Version.ToString
<-- I use that to get access to the version number that I set above.
(in this case, 2.1.*, and * being the build and revision that VB sets.

My concern and annoyance with this code that, it seems to only update
the revision and build code if i change my Assembly file.

So I guess in short, I'm looking for a version number that is for the
project globally.

Another question is what is the: System.Environment.Version.Major and
System.Environment.Version.Minor (and the rest) Are these form level
or what? and if so, is it possible to change them? Any input would be
appreciated, and I think you in advance!

-Frank Villasenor

7. convert C++ to C# or using managed C++ with VB.Net - Microsoft .NET Framework

8. cs file in vb.net project

I have a vb.net project and need a class CTest. I have the CTest source
code, but it writed by cs not vb.net. Can i add this .cs file to vb.net
project and then build it? or can i compile this cs file and then link it
with my vb.net project?