132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for steveh000

Hi guys I have been attempting to get my software to create new records in my database. For some reason something that should be simple is telling me my syntax is wrong on this line [code] String ex = "INSERT INTO `client_net_score`.`brands` (`id`, `brand`) VALUES (NULL, '"+bra+"');";[/code] so the string …

Software Development java sql
Member Avatar for steveh000
0
205
Member Avatar for daviddoria

Can anyone explain why this doesn't work? [code] #include <iostream> class Parent { public: virtual int Add(int a, int b) = 0; int Add(int a) { return this->Add(a,a); } }; class Child : public Parent { public: int Add(int a, int b) { return a+b; } }; int main() { …

Software Development c++
Member Avatar for mike_2000_17
0
219
Member Avatar for pspwxp fan

I'm learning C++ from the book C++ Primer Plus. At the end of the chapter on loops, they want us to design a structure, allocate adequate memory for an array of such structures using new, then feed input data to it. I got this code: [CODE]#include <iostream> using namespace std; …

Software Development c++ data-structure
Member Avatar for embooglement
0
136
Member Avatar for ajay_p5

Dear All I have two files having values like this: File1: 10.1103/PhysRevA.10.2325 1 10.1103/PhysRevLett.32.584 2 10.1103/PhysRevB.13.4845 3 File 2: having comma separated values like this: 10.1103/PhysRevA.10.2325,10.1103/PhysRevLett.32.584 10.1103/PhysRevB.13.4845,10.1103/PhysRevLett.32.584 I want the result two be like this: 1 2 3 2 I am using this code but have not be able to …

Software Development perl
Member Avatar for k_manimuthu
0
321
Member Avatar for darkroad

Assuming that we enter the integer value is 5689798. Summing up the digits gives 5+6+8+9+7+9+8+8 = 58 that contains more than one digit, so we repeat the process: 5+8 = 13. we repeat until we got one digit: 1+3 = 4 . The final answer is 4. I don't know …

Software Development c++
Member Avatar for ananda2007
0
168
Member Avatar for ^Y^ nobody ^Y^

Hi, I'm trying to make a program that search strings in a file and output them (or others). My problem is, how to output a file line !? Here is my code... [CODE]string str; string str2 = "hate"; int i; ifstream file ("file.txt"); for (int index=1; index<=10; index++) { getline …

Software Development c++ file-system
Member Avatar for amrith92
0
145
Member Avatar for Stefano Mtangoo

When you think of Media player, you need beautiful look n feel. I know GIMP can do alot. But Skin in wxPthon? I don't think it is possible. So I thought and thought then I came with this Idea. Create panel with Image as background and then Load wxBitmaps and …

Software Development python
Member Avatar for Beat_Slayer
0
457
Member Avatar for shena

Hi, I created tables in ms access whereby all the tables have index. In a table, if I delete a record (lets say index number 10) and then write a new record through program, the new record doesn't follow the last running number (where last index is now 9, new …

Software Development visual-basic
Member Avatar for kinwang2009
0
108
Member Avatar for SHENGTON

Hello, I got working code of Linked List here. But I having a problem with adding an item. I added four numbers in the Linked List. First, I added 2 then 8 then 4 and the last one 16. The result would be like this: [IMG]http://i168.photobucket.com/albums/u162/SHENGTON/display-1.jpg[/IMG] What I want to …

Software Development c linked-list
Member Avatar for kings_mitra
0
182
Member Avatar for anitha10

i hav a menustrip and created mdi forms in this i hav child forms, i want to open one child form and hide the remaining child forms. Give me the solution for this question

Software Development c c# c++
Member Avatar for anitha10
0
204
Member Avatar for rebellion346

Hey guys. I just signed up and was hoping someone could help me out here. So for this program that's an assignment for my CS 1410 class.There's 2 dices and im suppose to do 1 million rolls. The program is suppose to calculate percentage of how many times the following …

Software Development java
Member Avatar for rebellion346
0
495
Member Avatar for acejhon

helo guys good day... i have a problem in python programming... im new to this langauage.. im having a bit problem on creating a program in python that would determine if the integer is divisible by 3 or not without using a modulus? im glad if you can help me …

Software Development python
Member Avatar for woooee
0
82
Member Avatar for laughnan

