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

when to use uint? dis/advantages?

Hi,

Just wondering what are the dis/advantages of using uint vs int. When
would be the best time to use it?

Personally I don't use uint that much, but I like to optimize my code
and make it as effective as possible. So I feel that using an int where
only an uint is needed is a waste.

e.g. something like (int i = 0; i < 100; i++)
could probably better be written as (uint i = 0; i < 100; i++)
or maybe even better (unsigned short i = 0; i < 100; i++)

One big advantage of using uint is that if I have a function like

void foobar(uint i)
{
if (i >= 0) {
cout << "generate a warning, this is always true" << endl;
}
}

and calling foobar(-1) will generate a warning. This can help me iron
out some problems/bugs at compile time.

However using uint does require more work, for example when comparing an
uint to int will generate a warning, hence would require a static_cast.

Anyway, I want to know what other programmers are doing. I use Qt a lot
at work, and I don't see a lot of uint in Qt's code. Could this be for
portability reasons?

Anyway all comments are appricated. TIA.

Song
Jul 23 '05 #1
36 2827
Song Yun Zhao wrote:
Hi,

Just wondering what are the dis/advantages of using uint vs int.


What's uint?

Jonathan
Jul 23 '05 #2
Jonathan Turkanis wrote:
What's uint?

Jonathan

unsigned int
Jul 23 '05 #3
Song Yun Zhao wrote:
Jonathan Turkanis wrote:
What's uint?
unsigned int


Or it could be:

typedef mounatin_range<uinta> uint;

Jonathan
Jul 23 '05 #4
Jonathan Turkanis wrote:

Or it could be:

typedef mounatin_range<uinta> uint;

Jonathan


what's ur point?
Jul 23 '05 #5
Song Yun Zhao wrote:
Jonathan Turkanis wrote:

Or it could be:

typedef mounatin_range<uinta> uint;

Jonathan


what's ur point?


I meant to say mountain_range. Now is everything clear?

Jonathan
Jul 23 '05 #6
Hey

Lots of functions return 0 - N for okay and -1 for error conditions.
If you store these values in a unsigned int you will never be able to
detect these error conditions.

Also if somebody refactors you code later and changes

for ( unsigned int i = 0; u < 100 ; i++ )

to

for ( unsigned int i = 100 -1 ; i >= 0 ; --i )

you get an infinite loop
Raj

Jul 23 '05 #7
Jonathan Turkanis wrote:

I meant to say mountain_range. Now is everything clear?


not really, r u trying to say that uint is not a standard type?

Song
Jul 23 '05 #8
Song Yun Zhao wrote:
Hi,

Just wondering what are the dis/advantages of using uint vs int. When
would be the best time to use it?

In technical discussions we strive for accuracy. uint does not mean
anything in particular.

Personally I don't use uint that much, but I like to optimize my code
and make it as effective as possible. So I feel that using an int where
only an uint is needed is a waste.

e.g. something like (int i = 0; i < 100; i++)
could probably better be written as (uint i = 0; i < 100; i++)
or maybe even better (unsigned short i = 0; i < 100; i++)

One big advantage of using uint is that if I have a function like

void foobar(uint i)
{
if (i >= 0) {
cout << "generate a warning, this is always true" << endl;
}
}

and calling foobar(-1) will generate a warning. This can help me iron
out some problems/bugs at compile time.

assigning -1 to an unsigned integral type variable, assigns the maximum
value of its type to it.
However using uint does require more work, for example when comparing an
uint to int will generate a warning, hence would require a static_cast.

Anyway, I want to know what other programmers are doing. I use Qt a lot
at work, and I don't see a lot of uint in Qt's code. Could this be for
portability reasons?

Anyway all comments are appricated. TIA.


Use signed integral types when you need to use them for negative values
too. If you deal only with positive values and/or want to have more
positive value range at the same type size, use the unsigned types.

--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 23 '05 #9
uint and int will not make a slight of difference in todays speed of
computer and its almost obsolete.

it is there in C++ for a simple reason "Backward compatibility" and
will not make any help to you as far as my shallow knowledge goes.

Jul 23 '05 #10
I don't know of any reason why it would make a speed difference, but it
is not there just for backwards compatibility by any stretch of
imagination.

