473,383 Members | 1,785 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,383 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 2974
<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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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...

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.