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

Upgrading arrays (VB6->VB.Net Express)

Hello,

I want to upgrade my VB6 project to VB.Net Express.

I have a type, and I dim an array from it.

This is what I have.

Private Structure TColorRGB
Dim Red As Integer
Dim Green As Integer
Dim Blue As Integer
End Structure

And what I do is:

Dim NewRGBPoint(8) As TColorRGB

And now VB.Net is telling me that I it "couldn't resolve default
property of object NewRGBPoint(i) in these lines:

For i = 0 To 8
'UPGRADE_WARNING: Couldn't resolve
default property of object NewRGBPoint(i). Click for more:
'ms-help://MS.VSExpressCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
NewRGBPoint(i) = LongToRGB(lColor(i))
lTemp = lTemp +
GetBrightness(NewRGBPoint(i))
Next i

What I found in the MSDN what a bit of a joke or at least not
understandable: "Create an array!". Aha, I thought that was what I did...

Can anybody please help?
Thanks.
Herbert.
Aug 13 '06 #1
2 1013
Hi,

What the warning means that VB is expecting LongToRGB to return a
TColorRGB structure.

Here is some info on default properties
http://msdn.microsoft.com/library/de...properties.asp

Ken
----------------------
"Herbert Joll" <DO******************@hotmail.comwrote in message
news:Ox**************@TK2MSFTNGP03.phx.gbl...
Hello,

I want to upgrade my VB6 project to VB.Net Express.

I have a type, and I dim an array from it.

This is what I have.

Private Structure TColorRGB
Dim Red As Integer
Dim Green As Integer
Dim Blue As Integer
End Structure

And what I do is:

Dim NewRGBPoint(8) As TColorRGB

And now VB.Net is telling me that I it "couldn't resolve default property
of object NewRGBPoint(i) in these lines:

For i = 0 To 8
'UPGRADE_WARNING: Couldn't resolve default
property of object NewRGBPoint(i). Click for more:
'ms-help://MS.VSExpressCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
NewRGBPoint(i) = LongToRGB(lColor(i))
lTemp = lTemp +
GetBrightness(NewRGBPoint(i))
Next i

What I found in the MSDN what a bit of a joke or at least not
understandable: "Create an array!". Aha, I thought that was what I did...

Can anybody please help?
Thanks.
Herbert.

Aug 13 '06 #2
Hello Herbert,

You may wish to use the new Color structure in .NET.

-Boo
Hello,

I want to upgrade my VB6 project to VB.Net Express.

I have a type, and I dim an array from it.

This is what I have.

Private Structure TColorRGB
Dim Red As Integer
Dim Green As Integer
Dim Blue As Integer
End Structure
And what I do is:

Dim NewRGBPoint(8) As TColorRGB

And now VB.Net is telling me that I it "couldn't resolve default
property of object NewRGBPoint(i) in these lines:

For i = 0 To 8
'UPGRADE_WARNING: Couldn't resolve
default property of object NewRGBPoint(i). Click for more:
'ms-help://MS.VSExpressCC.v80/dv_commoner/local/redirect.htm?keyword="
6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
NewRGBPoint(i) = LongToRGB(lColor(i))
lTemp = lTemp +
GetBrightness(NewRGBPoint(i))
Next i
What I found in the MSDN what a bit of a joke or at least not
understandable: "Create an array!". Aha, I thought that was what I
did...

Can anybody please help?
Thanks.
Herbert.

Aug 13 '06 #3

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

Similar topics

4
by: james | last post by:
I upgraded my 2002 project to 2003 and I am getting several of there errors on my forms xxxForm.resx Resource transformation for file 'xxxForm.resx' failed. Possible Version mismatch. Type...
4
by: Spurry Moses | last post by:
I know it's in Beta 2, but I can't report any good experiences with upgrading a project form 2003 to 2005. I tried to upgrade a 2003 project to C# Express 2005. My application has hardly...
2
by: playboy601 | last post by:
Has anyone else had problems with opening solutions created in c# express with an older version of .net 2.0, after upgrading to the latest build (2.0.50727.42)?? Everytime I tried to open the...
9
by: Greg P | last post by:
Could someone point me to a good guide for upgrading an existing vb6 application to vb 2005? I now know that my use of control arrays will need to be adjusted, does the wizard to this for me? ...
3
by: RayPower | last post by:
I'm having a system using Access 2000 as both front-end (queries, forms, reports & temp tables for reports) & back-end (data) with back-end running on the server. The application runs on the...
10
by: David Fort | last post by:
Hi, I'm upgrading a VB6 app to VB.net and I'm having a problem with a call to a function provided in a DLL. The function takes the address of a structure which it will fill in with values. I...
11
by: HC | last post by:
I posted this in one of the VB forums but I'm starting to think it might be more appropriate to have it here, since it really seems to be a SQL server (MSDE/Express 2005) problem: Hey, all, I...
5
by: Glen Buell | last post by:
Hi all, I have a major problem with my ASP.NET website and it's SQL Server 2005 Express database, and I'm wondering if anyone could help me out with it. This site is on a webhost...
14
by: ARC | last post by:
Hello All, I have a major application for quoting and invoicing that is written in Access 97 (both front and back ends). I have a user base of over 300 customers, and currently I don't require...
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
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
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
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.