43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for InnocentVamp

Hi all. I want to ask about storing the photos in a MySql database. I am developing a Software for Tours & Traveling company in that i need to store the photos of the customer. The further requirement is to export the database to an Excel sheet including the photo. …

Software Development asp.net c# mysql
Member Avatar for noobsaibot
0
1K
Member Avatar for neoraghav

Hi, I'm new to pointers. i got some requirements...... Following is my requirement.........i want to use a double and triple pointer array [2D,3D] and in that double pointer i want to get data from the user.how can i achieve that using malloc and free for assigning and deallocating memory. im …

Software Development c++
Member Avatar for mike_2000_17
0
2K
Member Avatar for phummon

Hi everyone, I'm a moderately experienced C coder trying to figure out the [B]execve()[/B] command. Here's the basic problem: My program takes a command from the user, loaded into the string UsrCmd. The string is tokenized and each token is loaded into ParaArray[]. Then ParaArray[] is used as arguments to …

Software Development c
Member Avatar for mitrmkar
0
284
Member Avatar for aviavyne

Hello, I started c++, and I recently got an assignment, which is supposed to calculate the sum, variance, mean deviation, and mean in a set. The user can input any number positive or negative for the set. Because it is a set, the person may enter as many numbers as …

Software Development algorithm c++
Member Avatar for mike_2000_17
0
295
Member Avatar for ccube921

I don't know why my compiler didn't like my for loop [CODE]#include <iostream> using namespace std; int main() { cout<<"Please enter an integer.\n"; int intege; cin>> intege; cin.ignore(); cout<<"Please enter it again." for ( int inte = 1; inte = 1; ) { cin>> integ; if (intege==integ) { inte=0 cout<<"Thank …

Software Development c++
Member Avatar for Stefano Mtangoo
0
73
Member Avatar for jrhitokiri

