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

.Net datatype compatibility

Hello

I've had my head in the sand for about the last year and a half. What seems
like a fairly straightforward question to ask and answer for myself has
turned out to be a challenge. Therefore I thought I would pose the question
to the group here. By the way, I looked for answers on the dotnet.faq
group, dotnet.general group, as well as here before I decided to post.
Alright..the question...

If I create a DLL in VB.Net and write classes with source code (methods or
constructors) that expect VB.Net data types...such as Integer or Long ,
etc., will this pose a problem to other .Net languages? From what I've read
and learned in the past about .Net, I would expect it would not cause a
problem, that the data types would become the framework standard datatypes
in the DLL...such as Int32 or Int64, but I had a debate about that with a
co-worker what thought he had read otherwise. So now I question my
assumption. What's the real story?

On a related note, how would remoting a DLL be affected or would it? I know
you can create a separate assembly with an interface class...or something
along those lines.

Thanks in advance for your insights

John
Nov 20 '05 #1
2 1055
Take a look at the topic "CLS-Compliant Code" in the online docs.

http://msdn.microsoft.com/library/de...pliantCode.asp

HTH,
Greg
"JohnB" <pr***************@kc.rr.com> wrote in message
news:Oe**************@TK2MSFTNGP12.phx.gbl...
Hello

I've had my head in the sand for about the last year and a half. What
seems
like a fairly straightforward question to ask and answer for myself has
turned out to be a challenge. Therefore I thought I would pose the
question
to the group here. By the way, I looked for answers on the dotnet.faq
group, dotnet.general group, as well as here before I decided to post.
Alright..the question...

If I create a DLL in VB.Net and write classes with source code (methods or
constructors) that expect VB.Net data types...such as Integer or Long ,
etc., will this pose a problem to other .Net languages? From what I've
read
and learned in the past about .Net, I would expect it would not cause a
problem, that the data types would become the framework standard datatypes
in the DLL...such as Int32 or Int64, but I had a debate about that with a
co-worker what thought he had read otherwise. So now I question my
assumption. What's the real story?

On a related note, how would remoting a DLL be affected or would it? I
know
you can create a separate assembly with an interface class...or something
along those lines.

Thanks in advance for your insights

John

Nov 20 '05 #2
Thanks Greg, that was just what I was looking for.

cheers

John

in reply to:
"Greg Burns" <greg_burns@DONT_SPAM_ME_hotmail.com> wrote in message
news:Om***************@tk2msftngp13.phx.gbl...
Take a look at the topic "CLS-Compliant Code" in the online docs.

http://msdn.microsoft.com/library/de...pliantCode.asp
HTH,
Greg

Nov 20 '05 #3

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

Similar topics

1
by: thepercival | last post by:
Hello, I have a stored procedure and the return data type is number(16) as you can see. but I get it back in the code as a var_numeric and then the precision depends on the value of the...
6
by: someone | last post by:
Suppose that I have a class in an assembly that is delivered to the user, what can I do to change the class so that it doesn't break the binary compatibility? That is, user application can run...
8
by: Eternally | last post by:
Hi folks, I've got a program which has a function which uses templates to accept parameters of any type. Works well, but there's one certain datatype which I want to special case and do an...
0
by: SoYouKnowBrig | last post by:
Hi All, I am using Microsoft.ApplicationBlocks.Cache.CacheManager to persist a System.Data.Dataset object. This Dataset object has a DataTable that is created from an existing DataTable using...
14
by: frostalicious | last post by:
Used VB.NET (on my client PC) to convert VB6 executable to .NET executable. Placed the .exe file on a network drive on my server. From client, ran .NET Wizards "Trust an Assembly" to make the...
3
by: Sri | last post by:
In VB, to know the field type of a column stored in a recordset the command I use is If rsQuery.Fields(k).Type = adCurrency Then How will I achieve the same in ASP.net. I could not find a...
4
by: Orchid | last post by:
How can I change a Date datatype to a Number datatype? For example, I want a date 10/31/2006 to show 1031 as Number datatype. But I don't want it becomes 39021. What formula should I use? ...
11
by: Jake Langham | last post by:
A program I'm writing requires a 64-bit datatype. On gcc 4.1.1 I can compile with 'long long' integers but I'm aware that this is not an ANSI standard type and am worried about portability issues -...
0
by: Dutt | last post by:
Hi Friends, In our applications, theres a need to store files in the database. We, obviously, went for BLOB datatype. Our front-end technology is " .NET ". And we r facing compatibility issues...
11
by: BD | last post by:
Hi, all. I'm running 8.2 on Windows. This is a development platform for a project whose production environment is running on a mainframe. I believe that the RI compilation process is not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.