Remember that the types are different sizes. Have data that can range
up to, say, 4 billion but you can gurantee will be positive? You gotta
use an unsigned int.

Jul 23 '05 #11

"Song Yun Zhao" <mr************@yahoo.com.au> wrote in message
news:42********@news.alphalink.com.au...
Hi,

Just wondering what are the dis/advantages of using uint vs int. When
would be the best time to use it?

There is no such type as uint. You are free to typedef unsigned int as uint
(or your compiler vendor may have done so for you, in some header), but
otherwise it means nothing.

By the way, if you're just saying "uint" because it takes too long to write
"unsigned int", just like I see you writing "u r" instead of "you are", then
please refrain from doing that. We really need to stay technically accurate
here (as much as possible, anyway). Thanks.
Personally I don't use uint that much, but I like to optimize my code and
make it as effective as possible. So I feel that using an int where only
an uint is needed is a waste.

What is "wasted"?
e.g. something like (int i = 0; i < 100; i++)
could probably better be written as (uint i = 0; i < 100; i++)
or maybe even better (unsigned short i = 0; i < 100; i++)

Or even unsigned char! Your compiler may actually use whatever size is
appropriate to your platform, provided it behaves the same. Using unsigned
int just takes a little longer to write than int. It is not likely to
effect your performance at all.
One big advantage of using uint is that if I have a function like

void foobar(uint i)
{
if (i >= 0) {
cout << "generate a warning, this is always true" << endl;
}
}

and calling foobar(-1) will generate a warning. This can help me iron out
some problems/bugs at compile time.

Calling foobar(-1) will change the -1 to an unsigned int (assuming that uint
is the same as unsigned int), and will result in a very large positive
integer, which is obviously greater than 0. Also, the code above will issue
a warning no matter what you pass as the parameter, since an unsigned int is
_always_ zero or greater. I guess I'm just not sure I understand what your
point was. Do you actually have the code above somewhere?
However using uint does require more work, for example when comparing an
uint to int will generate a warning, hence would require a static_cast.

If you're comparing against a (signed) int, then you ought to use a (signed)
int to compare against, unless you can guarantee that the (signed) int will
never actually be negative. Using a static_cast is not a bad thing, if you
know that that's what you have to do. And this type of comparison is one of
the few places I'd use it. (Unless of course I could avoid it by using
matching types in the first place.)
Anyway, I want to know what other programmers are doing. I use Qt a lot at
work, and I don't see a lot of uint in Qt's code. Could this be for
portability reasons?


I use unsigned int (or char, or short, or long) where I think it's
appropriate. They pay me to think here, so I do. :-)

