132,726 Archived Topics
Remove Filter ![]() | |
I have never found a logical explanation to make my mind about using interfaces in c#. Does any one know a robust benefit of using interfaces? please explain to me in a structural manner. Software Development | |
I have the following code which is used to get various details about wireless networks; [CODE] // Lists all networks ssid, signal stregth, availability, & security Wlan.WlanAvailableNetwork[] networks = wlanIface.GetAvailableNetworkList(0); foreach (Wlan.WlanAvailableNetwork network in networks) listBox1.Items.Add(GetStringForSSID(network.dot11Ssid)); foreach (Wlan.WlanAvailableNetwork network in networks) listBox2.Items.Add(network.wlanSignalQuality + "%"); foreach (Wlan.WlanAvailableNetwork network in networks) listBox3.Items.Add(network.wlanNotConnectableReason); … Software Development listview | |
Hi, I am having some problem using nested if else in C# project. I have no idea why it is always executing the Save() function. I don't want to execute the save() function if the (dr.Read()) is true. Here is the code: [code=c] protected void BtnSave_Click1(object sender, EventArgs e) { … Software Development perl | |
First of all I want to thank the guys form this forum for there work and help that I found more then use full an different occasions. Here is my c programing exercise. Write a c program that shows all the products tahat have the price over 10. Any help … Software Development c | |
Ok, I've never seen a while loop like this. Please can someone help explain this: [CODE]CipherInputStream cis = new CipherInputStream(new FileInputStream(new File("plaintext.txt")),cipher); FileOutputStream fos = new FileOutputStream(new File("ciphertext.txt")); byte[] cipherTextBytes = new byte[8]; int i = 0; while((i=cis.read(cipherTextBytes))!= -1) { fos.write(cipherTextBytes,0,i); }[/CODE] Ignore the whole CipherInputStream object if you don't … Software Development java | |
Hi! I'm pretty new to C and have to write something that handles strings. I have some experience with python and C++ but i find C string handling pretty strange/ugly. Is the following code really the best way to put together a string containing multiple strings? [CODE] strcat(string1, string2); strcat(string1, … Software Development c | |
Hello all. I am a new c++ programmer and I am having a lot of fun with it. I just wrote this programming to help with some American History. I've read tutorials and have learned enough to write this program. I am dissapointed in my code however. I noticed that … Software Development c++ | |
I am really having trouble getting my app depolyed! I have within it several Crystal Reports utilizing the CR viewer, but when I package everything it won't work on the machine is it installed on. I get an error that reports a problem with cyrstal! I tried unistalling and reinstalling … Software Development vb.net | |
I'm sort of duplicating this post because it requested that I start a new thread because I was replying to an old one, but here is a statement that prompted my questions: "Accessors should be const methods at the very least, because the object state isn't changed in the body." … Software Development c++ | |
I am a B.Tech 1st year student.I am unable to understand the program given below.Please any one explain me.Any help would be appreciated. This program is for printing longest line of given input lines.. [#include <stdio.h> #define MAXLINE 1000 /* maximum input line length */ int getlines(char line[], int maxline); … Software Development c | |
so i need some direction in c++ for grabbing a jpg file sending it to a text file that i can edit to manipulate pixels and send back to a jpg... i have been googling for some time and im having a hard time... just some direction will do.. cuz … Software Development c++ | |
[CODE]a= a >0 ? a : 0;[/CODE] what does this mean? thanks Software Development c++ | |
Driving me crazy keep getting "this line contains a '{' which has not yet been matched on several lines even though i cant find where there missing. thanks main.cpp [CODE] #include <iostream> #include <string> #include "USER.h" using namespace std; string Get_password(); string Get_username(); void Open_account_sucess(); void Error(); void Exit(); void … Software Development c++ | |
Hi there, I'm having trouble dealing with dynamic arrays and was wondering if someone could tell me where the problem lies. I'm new to C++. Basically, in the following code, the dynamic array of Fuzzy objects works fine. But when you uncomment out the bit that actually assigns values to … Software Development c++ | |
guys any idea of this equivalent c loops into pascal: for (sum=0,i=0,j=0;i<10;i++,j+=2) sum+=i+j; Thank you.. james Software Development pascal | |
Hii everybody!! I am a new user of Perl. I have a small problem here: I have got a tab delimited text file containing a list of chemicals and their properties. Now I would like to create a new column where the program should first scan the whole file and … Software Development perl | |
Hello, How can I control the representation of my exponential number? 4.840000E+02 need to define how many numbers I want after the point? Is there a way to define it when I create it from integer? Thank you very much Software Development python | |
Hello all, I have an xml file with the information below: [CODE] <?xml version="1.0" encoding="utf-8" ?> <ServerNames> <Name>dfwnbonner1</Name> </ServerNames> [/CODE] I am trying to get the Name of a server into a listview. This works fine with the above xml but as soon as I add another server name in … | |
Hi, I have executed the sample package program and it executes fine in some conditions.I have a doubt in my program . My directory structure is:/javaprograms/world/HelloWorld.java A folder name :world A java filename:HelloWorld.java [code] package world; import java.io.*; import java.util.*; public class HelloWorld{ public static void main(String args[])throws IOException{ System.out.println("Package … Software Development java | |
Hi, I search everywhere and i didn't found anything good. Do you know how to search a string inside a .txt file ?? Like, this is a text file: -------------------------- i love mc donalds food i hate my brother i want a answer a good answer -------------------------- How can i … Software Development c++ | |
Hi, First of all it is not home work or anything lol, creating this project just for fun of it and want to learn more. Anyway, I have decided to create a dictionary from english to my language(farsi). So if I have a textbox for user to enter text and … Software Development | |
This is a really simple question but it's been stumping me for a while. I want to open a file that is in the same directory as the .py script, but I want to specify that directory without using a universal path. filepath1 = '/Users/username/Documents/Python/TC/TC cedict final.txt' file = open(filepath1, … Software Development python | |
Hello, My quaestion is how to convert an integer to an exponential number i.e. 484.000E-2? thank you very much Software Development python | |
I need to know how to round to the nearest quarter and tenth. Right now i am taking to times finding the difference and then trying to round to the nearest quarter or tenth. Which ever i choose. I have this for code. I made a class to call, In … Software Development gui | |
go0d day every0ne.. ..Can you please help me create a 'Picture Puzzle' using GUI.. its just like playing a picture puzzle like we d0, it just like this.. it has a pieces of scrambled pictures that you will arrange it.. it has a 0ne empty block to be able for … | |
I am fairly new to Haskell and have been experimenting with data and class declarations. I have been trying to do this: [CODE=Haskell]data Fire = Burn | Ember data Water = Bubble | WaterGun class Elements a instance Elements Fire instance Elements Water data Elemental = Elemental { name :: … Software Development | |
can someone help me with these compiler errors? im not sure how to fix them. intset.cpp:16: error: prototype for âIntegerSet::IntegerSet(int*)â does not matc intset.h:6: error: candidates are: IntegerSet::IntegerSet(const IntegerSet&) intset.h:9: error: IntegerSet::IntegerSet(int) intset.cpp:7: error: IntegerSet::IntegerSet() main.cpp: In function âint main()â: main.cpp:36: error: invalid conversion from âint*â to âintâ main.cpp:36: error: … Software Development c++ | |
hi there i need to collect the 6 latest backup files from a folder every day and currently working on a script to do this for me so far i have managed to pull the 6 latest files as shown in code below but the problem i have is most … Software Development python | |
Hi everybody, I think this question will be kind of stupid for you ... but I am fighting with since yesterday evening. I have a class Test defined as such in the hpp file (Test.hpp) [CODE] #include <iostream> #include <vector> using namespace std; class Test { public: Test(); static const … Software Development c++ | |
[TEX]hey there, can you help me with something. I'm supposed to get data from a single text file and use it on 3 different jTextField. Then if I hit a save button, the data from the textfields will overwrite the existing data of the text file. Unfortunately, I can't make, … Software Development java | |
I need to parse XML documents without parsing libraries, that is, just create one of myself. E.g. input: [CODE]<aa><bb>H</bb></aa>[/CODE] I have to get rid of tags and show, if any, errors(mismatching tag etc). Any suggestion please. Thanks in advance!! | |
Hello guys, I am new here. I have been practicing programming in C as I am going back to school. The program below is supposed to be really simple. It would help you calculate the factorial of a number. But I don't know why I can't get the scanf function … Software Development c | |
Hi all, I need to do a translation using 2D arrays for my Superposition algorithm. Translation: I plan to use the CA(Alpha carbon) as my invariant point which is usually the 2nd line in the pdb.txt file. So how go about doing that? Must I use an orthogonal matrix? Or … | |
Hi. I need program wich will start other program (for example notepad.exe) and if notepad.exe will exit my program will start it again. How can i get info about process state and put it into variable to use with if? I'm beginner at C++ so please write all headers witch … Software Development c++ | |
i have created a exe from A FORM IN C#. I want to get that program to start running from the boot time.So how do i register my code to run it from boot time. Software Development | |
Hi.. I am developing an application which requires a folder to be created in the project folder. I am using the following code to create a folder [CODE]string path="D:\\SchoolProject\\Image Folder"; System.IO.Directory.CreateDirectory(@path);[/CODE] Now I want that the folder should be created in the folder where the user is installing the application. … Software Development | |
Hello, I have problem with arithmetic in python when use it like this code [CODE]#!/usr/bin/python AA = open("a.txt").readline() print AA BB = 100 print BB + AA[/CODE] Appear to me this error : Traceback (most recent call last): File "aa.py", line 6, in ? print BB + AA TypeError: unsupported … Software Development python | |
Hello, I am trying to create an app that allows the user take a screenshot of a portion of the screen that he selects with a rectangle. I've tried following several tutorials but I did not managed to make the rectangle appear. The best I could do was to take … Software Development | |
Hi what i am trying to do here is highlight a particular cell in a table using a custom cell renderer. And by the way this is my first cell renderer so i am really not sure what to do! ok now here is the renderer I have written and … Software Development java | |
Hello, i've a server and client code in which the error i'm getting is: on deserialization- but when i checked the byte[] length after serialization that i send they are 1550, and then over the tcpclient when i received the byte[] it was 1448 in length... any help or suggestion … Software Development client-server dataset file-stream tcp-udp | |
i m new user in visual studio 2008.i want clear information to work with this topic.. Software Development image vb.net visual-studio | |
Hi all! I really really need your advice here! So please do reply me. Your help is greatly appreciated!! I need to do a translation here: X Y Z -3.621 15.574 14.908 (file1 - 2nd row) -3.441 15.678 14.859 (file2 - 2nd row) I need to move file 2 coordinates … Software Development java | |
i am trying to create a program that uses * to make triangles depending on how big the user wishes to make them. This is the code i have so far however have no idea where to go from here.. can anyone help?? thankyou [CODE] def triangle(): totalRows = int(eval(input("Please … Software Development python | |
If there's anyone who knows a thing or two about this, your help would be much appreciated. This is a code I'm working on: [CODE] try { //ask user for short password System.out.print("Enter a password: "); //read in a character at a time, putting them into the buffer while((buf[bufPos++] = … Software Development encryption java | |
Hello there, Kindly seek your help with a C programming language program that: 1 Reads reads and modify a text fine called mydata.txt 2 In txt file, we must enter the following data : name surname telephone number like this: John West 6976688742 3 The program should be able to … Software Development c file-system | |
Hello, Can someone please help me with this problem.:( I am trying to openFileDialog in VisualC++, and I want to load an image through cvLoadImage, but I'm getting error that it cannot just convert [code] error C2664: 'cvLoadImage' : cannot convert parameter 1 from 'System::String ^' to 'const char *' … Software Development c++ | |
Hi, all. I'm writing a little GUI thing to allow a user to specify variables in an xml file. I am battling to work out how to return all the .get() values from the Entry widgets back to a main application. The GUI is done as a function as the … |
The End.