473,406 Members | 2,713 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.

Weird compiler error: int?[]

I'm getting a compiler error that says "Cannot convert from int[] to
int?[]".

I have no idea what this means.

Here's a screenshot:

http://www.sendspace.com/file/6o20pn

Any ideas?

Thanks.

Jul 23 '06 #1
6 1223
Have you compressed the image as jpeg and then saved it as bmp by purpose?

<jy****@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
I'm getting a compiler error that says "Cannot convert from int[] to
int?[]".

I have no idea what this means.

Here's a screenshot:

http://www.sendspace.com/file/6o20pn

Any ideas?

Thanks.

Jul 23 '06 #2
WTH
jy****@gmail.com <jy****@gmail.comloquated like no one had ever loquated
before with:
I'm getting a compiler error that says "Cannot convert from int[] to
int?[]".
Are you familiar with 'nullable types'?

WTH

--
"Shanks went down on the pitch, and I had to get this all red kit on,
run down the tunnel, up the stairs and out. I'd gone about five yards,
and Shanks was shouting, 'That's it! Bloody hell, he looks about seven
foot!' So we started to play in red." - Ron Yeats
Jul 24 '06 #3
<jy****@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
I'm getting a compiler error that says "Cannot convert from int[] to
int?[]".

I have no idea what this means.

Here's a screenshot:
Why not show us the code that's causing the problem?

Michael
Jul 24 '06 #4
"Lebesgue" <le******@gmail.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Have you compressed the image as jpeg and then saved it as bmp by purpose?
You got further than me, I saw it was 2mb and pushed cancel. :-)

Michael
Jul 24 '06 #5
Me too...

"Michael C" <no****@nospam.com¼¶¼g©ó¶l¥ó·s»D:OW**************@ TK2MSFTNGP05.phx.gbl...
"Lebesgue" <le******@gmail.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>Have you compressed the image as jpeg and then saved it as bmp by
purpose?

You got further than me, I saw it was 2mb and pushed cancel. :-)

Michael

Jul 24 '06 #6
Obviously he/she isn't. :)

In short, it looks like you're using C# 2.0 and trying to cast an
integer to a nullable integer. This is likely to happen, for example,
if you declare an integer as nullable, and try and assign an integer
value.

int? nullableInt = 10; // Notice the question mark.
int normalInt = 5;

nullableInt = null; // This is not allowed with normal integers.
normalInt = nullableInt; // Compiler error - type mismatch.

Nick

WTH wrote:
jy****@gmail.com <jy****@gmail.comloquated like no one had ever loquated
before with:
I'm getting a compiler error that says "Cannot convert from int[] to
int?[]".

Are you familiar with 'nullable types'?

WTH

--
"Shanks went down on the pitch, and I had to get this all red kit on,
run down the tunnel, up the stairs and out. I'd gone about five yards,
and Shanks was shouting, 'That's it! Bloody hell, he looks about seven
foot!' So we started to play in red." - Ron Yeats
Jul 24 '06 #7

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

Similar topics

5
by: NanQuan | last post by:
I'm hoping someone can help me solve this error since I am at a total loss here. Usually I don't bother posting on any forums or groups on the internet and prefer to solve stuff myself but this is...
1
by: amit | last post by:
I am trying to compile the sample program genwin.sqc, using nsqlprep which is used to precompile embedded sql in C. I am getting weird errors and that is because windows.h is included in the...
10
by: Chris Mantoulidis | last post by:
I see some really weird output from this program (compiled with GCC 3.3.2 under Linux). #include <iostream> using namespace std; int main() { char *s; s = "test1"; cout << "s = " << s << "...
2
by: alice | last post by:
Hi, When I compiles the following program with g++, it gives the following output: # g++ -o list list.C list.C: In function `int main()': list.C:116: jump to case label list.C:110: crosses...
8
by: J.Marsch | last post by:
Ok, I think that what I'm seeing is due to some implicit boxing/unboxing going on, but I'd like to understand this a little better. I have a collection of structs. If I try to iterate the...
2
by: Scott Reynolds | last post by:
I am having a problem exposing a class inherited from the collection base class as a webservice. If I expose the collection on a web page all works well and I am very happy. However when I try and...
2
by: Hendrik Schober | last post by:
Hi, I have some expression template code that I want to get to work. I had a typo in it and just spent two hours to find it, because VC7.1 gave a really weird error message for it. This is the...
2
by: Sai Kit Tong | last post by:
I try to utilize an old native code class library for my managed C++ application, and experience a weird problem. I used IJW approach and included the header file for my native class definition. I...
2
by: Lisa Calla | last post by:
My aspnet web was working perfectly fine, then I added a second datalist to a page. The datalist can be formatted in the designer and everything looks fine. In the codefile, I can see the...
10
by: David Thole | last post by:
Hey all, I'm still very new at all this, but am going through the ASP.net 2.0 unleashed book, first chapter and trying to program my own little form emailer for fun. I tried following the code...
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: 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
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...
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
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.