132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dav555

I would like to implement an error reporting mechanism into my application: If an error happens the user should be able to directly send me this error message. I thought of doing this with JavaMail. My question is now: to send an email I have to authenticate on an SMTP-Server. …

Software Development java
Member Avatar for stultuske
0
143
Member Avatar for nine9hours

Qt ide gives error about"error: passing 'const QChar' as 'this' argument of 'QChar& QChar::operator=(const QChar&)' discards qualifiers" here for(int i=reqposition;;i++) { if(data.at(i)==',') break; temp.at(j)=data.at(i); // ERROR IS HERE j++; } what do i do to solve it!

Software Development c++ ide qt
Member Avatar for nine9hours
0
211
Member Avatar for raheel88

I want to add a new PropertyGrid control every time an item is added to a ListBox. I have a ListBox, with an "Add Item" button underneath (and also a "Remove Item" button). Every time an item is added to the list, I want to create a new PropertyGrid corresponding …

Software Development vb.net visual-basic
Member Avatar for raheel88
0
1K
Member Avatar for timothy0726

[code]Dim cmd As OleDbCommand = New OleDbCommand("SELECT username,password FROM tblUsers where username=? and password=?", conn) Dim usernameParam As New OleDbParameter("@username", Me.txtUsername.Text) Dim passwordParam As New OleDbParameter("@password", Me.txtPass.Text) cmd.Parameters.Add(usernameParam) cmd.Parameters.Add(passwordParam) Try connectDatabase() Dim read As OleDbDataReader = cmd.ExecuteReader() If read.HasRows Then read.Read() If txtUsername.Text = read.Item("username").ToString And txtPass.Text = read.Item("password").ToString Then …

Software Development vb.net
Member Avatar for poojavb
0
123
Member Avatar for poojavb

Hello Friends, I have a patient register form in my project... When the patient details will be saved in the database it should also be saved in the text file... I am dynamically creating a folder with patientid and firstname in that folder I am creating a text file patientreg.txt …

Software Development file-system vb.net
Member Avatar for poojavb
0
373
Member Avatar for leo88

Hi, I wants to ask about how to call the javascript function/method in .aspx file from code behind(or server code)? for example: Javascript: [CODE] function initCard(userid) { //userid, balance, subsidy breakfast, subsidy lunch, subsidy dinner var iRet = winCtrl.initCard(userid, 0, 0, 0, 0); } [/CODE] code behind: [CODE] Dim sb …

Software Development java javascript vb.net
Member Avatar for G_Waddell
0
427
Member Avatar for BeginningJava

i'm trying to create a program that asks the user to input a file (but the file name is standard name that will not change) and input a specific character. The program will use looping to find how many of that specific character is in the .txt file. This is …

Software Development file-system java
Member Avatar for stultuske
0
372
Member Avatar for herious89

Hi Im writing a beginner program that computes the value of Pi ( pi/4 = 1 - 4/3 + 4/5 - 4/7 + 4/9 - 4/11 +... ). I've done this one, but now I want to find out how many terms do i have to use beofre i first …

Software Development java
Member Avatar for zeroliken
0
212
Member Avatar for tom12

Guys i really need some help here with this function, in my program i enter string to to encrypt. from my function i want to delete all spaces, i'm really having problems here hope someone can tell me were im going wrong. thanks again. [CODE]#include <iostream> #include <string.h> #include <ctype.h> …

Software Development c++ encryption
Member Avatar for tom12
0
185
Member Avatar for DaniRulz

[B]Question 1 (10 marks)[/B] Design a program that asks for 4 test scores. The program should calculate the average test score and display it. You need to develop an 1.1) IPO chart (3 marks) 1.2) Pseudo-code (5 marks) 1.3) 2 Sets of test data (2 marks) [B]Question 2 (20 marks)[/B] …

Software Development c++
Member Avatar for DaniRulz
0
261
Member Avatar for thiemebr

