Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

In the 2003 code I have the following:

oReader = oFile.OpenText(myFile)

where oReader is a System.IO.StreamReader and myFile us a string refering to a temporary file location.

 

With the 2005 environment, I am getting the following error: "Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated". Any suggestions?

 

Mike55.

A Client refers to the person who incurs the development cost.

A Customer refers to the person that pays to use the product.

------

My software never has bugs. It just develops random features. (Mosabama vbforums.com)

Posted
I've gotten that a few times as well while porting my code. If I remember correctly, it's a warning that you are calling a static/shared method from an object you've instantiated. Is OpenText a static method? If oFile is a System.IO.File try File.OpenText(myFile).

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...