132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sk8ergirl

My page have textbox , lable and one button when the user click the button it should display message if the user in the database "email has been sent" the message will show otherwiser it will show "email is not in the system" this is what I did , but …

Software Development email sql
Member Avatar for Momerath
0
181
Member Avatar for Ondrej.Behulek

Hello, I have a course that is Operational Systems.. My lecturer doesnt explain so much and after He say, You must solve this problem, because u r a programmer.. I have such a problem with linux programming. I put my code here, He wants, I must allow multi-client to server. …

0
245
Member Avatar for chocolatte.lavista

guys, how to make a simple program that can combine basic C++,array,function and pointer altogether.can anyone help me please? thank you! :)

Software Development c++
Member Avatar for chocolatte.lavista
0
145
Member Avatar for alex910TN

Hey guys, I am trying to implement the following but the compiler is not liking it. What can I do to fix this? Thanks for any help. typedef struct { int ordinalSum; int LexemeCode; Line Info; Node *next; <-- ??? }Node; error # 1 syntax error before "Node"

Software Development c
Member Avatar for cproger
0
253
Member Avatar for mercury113

how can i put an if statement in a OkCancel Msgbox .. for example when i choose OK .. it will perform the code .. and if I Cancel it will not perform the code?

Software Development vb.net
Member Avatar for avtaars
0
222
Member Avatar for triumphost

I wrote a large project dealing with images, files, and WINAPI functions. I decided to add RichTextEdit to it and used the msfedit.dll.. Turns out that it only supports UNICODE style strings and chars and my entire project is std::strings and LPCSTR's, etc.. None of the WINAPI functions are unicode …

Software Development c++
Member Avatar for Ancient Dragon
0
214
Member Avatar for anumash

#include<stdio.h> int main(){ char inputs[33]; int i; for(i;i<33;i++) inputs[i]=' '; int ch; for(i=0;(ch=getchar())!=EOF&&i<32&&ch!='\n';i++) {printf("%c",ch); inputs[i]=ch; } inputs[i]='\0'; printf("%s",inputs); return 0; } I am writing a program where the user enters a character and the program stops asking the user for a character when the user enters the Enter key. Enter …

Software Development c
Member Avatar for anumash
0
131
Member Avatar for ShamSundar

People pls help me i am getting a compiler error - Loop Without Do This is my Code Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset cn = New ADODB.Connection cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Shyam\Documents\Database1.mdb;Persist Security Info=False" cn.Open() rs = New ADODB.Recordset rs.Open("select* from STUDENTSWITHHOA", cn, adOpenKeyset, adLockOptimistic) Do …

Software Development open-source visual-basic
Member Avatar for Reverend Jim
0
325
Member Avatar for Papa_Don

Group, I'm stuggling to get values from an sql database table into several textboxes. I'm not getting an error, but I'm also not getting anything to show up in these textboxes. Can you offer some thoughts as to what I need to do to fix this? Private Sub btnUpdateOrder_Click(ByVal sender …

Software Development open-source vb.net
Member Avatar for Reverend Jim
0
178
Member Avatar for WDrago

All, How do I convert a DataTable double from a row object to a normal double? I'm creating the DataTable like this (note that Temp and Hum are doubles): private void readDummyData(DataTable dt) { string fileName = "dummydata.csv"; string[] lineCSV = new string[5]; StreamReader myReader = new StreamReader(fileName); // Define …

Software Development
Member Avatar for WDrago
0
3K
Member Avatar for 4evrmrepylrning

I'm trying to extract some metadata from a m4v file. I'm looking for the duration, height, width, etc. I do all my programming on a Raspberry Pi and was looking at gexiv2 but could not get it going. I got exiftool working though. My script looks like this: import exiftool …

Software Development file-system python raspberry-pi
Member Avatar for 4evrmrepylrning
0
3K
Member Avatar for dij_0983

I'm trying to develop my own simple uptime command (used to show how long the system has been running) like program where I'm gonna use it for our university's OS, (consider the OS already has all the necessary C libraries needed to make system utilities) Could someone give me a …

Software Development c
Member Avatar for dij_0983
0
248
Member Avatar for game06

