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

writing c++ programs/API for .net and java

I wanted to write a C++ API that can be used in both .NET and Java. Is
this possible? Where would I start? My .NET and Java programming
skills are good and my C++ is okay (lost in memory). I know that Java
can make calls to native code using JNI. .NET also provides utils and
wrappers for native code to be used (at least if you use ATL).

However, what factors do I need to consider (i.e. GCC vs Microsoft C+
+) when writing my C++ code so that .NET and Java can use the code? My
ultimate goal is to have .NET and Java use the C++ API, and allow the
use of the C++ API on Linux and Microsoft platform.

I do not want to go through webservices to interoperate .NET and Java
for a variety of reasons.

Apr 11 '07 #1
1 1491
jakester wrote:
I wanted to write a C++ API that can be used in both .NET and Java. Is
this possible? Where would I start? My .NET and Java programming
skills are good and my C++ is okay (lost in memory). I know that Java
can make calls to native code using JNI. .NET also provides utils and
wrappers for native code to be used (at least if you use ATL).

However, what factors do I need to consider (i.e. GCC vs Microsoft C+
+) when writing my C++ code so that .NET and Java can use the code? My
ultimate goal is to have .NET and Java use the C++ API, and allow the
use of the C++ API on Linux and Microsoft platform.

I do not want to go through webservices to interoperate .NET and Java
for a variety of reasons.
Write a C++ API that can be used in C++. Then write .NET and JNI
wrappers around them. You get 3.

Consider asking in a Java newsgroup about JNI and in .NET newsgroup
about their requirements. Neither technology is defined in the C++
language Standard, and comp.lang.c++ is not the right place to talk
about those IMO.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Apr 11 '07 #2

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

Similar topics

5
by: mark1822 | last post by:
Hi, I am trying to figure out if I should learn C and C++ to write CGI programs, or if I should just use PHP for my web site. I want to write a high traffic website that would call executibles...
4
by: Daniel Polansky | last post by:
Is there a way to open file for writing so that the opening fails if the file already exist? This needs to be atomic operation so that it is possible to use the file as a semaphore. As a result,...
4
by: vishnu mahendra | last post by:
Hello to all, I am newbie to java. Is java applets are interpreted programs or just compiled programs that runs in java supported web browsers. I know for sure java applications are...
8
by: michaaal | last post by:
When writing an ASP app, it has been my experience that usually I write code that is compatible with IE6 but not previous versions of Internet Explorer. Does anyone have any practical advice for...
0
by: Gazelle | last post by:
I have a dilemma, that I am hopping I can find some help with. He is the back story so everyone sort of understands what it is that I am trying to accomplish. My problem: I have multiple...
0
by: s99999999s2003 | last post by:
hi in my environment, besides shell scripts written for sys admin tasks, there are shell scripts that call java programs which in turn will do various processing like connecting to databases and...
5
by: UJ | last post by:
I have a system that has five programs that all communicate with each other via Message Queues. Works well. One program is a watchdog that will make sure the others are up and going. Currently I...
22
by: JoeC | last post by:
I am working on another game project and it is comming along. It is an improvment over a previous version I wrote. I am trying to write better programs and often wonder how to get better at...
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: 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: 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: 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
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: 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...

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.