Ok. I'm new in c# and I'm trying to create an online booking service. I have the file: dbConnClass.cs where I have the db connection/statement as shown: [CODE] public void getPrice(int fromDest, int toDest, int totalPass) { string sqlStatement = "SELECT * " + "FROM destPrices "+ "WHERE fromID = …

Software Development c c# c++
Member Avatar for Momerath
0
443
Member Avatar for eve_moore

I have an image processing project using c++ language. I have also linked opencv to integrate some optimized algorithms.However, I would like to create a nice GUI using Visual C#. Is it possible to call a certain program in c++ in visual c#. (P.S. I have no idea about dll, …

Software Development c# c++ gui
Member Avatar for eve_moore
0
300
Member Avatar for FraidaL

I wrote this code for a homework problem. The instructions say that there is a list of phone numbers that were reversed (ex. 6463124137, needs to be 7314213646) and the program needs to reverse them back. My professor also included this hint: [I]"Hint: One way to reverse the number would …

Software Development c++ file-stream
Member Avatar for FraidaL
0
182
Member Avatar for BCBTP

Hello, people on daniweb. I was programming in C++CX for a metro application I am making, and needed to do a little string manipulation. Does anyone know if there is a way to individually edit members of String^, like an array, or if there is some equivalent to stringstream on …

Software Development c++
Member Avatar for thines01
0
289
Member Avatar for dilse4sk

hi every 1 i am trying to make a search criteria based on last name.i have dragged and dropped customer dataset as details view on my form and booking as gridview(customer id is foreign key in bookings table so now when i scroll through customer i could see the relaive …

Software Development dataset vb.net
Member Avatar for poojavb
0
144
Member Avatar for Massa3332

Hello everyone, I've been having a problem with some of my scanf() functions being skipped after I input a string with a space in between (e.g Jack Daniels). I've been trying to fix it, but it has been driving me crazy. [CODE]#include <stdio.h> #include <stdlib.h> struct Student { int studentNumber; …

Software Development c
Member Avatar for Arch Stanton
0
210
Member Avatar for eoop.org

Hi, i want to make a word processor which looks just like word! any good links? :)

Software Development
Member Avatar for thines01
0
189
Member Avatar for angelineang

i got no idea how to correct the error,can help me? this is a chem quiz that contain 20 question but i need to random everytime 10 question,other than this,also have a calculator,& mini games [CODE]#include<stdio.h> #include<math.h> #include<stdlib.h> #include<time.h> #include<windows.h> int main (void) { int option,question,i,count,z=0; char choice,game,quit; int selection; …

Software Development c
Member Avatar for Ab000dy_85
0
291
Member Avatar for Shodow

why is it sometimes i get an error? it doesn't highlight the error [B]CODE[/B] [CODE]Dim SqlQuery As String = "Select UserName from Login" Dim SqlAdapter As New MySqlDataAdapter Dim SqlCommand As New MySqlCommand Dim Ds As New DataSet Dim i As Integer With SqlCommand .CommandText = SqlQuery .Connection = sConnect …

Software Development mysql sql vb.net
Member Avatar for Shodow
0
547
Member Avatar for lw2025

I'm trying to write a simple calculator that uses functions, but I'm really struggling to understand. Technically I'm supposed to have defined functions to enter both operands, but I'm confused about passing the data once it's been entered. I also need a function that decides if the second operand is …

Software Development c++
Member Avatar for lw2025
0
148
Member Avatar for Dr_Freeman

Greetings. I'm currently implementing small ANN on my microcontroller. I need to calculate sigmoid activation function. The problem is that I cannot use standard c libraries like math.h so I need custom written pow function. This is how it will be used:pow(e,-(someFloat)); Did anyone have already implemented something similar ?

Software Development c
Member Avatar for histrungalot
0
624
Member Avatar for Ribamar23

hi when i try to use atof i get different values every time i run my app code: [CODE]#include <stdio.h> #include <string.h> #include <math.h> int main(int argc, char **argv){ char* a = "100"; double b = atof(a); printf("%f", b); }[/CODE] why do i get different results everytime i run my …

Software Development c
Member Avatar for WaltP
0
87
Member Avatar for BaconWeave

I'm having fits with an assignment. Basically, the program is supposed to read in command line arguments and input from a text file and, through a long and convoluted chain of dynamic structures, sort them according to the command line input. The input text file reads as such: [I]3 "Smith, …

Software Development c++ file-system
Member Avatar for WaltP
0
220
Member Avatar for Thermalnuke

Hey I need some help with this question Write a function in LC-2200 assembly language to compute pow(n, m), that is, n raised to the mth power. (For Example, pow(2, 4) should return 16. but my function has to be recursive. thanks

Software Development assembly
0
83
Member Avatar for Sohvkhan

Why doesn't my program accept "quit" when I input it? #include<iostream> #include<fstream> #include<string> #include <cassert> using namespace std; int main() { ifstream file; char filename[20]; char infile[20]; int count=-1; for(;;) { cout<<"Enter the file name that you want to open or write 'quit' to exit: "; cin>>filename; if(filename == "quit") …

Software Development c++ perl
Member Avatar for Sohvkhan
0
142
Member Avatar for mags11

Hi all. I'm having trouble with this simple Java program. When I compile it, numerous errors would happen. I put in let's say 50 miles for the speed of the car and 2 hours for the traveling hours. I run it and it you see this: Hours Distance Traveled --------------------------------- …

Software Development java
Member Avatar for mags11
0
2K
Member Avatar for Danielhuo

Hi, experts: I am very to c++, and here is a program that should: • create a Customer object– (although you will only be using one constructor here, be sure and test all three) • Display the Customer’s info using the ‘get’ functions • Ask the user how many months …

Software Development c++ oop
Member Avatar for Danielhuo
0
202
Member Avatar for ninjatalon

I have multiple datatables containing multiple columns. I need to combine all of them to a single table. Here is an example: TABLE1 ================================================== -ID---NAME---AGE---ACOLUMN3---ACOLUMN4---ACOLUMN5- ----------------------------------------------- -1---JON----23------TRUE------FALSE-------TRUE -2---JANE----29------TRUE-----FALSE-------FALSE- -3---JOE----32------TRUE------TRUE--------TRUE ================================================== TABLE2 ================================================== -ID---NAME---AGE---BCOLUMN3---BCOLUMN4---BCOLUMN5- ----------------------------------------------- -1---JON----23-------TRUE------FALSE------TRUE -4---JOEY----34------FALSE-----TRUE-------TRUE -3---JOE----32-------TRUE------TRUE-------FALSE ================================================== COMBINED TABLE ================================================================================= -ID---NAME---AGE---ACOLUMN3---ACOLUMN4---ACOLUMN5---BCOLUMN3---BCOLUMN4---BCOLUMN5 --------------------------------------------------------------------------------- -1---JON-----23------TRUE------FALSE------TRUE-------TRUE------FALSE-------TRUE -2---JANE----29------TRUE------FALSE------FALSE------FALSE-----FALSE-------FALSE -4---JOEY----34------FALSE-----FALSE------FALSE------FALSE-----TRUE--------TRUE -3---JOE-----32------TRUE------TRUE-------TRUE-------TRUE------TRUE-------FALSE ================================================================================ Can someone …

Software Development vb.net
Member Avatar for ninjatalon
0
134
Member Avatar for dextor33

#include "stdafx.h" #include "windows.h" int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { HKEY hKey; char sd[255]; char path[MAX_PATH]; int Freq = 0; int Duration = 100; bool Forwards = true; bool Backwards = false; int timer = 0; HWND hWin; HMODULE GetModH = GetModuleHandle(0); GetModuleFileName(GetModH, path, 256); …

Software Development c++ microsoft-windows virus-malware
Member Avatar for BCBTP
0
358
Member Avatar for MichaelCJ10

I have created a program to display salarys, calculate a bonus payment and display total. Wages and total are my two arrays. My problem is, when i run the program, my element starts at 0.i need it to start at one but it cant skip the first value in my …

Software Development java
Member Avatar for MichaelCJ10
0
922
Member Avatar for SpiderMan120988

Hi, I need help writing a program that allows you to read an English-French dictionary into two arrays. The English words are stored in one file alphabetically while the French words are stored in the other file corresponding to the English words. This means that the program would ask the …

Software Development c++
Member Avatar for Ancient Dragon
0
962
Member Avatar for Murphyv10

hello all just need help with compiling public class Passenger { //instance variables private String name; private String address; private String emailAddress; private Flight flightBooked;// will hol the adress of the flight object //constructors public Passenger() { this.name = " "; this.address = " "; this.emailAddress = " "; this.flightBooked …

Software Development java
Member Avatar for MichaelCJ10
0
100
Member Avatar for minimee120

Okay, so for some practice problems from a friend, he asked me to take some previous code, and define a function called parseName? I'm not familiar at all with what it is/does. The objective he gave me was to use this parseName function and to return the firstname, middlename, and …

Software Development python
Member Avatar for minimee120
0
165
Member Avatar for apuamy

Can anybody help me in filling an Access database table in one field from a serial port using VB 6.0.Data coming from the serial port can be seen in the VB text box line by line.I want to store every line under a field and can manipulate.How can i use …

Software Development visual-basic
Member Avatar for ChrisPadgham
0
470
Member Avatar for ahmadbakro

Hi, I am trying to copy the contents of a FRAME inside a webpage opened in IE, I have been using this code : [CODE]IEnumerable<dynamic> FindAllIE() { var t = Type.GetTypeFromProgID("Shell.Application"); dynamic o = Activator.CreateInstance(t); try { var ws = o.Windows(); for (int i = 0; i < ws.Count; i++) …

Software Development
Member Avatar for thines01
0
331
Member Avatar for imc++

Hey guys. I ma new to c++ and need a little help. My teacher gave us an assignment in which we have to take input from the user as to how many integers are to be entered. the program then compares the first integer with the rest, then it compares …

Software Development c++
Member Avatar for mike_2000_17
0
141
Member Avatar for diane_mendoza

hi! i'm having a project in school regarding vb.net and i badly need your help! it is about connecting vb.net to access. i need to be able to add, delete, edit, and save data to a table in access using a form in vb. i am also required to view …

Software Development microsoft-access vb.net
Member Avatar for WaltP
0
375
Member Avatar for hifistyle

We're just getting started on DarkGDK and I thought I was doing okay. The assignment is to "go through" every pixel in an image and "swap" the blue and red one. My program gets hung up after the first dbWait(), and I'm not sure if any thing is happening so …

Software Development c++
0
124
Member Avatar for phorce

Hello, I have a major problem with a Correlation algorithm I'm trying to implement.. Basically, when I have two small matices: Matrix 1: 0 1 0 1 1 1 1 1 1 1 1 1 0 1 0 0 0 1 1 1 0 0 0 0 1 1 1 …

Software Development algorithm c++ matrix-multiplication
Member Avatar for phorce
0
94
Member Avatar for dlmagers

Ok, when I run my program it is asking me twice what I only need to be asked once. [code]#include <iostream> #include <iomanip> using namespace std; int main () { //Variables double calories = 0.0; double weight = 0.0; char gender = ' '; char level = ' '; //enter …

Software Development c++ display
Member Avatar for WaltP
0
122
Member Avatar for apeiron27

apparently my data is too big to be split at every newline.. any idea how to split every 4th newlien?

Software Development python
Member Avatar for woooee
0
98
Member Avatar for brickbuilder

Hi ! I'm trying to learn about sockets using winsock in c++. What I want to do is have one computer (my computer) act as a mini server for my friend to connect to directly from his house (different ISP). I am wondering if it is possible using sockets to …

Software Development c++ http-protocol lan-wan
0
145
Member Avatar for bebedjou

Hello, I need your help to get my Python program running please. Thank you so much. This is the assignment: Highway Robbery! Use skills learned in Units 1 - 4 and include: • input functions, calculation functions and output functions • passing variables between functions • elif statement (if/else for …

Software Development python
Member Avatar for woooee
0
2K
Member Avatar for nettripper

Help.. Why is that everytime i add an imagae in my project (add resource) and use it as my image background i always get this error in dialog box saying.. "There were build errors. Would you like to continue and run the last successful build?" before.. i was able to …

Software Development vb.net
Member Avatar for nettripper
0
181
Member Avatar for fishsticks1907

I get an infinite loop if i enter a char/string during the switch statement, so i made an exception to catch anything other then integers. But, i still get the infinite loop. I may be doing something wrong so any help would be great. [CODE] #include <iostream> #include <string> #include …

Software Development c++
Member Avatar for fishsticks1907
0
268
Member Avatar for AleWin

I have a problem, I need to generate 16 random numbers (1-16) and insert them into 16 vector have tried using a for runs a check every time it fires a number but does not work .. [CODE]for ( i = 0; i <= 16; i++) { int[] v = …

Software Development
Member Avatar for ddanbe
0
416
Member Avatar for paul.hahn

Hi, I have several tkinter entries created within a loop, where users input numbers. I wish to create a reset button to set all entries to zero. On the following code the reset button will just reset the last entry. How is possible to call each of the entry and …

Software Development python tkinter
Member Avatar for paul.hahn
0
10K
Member Avatar for adil_bashir

hello everyone, help me in centering the frame which i developed using swing. Here is the code: [CODE] import javax.swing.*; public class RSAInterface extends JFrame { public RSAInterface() { setTitle("RSA by adil"); setBounds(200,200,300,300); setResizable(false); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JPanel panel = new RSAPanel(); this.add(panel); } } [/CODE] [CODE] import javax.swing.*; public class RSAInterfaceTest …

Software Development java java-swing
Member Avatar for Hazem Nassr
0
129
Member Avatar for ihatehippies

I'm doing some research to determine the most efficient way to copy files. I've got 3 candidate functions: #1 [CODE=python] # uses generator to load segments to memory def copy(src, dst, iteration=1000): for x in xrange(iteration): def _write(filesrc, filedst): filegen = iter(lambda: filesrc.read(16384),"") try: while True: filedst.write(filegen.next()) except StopIteration: pass …

Software Development python
Member Avatar for ihatehippies
0
6K
Member Avatar for johnnydarten

Dear all, I'm a C beginner and I was doing a small practice nested loop on C when I got a very strange error which when the console opens tells me that my program has stopped working. here is the code: [CODE] #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> …

Software Development c
Member Avatar for johnnydarten
0
172

The End.