i trying to my background move left if user hit right key. and background right if user hit left key. that way it will look like my player is moving. the problem is that when ever i hold right key, the background waits 1 sec than moves to left. i …

Software Development java
Member Avatar for game06
0
330
Member Avatar for lauraroxi

Hello. I have a project for queues simulation to do and I have to follow the MVC pattern. My classes until now are: Client, Queue which represent the Model, Controller, GUI which is the View, and the Main class. If I have those 2 classes representing the Model, how should …

Software Development gui java queue
Member Avatar for lauraroxi
0
129
Member Avatar for shopnobhumi

Hi, i want to convert a .jsp file to .java file. I read various forums and they said to use tomcat to convert .jsp to .java.I have ran tomcat but it is not doing anything(i cannot write anything). Through command prompt i ran it and it just opens a new …

Software Development java java-jsp
Member Avatar for stultuske
0
4K
Member Avatar for analys

I try to export my tables to excel in multiple sheets but i'm having an error state that object variable or with block variable not set. Hope anyone can help me. Here's my code. Private Sub exportexcel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles exportexcel.Click Dim del_cmd As New …

Software Development vb.net
Member Avatar for QVeen72
0
2K
Member Avatar for katabullet

i have created two forms and two controls, form1 has a button, form two has label. now i wanted the caption of my label to change after clicking on my button, but i just can not call in the control "label" into my button click event because there are from …

Software Development visual-basic
Member Avatar for rishif2
0
185
Member Avatar for Papa_Don

Group, I've got part of my code started to populate the DataGridView with the data I need to return. When testing it, I have this long pause and no returned data. I finally have to kill it via <Control><Alt><Delete>. I've tried reading through mulitple websites to find some information to …

Software Development open-source vb.net
Member Avatar for Papa_Don
0
430
Member Avatar for ulasoc

i added file extesions to associate with my program from Puplish/Option/File Association But i dont know how to execute related codes when users open the file associated with my program? how can it perform a specific code associate file type and determine which file type it is after program loaded?

Software Development file-system vb.net
Member Avatar for TnTinMN
0
207
Member Avatar for HadoukenGr

Hi, i am trying to make a server client application using sockets in C. Server and client compile just fine but they dont seem to connect with each other and i don't understand why (i just started learning about sockets). My OS is SunOs 5.10. This is my server code …

Software Development c client-server socket-programming
Member Avatar for Mouche
0
260
Member Avatar for game06

