132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for aniruddhbhatt

my database on sql server 2005. my application is completely working in my computer. but on other machine sql server 2005 login error.sql server does not allow remote server. please how can i load my application on other computer.

Software Development vb.net
Member Avatar for jlego
0
87
Member Avatar for srice

Hello, Please help! I"ve created a form with three comboboxes and a datagrid. I've connect the comboboxes to the database and they all work but when i try and fill the datagrid based on the final selection from the last commbobox but it will not populate the datagridview..Help! [CODE] cmbVendor_MouseClick …

Software Development dataset vb.net
Member Avatar for srice
0
92
Member Avatar for swapnaoe

Request for following excerpt's explanation. [URL="http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=/com.ibm.xlcpp8l.doc/language/ref/param_decl.htm"]http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=/com.ibm.xlcpp8l.doc/language/ref/param_decl.htm[/URL] [QUOTE]Except in certain contexts, an unsubscripted array name (for example, region instead of region[4]) represents a pointer whose value is the address of the first element of the array, provided that the array has previously been declared. An array type in the parameter list …

Software Development c
Member Avatar for swapnaoe
0
173
Member Avatar for hericles

Hi, I've just downloaded GNUstep onto my Vista machine, installing the GNUstep MSYS System, GNUstep Core and GNUstep Devel components mentioned on theGNUstep website ([url]http://www.gnustep.org/experience/Windows.html[/url]). I installed into the standard folders but when I try to open the shell for GNUstep the window flashes up and disappears again. I've checked …

Software Development c windows-vista
Member Avatar for N1GHTS
0
117
Member Avatar for ftl25

Hi, I am writing a program in VB6 where I'm adding an "Import/Export" option to the file menu. Starting with export, I basically need to find all files matching a particular filename and zip and export them to a folder. Currently I am simply finding all the files (with different …

Software Development visual-basic
Member Avatar for AndreRet
0
1K
Member Avatar for malvi

Hello, Is this function "EscapeCommFunction" is correct to set RTS signal? Here is my code. I want to set on RTS before sending data to rs232, and set off RTS after sending data. // RTS on. EscapeCommFunction(*hComDevice, SETRTS); // Sending data to port. fWriteStat = WriteFile(*hComDevice, txbuf,(DWORD) iTxPosition,&dwBytesWritten, NULL) ; …

Software Development c++
Member Avatar for malvi
0
510
Member Avatar for dorotalp91

Write a program that generates a pyramid of numbers from a users input (kbReader = new Scanner(System.in)) for example the number 5 is inputted and the wats printed is... 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 help?

Software Development java
Member Avatar for cazio_)15
0
146
Member Avatar for unnamed17

Hey i have a filename in this format RECORDddmmyyyy on my PC. I want to include it into mysql table.I solve the problem of getting date but still have one issue,how to pass it to the database. char filename ="RECORD" i append later on the date to it as well …

Software Development c
Member Avatar for N1GHTS
0
147
Member Avatar for gauravk_bhanot

This is the code of my key listener for a game.The keys move a plank upwards and downwards for two players.The problem is when one player keeps a key pressed then the other key event does not execute.what i want to do is that both players should be able to …

Software Development java
Member Avatar for NormR1
0
193
Member Avatar for nwalser

Ok so to give you a brief summary of whats going on our original assignment was to make a password directory that adds, saves, looks up, and removes a name and password that are connected together in an array. So now we need to alter the code so it works …

Member Avatar for NormR1
0
307
Member Avatar for timb89

Im trying to insert items into a BST from a txt file. For arguments sake the data file is just the integers 1 2 3 4 5 6 7 8 9. When i try to do a inorder traversal, all that is outputting is the first and last number. I …

Software Development c++
Member Avatar for timb89
0
175
Member Avatar for nickoooname

Hey guys, im getting a null pointer exception... but i dont know what is wrong. Im trying to get data from a hashmap, and place it in a swing tabel. [CODE=java] ArrayList planes_array[] = null; //planes_array[0] = new ArrayList(); for(int i=0; i<planes.size(); i++) { ArrayList tmp_array = new ArrayList(); tmp_array.add("1"); …

Software Development java java-swing
Member Avatar for JamesCherrill
0
144
Member Avatar for ganesh_IT

Hi guys, I am writing project for bank operation in MFC, before running my application i have to check the username and password. But i have some problem in my code, my main frame window is closed after enter username and password.Any one tell me the reason..... [CODE] class CLoginDialog …

