64,152 Solved Topics
Remove Filter ![]() | |
basicly all i want to do is resize (height and width) of an external window, like IE or Freecell, and then move that window, with X Y pixel co-ordinates(top, left). Thanks | |
Hi, sorry still learning how to do things in asp. Basically I have a form that I set up using the insert template in visual studio. where the code looks like this [CODE] <InsertItemTemplate> <table class="style15"> <tr> <td class="style18"> SitesAffected: </td> <td class="style16"> Description:</td> </tr> <tr> <td class="style19"> <asp:CheckBoxList ID="SitesCheckBoxList" … | |
i would like to ask for help regarding my problem, it's like this... I have a txt file and inside it looks like this OL001 bob red 13 OL002 jack blue 13 OL003 paul yellow 14 so if my program starts it will ask for the OLXXX and return each … | |
Hi, Can someone elaborate why the following (the if conditional) differs [CODE=c] int main(){ const char *filename = "test.txt"; int ifd; if((ifd=open(filename,O_RDONLY))<3) err(EX_NOINPUT, "%s", filename); fprintf(stderr,"ifd is:%d\n",ifd); off_t bytes_in = lseek(ifd, (off_t)(-4), SEEK_END); return 0; } [/CODE] vs [CODE=c] int main(){ const char *filename = "test.txt"; int ifd; if(ifd=open(filename,O_RDONLY)<3) err(EX_NOINPUT, … | |
Hi I've found a strange problem on ubuntu64bit, that limits the data you are allowed to allocate on a 64bit platform using the c function 'read()' The following program wont allow to allocate more that 2.1gig memory. [CODE=c++] #include <stdio.h> #include <stdlib.h> #include <err.h> #include <fcntl.h> #include <sysexits.h> #include <unistd.h> … | |
I inserted a value of DateTime into database, like "26.12.2009 11:50:00" . Is it possible that the reader will read only the time of a day from this, without date? So far I did only that it reads everything, date and time: [CODE] string myTime = Convert.ToDateTime(dataGridView1.Rows[IndexVrstica].Cells[0].Value).ToShortTimeString(); DateTime myTime2 = … | |
Hello. I am writing an ATM program for a project, but I am having problems matching the users entered pin with what is stored on the text file. Here is how i read the file [CODE]import java.io.File; import java.util.Scanner; import machine.*; import javax.swing.JOptionPane; public class FileRead { Transactions query = … | |
Hi, I'm trying to construct my first Doubly Linked List, but am having trouble compiling. This is my program: [B]main.cpp :[/B] [code=c++] #include <iostream> #include "node.h" #include "doublylinkedlist.h" using namespace std; int main() { system ("PAUSE"); return 0; } [/code] [B]node.h :[/B] [code=c++] class Node { public: Node *pointertonextnode;//pointer to … | |
I would like to create a overridden picturebox control that accepts a colormatrix as a property, and when the picturebox is drawn it uses that colormatrix. This is to cut down on drawimage GDI calls that are slowing down my app. I would love to turn 2 into 1, and … | |
Hi I have to build the like of a commercial website for my project and all was going well until I had to try to insert images in a SQL database ; I tried to modify some code that I found online but it is not working. The idea is … | |
Hello. I am currently reading c++ primer plus 5th edition and I've become stuck at Chapter 13, Exercise 1, which is on class inheritance. The classes looks like this: [CODE] class Cd { ..... public: ... virtual void Report() const; .... }; class Classic : public Cd { .... public: … | |
[CODE]int main(){ string array[][]=get_element(2,3); return 0; } string get_element(int numrow,int numcol){ string result_array[numrow][numcol]; for (int i=0;i<numrow;i++) { for (int j=0;j<numcol;j++) { result_array[i][j]=" "; } } return result_array; //ERROR is on this line } [/CODE] I get error: conversion from ‘std::string (*)[(((long unsigned int)(((long int)numcol) + -0x00000000000000001)) + 1)]’ to non-scalar … | |
Hi, I need database for implementing dropdowns for Countries than based on selected country the States/Proviences dropdown and then the cities dropdown on the bases of selected State/Provience for all the countries in the world. I hop you understand what I need to implement. Can any body please provide me … | |
the code on my localhost and on the server are completely the same (django), but it is not shown correctly; I include two screenshots What could be the cause of the difference? (the left one is the online server; the right one is the localhost) | |
How to convert dd-mmm-yyyy (01-Jan-2009) to dd/mm/yy (01/01/09) using python functions. | |
Dear Experts Please modify UPDATE codes according to INSERT codes Style. 'Insert Codes [CODE] Dim cmd As New SqlClient.SqlCommand("Insert Into employees (sno,Name, city, phone,img) Values (@sno,@Name, @city,@phone, @img)", con) cmd.Parameters.Add(New SqlClient.SqlParameter("@sno", SqlDbType.Int)).Value = Val(Me.TextBox1.Text) cmd.Parameters.Add(New SqlClient.SqlParameter("@name", SqlDbType.VarChar)).Value = Trim(Me.TextBox2.Text) cmd.Parameters.Add(New SqlClient.SqlParameter("@city", SqlDbType.VarChar)).Value = Trim(Me.TextBox3.Text) cmd.Parameters.Add(New SqlClient.SqlParameter("@phone", SqlDbType.VarChar)).Value = Trim(Me.TextBox4.Text) cmd.Parameters.Add(New … | |
what can i get from object.attribute? what does it do? Thank you :) | |
Hey, I'm making a little program that will talk to you using fixed sentences etc., and I want to make it able to do math. How would I be able to check if a string contains + - * / and also contains numbers? and then furthermore, once I have … | |
hello Seniors, i am new to python development.i have started my internship in that language. can any one provide me the code that show me how to add subtract and multiply matrices in python.??? what will be the code if i want to take input from the user to enter … | |
Simply put i would like to open a new form as simply as possible using a button i looked at this [URL="http://www.daniweb.com/forums/thread99518.html#"]http://www.daniweb.com/forums/thread99518.html#[/URL] but it confused me i dont want any values passed on i just simply want it to hide the old form and open then new form can this … | |
I want to replace 'nf' with 1.0, so that the resulting string should be: '(1.0+nfpermult+1.0)' I tried various approaches using find(), re.sub but I am not able to make it work. eg. re.sub('nf', '1.0', str) replaces all occurrences of nf. also re.sub('\bnf\b', '1.0', str) does not work either as 'nf' … | |
Does anyone have an idea why these console colors aren't coming out properly? Some of them work and some come out as junk. [code] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace daniweb.capp { class Program { static void Main(string[] args) { const string s = "0020002000200020007c007c003a003a007c003a007c007c002000200020002e" + "002d002d002d002d002d002d002d002d002c000d000a0020002000200020007c" … | |
Hi,im here for d first tym and also for d frst tym ever in any forum.im very much intrstd 2 learn C#.bt i dnt knw in wich way i should start.i dnt knw any othr language.is it possible for me 2learn C#??? any gud heart thr pls pls help me.thank … | |
How can I simply do a list of hours - a date schedule (from 0 to 24) in a listView, that 1st column would show hours seperated by 30 min, 2nd column then will be filled with the name who will reserved that hour. Something like that: [URL="http://img189.imageshack.us/img189/5023/clistview02.jpg"]PICTURE[/URL]. | |
Can you please help me how to loop a textbox for example, I have 10 checkboxes and I check only 2 of them. If I click the submit button, the number of times I check a checkbox should be the number of textboxes to display.. so I check 2 checkboxes … | |
I seem to be getting an error in this code gdb tells me the segerror is comming from the code: data[dpos]+=cmd[d]; [CODE]//Strip tags data[0]="";data[1]="";data[2]="";data[3]=""; dpos=0; for(int d=0;d<cmd.size();d++){ if(cmd[d]==';'){ dpos++; } else{ data[dpos]+=cmd[d]; } } cmd=""; //end strip[/CODE] Could anyone please tell me whats going on? | |
[below structure contains s1[i].name contain array of string name. to check if user entered name in that array list. i need to compare words by words. but my problem is that since string is stored in array. and string itself is an small array. so i dont know how can … | |
[QUOTE=vegaseat;250820]This little code shows 6 random integer numbers from 1 to 50 ... [code]import random print "show 6 random integers from 1 to 50:" for k in range(6): r = random.randint(1, 50) print r, print [/code] Rewrite the code to make sure there are no duplicate numbers amongst the six … | |
Hey i have a problem with my C# problem under the class cars. On each public declaration it is saying that it already contains a definition for 'idNumber', 'make', 'model', 'color', and 'cost'. I am using windows visual basic, here is my code. [code=csharp] using System; using System.Collections.Generic; using System.Text; … | |
I apologize in advance for this being quite a long post... but, any help is great! I have a website (coded in PHP) which publishes content provided by users in a revenue sharing model. We pay each contributor a certain amount for every 1,000 "views" that their articles get. In … | |
hi.. im using a grid with a template field which contains a button.i just want to know how can i retrive a value from a 2nd cell of the same row... for ex. my grid contains 5 columns.the last col is a template field with a button. ther are say … | |
Okay, I'm creating a Battleship game. It's going to be using the console for now, still don't know GUI. Anyways, this is my issue. I have created two boards as lists, the first for the user, the second for the computer. I have the computer generate random numbers and a … | |
[CODE] <html> <head> <script type="text/javascript"> function check() { var val = document.myForm.content.value; if (val.length <= 10) { document.getElementById('numC').value = val.length; //out.value = val.length; } else document.write("Please enter the text in range of 10 characters!"); return false; } </script> </head> <body> <form name="myForm"> Type something here: <input type"textbox" value="" name="content" onchange … | |
Hello, Does anyone know what the "Z" stands for? 2009-12-26T06:00:00.000Z | |
hi.. i'll ask some question regarding my system login part.. This is my databasae connection.. [CODE] <? include("constants.php"); class MySQLDB { var $connection; //The MySQL database connection function MySQLDB(){ /* Make connection to database */ $this->connection = mysql_connect(DB_SERVER, DB_USER, DB_PASS) or die(mysql_error()); mysql_select_db(DB_NAME, $this->connection) or die(mysql_error()); function confirmUserPass($username, $password){ /* … | |
I have a mathematical problem that I am not sure how to solve. I am trying now but still cant find a solution. What I is doing is this: The example is that I have a number: "129" that I will need to round down to the nearest value. The … | |
this is my php code [CODE]extract($_POST); $doc = new DOMDocument; $doc->load('../order1.xml'); $laptops = $doc->documentElement; foreach($laptops as $laptop){ if($list==$laptop->name) { $name1 = $laptop->name; $oldnam = $laptop->removeChild($name1); $olddetails=$laptop->removeChild($laptop->details); $oldprice=$laptops->removeChild($laptop->price); $name1 = $laptops->getElementsByTagName('name')->item(0); $oldname = $laptops->removeChild($name1); }} $doc->save("../order2.xml");[/CODE] this is my xml [CODE]<?xml version="1.0"?> <?xml-stylesheet type = "text/xsl" href = "input.xsl"?> <products> <laptop> … | |
Hello! I have a question in regards to [I]malloc[/I]/[I]calloc[/I] and [I]free[/I] in C. What I'm unsure about is the "depth" (for lack of a better word) that [I]free[/I] operates to. I know that sounds strange so let this example hopefully explain what I mean: [code=c] #include <stdlib.h> int main () … | |
Hello, I've got a problem. I created a DataGridView, where a DataTable is it's DataSource. There is a column named "Age" i this DataGridView. It's format is string as I accept the value "unknown". The problem occurs when i try to sort it. After descending sorting the rows where "Age" … | |
Hi, I want write a program which extract 'Rated PG for some scary moments and mild language' from the following html file and return it as a list . html file: <div class="info"> <h5><a href="/mpaa">MPAA</a>:</h5> <div class="info-content"> Rated PG for some scary moments and mild language. (also 2009 extended version) … | |
I have the following code and was wondering if it is a memory leak [CODE] #include <cstdlib> #include <iostream> #include <iomanip> #include <vector> using namespace std; template <class T> class live { vector<T> _data; live<T> *_next, *_temp; public: live(int elements, int chunk = 10) : _next(NULL) { if (elements > … | |
How can I show a message in the statusBar for 5 seconds? I do some code, on the end I write out a message in statusBar (statusBar.Text = "Notification Message"; ). But I want that is shown for only 5 seconds. Then it dissapears (with statusBar.Text = ""; ) How … | |
I'm trying to use the timer (not a Timer object) in a Do... Until loop. I want the loop to put a single variable into a label. When I do this it works and puts the value into the label (lblOxygenReading): [CODE] If btnGetOxygen.Text = "Get Oxygen Reading" Then Select … | |
![]() | My Application is not db based i am developing just for learning. i have 2 form first have just user name and password textfield and submit button and second form have one label. i have make condition with if-else when username is "[B]waqas[/B]" and password is "a" then show form2 … ![]() |
Hi , I want to write a program on Lexical Analyzer: which finds the no of keywords, no of operators ( based on the classification arithmetic, logical,....), constants, and others. please suggest me one good method. i am using a method which follows as below: char *Arith_Oper[]={ "+", "-", "*", … | |
I have Visual Basic 8.0 and Use Mysql 5.0 Database Table Test: Field type ID Integer (PRIMARY KEY) Name Char(10) Adress Char(15) City Char(15) ID Name Adress City 1 Andre Street 1 New York 2 John Street 2 Amsterdam 3. Joyce Street 3 Londen I have create a index on … | |
[code] <html> <head> <title>Nhung rac roi ko hieu</title> <script type="text/javascript"> function getvalue(list) { while(list.options.length) list.options[list.selectedIndex].value=null; var value = list.options[list.selectedIndex].value; document.write(value); document.bgColor = value; } </script> </head> <body bgColor="lavender"> Here is the list for you to Change the bgColor! <br/> <select name="list1" onchange="getvalue(this)"> <option value="green">Green</option> <option value="orange">Orange</option> <option value="yellow">Yellow</option> <option value="pink">Pink</option> … | |
I have tried following code to open an existing excel file. the code gets executed but the excel file does not appear on the monitor please help. Dim xlTmp As Excel.Application Set xlTmp = New Excel.Application xlTmp.Workbooks.Open "L:\FormsNRegisters\Accounts\Bill_Forms.xls" Dim xlSht As Excel.Worksheet Set xlSht = xlTmp.Sheets(1) | |
[CODE]$filter = $HTTP_POST_VARS['att']; $result = mysql_query("SELECT * FROM postingbob WHERE category ='{$filter}' ")or die(mysql_error()); [/CODE] That's my php code which basically takes values from 'att' in my html form [CODE]<div class="vx_two" style="float:right"> <select id="two" title="Select a category" class="pinkselect" name="att"> <option value="Addictions">Sort By Category</option> <option value="Addictions">Default</option> <option value="Addictions">Addictions</option> <option value="Animals">Animals</option> <option … |
The End.