130 Posted Topics
Re: MSDN is a good resource for getting information on the C# classes, and other aspects of the .NET framework. Didn't see anybody mention it here, but just glanced over the posts. Microsoft Developer Network https://msdn.microsoft.com/en-us/default.aspx . It used to be really bad, especially with the C/C++ languages, hard to figure … | |
Hi, so this has been bugging me for a while about Danni Web website. I seem to have neglected my email account for a while, and now it is on the bounced email list. How do I get my email off this list, and back in working order. I can't … | |
Re: Are you entireley sure that the sequence isn't supposed to look like this? 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 4 5 6 1 2 3 4 5 6 7 1 2 3 4 5 6 7 8 1 … | |
Re: You would essentially need a deep copy clone of the array. Array only has a shallow copy though, so you would need to find some code that allows for deep copying. This would cause overhead if you were doing it a lot though. Arrays are pass by reference to prevent … | |
Re: Just curious what kind of application needs to choose one of 50 doubles without going over? Is this some kind of guessing game? | |
Have any of you ever done big O notation? I found some websites that describe it, but not many professional ones. Are there any books that describe it too? | |
Re: Once I coded a C#/ASP.NET citation generator. You can code it in any language however. Involved a database where the citations would be stored (you may be able to get away with flat files if you tweak). Had a lot of fields involved many of which could be null, so … | |
So I am kinda new to developing client and server sockets (protocols), and am developing something just for fun on my own network. This program basically will send all files from a specific folder to a client. So I am wondering if I wanted to send multiple files over one … | |
Re: The following is java, for extracting text from files: import java.io.IOException; import com.itextpdf.text.pdf.PdfReader; import com.itextpdf.text.pdf.parser.PdfReaderContentParser; import com.itextpdf.text.pdf.parser.SimpleTextExtractionStrategy; import com.itextpdf.text.pdf.parser.TextExtractionStrategy; public class PDFToText { public static void main(String[] args) { for(int i = 0 ; i < args.length ; i++) try { System.out.println(wordsInFile(args[i])); } catch (IOException e) { e.printStackTrace(); } }//end … | |
Re: The toString method does not get overridden enough, and is good for displaying your books. Just override your own version which displays the variables you want displayed. Then you can simply pass the object you want displayed directly to System.out.println(obj) and it will print in string form the object. Here … | |
So, I am trying to get a query working that finds a certain flash drive attached to my computer and selects it's DriveInfo object. I am having trouble because on my system when I call the VolumeLabel property of one of my DriveInfo objects it throws an exception (IOException) because … | |
Re: Do you mean the first few bytes of a file, or the hash of the file? If you mean the hash, you will need to use a **hash algorithim** which is probably already implemented in the java API like **sha1, sha12, md5**, etc. The reason I bring it up is … | |
So I am working on an old project that uses libnet, actually it is a book example, and I cannot find a version 1.1 or 1.0 of libnet. I am going to somehow have to track the depreciation of certain functions and I have never done something like this before. … | |
So, I recently wrote a program for a class that involved writing an aggregate class to a file. This particular program had an order object, and each order could have 10 ice cream cones, so a ToString() of the class would look like this: Order Number: 1 Customer #1: Harrington, … | |
How does one roll back a readline from a text file? | |
Is there any difference between returning a pointer to a struct, and returning a struct? Aside from the derefrenceing that is done would they both be working with the same struct? Is there any copying that gets done if it is just a regular return? | |
I am relatively new to C#, does anybody have a simple example of how calling C++ from C# would be done? I heard that C# can call other languages. | |
So, I wrote some code for appending to an array, and I thought to myself, would be cool to make the method more generic using an interface. I keep getting this error though that basically says that the compiler's best overloaded method that can match this is _____, and it … | |
I am wondering, when does it become more efficient to pass by value in C#? I was reading this article: http://msdn.microsoft.com/en-us/library/4d43ts61%28v=vs.90%29.aspx The article suggests that passing by reference actually generates overhead when it transferrs the value type to the heap. My C/C++ classes swore by passing by reference as a … | |
Hello, am having some trouble with Windows batch variable expansion. Am trying to make a script that will make a list of all currently plugged in drives. I want to omit the system drive, since that one shows up as a blank letter. The following script can be copy+paisted directly … | |
How do I create a function that accepts by refrence an array of character pointers? I need to be able to overwrite the contents of an array of character pointers, hence I need a pointer to that array. Here is some of my code, but it is throwing errors, so … | |
Hello, I got some code from: http://stackoverflow.com/questions/1859201/add-seconds-to-a-date this is the code: #include <time.h> #include <stdio.h> int main() { time_t now = time( NULL); struct tm now_tm = *localtime( &now); struct tm then_tm = now_tm; then_tm.tm_sec += 50; // add 50 seconds to the time mktime( &then_tm); // normalize it printf( … | |
I just glued together two codes I found online, and found an interesting result. Some of my flash drives have been appearing twice on the system. Here is what the output looks like: Drive: C:\ Volume Name: Drive: D:\ Volume Name: Drive: E:\ Volume Name: Drive: F:\ Volume Name: Drive: … | |
Hello, I was doing some research on enumerating the different drives on a system, and I found some code on MSDN. Here is the page: http://msdn.microsoft.com/en-us/library/windows/desktop/aa364975%28v=vs.85%29.aspx The source code looks like this: DWORD dwSize = MAX_PATH; char szLogicalDrives[MAX_PATH] = {0}; DWORD dwResult = GetLogicalDriveStrings(dwSize,szLogicalDrives); if (dwResult > 0 && dwResult … | |
Hello, I am working on a program, and I noticed that all my threads are starting and stopping in exactly the same order I put them in, and they are not trading places in the output, or mixing output like concurrent objects should. Here is my code: public class RaceHorseAppII … | |
I have been having some trouble with this action listener scenareo, and I am doing it exactly like what my java book says to do, and something is still not working. In the action listener the if statement is not working correctly. Here is an example of my code. The … | |
If there is a String Buffer, and a String Builder based on array technology, why then is there no equivalent mutable data type based on a Linked List? Or is there? | |
I thought it would be really cool if JOptionPane could be extended to accept an array of strings that represent messages, and have the method return an array of strings that represent user answers to the messages which are entered into the dialog box. This would make getting GUI input … | |
I hope this is the right location to make this post. I downloaded the source code for a rich text editor from; http://code.google.com/p/android-richtexteditor/ and the code will not compile correctly. The errors I get are; "Unable to resolve target 'android-4'", "AndroidManifest.xml file missing!", and in the Html.java file there are … | |
I am working on a "for loop that finds all the drives on a system that match a given criteria and am trying to accumulate the drive letters into a list(string) which I can then pipe to a command which will do something to those drives. I do not use … |
The End.