473,387 Members | 1,493 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,387 software developers and data experts.

use C# DLL in another language

8
I am trying to create a C# DLL that is going to be used in SmallTalk. Right now I am creating an extremely simple DLL (see below) within VS 2005 and the SmallTalk side is using the dotnet bridge to call its functionality.

All I want is to create an instance of Class1 from SmallTalk and call the "theString" property which is supposed to return a string. I am unfamiliar with SmallTalk (my mentor is using it) so I am not sure about the implementation there. I do know that the SmallTalk implementation works with other DLLs that have been created, yet I don't have the source for those DLLs. I keep getting an error in the SmallTalk that is stating it can't find the "theString" property.

My Questions:
How do I create a C# DLL that can be used over a dotnet bridge?
Is anyone here an expert on the dotnet bridge?
Would this be easier if I were to use C++ instead of C#? (seems that the dotnet bridge is maybe meant for C++ rather than C#)



Expand|Select|Wrap|Line Numbers
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4.  
  5. namespace simpleDLL
  6. {
  7.     public class Class1
  8.     {
  9.         private String myString;
  10.  
  11.         public Class1()
  12.         {
  13.             myString = "Hello World";
  14.         }
  15.  
  16.         public String theString
  17.         {
  18.             get { return myString; }
  19.             set { myString = value; }
  20.         }
  21.     }
  22. }
  23.  
Mar 14 '07 #1
2 1726
RedSon
5,000 Expert 4TB

My Questions:
How do I create a C# DLL that can be used over a dotnet bridge?
Is anyone here an expert on the dotnet bridge?
Would this be easier if I were to use C++ instead of C#? (seems that the dotnet bridge is maybe meant for C++ rather than C#)
Wow tough problem! I've never used small talk so I am not sure how their dotnet bridge is implemented. If the dotnet bridge is supposed to work with .net technolgies then you should be able to write the dll in any .net language and then pass it on to the bridge. Every dot net language should compile into the same MSIL file. You could try to implement it in C++ as a proof of concept to see if it works.
Mar 14 '07 #2
tylerb
8
Wow tough problem! I've never used small talk so I am not sure how their dotnet bridge is implemented. If the dotnet bridge is supposed to work with .net technolgies then you should be able to write the dll in any .net language and then pass it on to the bridge. Every dot net language should compile into the same MSIL file. You could try to implement it in C++ as a proof of concept to see if it works.
THANKS FOR THE REPLY!!!!! (first time I have ever posted a software question and someone actually replied quickly)

Yeah I figured the CLR/MSIL would solve any C++ vs C# discrepancies. I might have found a solution. I am going to try to create a .NET assembly rather than a DLL yet I know nothing about what I am doing so... we'll see :)

NOTE: I also just realized that the dotnet bridge is not a Microsoft product but rather a couple people that scrapped something together for Ruby
Mar 15 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

33
by: Quest Master | last post by:
I am interested in developing an application where the user has an ample amount of power to customize the application to their needs, and I feel this would best be accomplished if a scripting...
51
by: nospam | last post by:
THIS IS the DOTNETJUNKIES MESSAGE ------------------------- We're Sorry As many of you know we have recently launched SqlJunkies.com. We have overhauled our runtime and will be using it on...
39
by: Randell D. | last post by:
Folks, I'm sure this can be done legally, and not thru tricks of the trade - I hope someone can help. I'm writing a 'tool' (a function) which can be used generically in any of my projects. ...
8
by: Paul Cochrane | last post by:
Hi all, I've got an application that I'm writing that autogenerates python code which I then execute with exec(). I know that this is not the best way to run things, and I'm not 100% sure as to...
188
by: christopher diggins | last post by:
I have posted a C# critique at http://www.heron-language.com/c-sharp-critique.html. To summarize I bring up the following issues : - unsafe code - attributes - garbage collection -...
6
by: Tom Rowton | last post by:
This one has me a bit confused and I'm not finding what I need in the MSDN or by searching these forums, so here goes... I have a rather large, complex code-in-page WebForm (don't ask) and a...
2
by: Marcelo | last post by:
Hi guys, I'm using the following code to send values from one page to another, but seems to me, that the event Page_Load in the receiving page never fires. Why? This is the code: Thanks ...
1
by: perper | last post by:
Cannot use 'jscript' because another language has been specified earlier in this page I tring to# include an JScript file into a ASp.net in order to use functions declared in ti on the server...
5
by: Mirxon | last post by:
Hello, I'm working on a C program under Ubuntu. It's basd on socket. Browser calls a client cgi (C program), and send some parameters to server (C program). Server runs another program...
43
by: Adem24 | last post by:
The World Joint Programming Language Standardization Committe (WJPLSC) hereby proclaims to the people of the world that a new programming language is needed for the benefit of the whole mankind in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.