Seriously, if I know that the value in question will never be negative, I'm
likely to use unsigned, since it becomes apparent to those reading my code
that the value is intended to be positive or zero (and will always be so).
If the value _may_ be negative for any reason, then I _must_ use a signed
version. I'll admit that I sometimes write simple for loops without the
"unsigned" specifier, but that's really just laziness on my part, not a
conscious choice to use signed. (Oh, and sometimes I change my mind and add
or remove the unsigned specifier, as I develop my code and realize the other
parts I'm interacting with differ from my previous assumptions.)

One other point: I don't actually use int (or unsigned int) that much.
Mostly I use short, long or char (or the unsigned versions thereof). Those
give me more of an obvious indication of the range of values my variable is
going to take.

-Howard
Jul 23 '05 #12
ra******@hotmail.com wrote:
Hey

Lots of functions return 0 - N for okay and -1 for error conditions.
Indication of poor design: using a value to indicate both a value and an error
condition, should be separate variables or an exception.
If you store these values in a unsigned int you will never be able to
detect these error conditions.

Also if somebody refactors you code later and changes

for ( unsigned int i = 0; u < 100 ; i++ )

to

for ( unsigned int i = 100 -1 ; i >= 0 ; --i )

you get an infinite loop


And who ever did the refactoring and checked that code into the repository
should be reprimanded/re-educated.
Jul 23 '05 #13
Song Yun Zhao wrote:
Hi,

Just wondering what are the dis/advantages of using uint vs int. When
would be the best time to use it?


Use the type that is most suitable for your domain.

If the domain is non-negative integers less than UINT_MAX, use unsigned int.

If the doamin is integers in the range of INT_MIN and INT_MAX, use (signed) int.

etc.
Jul 23 '05 #14
Song Yun Zhao wrote:
Jonathan Turkanis wrote:

I meant to say mountain_range. Now is everything clear?

not really, r u trying to say that uint is not a standard type?

Song


Yes, that's exactly what he's trying to say. Since uint is not a
standard type, the usage depends on the application's definition of uint.
Jul 23 '05 #15
unless you want to redesign / refactor libraries you have to live with
it.
And who ever did the refactoring and checked that code into the repositoryshould be reprimanded/re-educated.


The idea here was that its more error prone... unless everybody else
(fellow developers) feels the same about int / unsigned int
it would be a bad idea

raj

Jul 23 '05 #16
Song Yun Zhao wrote:
Hi,

Just wondering what are the dis/advantages of using uint vs int. When
would be the best time to use it? Generally, uint is often followed by the number of bits. This is
often found in embedded systems, where the bit-width of a variable
is important. For example:
#define UINT8 unsigned char
#define UINT16 unsigned short
#define UINT32 unsigned int
This is primarily used to make porting to other platforms easier,
but that is a whole separate and lengthy topic.
Anyway all comments are appricated. TIA. You should search the newsgroup. There have been many heated
discussions about signed versus unsigned integers and when
to use them. One person suggested that the unsigned integer
type be removed from the language.

My own personal belief is that unsigned should be used for
ordinal types, where the value is never negative, such as
counting fruit. Unsigned is also used when all the bits
of an integer are used. Signed integers are used when
the value can go negative, such as temperatures in Fahrenheit.

For small quantities or values, your best bet is to spend
time doing something else than worrying about this issue.
For example, on most platforms, the number 4
can be easily handled in the native integral datatype; so
the point of using signed versus unsigned is moot.

Song


--
Thomas Matthews.
Jul 23 '05 #17
On Tue, 08 Mar 2005 15:55:17 +1100, Song Yun Zhao wrote:
Jonathan Turkanis wrote:

I meant to say mountain_range. Now is everything clear?


not really, r u trying to say that uint is not a standard type?


Exactly.

Many platforms provide a 'uint' type that is either an alias or a typedef
from 'unsigned int', but this is in no way guaranteed by the C++ standard.
I don't think anyone here honestly didn't understand you, but in the
future you should use the standard type.

Jul 23 '05 #18
Howard wrote:
"unsigned int", just like I see you writing "u r" instead of "you are", then
please refrain from doing that. We really need to stay technically accurate
here (as much as possible, anyway). Thanks.

no worries, I'll stick to the standard next time. thanks.
make it as effective as possible. So I feel that using an int where only
an uint is needed is a waste.


What is "wasted"?


an unsigned int could be better used to represent a bigger range of
positive integers (obviously 0-2^32, assuming a 32 bit platform),
whereas an int can only represent up to 2^31 positive integers. So if I
know that a number is always going to be a positive integer, I feel like
I'm wasting some "range". The same reason you would use a char instead
of a short int etc.

Calling foobar(-1) will change the -1 to an unsigned int (assuming that uint
is the same as unsigned int), and will result in a very large positive
integer, which is obviously greater than 0. Also, the code above will issue
a warning no matter what you pass as the parameter, since an unsigned int is
agreed, therefore my compiler (GNU g++) gives me *two* warnings, which
serves as an indication that I'm doing something not right.
I use unsigned int (or char, or short, or long) where I think it's
appropriate. They pay me to think here, so I do. :-)


I probably speak less than 10 words (hi, morning, g'day, well you get
the idea) to ppl at work each day, guess what I do the rest of the time?
;) Probably doesn't do much good to my communication/social skills, but
hey I'm a programmer. :(

cheers
Jul 23 '05 #19
Howard wrote:
Using unsigned
int just takes a little longer to write than int. It is not likely to
effect your performance at all.

He can just type "unsigned" instead of "unsigned int". :-)

--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 23 '05 #20
Ioannis Vranos schrieb:
Howard wrote:
Using unsigned int just takes a little longer to write than int. It
is not likely to effect your performance at all.



