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

Guid Array?

I want to build Guid Array so doing:
Guid[,] data = new Guid[x,y];
.... and recieve an error "; expected" - What's the hell?

TNX

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "
Nov 16 '05 #1
8 9041
Hi,
Most likely, you missed the ';' in the previous line of the source code.
:)

Ming Chen

"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:uT**************@TK2MSFTNGP09.phx.gbl...
I want to build Guid Array so doing:
Guid[,] data = new Guid[x,y];
... and recieve an error "; expected" - What's the hell?

TNX

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "

Nov 16 '05 #2
Perhaps you have some invalid syntax on a line in close proximity.

--
Scott
http://www.OdeToCode.com

On Wed, 22 Sep 2004 20:44:17 +0200, "Tamir Khason"
<ta**********@tcon-NOSPAM.co.il> wrote:
I want to build Guid Array so doing:
Guid[,] data = new Guid[x,y];
... and recieve an error "; expected" - What's the hell?

TNX


Nov 16 '05 #3
Nothing, checked it all and found NOTHING.
It looks like some kind of bug in framework 2.0...

MS - Your turn ;)

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:mc********************************@4ax.com...
Perhaps you have some invalid syntax on a line in close proximity.

--
Scott
http://www.OdeToCode.com

On Wed, 22 Sep 2004 20:44:17 +0200, "Tamir Khason"
<ta**********@tcon-NOSPAM.co.il> wrote:
I want to build Guid Array so doing:
Guid[,] data = new Guid[x,y];
... and recieve an error "; expected" - What's the hell?

TNX

Nov 16 '05 #4
Tamir,

2.0 is not a released product, so anything can be happening. That
being said, this would be a significant bug. Below is a complete
program I've compiled with the Beta1 refresh. Perhaps you could post a
complete program that does not compile to demonstrate the problem.

using System;

namespace ConsoleApplication6
{
class Program
{
static void Main(string[] args)
{
int x = 3;
int y = 4;
Guid[,] data = new Guid[x, y];
}
}
}

--
Scott
http://www.OdeToCode.com

On Wed, 22 Sep 2004 21:19:59 +0200, "Tamir Khason"
<ta**********@tcon-NOSPAM.co.il> wrote:
Nothing, checked it all and found NOTHING.
It looks like some kind of bug in framework 2.0...

MS - Your turn ;)


Nov 16 '05 #5
Hi Tamir,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you're receving a compile error which
says missing ;. If there is any misunderstanding, please feel free to let
me know.

I agree with Scott's idea that since current 2.0 is a beta version,
anything can be happening. However, I have tried your code on both .net
framework 1.1 and 2.0, it seems to be fine on my machine. So I think there
must be some missing ; in your code before this line. Please also try
Scott's code to see if it works.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 16 '05 #6
I tried Scott's code and it compiles BUT in Output Window appears the same
error, so it looking like bug in 2.0

BTW my code works as well after restart of VS (error in Debug, but compiles)

TNX to all

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "

"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:kJ**************@cpmsftngxa06.phx.gbl...
Hi Tamir,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you're receving a compile error which
says missing ;. If there is any misunderstanding, please feel free to let
me know.

I agree with Scott's idea that since current 2.0 is a beta version,
anything can be happening. However, I have tried your code on both .net
framework 1.1 and 2.0, it seems to be fine on my machine. So I think there
must be some missing ; in your code before this line. Please also try
Scott's code to see if it works.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 16 '05 #7
Tamir Khason <ta**********@tcon-NOSPAM.co.il> wrote:
I want to build Guid Array so doing:
Guid[,] data = new Guid[x,y];
... and recieve an error "; expected" - What's the hell?


Could you post a short but complete program which demonstrates the
problem?

See http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #8
Please post your code.

Willy.

"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:eG**************@TK2MSFTNGP14.phx.gbl...
I tried Scott's code and it compiles BUT in Output Window appears the same
error, so it looking like bug in 2.0

BTW my code works as well after restart of VS (error in Debug, but
compiles)

TNX to all

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "

Nov 16 '05 #9

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

Similar topics

6
by: BigDadyWeaver | last post by:
I am using the following code in asp to define a unique and unpredictable record ID in Access. <% 'GENERATE UNIQUE ID Function genguid() Dim Guid guid =...
1
by: John Smith | last post by:
Hi all, I've got this math problem... I feel a little bit silly but here it is, because it seems first year CS, but my memory fails me. Sample Code: Guid myGuid = new...
1
by: Jim Shank | last post by:
I am adding support to my application for Oracle 10g and using Enterprise Library Data Access Application Blocks and trying to determine the best way to convert the GUID's which are stored as...
2
by: Brent Horine | last post by:
Still a newbie to C#. How do I declare a Guid as a constant? public const Guid GUID_BLUETOOTH_HCI_EVENT = new Guid(0x850302a, 0xb344, 0x4fda, 0x9b, 0xe9, 0x90, 0x57, 0x6b, 0x8d, 0x46, 0xf0); ...
0
by: dwivedialok13 | last post by:
I have a structure in managed code (c#) which I want to access from COM. public struct DI_DOCUMENT { public int idDocument; public Guid udi ; public ENM_DI_DOCUMENT_TYPE enmDocType; public...
2
by: Lee Crabtree | last post by:
I've been wrapping an unmanaged class, and everything has gone well. That is...until now. I've hit a wall while trying to marshal the System::Guid type down into the unmanaged GUID structure...
4
by: Dean Slindee | last post by:
I would like to use a Guid as a record identifier for to prevent update collisions (not as the key, but as a substitute for a timestamp field). What is the proper way to define storage for a guid...
5
by: Michael Primeaux | last post by:
I have a simple .NET 2.0 web service created with VS.NET 2005 with a single web method with the following signature: void HelloWorld(Guid parameter1); When calling this method I receive the...
13
by: Lamefif | last post by:
// The GUID is represented as a structure defined in <winnt.h>. typedef struct_GUID{ unsigned long Data1; unsigned short Data2; unsigned short Data3; unsigned char Data4;} GUID; GUID is a...
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
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
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,...
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.