I am working on a java applet that sends information from the applet to a gmail using JavaMail. I downloaded the JavaMail package and using the mail.jar file it [B]does[/B] send to the email from my Eclipse workspace. However, when I ftp the files (ContactForm.java, ContactForm.class, mail.jar, and test.html) to …

Software Development java session web-server
Member Avatar for laughnan
0
417
Member Avatar for prathoven

I have problem in opening the project in Visual Studio 2005... Any help is appreciated...Thanx.:-/

Software Development visual-studio
Member Avatar for prathoven
0
77
Member Avatar for moonw3ll

Will atoi() convert the convertible characters in a string? I mean, in this problem, [code=c]post[20]="822*/3+2"[/code], if i write [code=c]atoi(post)[/code], will it convert the numerical characters to int? And how about the operators?

Software Development c
Member Avatar for gerard4143
0
84
Member Avatar for kuchi

Hi, We have a date input come in the format of YYYYMMDD, ex: if the date comes as 19980224, then its good else if the date comes as 19982402, then we need to raise exception we need to validate this date format. can you please guide me how to do …

Software Development python
Member Avatar for kuchi
0
130
Member Avatar for signum89

I already have an infix to postfix converter, now I want to get the answer from the postfix notation. Here is my code to evaluate a given postfix notation and (hopefully) get the answer: [CODE=java] public class testEVAL { private StackArray SA; private String input; private int postfixEVAL; //start constructor …

Software Development java
Member Avatar for NormR1
0
225
Member Avatar for moonw3ll

[CODE]strcpy(post[j],in[x]);[/CODE] Just what is wrong with this code of mine? in[x]='4' But it doesn't copy the value to post[j]

Software Development c
Member Avatar for abhishek das
0
103
Member Avatar for ninjaimp

Hi Im trying to position a window with MoveWindow() API but it just keeps hiding the window and it has to be maximised to be able to see it. The code im using is [CODE] Public Declare Function MoveWindow Lib "user32" _ (ByVal hwnd As Long, _ ByVal x As …

Software Development api vb.net
Member Avatar for JohnTheGrateful
0
236
Member Avatar for gkkmath

Hi Experts, I'm writing a C program (cut/paste below) to establish a TCP socket connection from my Mac Pro to a Windows XP-based test instrument sitting next to it over LAN (Ethernet). The program compiles without any warnings or errors. But executing the code using GNU Debugger, I can see …

Software Development c unix
Member Avatar for gkkmath
0
170
Member Avatar for badboy11

I need some help understanding how the exception handling flow of code works. I have written a sample program that has exception handling in it. There are two classes here: My custom Array class and the Main.cpp class to implement and test the Array class. Inside the main() method, I …

Software Development c++
Member Avatar for badboy11
0
143
Member Avatar for ia2196

HI, I am trying to make a GUI A that has many rows of data. I right click on gui A and open GUI b that edits the row in GUI A i clicked on. Then i click save on GUI B . and changes are reflected in GUI A. …

Software Development c c# c++ gui
Member Avatar for ddanbe
0
100
Member Avatar for bertrand

hi every one am looking a way to write a simple vb exe written in notepad where the function would be: -when the file open an image pops up. -i don`t want it to have any window around it i just want a close button that would be on the …

Software Development visual-basic
Member Avatar for sanjeevarao
0
115
Member Avatar for lisa.wells7

Hi I am new to Java and need some help with a call to a private helper method. The helper method has a arraylist and char in the argument. Helper Method signature: [ private List<aClass1> getDancers(List<aClass1> aList, char c) ] Here is the call to the above helper method within …

Software Development java
Member Avatar for lisa.wells7
0
207
Member Avatar for manoyanx

hello, i'm new here and i'm also new in VB.Net and SQL Server 2008. I just got this error while creating my own login form. It generates an error "Invalid Column name manoyanx" where 'manoyanx' is the string i am querying in the database. Here is my snippet : [CODE]Dim …

Software Development open-source vb.net
Member Avatar for jbisono
0
183
Member Avatar for tarakant_sethy

I do have some doubts and i need help from you. When we call a function which is virtual from a base class pointer to which the address of derived class object, it sees where vpointer, from vpointer it gets the address fo virtual table, manipulate offset and call the …

Software Development c++
Member Avatar for sanjeevarao
0
88
Member Avatar for EdAtTheAirport

This is from the book: [I]C++ Weekend Crash Course[/I], pg 142. It is designed to concatenate two strings, and put a hyphen in the middle. It compiles; it works, but I don't understand why it works. The two strings are entered in main() as szString1 and szString2. During execution, they …

Software Development c++
Member Avatar for arkoenig
0
202
Member Avatar for SeekAnswers

Good day, I have been trying to add a new record to the Access Database that has already been connected to the Visual Basic Application (Using Visual Studio 2005) that I have been developing, using the DataSource and the DataAdapter objects, though I'm able to add an Insert query and …

Software Development c# visual-basic visual-studio
Member Avatar for kei1412
0
543
Member Avatar for idontknow19

:)PLEASE RESPECT MY THREAD..Thank you for sharing your time and effort..thanks to the code Java Experts can you share to me some codes or program that will determine VALID or INVALID using the parenthesis symbol() inputs. The code must use Stack and it also tell what is the cause why …

Software Development java
Member Avatar for jon.kiparsky
0
129
Member Avatar for Duki

Can someone remind me why I can't do this: [code=c++] int s = b.Activate(war.get_tp(), damage, 50); //prototype int Activate ( int &tp, int weaponDamage, int attack ); [/code] I get an error at war.get_tp(). It says cannot convert param 1 from int to int&. I need it to be a …

Software Development c++
Member Avatar for Duki
0
182
Member Avatar for gilmarP

Hi, Can anybody give me a hint on how to add a counter inside the logfile? For example, if at first, the log file was created, it will write the current counter number, let say Log1. Everytime the application is open/launch the loop start and writes Log1, Log2, Log3, Log4 …

Software Development c++ file-system ios
Member Avatar for NicAx64
0
222
Member Avatar for Auraomega

Trying to write a puts like subroutine in assembly but failing miserably. I'm using BIOS calls only (I.E. I'm not running another operating system). The code is using Intel syntax. What I have so far is: [CODE=asm]; [BITS 32] [GLOBAL hello_world_asm] ; ; a very basic puts function without the …

Software Development assembly operating-system
0
53
Member Avatar for bleedi

Hey, I've got a bit of a problem: [CODE] vector<BaseClass*> stuffvector; BaseClass* temp = new DerivedClass(par_a, par_b); stuffvector.push_back(temp); delete temp; [/CODE] This causes the program to crash. I have virtual destructor, so the DerivedClass's destructor should be called just fine. Does it have something to do with the vector? 'Cause …

Software Development c++
Member Avatar for mrnutty
0
132
Member Avatar for glenndr_15

Greetings! Just wanna ask a sample program for visual c++. Thanks Best regards, glenndr_15

Software Development c++ first-post
Member Avatar for mrnutty
0
184
Member Avatar for buster2209

In order to arrange data in a listview I can either use the properties panel or use the following code; [CODE]listView1.Sorting = SortOrder.Descending;[/CODE] How can I do a SortOrder for the [I]second[/I] column? eg; [CODE]listView1.columnHeader2.Sorting = SortOrder.Descending;[/CODE] Thanks in advance!

Software Development listview
Member Avatar for Momerath
0
340
Member Avatar for glenak

Hi, for any of you who have done some java programming in cryptography I need your help. I'm trying to right and blinding and unblinding procedure, however at the final stage I should get a true, but I'm getting a false. If you know what's wrong, can you point it …

Software Development java
Member Avatar for glenak
0
144
Member Avatar for ninjaimp

Hi Im trying to to simply list all security groups from active directory as i will then be doing checks on folders with the mathcing security group. I can list all the users from active directory with this: [CODE] Dim myDirectoryEntry As DirectoryEntry = New DirectoryEntry(String.Format("LDAP://DC=domain,DC=org")) Dim mySearcher As DirectorySearcher …

Software Development regex vb.net
Member Avatar for master0418
0
500
Member Avatar for Jackk123

I know there are a lot of topcs. I was searching for what i needed.But as i sow there wasn't anything that i can specifically use. I need a short code that generates 10 random numbers. Anyone help?

Software Development c++
Member Avatar for mrnutty
0
108
Member Avatar for mrnutty

Just a beta of what I was working on lately. It evaluates mathematical expressions like [i]2*3[/i]. Anyways, its explained in the program. Report of any bugs would be great because I haven't tested it out that much. Without further ado, you can download the program [URL="http://uploading.com/files/ef3f69c5/ExpressionEvaluatorBETA.zip/"]here[/URL], [URL="http://www.easy-share.com/1912008094/ExpressionEvaluatorBETA.zip"]here[/URL] or [URL="http://www.mediafire.com/?69oo679h46sgtq2"]here[/URL]. Try …

Software Development c++
Member Avatar for mrnutty
0
99
Member Avatar for Nfurman

Hello! [CODE] private void btnRecord_Click(object sender, EventArgs e) { //try //{ Random num = new Random(2); XmlDocument xmlDoc = new XmlDocument(); XmlElement contact = xmlDoc.CreateElement("contact"); XmlElement name = xmlDoc.CreateElement("name"); XmlElement familyname = xmlDoc.CreateElement("familyname"); XmlElement momos = xmlDoc.CreateElement("momos"); XmlAttribute contactid = xmlDoc.CreateAttribute("id"); contactid.Value = num.ToString(); XmlText firtnametext = xmlDoc.CreateTextNode(tbName.Text); XmlText lastname …

Software Development xml
Member Avatar for hielo
0
107
Member Avatar for W1ND0W5

Me and a friend are making an app which we need to play a sound when Form1 is started. How do we do this? I don't mind code.

Software Development vb.net
Member Avatar for W1ND0W5
0
252
Member Avatar for D33wakar

Can anyone provide information on available gui c toolkits?

Software Development c gui
Member Avatar for gerard4143
0
110
Member Avatar for Joe Shmoe

I was looking at the following site because I am interested in making a basic-like interpreter in c. Can someone explain how the switch case works in this particular program? You probably need to read the code to know what I mean. I know how to use switch case, just …

Software Development c
Member Avatar for Joe Shmoe
0
3K
Member Avatar for ehrendreich

I am working on validating a combo box. This does have a list of possible values but also allows for editing. So for example if the user does not select one of the available cities in the list they can type it in. I have tried using the validation event …

Software Development vb.net
Member Avatar for ehrendreich
0
166
Member Avatar for n1220

I am trying to insert text to image, assignment only allows me to use load, save, getpixel, and putpixel. Details about letters, numbers, punctuation is given in Imageproc code which basically are dictionaries. But I am getting this error after running: pix[10+index, 15] = letters[value] SystemError: new style getargs format …

Software Development image python
Member Avatar for vegaseat
0
461
Member Avatar for tn2130

Hey everyone. Im new to java and having some problems. The main idea is to connect to a website and collect information off it and store it in an array. What I want the program to do is to search the website find a key word, and store what comes …

Software Development java
Member Avatar for NormR1
0
285
Member Avatar for BonaDrag

I want to display all e-mail addresses from my database in a TextBox. The reason I want to use a TextBox is that I want them in a single row, separated by "; " and that's not possible in a ListBox (right?) which I was using from the beginning. So …

Software Development display
Member Avatar for cgcgames
0
151
Member Avatar for slamdunk

I dont have much experience with javascript. Please provide javascript to create something like the image below: [url]http://www.coolmicroscope.com/java.jpg[/url] "data:text/html,<html>¶ <head> <script type='text/javascript'> function blinkIt() { if (!document.all) return; else { for(i=0;i<document.all.tags('blink').length;i++){ s=document.all.tags('blink')[i]; s.style.visibility=(s.style.visibility=='visible')?'hidden':'visible'; } } } </script> <style> html, body { height: 100%; width: 100%; } body { margin : …

Software Development java javascript
Member Avatar for peter_budo
0
175
Member Avatar for azfarhus

I am trying to read some data from a db but I am getting an error on oledbdatareader. here is my code. [CODE]OleDbConnection conn = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\Power User\Desktop\Domains.accdb;Persist Security Info=False"); conn.Open(); OleDbCommand cmd = new OleDbCommand(); cmd.Connection = conn; //cmd.CommandText = "Select * from Domains"; cmd.CommandText = "Select * …

Software Development open-source
Member Avatar for PierlucSS
0
91
Member Avatar for jemz

hello, hi can you help me what method to use to count how many words in a sentence... hoping for your positive responds thank you in advance...

Software Development java
Member Avatar for jon.kiparsky
0
126

The End.