although I don't agree that's a reason to use signed in interfaces:
http://www.aristeia.com/Papers/C++Re...umns/sep95.pdf
Jul 23 '05 #21

ee****@psu.edu wrote:
I don't know of any reason why it would make a speed difference, but it is not there just for backwards compatibility by any stretch of
imagination.

Remember that the types are different sizes. Have data that can range
up to, say, 4 billion but you can gurantee will be positive? You gotta use an unsigned int.


No, use unsigned long.

unsigned int is guaranteed to be non-negative, but it may be as small
as 16 bits. long has to be 32 bits.

Regards,
Michiel Salters

Jul 23 '05 #22
msalters schrieb:
No, use unsigned long.

unsigned int is guaranteed to be non-negative, but it may be as small
as 16 bits. long has to be 32 bits.


No. §3.9.1 says:

3. For each of the signed integer types, there exists a corresponding
(but different) unsigned integer rype: "unsigned char", "unsigned short
int", "unsigned int", and "unsigned long int," each of which occupies
the same amount of storage and has the same alignment requirements (3.9)
as the corresponding signed integer type; [...]

And now let's see to the signed integer types:

2. There are four signed integer types: "signed char", "short int",
"int", and "long int". In this list, each type provides at least as much
storage as those preceding it in the list. Plain ints have the natural
size suggested by the architecture of the execurtion environment (that
is, large enough to contain any value in the range of INT_MIN and
INT_MAX, as defined in the header <climits>); the other signed integer
types are provided to meet special needs.
You see that the amount of storage of long is just as inexact as that of
int.

Jul 23 '05 #23
Michael Etscheid wrote:
No. §3.9.1 says:

3. For each of the signed integer types, there exists a corresponding
(but different) unsigned integer rype: "unsigned char", "unsigned short
int", "unsigned int", and "unsigned long int," each of which occupies
the same amount of storage and has the same alignment requirements (3.9)
as the corresponding signed integer type; [...]

And now let's see to the signed integer types:

2. There are four signed integer types: "signed char", "short int",
"int", and "long int". In this list, each type provides at least as much
storage as those preceding it in the list. Plain ints have the natural
size suggested by the architecture of the execurtion environment (that
is, large enough to contain any value in the range of INT_MIN and
INT_MAX, as defined in the header <climits>); the other signed integer
types are provided to meet special needs.
You see that the amount of storage of long is just as inexact as that of
int.

There is the guarantee that signed and unsigned:

short and int can hold at least 16 bit integer values, long at least
32-bit values and char at least 8-bit values.

--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 23 '05 #24
On 2005-03-11 09:18:15 -0500, Michael Etscheid <th***********@gmail.com> said:
msalters schrieb:
No, use unsigned long.

unsigned int is guaranteed to be non-negative, but it may be as small
as 16 bits. long has to be 32 bits.
No. §3.9.1 says:

[snip]
Plain ints have the natural size suggested by the architecture of the
execurtion environment (that is, large enough to contain any value in
the range of INT_MIN and INT_MAX, as defined in the header <climits>);
the other signed integer types are provided to meet special needs.
But INT_MIN must be less than or equal to -32767, and INT_MAX must be
greater than or equal to 32767. This makes it impossible for an
implementation to give an int less than 16 value bits.

By the same token, the smallest acceptable values for LONG_MIN and
LONG_MAX force long to have at least 32 value bits.
You see that the amount of storage of long is just as inexact as that of
int.


But there are minimums specified. If the following program prints
anything, then your compiler is broken:

#include <iostream>
#include <climits>

int main()
{
if(sizeof(char) != 1 || CHAR_BIT < 8 ||
sizeof(short) < sizeof(char) || CHAR_BIT * sizeof(short) < 16 ||
sizeof(int) < sizeof(short) || CHAR_BIT * sizeof(int) < 16 ||
sizeof(long) < sizeof(int) || CHAR_BIT * sizeof(long) < 32)
{
std::cout << "Your compiler is broken\n";
}
return 0;
}
--
Clark S. Cox, III
cl*******@gmail.com

Jul 23 '05 #25
Richard Herring wrote:
In message <4NkXd.49419$xt.15977@fed1read07>, Julie <ju***@nospam.com>
writes
ra******@hotmail.com wrote:
Hey
Lots of functions return 0 - N for okay and -1 for error conditions.

