1,443 Posted Topics
Re: Are you supposed to ask the user for the accident info that is stored? | |
Re: I find most IDEs for Java sluggish, so I use [URL="http://textpad.com/"]Textpad[/URL]. It has syntax highlighting and can run your compiler if configured properly. I still just use the SDK directly to compile (Java, Assembly, Ruby, Python and Perl). With that said: I am a complete Visual Studio junkie for C#, … | |
Re: Hmmm... I say they are the same. I think (in Java and C#) using the {} calls "new". ...testing... Well, I created two programs with the same variable names and same class names, compiled them and ran fc /b over them: "FC: no differences encountered" at the [B]byte[/B] level. | |
| |
Re: What "includes" are you using for the C# code? | |
Re: Depending on how you query the database, your result will come back in an array or other collection anyway, so you will only need to inspect the number of columns returned. You can treat all results as strings, if necessary. How are you querying the database? | |
Re: Are you saying you only want to allow numeric values and ignore all others? | |
Re: Maybe a graphical representation of their confirmed location (in the plane, ship, theatre, etc.). | |
Re: Do you need () on the Read()? [url]http://msdn.microsoft.com/en-us/library/haa3afyz.aspx#Y608[/url] | |
Re: Do you have the source code for the DLL (dot net Assembly) that was built with 'v1.1.4322'? If so, can you re-compile THAT? If you change your target dot net level to 3.5 or lower, does it work? | |
Re: Is this question in the right forum? Do you have the source code for the DLL (dot net Assembly) that was built with 'v1.1.4322'? If so, can you re-compile THAT? If you change your target dot net level to 3.5 or lower, does it work? | |
Re: How you choose to store the data should really depend on what you're going to do with it when you get it out of the database. My code example would be pretty-much like ChrisHunter's example. I recommend custom classes for the data where you fill a collection of those classes … | |
Re: Yes, if your intention is to have 255 values spread out across the buffer. | |
Re: I recommend ASP.NET with a C# back-end. If done with class-libraries (in assemblies), you can use ANY dot net language as long as your "stub" is in either VB or C#. ...but I still recommend C#. | |
Re: Depending on the structure of the page, you can load it with a WebClient or a HttpWebRequest methodology. Once you've loaded the page, you can search the HTML for the file name and download it. If the site does not require you to log in, you can use the WebClient's … | |
Re: Where did you put the DLL? Is it in the path of the program? What DLL did it say you were missing and what was the actual error given by the linker? | |
Re: using namespace std; ...right before your class... ...best on line 6 | |
Re: Assuming this is LINQ: It would [I]probably[/I] be something like: [CODE=C#] var lstOfRecords = ( from d in p.preventiveRecords.Where(d => d.Date_Done != null && p.preventiveRecords.Where( e =>e.VerifiedbySupervisor == null)) select new { d.ID, d.Date_Done, d.Date_Due, d.SME, d.Status, d.History_ID, d.Remark, d.Verifiedbysupervisor, d.Verifiedbymanager } ).ToList(); [/CODE] ...but if you're trying to actually … | |
Re: Your code will be the best "tool" for this. Even if you could find some third-party software to do this: by the time you finish configuring it to work with your files, you could write something to take care of it. As ddanbe mentioned, so do I: I still do … | |
Re: I would use the WebClient class. The OpenRead() method will let you open the web page like a file. | |
Re: You could do something like this: [CODE] using System.IO; using System.Net; namespace DW_413504_CS_CON { class Program { public static void DoWebClientExample(string strURI) { WebClient wc = new WebClient(); wc.DownloadFile(strURI, "c:\\install\\txpeng542.exe"); } static void Main(string[] args) { string strURI = "http://www.textpad.com/download/v54/txpeng542.exe"; DoWebClientExample(strURI); } } } [/CODE] | |
Re: The only version of VS Professional I have seen for free (download) is [URL="http://www.microsoft.com/visualstudio/en-us/try"]the trial edition[/URL]. I [I]have[/I] seen the standard (2008 at a conference) and [URL="http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express"]express editions (online) available (for free)[/URL], however | |
Re: I compiled this as-is and it compiled and ran with no problem. Maybe your path and/or CLASSPATH are not properly set up. [CODE=TEXT] C:\science\java\DaniWeb\413619>javac Example.java C:\science\java\DaniWeb\413619>java Example List : BLUE BLACK WHITE [/CODE] | |
Re: You have not called the other functions in your code FROM main. The only method you're calling is DisplayIntructions(); Also, how is the program supposed to detect the user has stopped entering values? Something like this might help: [CODE] using System; using System.Collections.Generic; using System.Linq; namespace DW_412384_CS_CON { class Program … | |
Re: When you're not sure how the lines will be broken, it will be tricky. You could do it like this or just remove ALL whitespace and look between the closing span and opening span. I made a mock-up of the HTML and put it in a string array to simulate … | |
Re: A lot of this has to do with the technique of filling the controls at the same time you're reading from the database. The controls are not exactly the same and neither is the driver getting to the database. I *personally* would read the content into a collection then put … | |
Re: What do you mean? A web service is meant to process functions; not to render graphically. What type of methods are you talking about doing and do you have any experience with Web Services? | |
Re: Here are some links: [url]http://www.cpp-home.com/tutorials/155_1.htm[/url] [url]http://tutorialsto.com/index.php/software/c/visual-c-in-the-odbc-programming.html[/url] | |
Re: 1) Learn to code something (using books, videos, audio, lectures) 2) Write code 3) Learn from your mistakes 4) Repeat | |
Re: An ASP.NET Web project is best hosted in IIS. Is running IIS not an option? | |
Re: I know this sounds antiquated, but I learned a lot by writing a text adventure game -- like a [URL="http://www.freearcade.com/Zplet.jav/Scottadams.html"]Scott Adams text adventure game[/URL] back in the early 1980s. Something like that would expand his knowledge of user interaction and could be great for learning code re-use. It could be … | |
Re: You're saying this works as a managed EXE, but not as a managed DLL? | |
Re: I've never seen a .sdf file opened with MFC. ( but ... ) Is it possible to set an ODBC entry to that file and hit it through ODBC? If so, can you see it when you use MS Query? | |
Re: If you already know a little Java, you should probably use that. If you really WANT to learn a different language, the options are wide-open. | |
![]() | Re: What is the text of the error? ![]() |
Re: Under dot net, it is very easy to mix languages (C++, F#, C#, VB). Others are also available. I have not done any [I]GUI[/I] programming outside of MFC or dot net, so I cannot answer for other operating systems or platforms. | |
Re: Why would they need to wait for an hour? I must be missing something in the explanation. Are you having problems with timing in the code or ticket sales or not showing the menu for an hour or ??? | |
Re: You can pass it as a referrence parameter in a function and have that function allocate it. You can also just use an empty List<string> lst_str = new List<string>(); and the function can populate it without having to call new on it. [CODE] using System.Collections.Generic; using System.Linq; namespace DW_413211_CS_CON { … | |
Re: I'm looking at [URL="http://docs.oracle.com/javase/1.4.2/docs/api/java/sql/Statement.html"]the documentation[/URL] and I don't see a way to "executeScalar" -- which is what I think you're looking for. One technique you could use is to put that stuff in a function, get the count the hard way and return it as a long. That way, you … | |
Re: Is it through an Exchange server or something else? | |
Re: Are you getting a [URL="http://geekswithblogs.net/PsudoKnowledgeBase/archive/2011/09/01/nullreferenceexception-when-calling-the-retrieve-method-of-the-organizationserviceproxy-object.aspx"]NullReferenceException[/URL]? | |
Re: The transaction will be bound to the connection and passed to each command. Issue .Commit() when you're ready and your commands have succeeded. You can set up a reference to the connection and to the transaction, so if the even fails, you can rollback in the Exception handler. [CODE] using … | |
Re: Have you looked into [URL="http://docs.oracle.com/javase/1.4.2/docs/api/java/text/DecimalFormat.html"]DecimalFormat[/URL]? [CODE] import java.util.*; import java.text.*; // ... DecimalFormat df=new DecimalFormat("$0.00"); // ... System.out.println(p.getCode() + "\t" + p.getDescription() + " @ " + df.format(p.getPrice())); // ... [/CODE] | |
Re: Where do you want them to be? They can in the Global Assembly Cache (the GAC). | |
Re: If you can't use arrays, did you set up your 26 (or 27) variables, yet? | |
Re: Is it going to be used in a calculation after it reaches Excel? If not, can your template treat it as a string? | |
| |
Re: I also suggest that maybe you create a console app in C#. You will notice a familiarity when receiving input, looping, displaying and other output. You will also find that coding in C# will also make you a better C++ programmer (in some ways). I like videos. [url]http://DnrTV.com[/url] is a … | |
Re: You could also encrypt it and store it in the system registry. OR You could just set a value somewhere in the registry to let the program know the password was previously accepted. |
The End.