199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for scothy

Hi All, I am developing an windows application in .Net 2005 with C# coding. One part of my work, the functionality is 1. Use USB barcode scanner. 2. When something is scanned, it records the item number and automatically pulls the item price from the database. 3. After an item …

Member Avatar for edepperson
0
89
Member Avatar for vbx_wx

Why copy remains empty after every assgment in for() ? [code] int main() { const char* c = "abcde"; int size = strlen(c); char* copy = new char[size]; for(const char* p = (c + size - 1); p >= c; p--) { *copy++ = *p; } copy[size] = 0; for(int …

Member Avatar for muze
0
101
Member Avatar for zachattack05

Maybe this is more of a "how do you report progress" topic. I have a progress bar on a form. The same form launches 2 separate threads. I would like each thread to report to the same progress bar. Instead of cluttering my code up with a bunch of stuff …

Member Avatar for edepperson
0
581
Member Avatar for CodyOebel

Ok I have the Hwnd to a particular window I want to work with. Lets call this windows program the "UNWANTED". This UNWANTED window has two things I wish to identify it by. The first one I already have.. which is it's windows handle! Second.. is what I need to …

Member Avatar for CodyOebel
0
151
Member Avatar for suncica2222

I have this simple code and I want it running all the time on the server,AND NOT ONLY WHEN IT IS OPENED IN BROWSER TAB. I dont know exactly what is happening in http header but i guess that there is a way to keep it running non stop. Is …

Member Avatar for suncica2222
0
173
Member Avatar for Tommy.b

Hey, so I've tried like 50 different guides and so on with how to validate this form, and so far nothing works. When the user hits submit, I would very much like to validate if a button in each row has been selected, ideally it would be nice to have …

Member Avatar for Tommy.b
0
75
Member Avatar for onako

My file needs to be updated frequently, meaning that new data has to be appended, but in a very specific way. The following is the sample content of my "file.txt" (2 vectors of length 6): [code] 1 2 3 4 5 6 7 8 3 4 5 6 [/code] After …

Member Avatar for onako
0
278
Member Avatar for Cool&Awesome

Hi everyone, I have a database with X items, and each of them can have one or more of 20+ properties. How I currently make this work is I have a huge table with each of the properties having it's own column, and a boolean to determine does the property …

Member Avatar for Cool&Awesome
0
133
Member Avatar for Smoogel

Hi all. I am coding a program and I want it to save what the user types in for next load up. So for example... User types 'hello' in texbox1 User closes program. User opens program few days later. User sees in textbox1 it says 'hello' Any ideas how to …

Member Avatar for Smoogel
0
722
Member Avatar for andydeans

hi guys, need some urgent help from you. i need 2 things to work out, looked around on net and found some scripts but wondered if someone could help point me to a good way of doing this. i need to be able to mail merge to word/wordpad whatever the …

Member Avatar for andydeans
0
74
Member Avatar for LianaN

Hi! I would like to add ActionListener to buttons stored in JToolBar. However, if I'm using the code bellow, then I could add only MouseListener ("addActionListener" doesn't work). So, is it possible to somehow add ActionListener? Thanks a lot! [CODE] JToolBar toolBarUpdateDocs = new BrowserToolBar(); toolBarUpdateDocs.setFloatable(false); toolBarUpdateDocs.getComponent(i).addActionListener(new java.awt.event.ActionListener() { public …

Member Avatar for LianaN
0
318
Member Avatar for andydeans

hi, i have installed xammp on my win 7 pc, i have a static ip address and wondered if i could use this to host my website? is there any disadvatanges of using a win 7 pc rather than linux server to host it? should i use windows server to …

Member Avatar for andydeans
0
140
Member Avatar for ampLife

Hi guys ive got a problem in my Tab control. you see, i have 2 tabs in my form then inside it i i got a [B]ListView[/B]. What i want to do is when a user clicks on the [B]First Tab[/B] some buttons in my form will be disabled but …

Member Avatar for ampLife
0
170
Member Avatar for jackparsana

hi, how to call code-behind function in java scrip. i am working on asp.net please help me to call the procedure with js. thanks in advance. jack

0
108
Member Avatar for mishra pradeep
Member Avatar for Vipero

Hello there! Well you see, I have got this little problem and I usually dont post on forums unless I am really stuck at something :s So I am trying to accomplish something that more or less comes down to this: I have several forms with several textboxes and by …

Member Avatar for prvnkmr449
0
97
Member Avatar for nitin_gyan

Hi All, I am using MySql and wrote all my create table scripts directly on the command line client. Now I have no tracks of them. I need all the table scripts present in my database region for future reference. I used the below command to view the script of …

Member Avatar for nitin_gyan
0
169
Member Avatar for namehere05

Program descr: Im trying to make a windows manager for windows I might draw in CONSOLE. the plan is to draw manually windows in the console in an objectified way. instead of drawing the windows using console coordinates I create a buffer then use [URL="http://msdn.microsoft.com/en-us/library/ms687404(VS.85).aspx"]writeConsoleOutput[/URL] to write this buffer to …

Member Avatar for namehere05
0
1K
Member Avatar for WildBamaBoy

I'm attempting to write a game server and I need it to continue on with the code while listening for a connection. I know this is done with the threading module but I don't know how exactly to do this. Python documentation didn't work for me. [CODE] #[LISTENER] print "Initializing …

Member Avatar for lrh9
0
174
Member Avatar for bbman

I looked all over Google, but could not find anything other than: [CODE]File.WriteAllLines();[/CODE] It does not work, it just appends it. Cheers.

Member Avatar for Lusiphur
0
130
Member Avatar for DartDemon

Is it possible to use a timer to be able to count up, stop, and count down and be able to change the speed on the fly? Trying to make a simulator program that behaves like the real unit. The count also needs to stay in the 0000 format. ie; …

Member Avatar for codeorder
0
222
Member Avatar for emorjon2

hi there! i'm have a biiig trouble. I've make a simple chatbot, as can learning. The problem is, that I can't insert data into the dictionary without a error. here is the code: [CODE] codes = {} def arraycompare(array1, array2): l = 0 for i in array1: for j in …

Member Avatar for griswolf
0
136
Member Avatar for daudiam

[CODE]class hello { } class hello1 { public static void main(String aa[]) { hello ob[]={new hello(),new hello(),new hello()}; hello ob1[]=ob.clone(); // 1 } }[/CODE] ob is an array which is also treated as an object, and hence has a default clone method which is called at (1). But the default …

Member Avatar for daudiam
0
228
Member Avatar for gavindoc

Hello, I am learning C by reading the second edition of "The C Programming Language" by K&R but am struggling to understand this bit of code on page 145: [code=c] struct nlist *np; if ((np = lookup(name)) == NULL){ np = (struct nlist *) malloc(sizeof(*np)); ..... } [/code] Lookup returns …

Member Avatar for Ancient Dragon
0
207
Member Avatar for Anila S

I am using VB & Access to create a program for a clinic. I want to create a Report. The Report is - Toal quantity of each medicine received & Issued. I have created the Table in design time & in runtime contents in the table are deleted and new …

Member Avatar for bmpvkm
0
196
Member Avatar for beginerC#

Hello everyone! I have this code [CODE] string constring = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + DataBasePath + ";Persist Security Info=False;Jet OLEDB:Database Password=""; conn = new OleDbConnection(constring); conn.Open() string searchstring = "SELECT * FROM MyTable WHERE field2=@field2"; OleDbCommand cmdsearch = new OleDbCommand(searchstring, conn); OleDbDataReader reader; cmdsearch.Parameters.AddWithValue("@field2", dgrDoc[1, index].Value.ToString()); reader = cmdsearch.ExecuteReader(); [/CODE] How …

Member Avatar for beginerC#
0
148
Member Avatar for locsin

Greetings! I creating report in visual basic data report. I want to costumize the paper size that i want to use. I try to make a printing report in a small paper size like bank check size of paper. Anybody have idea how can i do this. is there any …

Member Avatar for bmpvkm
0
293
Member Avatar for HedoBum

Ok...this is my "HELP ME! HELP ME!" thread.:D I finally got my code to work...almost. The form posts to my database but only the first query data inserts and the last value of the third query. All the form fields are correct and the problem appears to be with my …

Member Avatar for HedoBum
0
208
Member Avatar for justinwarner

Hey guys, So, I need to add booleans on my project for the final piece. I have all of it done but the booleans. Basically, I checked about 10+ links on google, and none of them really explained how to do booleans. So, what I need is something that does …

Member Avatar for ~s.o.s~
0
150
Member Avatar for joelimboo

New to PHP, Need help Guys. Anyone got a Quick Code. Here is what I am trying To do. I have email ids where subscriber subscribes for newsletters. That is good! Subscribers often change their company in our profession and the email which is subscribed bounces back lets say about …

Member Avatar for Lsmjudoka
0
128
Member Avatar for sathish1990

hi am new to this site. please help me in creating this project. In this below application should not use Google map or any application with internet oriented. This is the project. when i open the program a location map needed to be loaded. i need a text box where …

Member Avatar for kinwang2009
0
101
Member Avatar for utkarsh009

Will the older c++ commands (leaving that of conio.h) work with a new compiler like g++ if i use "using namespace std;" and use 'int' with main() rather than 'void' and don't use .h for including a header file?

Member Avatar for Ancient Dragon
0
80
Member Avatar for Jixz

So Basically I have a 4 x 2 array of Chars* that I need sorted alphabetically by the first column only. The Array starting out looks like: [CODE] Choices[0][0] = "CCleaner"; Choices[0][1] = "Utilities"; Choices[1][0] = "SIW"; Choices[1][1] = "Information"; Choices[2][0] = "MalwareBytes"; Choices[2][1] = "Virus"; Choices[3][0] = "CCleanerx"; Choices[3][1] …

Member Avatar for Ancient Dragon
0
137
Member Avatar for ronaldpaul

I've built a website using php and mysql. I wanted to host this site. So I registered a domain name and buy a web hosting package. The webhoasting package provider gave me 2 name server addresses. I pun the in the domain name control panel. But still when i type …

Member Avatar for Nyight
0
363
Member Avatar for sakthi@daniweb

[code=c] #include<stdio.h> #define scanf "%s is char" main() { printf(scanf,scanf); } [/code] the output is %s is char is char y it is so..

Member Avatar for planetmirchi
0
171
Member Avatar for effizy

Sorry guys, am back again with another noob question and hoping someone is nice enough to help point me in the right direction.I've only began to learn this in the past couple of weeks so there is still alot am confused about. Really wish i didnt have to come here …

Member Avatar for effizy
0
127
Member Avatar for mike42intn

im writing this program for an assignment and im getting errors can anyone help make some suggestions? i have to have the program print out balances for saver1 and saver2 then change the percentage rate then reprint [CODE]//header definition file for savings account #ifndef SAVINGS_ACCOUNT_H #define SAVINGS_ACCOUNT_H class SavingsAccount { …

Member Avatar for Akill10
0
148
Member Avatar for ncstplaya1234

Hey guys, I'm trying to create a program that has three items and adds the cost of the three items and prints the final total with sales tax. I need a subtotal, sales tax, and total amount. I'm having a problem getting the program to calculate the quantity correctly and …

Member Avatar for ncstplaya1234
0
3K
Member Avatar for NewOrder

i understand what the code does. but i dont understand a few lines: [CODE]package il.co; public class LinkedListEx2 { public static void main(String[] args) { LinkedList list=new LinkedList(); list.add(new Car("BMW", 150000)); list.add(new Car("SUBARU", 60000)); list.add(new Car("TOYOTA", 58000)); list.print(); } } class LinkedList{ private Unit head; public void add (Car data){ …

Member Avatar for adams161
0
135
Member Avatar for Synthuir

So I'm writing a bit of code for use in an IRC bot. I tried to use scheduler to get around the barbaric-ness of calling time.sleep() every time I want the bot to delay for a few seconds. In scheduler you can choose the delay function "for example time.sleep()"-- but …

Member Avatar for lllllIllIlllI
0
237
Member Avatar for aspro648

I really must have a general misunderstanding of import and global. I'm trying to call a function in an imported file and reference a variable. file1.py [code] from file2 import * x = 6 file2Funct() [/code] file2.py [code] def file2Function(): print x [/code] executing file1 give the following error at …

Member Avatar for woooee
0
186
Member Avatar for |hex

im having trouble pin-pointing why my loop continues to execute infinetley. can someone point out what im doing wrong in my dowhile loop? [code=cplusplus] #include<iostream> #include<string> using namespace std; int main() { string command; char again; do { cout << "Welcome to the Intrepeter!" << endl; cout << "Please feel …

Member Avatar for Akill10
0
85
Member Avatar for Sky Choi

I'm trying to make program using Google 5gram data to compare with one of English exam called TOEIC. There are 118 files for 4grams and each size of 4grams are approximately 300MB and each files has 10,000,000 lines. So, here is the point. It requires about 4 or 5 seconds …

Member Avatar for TrustyTony
0
632
Member Avatar for Inês

Hello! I need help whith perl. I have 2 files, i whant to open them compare une colun and if they iqual i whant to write at the 1ª file some coluns of the secund file. Exemple: File 1 2; apartamento; T2; manuel; 120.000€; Activo 4; moradia; V4;José; 250.000€; Suspenso …

Member Avatar for mitchems
0
424
Member Avatar for mayuri_desh

hi, i want to change an array's key to its values. the array is like this: <php Array ( [0] => category_name: [1] => c1 [2] => types: [3] => t1 ) ?> i want to make the same array's values as key, like below using some array functions or …

Member Avatar for hielo
0
184
Member Avatar for teedoff

I have several queries on my site. I have a search.cfm that queries my database, then for each records I have a link coded in on the #item# column of my records. I also have the ability for users to go to "section" pages that have queries based on the …

Member Avatar for arrgh
0
238
Member Avatar for fernandofranca

I have the following funtion in my ComboBoxControl class, and it only returns to me the control of the comboBox. The foreach works fine but my problem is how to return the ComboBox, becuse if the ComboBox doesn´t exists I need to return NULL or something else. How can I …

Member Avatar for fernandofranca
0
174
Member Avatar for wm811

I've searched as much as I can, for the previous two weeks between projects, and have yet to find a clear answer (I'm still new to C#, so what's clear to most does not apply.) Our website has a member login and then members can update various contact information for …

Member Avatar for jbisono
0
552
Member Avatar for NH1

i get an error when i try and do this. [code=c] private void button2_Click(object sender, EventArgs e) { DataSet ds = new DataSet(); DBconnect db = new DBconnect(); Global.GlobalVar = textBox1.Text; string Co = new Password('J', textBox1.Text).SetSql(); ds = db.GetDataSet(Co); DataTable dt = ds.Tables[0]; if (dt.Rows.Count == 0) { if …

Member Avatar for Lusiphur
0
153
Member Avatar for Simplelyn

The End.