Software Development c++
Member Avatar for mitrmkar
0
121
Member Avatar for tikoti

Hi all! I am trying to manage and understand dates with c++, but the output that I am having does not help much. Basically I would like to adjust a localtime that can be seen in the string "s_prueba_time" to a UTC time (in my case -2 hours in summer …

Software Development c++ ubuntu
Member Avatar for tikoti
0
190
Member Avatar for noydoy

[CODE]import javax.swing.*; import java.text.*; public class Postage3{ public static void main(String args[]){ double weight, cost, count; int choice, choice2; DecimalFormat df = new DecimalFormat ("0.00"); choice2 = 1; while(choice2 == 1){ weight = Double.parseDouble(JOptionPane.showInputDialog("Enter weight of postage according to ounces")); if(weight <= 1){ cost = weight * 0.30; } else{ …

Software Development java java-swing
Member Avatar for noydoy
0
2K
Member Avatar for westony

Hi, there i didn't even know is that how its called but can you help me and tell me what is that LLIST from the structure into the type function and why its used in this case: [code=c] typedef struct node { int data; struct node *next; /* pointer to …

Software Development c data-structure
Member Avatar for abhimanipal
0
163
Member Avatar for frogboy77

Sorry if this is repetative but still struggling with this. i wish to multiply 2 long integers together. if the result is outside of int64 range i want the loop to break otherwise i want to keep the result and increment the second number. have tested this, but when the …

Software Development c++
Member Avatar for frogboy77
0
119
Member Avatar for selle05

How to connect a listbox to another listbox by their index? can someone help me with this? some codes please. thank you!

Software Development vb.net
Member Avatar for ilog
0
319
Member Avatar for ziggystarman

Hello I'm looking for the correct method/way for reading & writing raw JPEG image binary data. I am obtaining the raw data via TCP stream, the official JPEG specs say that the raw JPEG image data starts at HEX value 0xffd8 & ends at HEX value 0xffd9 as below... [CODE]Start …

Software Development c++ file-stream ios
0
109
Member Avatar for tgreer

First, sorry for posting this here, but I couldn't find a VBScript forum on Daniweb (which I find surprising). I'm working with binary data in several different projects. Below is an example of code that works to retrieve a static map image (PNG) from Google: [CODE]strFileURL = "http://maps.google.com/maps/api/staticmap?markers=2200+S+Western+Ave+Lisle+IL&zoom=14&size=400x400&sensor=false" Set objXMLHTTP …

Member Avatar for tgreer
0
771
Member Avatar for myk45

Hello. Can anyone please tell me if there are any sites where i can practice programming? i mean sites like TopCoder, SPOJ, CodeChef. But i needed a site where there is an explanation for problems(so that i can understand the basic algorithmic concepts) and then go on practicing it. i …

Software Development c++
Member Avatar for Fbody
0
268
Member Avatar for Dean_Grobler

Hi there, I've just switched to Eclipse. I've been using TextPad so Eclipse is pretty cool.. But I've been getting weird error messages that I don't understand/not used to. Here they are: [CODE]JButton btnEnter = new JButton("Enter"); btnEnter.addActionListener(this);[/CODE] Here the Error says: Multiple markers at this line. -Syntax on token …

Software Development java
Member Avatar for Dean_Grobler
0
200
Member Avatar for ncstplaya1234

[CODE]import java.util.*; public class DiscountBolts { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); double bolts, nuts, washers; double total; System.out.println("Enter number of bolts: "); bolts = keyboard.nextDouble(); System.out.println("Enter number of nuts: "); nuts = keyboard.nextDouble(); System.out.println("Enter number of washers: "); washers = keyboard.nextDouble(); total = (bolts …

Software Development java
Member Avatar for dangari
0
151
Member Avatar for Nemo_NIIT

HI Friends i have create this simple code in visual C++ [CODE]#include<iostream> int main() { std::cout<<"Hello World!!"<<std::endl; system ("PAUSE"); return 0; } [/CODE] can anyone help me to write log file on base of this please

Software Development c++
Member Avatar for Nemo_NIIT
0
3K
Member Avatar for ramaliah

a smple stok control program for a restaurant

Software Development visual-basic
Member Avatar for AndreRet
0
45
Member Avatar for yosi_s85

some one know good toolbar for picturebox control in c#.net? one that have zoomin and scroll options. Thanks

Software Development c#
Member Avatar for yosi_s85
0
91
Member Avatar for islam-morad

Hello guys, i'm studying the Java programming language. every thins were going very well, but once i have encountered RECURSION i started to feel so bad. there is a recursive method that is blowing my mind. I can't figure out how does it print that the sum of a set …

Software Development java
Member Avatar for islam-morad
0
132
Member Avatar for Annettest

Hello everyone: I'm a C++ newbie. I have written code for performing calculations that needs data from another code. These data are in text files. I know how to read in an ENTIRE text file, but I can't figure out how to extract certain pieces of it. I would very …

Software Development c c# c++
Member Avatar for Greywolf333
0
247
Member Avatar for poorchap
Member Avatar for nick.crane
0
80
Member Avatar for shinnie

i'm writing a Java program that ask the user to input words using JOptionPane.showInputDialog() Then look at each letter in the word and add up the points for each letter. Vowels (a,e,i,o and u) are valued at zero.The letters "x" and "q' are valued at 5.All other are 1.Anything not …

Software Development java java-swing
Member Avatar for JamesCherrill
0
222
Member Avatar for aaronmk2

I am using an overloading operator to add two polynomials. I have gotten it to work, but I am wondering if I can improve on my if statement by not changing the value of degree for the rest of my program. The if statement is used if the second polynomial …

Software Development c++
Member Avatar for caut_baia
0
162
Member Avatar for VBNew

Hi, I would like to create a table as attachement below is VB6, may I know what component name of this table? is this DBGrid? Thanks!

Software Development visual-basic
Member Avatar for AndreRet
0
84
Member Avatar for andisheh1362

i have 2 program one of them in C# and the other one in visual c++. i use Socket programing in 2 of them and i want to connect them. the program in C# is Client and the program in c is server. when i connet client to server, conect …

Software Development client-server socket-programming
Member Avatar for jerry32uk
0
149
Member Avatar for GooeyG

An account has the properties account number, balance, annual,interest rate, and date created, and methods to deposit and withdraw.Create two sub classes for checkings and savings account.Checkings account has an overdraft limit, but a savings account cannot be overdrawn. One problem that i'm having is that when I withdraw x …

Software Development java java-swing
Member Avatar for JamesCherrill
0
12K
Member Avatar for CodeAerial

Before I start, I would like to stay thanks to the people who helped before in my previous threads. Sorry if I can't reply quickly at that time due to connection issues. Back to the problem. I am working on a stemplot([url]http://en.wikipedia.org/wiki/Stem_and_leaf_plot[/url]), which prints the data(the plot thing) into the …

Software Development c storage
Member Avatar for CodeAerial
0
977
Member Avatar for KrazyKitsune

Is there a way to hide functions and such when they happen? Example: [code=syntax]print func(x, y)[/code] from showing up when you run it? I want it still printing, just not visible. I want it to print.

Software Development python
Member Avatar for griswolf
0
107
Member Avatar for JesterDev

I'm learning C mostly for linux development, but right now I am working through a few general books to get me started. But I am having some problems understanding #define versus declaring a variable directly(?). I know that #define declares a constant, but for example normally I would declare a …

Software Development c
Member Avatar for Ancient Dragon
0
4K
Member Avatar for crodriguez08

Hey there, I'm having trouble getting my program to read the last instruction of the file, and so far, I haven't been able to figure out why. Any help would be appreciated. [CODE]/* The Simpletron Machine Language Program. The purpose of this program is to simulate a primitive computer. This …

Software Development c++ file-system operating-system
Member Avatar for crodriguez08
0
193
Member Avatar for Kingcoder210

Let me show you how do I create setup file of my program. [Code] Project>WindowsApplication1 properties>Compile>Advance compile option>Target CPU : AnyCPU Target framework(all configurations): .NET Framework 3.5>OK File>Add>New Project>Other Project Types>Setup and Deployment>Setup Project>OK Setup>Properties>Prerequisites>Select Create setup program to install prerequisite components & Windows Installer 3.1 & .NET Framework 3.5 …

Software Development file-system flash vb.net visual-studio
Member Avatar for lolafuertes
0
551
Member Avatar for gee1288

hey need some help with my loan program i have two problems how do you add the total of the variable sumtin from a while loop and i need to show the inital loan first then after the calculations are done show it again like i want it to show …

Software Development c++
Member Avatar for marbie 05
0
186
Member Avatar for Talguy

I have recently voluteered to be a mentor for a local inexperienced FIRST robotics team. The main area I will be mentoring is the programming aspect of the competition. The controllers for last years robot was programmed using LabView but they also can be programmed in C++. The better teams …

Software Development c++ robotics
Member Avatar for N1GHTS
0
120
Member Avatar for Diamonddrake

I am working on a couple projects where I need to upload files from a client using my software to my webserver and then do some other things. But I would like the software to handles this automatically so the user doesn't have to worry with it. I am currently …

Software Development asp asp.net client-server
Member Avatar for Diamonddrake
0
162
Member Avatar for davyboi91

#include "stdafx.h" #include <iostream> using namespace std; void main(); int _tmain(int argc, _TCHAR* argv[]) { double sum_positive=0,sum_negative=0,sum_total=0,num; int total_negative_number=0,total_positive_number=0; cout << "Enter number.\n" << endl; for (int i=0;i<10;i++) { cin >> num; sum_total +=num ; if (num>0) { sum_positive+=num; total_positive_number++; } else { sum_negative +=num; total_negative_number++; } } cout <<"Sum …

Software Development c++
Member Avatar for Milton Neal
0
134
Member Avatar for jemz

Hello can you help me,i have problem of this if i will use scanf("%c",&repz); my porgram will exit it will not loop to menu..but if i will change to %s this will loop to menu...but i declare variable repz as char...can you help me or explain on this why it …

Software Development c
Member Avatar for jemz
0
118
Member Avatar for terzenta

I'm working on a basic "banking" program. The most recent change I've made to it is to use inheritance so that instead of just an Account, you can make either a checking or savings account specifically. Everything is working fine, except that the checking account is supposed to have a …

Software Development java
Member Avatar for terzenta
0
119
Member Avatar for Ultralisk

Here is my code, what I'm having problems with is taking values from a 10 field file (scores.dat) and putting them into a list. How would i go about this? [CODE]def main(): fileIn = open( "scores.dat", "r") lineIn = fileIn.readline() while len(lineIn) != 0: print lineIn lineIn = fileIn.readline() parse(lineIn) …

Software Development python
Member Avatar for TrustyTony
0
128
Member Avatar for markdean.expres

Could anyone help me with these; 1. Create a new line in vb 2008 (endl in c++) 2. Steps in updating a database when the database resides into another computer (for my client/server application) Thanks averyone, hope you could do something for this! my system is almost done...

Software Development client-server vb.net
Member Avatar for markdean.expres
0
165
Member Avatar for konohastar

Hey guys, i am working on a program and it deals with arrays. Basicaly its a conversation program i am working on. I have alot of it done but i am stuck with the displayiong of the info. Now being this is an assignment i would really like advices and …

Software Development c
Member Avatar for konohastar
0
118
Member Avatar for freemanirl

I'm writing this in VB.NET, so I figured I'd post here. So, I'm writing a program to convert some pdfs to jpegs. This is all well and good, and the program seems to work well for the most part. Unfortunately, I've come across a bit of a problem. The pdfs …

Software Development api pdf vb.net
0
114
Member Avatar for jcfans

wen i write the data to notepad,i get the result below: <SRT>,160,[COLOR="Red"]161,[/COLOR] NEW,1001,1001,CAAB IMS,OTHER,31-12-07,MYR,28-09-10,1111,A,4127288.4600,0.0000,31-12-07,0,AGF,MYR,100101 NEW,1001,1001,CAAB IMS,OTHER,31-12-07,MYR,28-09-10,1111,A,175000.0000,0.0000,31-12-07,0,AGF,MYR,102101 <END>,[COLOR="Red"]4302288,[/COLOR] wat i wan is like below: <SRT>,160,[COLOR="Green"]161[/COLOR] NEW,1001,1001,CAAB IMS,OTHER,31-12-07,MYR,28-09-10,1111,A,4127288.4600,0.0000,31-12-07,0,AGF,MYR,100101 NEW,1001,1001,CAAB IMS,OTHER,31-12-07,MYR,28-09-10,1111,A,175000.0000,0.0000,31-12-07,0,AGF,MYR,102101 <END>,[COLOR="Green"]4302288[/COLOR] i don't wan [COLOR="Red"](,)[/COLOR] behind 161 and 4302288 Hope hav sum1 can answer my question.Thanks... [CODE] For Each row In dt.Rows …

Software Development vb.net
Member Avatar for jcfans
0
149

The End.