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

No accessible overloaded

We got back "No accessible overloaded. "Streamwriter.writeline is most
specific for these arguments:

Overrides Public Sub Writeline(ByVal buffer as Char() ).
Overrides Public Sub Writeline(ByVal value as char)

This occurred when we were doing a routine that had to write to a number of
files. We've not seen this before and there have been no recent code
changes. Ideas? Thank you.

Jul 21 '05 #1
4 1207
Jeffrey Howard <Je***********@discussions.microsoft.com> wrote:
We got back "No accessible overloaded. "Streamwriter.writeline is most
specific for these arguments:

Overrides Public Sub Writeline(ByVal buffer as Char() ).
Overrides Public Sub Writeline(ByVal value as char)

This occurred when we were doing a routine that had to write to a number of
files. We've not seen this before and there have been no recent code
changes. Ideas? Thank you.


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
Jul 21 '05 #2
Dim objStreamWriter As StreamWriter
objStreamWriter = File.AppendText(strOutName)
objStreamWriter.WriteLine(strChargeFlag)
objStreamWriter.WriteLine(strUseShortCode)
objStreamWriter.WriteLine(strSenderMobileTx)
objStreamWriter.WriteLine(StrMessage)
objStreamWriter.Close()

"Jon Skeet [C# MVP]" wrote:
Jeffrey Howard <Je***********@discussions.microsoft.com> wrote:
We got back "No accessible overloaded. "Streamwriter.writeline is most
specific for these arguments:

Overrides Public Sub Writeline(ByVal buffer as Char() ).
Overrides Public Sub Writeline(ByVal value as char)

This occurred when we were doing a routine that had to write to a number of
files. We've not seen this before and there have been no recent code
changes. Ideas? Thank you.


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

Jul 21 '05 #3
Jeffrey Howard <Je***********@discussions.microsoft.com> wrote:
Dim objStreamWriter As StreamWriter
objStreamWriter = File.AppendText(strOutName)
objStreamWriter.WriteLine(strChargeFlag)
objStreamWriter.WriteLine(strUseShortCode)
objStreamWriter.WriteLine(strSenderMobileTx)
objStreamWriter.WriteLine(StrMessage)
objStreamWriter.Close()


That's not complete. Please see
http://www.pobox.com/~skeet/csharp/incomplete.html

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #4
Jeffrey Howard <Je***********@discussions.microsoft.com> wrote:
The actual program is hundreds of lines of code. The data for the variables
are supplied elsewhere. Has this problem been reported before? We did a KB
search prior to our posting and did not find this problem. Short of
providing a program hundreds of lines long, which will not be possible
because of non disclosure requirements, are their specific areas of
streamwriter use you'd suggest we look at.


You don't have to provide the whole *real* program - just a small
program which demonstrates the same issue. I suggest you either start
from an empty project and add bits until it breaks in the same way, or
take a copy of your real project and remove parts of that until it's
short and complete but still breaks.

There should be no need to have any business logic in there - only the
bit that breaks.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #5

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

Similar topics

8
by: Nitin Bhardwaj | last post by:
Thanx in advance for the response... I wanna enquire ( as it is asked many a times in Interviews that i face as an Engg PostGraduate ) about the overloading capability of the C++ Language. ...
1
by: masood.iqbal | last post by:
I have a few questions regarding overloaded typecast operators and copy constructors that I would like an answer for. Thanks in advance. Masood (1) In some examples that I have seen...
44
by: bahadir.balban | last post by:
Hi, What's the best way to implement an overloaded function in C? For instance if you want to have generic print function for various structures, my implementation would be with a case...
3
by: cybertof | last post by:
Hello, Is it possible in C# to have 2 overloaded functions with - same names - same parameters - different return type values If no, is it possible in another language ?
7
by: DF | last post by:
DrawText is overloaded - one of which accepts a ByVal rect and the other accepts a ByRef rect. I get a "no accessible 'DrawText' is most specific" error. How can I resolve this problem by forcing VB...
4
by: P K | last post by:
Hello, I have a console application. I have 2 or 3 classes. I also have a class in which I have nothing other than the main function with the follwoing signature public shared sub Main ...
2
by: Bill Nguyen | last post by:
What do I need to do to add a row to a table with single column? I got the "mnarrowing conversion" ewrror mesage. Thanks Bill -----------------
0
by: tshad | last post by:
I am getting the following error which makes no sense. No accessible overloaded If you look at the error, there is one overloaded function that can be called (int, string, int, int). The...
3
by: tshad | last post by:
I am getting the following error which makes no sense. I am doing this in asp.net. I get the following error: No accessible overloaded If you look at the error, there is one overloaded...
5
by: raylopez99 | last post by:
I need an example of a managed overloaded assignment operator for a reference class, so I can equate two classes A1 and A2, say called ARefClass, in this manner: A1=A2;. For some strange reason...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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...

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.