Indication of poor design: using a value to indicate both a value and
an error condition, should be separate variables or an exception.

You won't be in favour of using the STL, then.
std::find returns the "end" iterator if it can't find a match.
string functions return npos. And so on.

I don't see how cluttering the interface with an extra returned value
would help matters, and failure to find a match isn't usually the kind
of unexpected event that exceptions were intended to handle.


I'm talking about /error/ conditions.

'Not found' and similar are not errors, but indicators.
Jul 23 '05 #26
Ioannis Vranos wrote:
There is the guarantee that signed and unsigned:

short and int can hold at least 16 bit integer values, long at least
32-bit values and char at least 8-bit values.


Where can I read that?
Jul 23 '05 #27
Michael Etscheid wrote:
short and int can hold at least 16 bit integer values, long at least
32-bit values and char at least 8-bit values.


Where can I read that?

It was inherited from C90.

--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 23 '05 #28
In message <YLjYd.52672$xt.51867@fed1read07>, Julie <ju***@nospam.com>
writes
Richard Herring wrote:
In message <4NkXd.49419$xt.15977@fed1read07>, Julie
<ju***@nospam.com> writes
ra******@hotmail.com wrote:

Hey
Lots of functions return 0 - N for okay and -1 for error conditions.
Indication of poor design: using a value to indicate both a value
and an error condition, should be separate variables or an exception. You won't be in favour of using the STL, then.
std::find returns the "end" iterator if it can't find a match.
string functions return npos. And so on.
I don't see how cluttering the interface with an extra returned
value would help matters, and failure to find a match isn't usually
the kind of unexpected event that exceptions were intended to handle.


I'm talking about /error/ conditions.


So, I suspect, was the OP, despite his use of the word "error".
'Not found' and similar are not errors, but indicators.


Indeed, but they still use a special "value" to indicate something that
isn't a value at all. Is that an indication of poor design?

--
Richard Herring
Jul 23 '05 #29
Song Yun Zhao wrote:
make it as effective as possible. So I feel that using an int where only
an uint is needed is a waste.

What is "wasted"?


an unsigned int could be better used to represent a bigger range of
positive integers (obviously 0-2^32, assuming a 32 bit platform),
whereas an int can only represent up to 2^31 positive integers. So if I
know that a number is always going to be a positive integer, I feel like
I'm wasting some "range".


What if you need to have differences, offsets - or whatever you want to call
it - between two of those values? Such an offset might be negative, and
then you get into trouble.
The same reason you would use a char instead of a short int etc.


I would use char or short instead of int only if I have to store lots of
those values, i.e. I can significantly reduce memory utilization.
Typically, it's best to use int, since that type is supposed to have the
native size of the machine, making it potentially faster than the other
types.

Jul 23 '05 #30
Richard Herring wrote:
You won't be in favour of using the STL, then.
std::find returns the "end" iterator if it can't find a match.
string functions return npos. And so on.
I don't see how cluttering the interface with an extra returned
value would help matters, and failure to find a match isn't usually
the kind of unexpected event that exceptions were intended to handle.


I'm talking about /error/ conditions.

So, I suspect, was the OP, despite his use of the word "error".

'Not found' and similar are not errors, but indicators.

Indeed, but they still use a special "value" to indicate something that
isn't a value at all. Is that an indication of poor design?


In terms of C/C++, I'd say that return values that indicate a legitimate value
or an error is a flag for potential poor design. True errors should be handled
by exceptions. Return values that also double as indicators (e.g. not found) I
think are worth a second look and may be questionable design.

On the whole, and off-topic here, I think that the /language/ is severely
deficient in its parameter input and return value handling.
Single-return-value functions are far too limiting, and [out] parameters just
lead to clutter, language hacks (pointers/references), etc. Again, not topical
here.
Jul 23 '05 #31
Julie wrote:
On the whole, and off-topic here, I think that the /language/ is
severely deficient in its parameter input and return value handling.
Single-return-value functions are far too limiting, and [out] parameters
just lead to clutter, language hacks (pointers/references), etc. Again,
not topical here.

I think you should check the std::pair as a return value.