error: The method paint(Graphics, main) in the type player is not applicable for the arguments (Graphics, main.Display) on line: player_class.paint(g) main.java public class main extends JApplet { Timer timer; Display display_class; Player player_class; /*** init method ***/ public void init() { setSize(800, 400); display_class = new Display(); setContentPane(display_class); }/*** end …

Software Development java
Member Avatar for game06
0
259
Member Avatar for hashim5003

Can any one help me writing code which can only creat three digit random number not two digit or one digit number? Following code creates 3 digti but also creats two and one digit number.. public class random { public static void main (String [] args) { double n = …

Software Development java
Member Avatar for hashim5003
0
7K
Member Avatar for ConfusedLearner

I am writing a program for class but stuck. I need my program to pick adult, child, student or senior, if I enter any of them. #include<iostream> #include<iomanip> #include<string.h> #include<fstream> using namespace std; int main() { int choice; int months; int Adult, Child, Student, Senior; cout<<"Enter the number of months …

Software Development c c# c++
Member Avatar for deceptikon
0
163
Member Avatar for srivardhanms

What is the difference between Definition and Declaration of a variable? Am not talking about function, but variable. When I googled, I found these two answers which are quite contradictory! While one says "definition occures once through the program( memory is allocated once ), but the declaration can occur many …

Software Development c
Member Avatar for srivardhanms
0
1K
Member Avatar for owenransen

I have to update a road tunnel lighting program I wrote for a company. They now want a new standard to be applied, but with the option of switching between standards real time. And there will be other standards in the future. Currently the single object which calculates the lighting …

Software Development c++ oop
Member Avatar for owenransen
0
199
Member Avatar for pooh1234qwerty

$ awk -F ":" 'NR!=1 {print $1}' test1.txt what does this mean?? especially ":"??

Software Development shell-scripting
Member Avatar for Watael
0
114
Member Avatar for jspence29

What I am trying to do is make a program that reads a txt file and converts the number into a double array. import java.io.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class rocket { public static void main(String[] args) throws IOException, FileNotFoundException { System.out.println(readLines("/Users/Jeremy/Documents/workspace/altitude.txt")); } public static Double[] readLines(String …

Software Development java
Member Avatar for jspence29
0
400
Member Avatar for daniel.ngugi.980

please help me to write a code which includes a function for calculating the squareroot of a number without using the predefined functions in the function header............

Software Development c
Member Avatar for gregha04756
0
123
Member Avatar for AmrMohammed

Greetings While reading I encountered a statement I did not understand what does it mean "Cout is a predefiend object in C++ **to correspond to the *standard output stream*** 1- What is that exactly mean? 2- what is the *standard output stream* & *standard input stream*?

Software Development c++
Member Avatar for deceptikon
0
187
Member Avatar for tizzqman

I am trying to make a simple cryptography program using a simple subsitution method. If any one could help that would be nice. I need to be able to encode it as well as decode it. but im just a little confused on how to go about doing that. here …

Software Development python
Member Avatar for Lucaci Andrew
0
182
Member Avatar for game06

i have a sprite sheet(image) and i want to draw on screen. image = sprite sheet image x = player x postion y = player y postion width = player width height = player heigh public class main extends japplet { ... public void paint(Graphics g) { g.drawImage(image, x, y, …

Software Development image java
Member Avatar for mKorbel
0
2K
Member Avatar for ScarWars9

Hello, I have been making an employee timeclock and have run into a bump in the road. Here's what my setup is like when an employee (who is not an Admin) loggs on they get a simple screen telling them the current time current date and two button that allow …

Software Development mysql vb.net
Member Avatar for ScarWars9
0
942
Member Avatar for victoria.lim.773124

The function called skipped over when i run the program. What's the problem? #include <iostream> using namespace std; void searchId(int id[], int& idNum); int main() { int idNum; int count; int *id; int Numid; cout << "Please input the number of id numbers to be read "<<endl; // cin >> …

Software Development c++
Member Avatar for Labdabeta
0
687
Member Avatar for pooh1234qwerty

i am a beginner. i need online tutorial for shell scripting. there are many on the web.. which one to choose??

Software Development shell-scripting
Member Avatar for DoRight
0
236
Member Avatar for rajesh9042

Hi, I am trying to download files using Net::FTP perl module. I am facing problem with downloaded files not able to place in there respective folders. Please need help, I am providing the code below #!/usr/bin/perl use Net::FTP; use File::Copy; $ftp = Net::FTP->new("ftp.ncbi.nlm.nih.gov", Debug => 0) or die "Cannot connect …

Software Development perl
Member Avatar for DoRight
0
297
Member Avatar for aily.ping

I can't detect the problem to this program that i've made. there's a problem for sum and average. #include <iostream> using namespace std; float sum(float[], int); // Declaration of function float average(int, float);// Declaration of function int main() { int numMonth; int count; float *sales; float userInfo; cout << "Please …

Software Development c++
Member Avatar for Lerner
0
989
Member Avatar for terrier_unknown

Hy guys, I was searching the net for almost half a year for an article which gives an opinion about HOW WOULD PROGRAMMING LOOK IN A 50-100 YEARS TIME.Now you can guess already I haven t found anything special so this is the reason why I am writting this post. …

Software Development
Member Avatar for <M/>
0
157
Member Avatar for jeremywduncan

This is for part of my homework in an Object Oriented Programming class. I debugged the top part to make it workable. I need help on how to delete a searched item and also think I am missing closing the database file at the end. The search function #2 is …

Software Development python
Member Avatar for woooee
0
216
Member Avatar for johnny0627

I don't get what's wrong with this code I keep getting a value error when i run this it says Traceback (most recent call last): File "rolling.py", line 40, in <module> dice1, dice2, dice3 = numb(dice) ValueError: need more than 2 values to unpack please help? def numb(dice): if dice …

Software Development python
Member Avatar for woooee
0
212
Member Avatar for mydreamgirl

Tried following code to get timezone conversion and failed. public static String ConvertTmz(String timeFormat, String timeStr, String tmz){ String theTimeFormat="MM/dd/yyyy HH:mm:ss"; if (timeFormat!=null) theTimeFormat=timeFormat; SimpleDateFormat sdf = new SimpleDateFormat(theTimeFormat); sdf.setTimeZone(TimeZone.getTimeZone(tmz)); GetTimeStr(timeStr); GregorianCalendar time=new GregorianCalendar(yyyy, mm-1, dd, hh, mi, ss); return sdf.format(time.getTime()); } Please help.

Software Development java
Member Avatar for JamesCherrill
0
344
Member Avatar for themaj

I have a database table that is a catalog of each day of business (DOB) for my 3 'stores' ranging over a year. Other than the Store ID and DOB, all other data here is irrelevant for this discussion. The data entry of this table is not necessarily in chronological …

Software Development vb.net
Member Avatar for Reverend Jim
0
308
Member Avatar for Aurax

Hi all I am trying to write a program to recognizing word or phrase is a palindrome or not. Please help me Regards Aura

Software Development visual-basic
Member Avatar for Reverend Jim
0
538
Member Avatar for zdneth

I would like to ask on how to do calculations and saving the result and retrieve again just like making a deposit and withdrowal in banking system. i really dont know how to do so.. i am trying to formulate some codes but it just don't work. Pls help. I …

Software Development java sqlite
Member Avatar for IIM
0
255
Member Avatar for Papa_Don

Group, I've read through the tutorial regarding Listviews and SQL's (http://www.daniweb.com/software-development/vbnet/code/445801/avoiding-sql-injection-attacks). Thanks for the article. It was very imformative. So I thought I might try this with the project I'm doing. I really like how these listview look and what they can do. But I realize I need to know …

Software Development listview sql vb.net
Member Avatar for Papa_Don
0
159
Member Avatar for Potgiesh

Hey guys i'm having a lil trouble with object serialization. student * s = new student("Mike",200014); ofstream ofs("student.dat",ios_base::out | ios_base::binary); ofs.write((char*)&s,sizeof(s)); ofs.close(); If student was a class with attributes `studentName:string` and `studentNumber:int` would the above code write the object pointed by s to the file `student.dat` ?

Software Development c c# c++
Member Avatar for rubberman
0
208
Member Avatar for krystosan

how should i readout data from shell to python script variables.. ? process = subprocess.Popen("rsh botham 'ps -eo fname | grep sublime'",shell=True, stdout=subprocess.PIPE) process2= subprocess.Popen('hostname')

Software Development python
Member Avatar for krystosan
0
335
Member Avatar for krystosan

parser = argparse.ArgumentParser('Utility to display SyncId information.') parser.add_argument('ids', help='list of ids to dsiplay information related to them.') becuase if i pass more than one value to the function from commandline , i get error of multiple values being passed saying error: unrecognized arguments: second third the first one goes through …

Software Development python
Member Avatar for Gribouillis
0
25K
Member Avatar for tubzz

menu driven program to perform the following stack operations using a linked list: push pop and display elements. #include<iostream.h>//header file i/o stream flow #include<conio.h> class Stack { int A[10]; int top; public: Stack() { top=-1; } void push(); void pop(); void show(); }; void Stack::push() { int x; cout<<"Enter the …

Software Development c++ file-stream linked-list
Member Avatar for NathanOliver
0
204
Member Avatar for shanki himanshu

why this [code](http://ideone.com/hfYD8V) is giving me runtime error?

Software Development c++
Member Avatar for shanki himanshu
0
137
Member Avatar for rancosster

I have a problem with creating drag and drop in Swing. I have written class that represents the toolbar item here is the code shortened code for it: public class ToolbarItem extends javax.swing.JToggleButton implements IToolbarItem, Transferable, DragSourceListener, DragGestureListener { private ModelEquivalent _modelEquivalent; private DragSource _dragAndDropSource; private TransferHandler _itemTransferHandler; public ToolbarItem(ModelEquivalent …

Software Development java java-swing
Member Avatar for rancosster
0
461

The End.