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

CSharp Equivalent of VC++ char?

How can I implement a byte in CSharp that works the same as the char in
VC++ 6? EG: With the range -128 to 127? The standard byte has the range
0 to 255, and the CSharp char is too long (16 bits).

Oct 2 '06 #1
2 2061
Hi Chris

sbyte?
On Mon, 02 Oct 2006 10:09:01 +0200, Chris Ashley
<ch***********@gmail.comwrote:
How can I implement a byte in CSharp that works the same as the char in
VC++ 6? EG: With the range -128 to 127? The standard byte has the range
0 to 255, and the CSharp char is too long (16 bits).


--
Happy Coding!
Morten Wennevik [C# MVP]
Oct 2 '06 #2
* Chris Ashley wrote:
How can I implement a byte in CSharp that works the same as the char in
VC++ 6? EG: With the range -128 to 127? The standard byte has the range
0 to 255, and the CSharp char is too long (16 bits).
sbyte, is 1 byte and has values -128 to 127.
Oct 2 '06 #3

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

Similar topics

20
by: Mark | last post by:
I am using gnu g++ version 3.3.2, trying a simple test to read in and then write out a large (100,000 line) text file ########################################## CSTDIO VERSION TO READ/WRITE...
7
by: Mariano López | last post by:
Hi, I found a program on the net and I'm having some problems with it. Basically what this program does is communicate with Winamp, but it can use the functions that are supposed to work only for...
15
by: Ramaraj M Bijur | last post by:
Hi All, Could anyone help me to resolve following problem in C the IDE used is Microsoft VC++, Please let me know the which option in VC++ will do the needful The problem statement:...
11
by: Tatu Portin | last post by:
Have this kind of struct: typedef struct { char **user_comments; /* ... */ } vorbis_comment; /* prototype */ char * read_vorbis_string ( FILE *sc);
2
by: SS | last post by:
Hi I have a dll with the following signature - I would like to know How I can call this from CSharp,pls This is a test app from C - and it works - but from CSharp??? #include <fstream.h>...
1
by: Steve | last post by:
We are considering the ways to migrate our VC++ 6.0 applications to .NET platform. It would be nice to rewrite them completely in C#, but due to the time constraints this option is out of...
2
by: ramu | last post by:
Hi I have to call a vc++ function in a c program. suppose i have a function dword fun(dword arg1, bstr arg2); in vc++. I have to call this function in c. But I don't have dword datatype in...
7
by: =?Utf-8?B?WWF0aW4gUGF0ZWw=?= | last post by:
Hi, I have a structure written in C++ / VC.NET and would like to convert that into CSharp. I am not getting any success. Can any of you please help me out. Following is the structure in C++:...
3
by: =?Utf-8?B?RGlwZXNoX1NoYXJtYQ==?= | last post by:
Hi all, I am porting my code in VC++ to VC.net i.e managed. I have seen somewhere that i need to convert my char* to String*, but String * doesnt perform pointer arithmetic like String* p; *p++='...
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...
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
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...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.