--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 23 '05 #32
Ioannis Vranos wrote:
Julie wrote:
On the whole, and off-topic here, I think that the /language/ is
severely deficient in its parameter input and return value handling.
Single-return-value functions are far too limiting, and [out]
parameters just lead to clutter, language hacks (pointers/references),
etc. Again, not topical here.


I think you should check the std::pair as a return value.


Any structure can be returned from a function, but then you must cache that
value (i.e. new variable) or just use a single field.

Again, my ideas aren't topical here, but I think that C/C++ parameter handling
is so 1960's.

Jul 23 '05 #33
Julie wrote:
I think you should check the std::pair as a return value.

Any structure can be returned from a function, but then you must cache
that value (i.e. new variable) or just use a single field.

Again, my ideas aren't topical here, but I think that C/C++ parameter
handling is so 1960's.

What about returning pointers for run-time/space expensive values?

--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 23 '05 #34
In message <1110937742.797469@athnrd02>, Ioannis Vranos
<iv*@remove.this.grad.com> writes
Julie wrote:
I think you should check the std::pair as a return value.

Any structure can be returned from a function, but then you must
cache that value (i.e. new variable) or just use a single field.
Again, my ideas aren't topical here, but I think that C/C++
parameter handling is so 1960's.

What about returning pointers for run-time/space expensive values?

What about being really revolutionary and returning a special sentinel
value to indicate special cases like "not found"? ;-) It's a good
solution for half-open sequences, where there's a natural choice ('end')
for the flag value, and this is reflected in the simplicity of many of
the algorithms.

--
Richard Herring
Jul 23 '05 #35
Ioannis Vranos wrote:
Julie wrote:
I think you should check the std::pair as a return value.


Any structure can be returned from a function, but then you must cache
that value (i.e. new variable) or just use a single field.

Again, my ideas aren't topical here, but I think that C/C++ parameter
handling is so 1960's.


What about returning pointers for run-time/space expensive values?


Again, a hack for a language deficiency.

Maybe it is time that I design my own language.
Jul 23 '05 #36
Julie wrote:
Again, a hack for a language deficiency.

Maybe it is time that I design my own language.

Perhaps it is. Wait a minute, I thought Java was the cure for all
problems! :-)

--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 23 '05 #37

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

Similar topics

5
by: Ender | last post by:
Let's assume you are developing a database application and you have an ID field. You setup the ID field in the database as a 1 up increment starting at zero. Whenever I see programs, everyone...
1
by: ±èÀçȲ | last post by:
//this code generates the error. uint a=1,b=2; Console.WriteLine(a << b); Console.WriteLine(a >> b); What problem does "uint type" have.?
9
by: Bjorn Abelli | last post by:
Hi all, When I run a normal application I can get who started a process with the following example: Process myProcesses = Process.GetProcesses(); foreach(Process p in myProcesses) {...
4
by: TT (Tom Tempelaere) | last post by:
Hi people I have a library built using MSVC6 which exports a method with the following signature void library_method( UINT* sw_mode ) I am trying to use PInvoke to be able to call it from my...
1
by: genojoe | last post by:
I have converted the code shown below from C#. My problem involves the uint data type. When converted to VB.NET it becomes: Uint32 and causes two compile errors. The error message in VB.NET...
0
by: NvrBst | last post by:
I want to be able to tell when the mouse left clicks even when my application doesn't have focus. I tried adding this to my form ------------------------------------------ protected override...
4
by: Jure Bogataj | last post by:
Hello! Why I cannot apply this operator to UINT or INT type in c# (VS 2005)? uint MyConst; uint SomeValue; .... MyConst = MyConst & (!SomeValue) Trying to erase certain bit inside...
14
by: Mohamed Mansour | last post by:
Hey there, this will be somewhat a long post, but any response is appreciated! I have done many PInvoke in the past from C++ to C#, but I did PInvoke within C# not C++/CLI. Can someone explain...
2
by: Tim Sprout | last post by:
The P/Invoke Interop Assistant (http://www.codeplex.com/clrinterop) generates a signature for GetDefaultPrinter using an uint type for pcchBuffer: public static extern bool GetDefaultPrinter( ...
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: 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
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...
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
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
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
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.