473,394 Members | 1,703 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Exposing a C++ dll to c#

Using the .NET framework. I have created a win32 console application
DLL as my project type which I created a class inside that I want to
expose to c#

In c# I am able to add the dll as a resource and execute the code, but
the methods in the DLL are at least 1000% slower.

Any ideas why this may be happening?

Oct 6 '06 #1
3 2976
<ju***********@gmail.comwrote in message
news:11*********************@i3g2000cwc.googlegrou ps.com...
Using the .NET framework. I have created a win32 console application
DLL as my project type which I created a class inside that I want to
expose to c#

In c# I am able to add the dll as a resource and execute the code, but
the methods in the DLL are at least 1000% slower.

Any ideas why this may be happening?
You're in the wrong newsgroup, unfortunately. Search Google Groups for a
Visual Studio or .NET newsgroup, they'll be more able to give you an answer.

Cheers,
Stu

P.S. There may be something wrong with your news client, you've sent the
same message five times :) Presumably it wasn't intentional?!
Oct 6 '06 #2
Stuart Golodetz wrote:

P.S. There may be something wrong with your news client, you've sent
the same message five times :) Presumably it wasn't intentional?!

He's using Google, so many things are wrong with it. One of the
wonderful things it does on occasion is give spurious error messages on
posting. Whether that was the OP's problem or not is difficult to say.


Brian
Oct 6 '06 #3
interesting, I searched C# on googlegroups, joined the first one I came
to. Typed up and submitted. Thanks for the heads up though.
Default User wrote:
Stuart Golodetz wrote:

P.S. There may be something wrong with your news client, you've sent
the same message five times :) Presumably it wasn't intentional?!


He's using Google, so many things are wrong with it. One of the
wonderful things it does on occasion is give spurious error messages on
posting. Whether that was the OP's problem or not is difficult to say.


Brian
Nov 9 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Peter Hemmingsen | last post by:
Hi, I have a dotnet object (implemented in mc++ and used in c#) which have a property called "Info". The Info property is also a dotnet object (implemented in mc++). In the constructor of the...
7
by: J L | last post by:
I'm trying to expose only a limited set of method calls from a C# program to someone using my dll. The entire application is written in C# and my first attempt has been to try and write a COM...
3
by: FredC | last post by:
How do you make a program's properties and methods availale so that other programs can "connect" to them at design time and then use them at run time?
1
by: David Dvali | last post by:
I have some basic questions please. What is the best way of exposing some protected properly of base class as public properly?
3
by: bill | last post by:
I need to open a asp.net web form from a classic asp page, and pass a username and password to the asp.net page. The username and password exist as session variables in the classic asp...
8
by: Dave A | last post by:
I have a class called 'PrimaryKey' that represents the primary key of a table. PrimaryKeys can only be created and the class only implements .ToString(). The PrimaryKey class internally stores...
2
by: Neil Cerutti | last post by:
I'm using doctest for the first time, and boy is it cool. But I'm nervous about exposing library internals in the docstring. def glk_cancel_char_event(win): """ Cancel a pending request for...
4
by: =?Utf-8?B?QkogU2FmZGll?= | last post by:
We have a class that has a public property that is of type List<T>. FXCop generates a DoNotExposeGenericLists error, indicating "System.Collections.Generic.List<Tis a generic collection designed...
4
by: =?Utf-8?B?Y2hyaXNjYXA=?= | last post by:
I tried searching the forums for this already and didn't find anything. I want to expose functionality from a vb6 COM component via a WCF service. I am trying to evaluate if exposing this...
1
by: bantunks | last post by:
Hello, I am trying to figure out the advantages and disadvantages of exposing interfaces through Opaque data types in C. I have figured/found out the following two advantages 1. Higher level of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.