1,443 Posted Topics
Re: Create a System.Net.WebClient and then call the .DownloadFile() method in it. | |
Re: Also, did you already set up the same name in the ODBC Administrator? Control-Panel -> Administrative Tools -> DataSources(ODBC). You will need an entry with the same name registered in the same area on the working machine. | |
Re: [Duplicate?](http://www.daniweb.com/software-development/vbnet/threads/419325/conflict-in-schedule) | |
Re: I'm confused. Are you trying to call a process or parse a file? ...or are you trying to modify the file, output a new file THEN call a process? | |
Re: If you change it to NULL or ZERO or '0', you still need to make your code recognize that value means the spot is available for more data or "empty". | |
Re: You might also want to put your printing loop outside of your "gathering" loop, so you can display the names all at the same time. | |
Re: Do you either have the ASM code or the Regular Expression you're trying to create? | |
Re: descQuantity is two items in an IEnumerable. How are you converting that to a numeric value? | |
Re: This is the way i do it: public static List<string> GetFtpDirectoryDetails(NetworkCredential cred, string strDir) { List<string> lst_strFiles = new List<string>(); try { FtpWebRequest request = (FtpWebRequest)WebRequest.Create(strDir); request.Credentials = cred; request.Method = WebRequestMethods.Ftp.ListDirectoryDetails; FtpWebResponse response = (FtpWebResponse)request.GetResponse(); // StreamReader file = new StreamReader(response.GetResponseStream()); while (!file.EndOfStream) { lst_strFiles.Add(file.ReadLine()); } file.Close(); response.Close(); } … | |
Re: Most seasoned professionals would tell you: 1) to NOT use regions 2) to break your code up into chunks of functionality 3) to break up your functions into separate files 4) to use self-documenting/intuitive code rather than commenting. 5) that modern tools remove the need to sort your code Check … | |
Re: It depends on your intentions (your request.Method). If you are listing a directory, it should be a directory. If you are downloading a file, it should be a file. | |
Re: How can you assume the value of the year? ...otherwise, you can split the string ...or... Public Class Form1 Private Sub DateTimePicker1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DateTimePicker1.ValueChanged Dim strYear As String = "" strYear = DateTimePicker1.Value.Year MessageBox.Show(strYear) End Sub End Class | |
| |
Re: Which version of assembly? | |
Re: Will the description always have a slash / in it? If so, you can use .Split() on the string and parse it by the slash rather than taking data at a given position. | |
Re: There is no easier way to create DLLs than to use Visual Studio (even VS Express). Whe you create a project type, you simply choose the option of DLL. You can choose to make one for Win32 or for the CLR. I suspect the other compilers also have different options … | |
Re: One great benefit of this site is the great number of questions that have already been answered that you can search through. If you were to use the word StreamReader in the search window, you would probably get a multitude of examples. | |
Re: Do you really need to give the 'x' treatment as a character? It seems like the requirement would be to pass x to a function and return the calculated value. | |
Re: One thing I might do is spread those out in numerical (or reverse numerical) order and look for a pattern. If you look at this list, can you see two for loops? 0,0 0,1 0,2 0,3 0,4 0,5 1,5 2,5 3,5 4,5 5,5 5,4 5,3 5,2 5,1 5,0 4,0 3,0 … | |
Re: Is the built-in SetCursorPosition() not acceptable? using System; namespace DW_418958_CS_CON { class Program { static void Main(string[] args) { Console.SetCursorPosition(20, 10); Console.ReadLine(); } } } ...but since the positions on the screen are whole numbers, only whole numbers would make sense. If *I* had originated this method, it would take … | |
Re: I have always found I mus specify the database and owner when using SQL Server as in: INSERT INTO MYDB.MYOWNER.MYTABLE (mythis, mythat) values ('thisvalue, 'thatvalue') | |
Re: Is the DLL a dot net assembly? If so, add it as a reference. Of course, you would need to be compiling in /clr mode. Project->Properties->Add New Reference | |
Re: Do you want it sorted in the sheet or in your code? | |
Re: You're mixing C++/CLI with STL. You'd be better-off picking one or the other. Is this to be a 2d array of chars or key/value pairs or what? | |
| |
Re: How are you keeping track of the ones you already read? | |
Re: In what parts are you comparing the value with "AND"? Maybe this is a new technique. | |
Re: Is it the actual WaitForMessage that's not being called? Have you tried creating a temp file inside your function just to see if it is being called (but the location it's trying to put it is failing)? | |
Re: Do you know ANY object oriented languages? If so, this should not be an issue (you just need to learn the new syntax). If C++ is your first language ever and you have not learned the basics, you need to explain that to your instructor. Four weeks is probably enough … | |
Re: You *could* load that with Excel (COM classes) as Excel will parse that the way you expect. Of course, it's fairly slow (depending on how you do it) and has a learning curve. ...and the COM object requires Excel to be installed. Depending on how often you have to do … | |
Re: All you really need in the WHERE clause is the part that makes the record unique (1 record) if you are intending on deleting ONE record. Everything else is overkill. Do you have a unique index created on the table? Does your ORM read the unique index to make the … | |
Re: A lot will depend on previous settings before the code gets to this point. It *could* never reach this depending on other values (or crash as Momerath said). Also, if patternURL is not properly formed, you'll get unexpected results. Are you going to rewrite this function? | |
Re: I've never found an elegant way to do that: using System; using System.Linq; namespace DW_418578_CS_CON { class Program private static int[][] SortByColumn(int intColumn, int[,] arr_int) { private static int[][] SortByColumn(int intColumn, int[,] arr_int) { int intHeight = arr_int.GetUpperBound(0) + 1; int intWidth = arr_int.GetUpperBound(1) + 1; return ( from i … | |
Re: I would do it in C#, but I know it better than Perl. Either language would surely get the job done -- it just depends on where you are most comfortable. | |
Re: When you remove your printfs, does this STILL not compile? | |
Re: This page is sloppy, but the example is orrect. http://codereflex.net/how-to-connect-vb6-to-mysql/ | |
Re: How about scanning different programming forums and charting staticstics on: 1) Assumptions on what's being taught in universities based on content of questions being asked. 2) Assumptions on what are still hot academic languages 3) Assumptions on assignment types ("prime numbers", "calculators", "abc management systems", etc) 4) Assumptions on biggest … | |
Re: It could mean the *amount* or *style* of code. Was it used in a particular sentence or paragraph? | |
Re: > What would be the best Database system for me? That is a very subjective question. The answer is probably: The one you've used before, if any. If you have never used a database before and you're approaching this a a user, the brand probably won't matter. If you're doing … | |
Re: @anthonyjpv, there is also the [http://msdn.microsoft.com/en-us/library/system.data.common.dataadapter.aspx](DataAdapter). None of this will seem as *simple* as the constructs in PHP or other dynamic languages, but they can be very powerful when you start doing more complex operations. And, yes, you can attach all of the data-centric classes to MySQL (download the .net … | |
Re: Yes, make an array and make one single integer variable. Put the first variable from the array in the single variable and start looping. If the next variable is LOWER than the the one in the single variable, replace it. When you get to the end of the loop, the … | |
Re: This example creates an array of strings and prints the first element. #include "stdafx.h" using namespace System; int main(array<System::String ^> ^args) { Console::WriteLine((gcnew String("Hello World"))->Split(' ')[0]); return 0; } | |
Re: Sincerely, the easiest way to get four of the five answers is to compile the code and step through it in the debugger. It will tell you a lot. | |
| |
Re: Duplicate http://www.daniweb.com/software-development/cpp/threads/418490/arrays | |
Re: I'm confused. Are you: 1) Trying to get data from an Excel file or 2) Trying to add the path to Excel to a context menu or 3) Something different ? | |
Re: You're comparing the character to NULL to to drop into that section of code? | |
Re: Have you looked up the word Modulus, yet? |
The End.