Hello, I have this code that supposedly imitate a DTR for a homework. I've made the preliminary code, but I'm kinda surprised at the output since it's not what I had expected. Here's the code: [CODE] int login() { int id; char* name, log_time; time_t lt; lt = time(NULL); printf("\nPlease …

Software Development c
Member Avatar for jrhitokiri
0
237
Member Avatar for napkinbob

Hello. I need some advice. Here is my scenareo. I have a form displayed where a user can can select a 'function' from a list box. That 'function' has a corresponding ID number which I need to be able to take and use later in the code. The List of …

Software Development vb.net visual-studio
Member Avatar for the_carpenter
1
257
Member Avatar for fourty

Hi Pals could anyone show me how to code an active clock window Thanks in advance fourty

Software Development visual-basic
Member Avatar for AndreRet
0
182
Member Avatar for PierlucSS

I have this list of object: [CODE]public List<XHTMLError> Report = new List<XHTMLError>(); [/CODE] Which is defined this way: [CODE] public class XHTMLError { public List<string> Errors = new List<string>(); private string _errorType; public string ErrorType { get { return _errorType; } set { _errorType = value; } } }[/CODE] I …

Software Development xml
Member Avatar for sohelelite
0
124
Member Avatar for codeamazon

I have a form which is primarily pulled from Table1. Table1.fieldA is an integer representing a project phase. In the current Access display the form displays not the integer, but a String stored in Table2 that holds integer/String pairs representing all the phases. I'm trying to figure out the best …

Software Development display vb.net
Member Avatar for codeamazon
0
173
Member Avatar for choover12

I like to use pop out panels that would just slide but sometimes it looks bad. is there a way i can fix it to make is as smooth as possible? here is the code i use [CODE] dim pp as new point Private Sub Form1_Load(ByVal sender As System.Object, ByVal …

Software Development vb.net
Member Avatar for codeorder
0
190
Member Avatar for Techguruwanabe

I am a student and my assignment is to write a change calculator program.I have got to go from Dollars down to pennies (not to much work) but I lost my notes (Kinda stupid of me) and I dont know how to fix my program.Please help [CODE]print 'Hello please enter …

Software Development python
Member Avatar for cghtkh
0
2K
Member Avatar for liamzebedee

I am getting System.IndexOutOfRangeException everytime I try to compile my program. This is where the error is happening. [CODE] public static string findlinks2(string source) { char quotes = (char)34; //sets the char variable to quotes since you can't use it in a string normally string searchstring = (quotes + "fmt_url_map" …

Software Development regex
Member Avatar for liamzebedee
0
173
Member Avatar for ehrendreich

I have a windows form that references two tables with a foreign key constraint issue. This form uses detail views for both tables. The tables are tblContact and tblMembers. The relation is based on the ContactID that is in both tables. The parent is in the tblContact table. I am …

Software Development vb.net
Member Avatar for ehrendreich
0
1K
Member Avatar for jr042684

Hello all. I am new to programming. I have been working on this address book program for the past we ek and can not seem to get it to work out. I know I am pretty close. This is my final exam which is due tomorrow. I have been pulling …

Software Development
Member Avatar for jr042684
0
156
Member Avatar for jorgempaz

The program at work now will end up in a drawing third dimension editor. I draw in the window but when I touch a window's control (a menu option, maximize, minimize buttons, other window, etc...) the image at window disappears, do I have to redraw everything? if so, which controls …

Software Development c++
Member Avatar for jorgempaz
0
161
Member Avatar for Peram

For some reason, it works when I just do the entering the name part it works fine, but with the rest of my program I'm having a problem. I'm trying to have the program make it where they enter a password to get in the program (Which I got to …

Software Development c++
Member Avatar for Peram
0
152
Member Avatar for jimmy9pints

Total new question here - and I know [URL="http://www.daniweb.com/forums/thread76747.html"]a similar question[/URL] has been asked before - but I've done a bit of work on this and I'm stuck, so I'd appreciate some help. The exercise I'm stuck on is this: [QUOTE]Write a function that implements Euclid's method for finding a …

Software Development python
Member Avatar for jimmy9pints
0
126
Member Avatar for plasticfood

[CODE]double wholeCost = kb.nextDouble(); double markupPercent = kb.nextDouble(); double markup = markupPercent/100.0; double retailT = calculateRetail(wholeCost, markup); System.out.println(retailT); public static double calculateRetail(double num1, double num2){ double markupPrice = ((num1 * num2)+ num1); return markupPrice;} [/CODE] i've been staring at this and can't figure what is wrong with it. the compiler …

Software Development java
Member Avatar for plasticfood
0
77
Member Avatar for avani20391

Hi,all. I'm B.sc computer science student.I am searching a project in vb.net.I want to make cybar cafe management system but not so clear about this system.Can anyone help me?

Software Development vb.net
Member Avatar for TsadokBlok
0
164
Member Avatar for reemhatim

Write a program that reads a string from the user and generates a histogram for the characters encountered in this string. A histogram is a representation of how many times each character appears in the input string. Use function Histogram that takes the string as input and displays its histogram. …

Software Development
Member Avatar for reemhatim
0
84
Member Avatar for gurram srinath

to prepare a serial version of a program to illustrate patterns of Gator fan coloring. Gators are fond of the colors orange and blue. They tend to dress in either one color or the other and frequently change their minds about their color based on the colors of the people …

Software Development c++
Member Avatar for frogboy77
-2
109
Member Avatar for BroncoTrojan

I cannot figure out the declarations to write to an excel file that is already open. I open the excel file and make it visible with this: Private Sub Button1_Click Dim objExcel As New Excel.Application Dim objWB As Excel.Workbook objWB = objExcel.Workbooks.Open("F:\My Software\files\test.xls") objExcel.Visible=true End Sub What are the declarations …

Software Development vb.net
Member Avatar for BroncoTrojan
0
269
Member Avatar for The physicist

Hi all, bit of a c++ newbie and hoping you might be able to help me with a problem. I'm trying to calculate the elapsed time between two dates using difftime, however I keep getting an elapsed time of 0. Can anyone see where I'm going wrong? Any help greatfully …

Software Development c c# c++
Member Avatar for The physicist
0
839
Member Avatar for overlook

Hi, I have to make a script with parameter that limits the character. This is the code snippet So script.pl -teacher [string] where teacher should only be allowed of [A-Za-z0-9_-]# , if not, print error message which is "error". Other thing is that, the parameter -teacher have to follow the …

Software Development perl
Member Avatar for overlook
0
172
Member Avatar for ASTA LAVISTA

hi every body>>>> please i am student and this my homework very important to me the question is : how to complete this simple program to make its return 0 ????? the answer is some thing instead of: [CODE] /* some statments */ [/CODE] please i am new here and …

Software Development c++
Member Avatar for ASTA LAVISTA
0
412
Member Avatar for fire_

I need your help... Again... How can i combine reading from file with [iCODE]std::getline(file, std::string);[/iCODE] and [iCODE]UpdateData(FALSE);[/iCODE] ? UpdateData() accepts only CString and getline only std::string, and then i try to use it like that: [CODE]std::string readbuff; int length; std::ifstream file("file.txt"); while(getline(file, str)) { length = str.length(); for(int i=0; i<length; …

Software Development c++
Member Avatar for fire_
0
636
Member Avatar for glenak

Hi, Java has been my choice programming language for many, many years now, and I want to start doing C++. I've written in C++ before, but that was a while back. I'm treating myself as a beginner at the moment. I use Eclipse to write Java, and I recently updated …

Software Development c++
Member Avatar for glenak
0
233
Member Avatar for end3r

Hy, I have a .properties file with a key-value defined like this: [icode]my_property.value=text text text bla bla bla {0} qwerty {1}.[/icode] I need to know what class should I use if I want to read the value and insert parameters in {0} and {1}. In the past I used to …

Software Development java
Member Avatar for end3r
0
4K
Member Avatar for bops

Hello. When implementing a KeyListener in my application I have the following code. I have added the KeyListener to a JTextField control using addKeyListener(this) and the current class implements KeyListener. [CODE] @Override public void keyPressed(KeyEvent ev) { System.out.println("Pressed: "+ev.getKeyCode()); } @Override public void keyReleased(KeyEvent ev) { System.out.println("Released: "+ev.getKeyCode()); } @Override …

Software Development java
Member Avatar for bops
0
988
Member Avatar for Nidhi S.
Member Avatar for Nidhi S.
0
97
Member Avatar for mrbungle

Ok, here's what I've got. In the screenshot, you'll see three things- a start time, end time and total time. So the goal is this- A user puts in a current start time by hitting F1 at the start of shift. They tab across the end time to the "time …

Software Development vb.net
Member Avatar for codeorder
0
157
Member Avatar for Eric Cute

Hi everyone. Im trying to upload a file to an ftp server. I found this code in the internet but its not working for me. Can anyone please tell me where the error is?? This is my code [code]import java.io.*; import org.apache.commons.io.FileUtils; import org.apache.commons.net.ftp.FTP; import org.apache.commons.net.ftp.FTPClient; import org.apache.commons.net.ftp.FTPFile; public class …

Software Development apache client-server java
Member Avatar for Eric Cute
0
337
Member Avatar for Dazaa

Hi, I usually use C++, but I am working with some very old code and need to do it in C. So i understand malloc is used char *p; p = malloc(200); where 200 is the amount of bytes I need. and yes i know I need to use free. …

Software Development c
Member Avatar for sree_ec
0
178
Member Avatar for doffing81

Let's create a continuing thread to program Crazy 8's from scratch for learning purposes! [B]DECK/CARD IDEA'S[/B] My simple starting suggestion: [CODE]deck = ['2C','3C','4C','5C','6C','7C','8C','9C','10C','JC','QC','KC','AC', '2D','3D','4D','5D','6D','7D','8D','9D','10D','JD','QD','KD','AD', '2H','3H','4H','5H','6H','7H','8H','9H','10H','JH','QH','KH','AH', '2S','3S','4S','5S','6S','7S','8S','9S','10S','JS','QS','KS','AS',][/CODE]

Software Development python
Member Avatar for doffing81
0
1K
Member Avatar for jackiejoe

Set up my database through the wizard and copied the connection string it presented to me. But am having problems connecting to the actual DB. Error quoted below. Am I missing out on something? [CODE] Private Sub btnDB_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDB.Click Dim strConnect As …

Software Development open-source sql vb.net
Member Avatar for askbapi
0
101
Member Avatar for zachattack05

I have a project that can potentially use a SQL server as a host for it's data. When a user starts the application for the first time, a wizard walks them through selecting how to store their data. If a user selects the SQL option and indicates that the database …

Software Development sql
Member Avatar for zachattack05
0
96
Member Avatar for harrispc

My problem is that when this executes the results come up as a query in the text box and not the result. Is there a way that this can be converted? The idea is to select a name within the combobox and this should update the 3 textboxes with the …

Software Development sql vb.net
Member Avatar for harrispc
0
84
Member Avatar for nore

In my case, i want to make some tool with event, example : make a new textbox with event button click. Can Visual Studio 2005 vb.net do that? How to do that? thanks before :)

Software Development vb.net visual-studio
Member Avatar for nore
0
122
Member Avatar for Yutxz

Hey guys, I'm having a little trouble with my Java homework. So far I'm stuck on problem 3.5, C). My code so far is: [CODE]package multadd; /** * * @author Josh */ public class Main { public static void multadd (double a, double b, double c) { System.out.println ( a …

Software Development java
Member Avatar for Yutxz
0
139
Member Avatar for danalovesc

those are the maps: [CODE] multimap<SortKey,T> firstMap; multimap<SearchKey,pair<SortKey,T>*> secondMap; template <class T,class SortKey, class SearchKey> bool GarageDataBase<T,SortKey,SearchKey>::Add(T data,SortKey key1, SearchKey key2) { multimap<SortKey,T>::iterator it; it=(firstMap.insert(pair<SortKey,T>(key1,data))); pair<SortKey,T> *mizi=&*it; secondMap.insert(pair<SearchKey,pair<SortKey,T>*>(key2,mizi)); return true; } [/CODE] I am trying to insert a pair into the firstMap and get a pointer to this pair and …

Software Development c c# c++
Member Avatar for mike_2000_17
0
1K
Member Avatar for rebellion346

[CODE] weather(sunday,fair). weather(monday,overcast). weather(tuesday,fair). weather(wednesday,fair). weather(thursday,overcast). weather(friday,rainy). weather(saturday,overcast). sky(blue):- weather(Day,fair). sky(grey):- weather(Day,overcast). [/CODE] If the weather is fair, the color of the sky is blue. If the weather is overcast, the color of the sky is grey. Birds are active on Sunday, Tuesday, and Thursday. Birders are happy on a …

Software Development
Member Avatar for rebellion346
0
962
Member Avatar for ThrasherK

Here is the problem I am supposed to be answering: Suppose an expression is represented in a string (i.e., 35*4+5/(4+5)). Write a function that splits the expression into numbers, operators, and parentheses. The function takes an expression as the argument and returns a vector of strings. Each string represents a …

Software Development c++
Member Avatar for ThrasherK
0
413
Member Avatar for acrocephalus

Hello! I have a frame with some sizers in it (see code at th end for a running example). I would like to know how to repeat the sizers 2, 3 and 4 when pressing the add button. The sizers should be added before the submit button, and the control …

Software Development python
Member Avatar for acrocephalus
0
125
Member Avatar for SamSmiles

I have a programming assignment which I must complete and I need help starting it. We can't talk about code with the professor or the TA so I thought I'd come here to try and ask. Pretty much were going to be given a text file. This text file will …

Software Development c
Member Avatar for Ancient Dragon
0
112
Member Avatar for GDICommander

Hello everyone! When I'm starting a OSGI bundle in my Apache Felix container, I have a ClassNotFoundException. This is the output that I have: [CODE] start file:/C:/Users/Pierre-Alexandre/Documents/NetBeansProjects/Prototype1/src/Prototype1Client.jar 23-Sep-2010 10:43:12 AM org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService bundleChanged INFO: bundle changed: null 23-Sep-2010 10:43:12 AM org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService bundleChanged INFO: bundle changed: null 23-Sep-2010 10:43:12 AM org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService bundleChanged …

Software Development apache api client-server java web-server xml
Member Avatar for GDICommander
0
5K
Member Avatar for rcplguy15

Hi everyone I need to be able to read each character from a text file and store them in an array here is the text file: ********************* Ace of Spades 10 of Spades 3 of Clubs King of Spades 5 of Spades ********************* Queen of Diamonds King of Hearts Queen …

Software Development c++ file-system
Member Avatar for Lerner
0
171
Member Avatar for Archenemie

[CODE]paid_value = self.paidinput.GetValue().strip()[/CODE] I have this line of code to take a number from the paidinput field, but i need the value as an integer, how would i go about this?

Software Development python
Member Avatar for Archenemie
0
100
Member Avatar for kamotekid08

Hi i have a problem in programming I need to search a line from a text file by just entering an identifier. Text File: "my Record.text" contents: 101,Carl Cool,500.00 102,Kurt Cobain,400.00 103,Kid Marion,300.00 the console should ask the id number.. ex. ID:101 and give the output: ID:101 Name:Carl Cool Rate:500.00 …

Software Development c c# c++
Member Avatar for kamotekid08
0
136
Member Avatar for buster2209

Here is my code; [CODE] // Allows writing to web forms void SetText(string attribute, string attName, string value) { comboBox1.Items.Clear(); // Get a collection of all the tags with name "input"; HtmlElementCollection tagsCollection = webBrowser1.Document.GetElementsByTagName("input"); foreach (HtmlElement currentTag in tagsCollection) { // Displays all the tags in a combobox comboBox1.Items.Add(currentTag.GetAttribute(attribute).ToString() …

Software Development
Member Avatar for buster2209
0
162

The End.