199,114 Archived Topics
Remove Filter ![]() | |
Greetings everyone, This is my first post, so I hope I don't break any rules by mistake... I am an experienced programmer trying to learn VB.NET. The problem I'm having is that it seems like strings have to be initialized differently than other types and I don't know what I'm … | |
Hi, I need to store each path in a tree as a row in a two dimensional array of size #of paths x N. I couldn't find the appropriate indexing scheme for the array. Any ideas would be appreciated. Thanks, | |
I'm assuming there's no easier way to do this. Is thread locking really automatic? Am I misreading the documentation? [CODE]from threading import Thread make_thread = lambda fn, *args: Thread(None, fn, None, args).start() def my_fn(*args): for arg in args: print (arg) make_thread(my_fn, "toaster", "ovens") [/CODE] | |
Consider the following codes : File : C3.java [CODE]package G; public class C3 { protected int a=5; }[/CODE] File : R3.java [CODE]import G.C3; class R2 extends C3 { void doit() { a=7; } } class R1 extends R2 { void doit(R2 b) { a=8; b.a=1; // (1) } }[/CODE] It … | |
I have been trying to get this directory to work properly and am about to tear my hair out!!:icon_mad: This is my code: [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <title>Directory</title> <body> <?php error_reporting(E_ALL & ~E_NOTICE); $lname=$_POST["lastname"]; $fname=$_POST["firstname"]; $addr=$_POST["address"]; $cty=$_POST["city"]; $stat=$_POST["state"]; $zip=$_POST["zipcode"]; $acode=$_POST["areacode"]; $phone=$_POST["telephone"]; $words[] = wordCheck($lname, … | |
Can anyone tell me how I would remove a substring from the end of a string. The string in question could have any one of three substrings at the end of it that need removed, so I wouldn't know in advance what the length was. | |
I have to read text file line by line to multidimensional array. I have this code: [CODE] char *data; data = (char*)malloc(size_d); while(fgets(data, size_d, fp) != NULL) { printf("[%d] %s ", strlen(data), data); } [/CODE] I want to put every line to char array. Some suggestions? | |
[CODE]typedef struct{ char *name; bool exists_in_sys; convert_table *data; } unit; float orig_quant; unit *orig_unit = (unit*) malloc(sizeof(unit)); unit *new_unit = (unit*) malloc(sizeof(unit)); printf("Enter original quantity, original units, new units\n"); fscanf(stdin, "%f %s %s", &orig_quant, orig_unit->name, new_unit->name); printf("Original unit: %s\n", orig_unit->name); printf("New unit: %s\n",2) new_unit->name);[/CODE] OK, so I would like to … | |
Hello to all Actually I want to handle the usb interrupt from c program ....... For example when some one insert usb drive in pc then my program call certain function ..... I try too search in google but i did't get any help i know little about software interrupt … | |
I am still quite a newbie with python so my code Is quite sloppy. Whenever I run it I get an error reading "Surfaces must not be locked during blit" but in my code I did not purposely lock the surface please help thank you. Here is my code: import … | |
I'm new to C++ programing. the compiler can't find "atlstr.h" to include. I searched alot for this file but I couldn't find. Please, and body knows how to find it , tell me ASAP. | |
Hi.. can anyone understand this piece of flowchart,i dont understand. the flow cart is in the attachment. and below is my source code implementation [code]input int n; int i=0,a,b; if(n>0){ while(i<a){ if(n>i){ if(n>a){ if(b>a) b=1; }else{ n=a; if(n*b >i) b=1; } }else{ n=1; } i++; } }[/code] i dont know … | |
Greetings! This n00b has a "search engine" dedicated to extracting relevant information from log files. It works by parsing preset fields in the log filename. I'd like to have some notification when the search returns no rows as I am planning to add more search options. Here's my code: [CODE] … | |
Hi, I have 2 applet problems. 1) I uploaded a new jar file to server to replace old one. When I load web page in browser for that applet (on this pc), I keep getting the old jar file getting loaded as the applet (even on different browsers on this … | |
Hi. I want to backup and restore the database by using vb.net.I have a problem here. .This dialogue box appear. " [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open backup device 'C:\Documents and Settings\S\My Documents\sales.Bak'. Operating system error 5(Access is denied.). [Microsoft][ODBC SQL Server Driver][SQL Server]BACKUP DATABASE is terminating abnormally. " Can … | |
Hey I have problem... If i save playlist with 1 item then it work but if i have more then it bug. i can start debugging. [CODE]XmlTextWriter ^textWriter = gcnew XmlTextWriter(dig->FileName, nullptr); textWriter->WriteStartDocument(); for(int i=0; i < listBox1->Items->Count; i++){ textWriter->WriteStartElement("track"+ i); textWriter->WriteStartElement("url", ""); textWriter->WriteString(listBox1->Items[i]->ToString()); textWriter->WriteEndElement(); textWriter->WriteStartElement("name", ""); textWriter->WriteString(listBox2->Items[i]->ToString()); textWriter->WriteEndElement(); textWriter->WriteStartElement("start"); … | |
Hi, I’m starting out on C# and need some guidaance. My goal is to develop applications that will control/take measurements/gather data from RF lab instruments (signal generator, vector network analyzer, spectrum analyzer). My issue is to what commands are used by C# to actually talk to the instruments? In my … | |
Hi Guys I have an application that developed using ASP.net.There is cancel option,user can select number of item code and cancel it,but there is isssue.The issue is once user select more than 200 item code to cancel then it generate the error messsage.Error message is "Time Expird or server is … | |
Ok so I have been working on a little php (with my VERY brief background). The goal of the script is to take a students username and password, and then show them there grades. However when I test the script, it just falls through and redirects to the final else … | |
Iam trying to Calculate The values From 2 Comoboboxes.....But sometimes its calculating and sometimes its Showing BOOLEAN conversion problem... Plz SEE the code . [CODE] If C1.Text = "Agra Fort" Andalso C3.Text = "Delhi" Then l8.Text = 800 ElseIf C1.Text = "agra fort" Andalso C3.Text = "bangalore" Then l8.Text = … | |
hi.. i'm trying to retrieve the data from database using ssis package.. database name is employee which contains 48 tables and it is around 20GB of memory.. it is a production database.. now what i want is to retrieve the data for each four hours.. i.e i want to execute … | |
I am trying to create an abstract data type for matrices. I have a function matrixInit to dynamically allocate memory for the structure and for the array. matrixCopy copies one matrix into another. there are functions to subtract, add and multiply matrices that return a pointer to memory where the … | |
Hi I have a question regarding the datagridview cellFormatting event in C#, [CODE] if (e.ColumnIndex >= 0) { if (this.dgvSubContractor.Columns[e.ColumnIndex].Name == "TelNo") { if (e.Value != null) { this.dgvSubContractor[3, row].Value = c.CheckingValue(e.Value.ToString()).ToString(); } } return; } [/CODE] I wrote the below code to format a 10 digit number to (456) … | |
Here is the code from client side: [code]public class TempMail { private String url = "http://localhost:9081/Servlet_Test/Servlet_Test"; public StringBuffer invokeServletForLogin(String unm, int key1, int key2, byte[] pwd, byte[] newPwd, String flag) throws IOException { HttpConnection c = null; InputStream is = null; OutputStream os = null; StringBuffer b = new StringBuffer(); … | |
i have a checked list box as one of my controls in my code what happens is when i click on the checked list box the item clicked in the checked list box is supposed to be added to a text box, and my code is now doing that however … | |
I am working on a C# Windows Form project and I need to access the controls on a form from a separate class within the project. can anyone help me with this? | |
Hi I want to display tables data(having only one column) into a combobox as items. pls provide me some solution for this. | |
Hello, I am learning ia-32 assembly. I have observed that when creating an object file using gcc from the simple c program: [CODE]main () { char buf[256]; write(1, buf, 256); } [/CODE] it generates the following instruction for the write: (using the data on top of the stack for the … | |
i'm newbie from programming, what i want to ask is how to get the name from dayofweek?? [code] For cacah = 0 To 6 Dim nodeNamaHari As DayOfWeek [nodeNamaHari = cacah] Dim nodeJelasHari As TreeNode = nodeBulan.Nodes.Add(nodeNamaHari) Next [/code] that's what i try but the nodes appear just the value … | |
Hi, I am using a C program to open and scan a file containing rows of x,y coordinates. But I need to use the same program to open different files having different number of rows.Therefore, I cant fix a constant number for the array. This is what I have used: … | |
[CODE]public class Human { private String name; public Human(String name){ this.name = name; } public String getName(){ return name; } public String toString(){ return "Human " + getName(); } } interface Electrician{ public String changeBulb(); } interface Plumber{ public String unplugDrain(); } class HandyPerson extends Human implements Electrician, Plumber{ public … | |
Hi i am using a popup calendar for my project which is in dd/mm/yyyy format and mysql database has the date format as yyyy-mm-dd, my issue is that when i insert date in the database following exception occurs : Exception foundcom.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect date value: '29/12/2010' for column 'DateOfJourney' … | |
hey, i have been asking for help for almost a week and there is no reply what so ever. from anyone ... please help i am so so so stuck and i have been stuck for days.. i am creating web services in netbeans (ws-jax) i want to return array … | |
[CODE]class R2 { final int t; void doit(){ t=7; } }[/CODE] Blank finals allow us to declare a final variable without explicitly initializing it. We can initialize it only once later. Then, why is th above code not working ? | |
Here is a PHP code that writes a string on the bottom of a given image. I want to have the image with the string on it to be saved in a folder. The problem is that this script copies the image without the stamped text. Here is the code: … | |
Hi, I am new member. I am not from any technical background but still like very much on how to develop application software and doing research regularly. My question from expert like you is Is there any powerfully software available that automatically create software without and coding knowledge. still conceptualizations … | |
Frame complete game, only the outer edges of a square drawn on the table is a game played with 2 players. Sequence of a square drawn from the player wants to draw a non-edge. Underline that this edge of the square is not the last edge of the square is … | |
Hi friends, I'm confused - does ASP.NET work with HTML5, or just the older versions- will this new HTML5 make some of ASP.NET obsolete...not sure I understand how it all works together? (I'm a newbie, just learning C# right now) Thanks for the help... Nath :-) | |
Okay, So I want an array to get userinformation by the username that is provided. But in the other tables, it only has a ID field to link with... [CODE]$sql = "mos_users.id as userid, block, username, email, lastvisitDate, firstname, lastname, avatar, cb_age, userip FROM mos_users, mos_comprofiler, mos_comprofiler_plug_iplog WHERE mos_users.username = … | |
Hi all, i have hosting in [url]www.dreamhost.com[/url] i created .htaccess file in order to hide file extension. and then i upload my .htaccess file to the server but after i uploaded this to the server this file disappeared. how can i do that this file works. can anyone help me? … | |
Okay I have a datagridview with multiple rows and columns of data. I set the grid to Readonly == true by default, but have a method that when the user double clicks the datagridview, it's gets the current cell the user is clicking and then uses this line of code … | |
i have a little program that searches for[URL="http://en.wikipedia.org/wiki/List_of_perfect_numbers"] perfect numbers[/URL]. now it took it 36 minutes to get to the 5th number(and last one for longint) which is 33550336. as it worked i noticed in the task manager that it only used 25% of cpu the whole time and the … | |
hello everyone i am trying to make a list that contains name with following option add till name write out names in the list remove name from the list sort the list look efter a name from the list save the list to a file please i will appreciate if … | |
Hi, I have a text file with characters. I must able to read the length of characters in the file by every line and count the frequency of each characters for each line. I have tried on writing this program but this does not work. Can anyone help me on … | |
Hey guys, This is my first official post on DaniWeb :) I am new at programming in C++ using visual studios, and right now I am fooling around with storing user input into Arrays. I am having a problem with my code, using an array size of 3 to store … | |
It,s me having the same problem.. I want to pass some parameters from the main method to some other method. u cannot declare any variable names or pointers. I'm having an array of int with size 12500. if u want any variable or a pointer, use array blocks for it. … | |
I'm dong a school assignment currently.It's an investment website which has interactive chart by using open-flash-chart with latest update. It's design is similar to google finance's interactive flash chart. I have obtained share price data from yahoo finance by using the simplehtmldom. Hyperlink for share price data:[URL="http://finance.yahoo.com/q/hp?s=4707.KL&a=00&b=1&c=2003&d=11&e=27&f=2010&g=m"]http://finance.yahoo.com/q/hp?s=4707.KL&a=00&b=1&c=2003&d=11&e=27&f=2010&g=m[/URL] and then present … | |
I am new to Java and having an issue with it. My website currently works when run on my desktop but once it is uploaded it is not working correctly. Specifically the javascript does not seem to be working once I upload it. What it is supposed to do is … | |
hi can anyone help me i am having problem with video uploading it is working properly locally but when i upload the file it gives me an error "video not found or access denied" thanx in advance |
The End.