132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mikkime23

[LEFT]Hey guys. i am trying to insert data from a form to a sql database, but this error keeps coming up. [code]Incorrect syntax near ',' [/code] Here is the code. [code] Dim AddSwimmer_comm As New SqlCommand( _ "INSERT INTO [MasterRecords] ([APASCID], [FullName], [Gender], [DOB], [21m], [25m], [50m], [100m], [4x21m], [4x50m]) …

Software Development sql vb.net
Member Avatar for Joeromine
0
173
Member Avatar for pcgamer2008

Hello World ! Can anyone tell me how to put a '+' character at the screen centre in 3D World space..It should stay at the centre while moving camera..I don't want to use glutWarpPointer()...anyone who can tell me ..when I move my camera it must be at the screen centre..

Software Development c++
Member Avatar for pcgamer2008
0
114
Member Avatar for Ahmed sunny

Write a program that emulates the DOS COPY command. That is, it should copy the contents of a text file (such as any file) to another file. Invoke the program with two CPP command-line arguments—the source file and the destination file—like this: C>ocopy srcfile.cpp destfile.cpp In the program, check that …

Software Development c c# c++ oop
Member Avatar for Arbus
0
962
Member Avatar for jooorj

Hi everybody I am Joorj I need to ask about a fine dll or code or components to receive emails for multi users, because I work for a company that need a software to receive all emails for their employees and save them back into SQL Database. without using manual …

Software Development c#
Member Avatar for jooorj
0
220
Member Avatar for wiredtoawall

I cannot read the info I stored into the files and I need help. Whenever I give the user the option of saving more records or simply retrieving a record, it always stops on the retrieving part. [CODE] Type Str25 = String[25]; TBookRec = Record Title, Author, ISBN : Str25; …

Software Development pascal
Member Avatar for wiredtoawall
0
179
Member Avatar for maddenfong

I am not trying to use a setup.py, i just want to use the basic script. the website says as an example: [code] cxfreeze hello.py --target-dir dist[/code] thanks in advance! I tried this but it did not seem to work: (The Command Line is in the folder with the Shooter.py) …

Software Development python
Member Avatar for vegaseat
0
158
Member Avatar for wildplace

so..i found this on wikipedia but i dont really get what dist, previous, alt mean in here.. [CODE] 1 function Dijkstra(Graph, source): 2 for each vertex v in Graph: // Initializations 3 dist[v] := infinity ; // Unknown distance function from source to v 4 previous[v] := undefined ; // …

Software Development algorithm c++
Member Avatar for mike_2000_17
0
222
Member Avatar for s11049151

hey, I have to write a program that asks the user for an input amount (in cents) and the highest denominations of change (1c,5c,10c,20c & 50c). With these 2 inputs, the program then finds the distinct ways in which the change for the given amount can be made using the …

Software Development c c# c++
Member Avatar for daviddoria
0
271
Member Avatar for bangor_boy

Hi, Trying to get this bit of code to work so that a train goes up the track, leaves the track and then a train comes down the track, leaves and then a train comes up the track and so on. Only one train is allowed to go onto the …

Software Development java multithreading
Member Avatar for NormR1
0
285
Member Avatar for themanman

hey i am new here i am working on a school project where i am building an applet.. i have encountered a problem i cant solve, i have 2 classes... the first class i very simple it has to methods which return an string array for table column and Object …

Software Development gui java java-swing
Member Avatar for mKorbel
0
351
Member Avatar for Amr ElGohary

Design and develop a program for balanced delimiters checking . Use the stack class defined in STL. Your program should take from the user the name of the C++ program he wants to check and then opens it and processes its text and issues a message saying that: You the …

Software Development c c# c++
Member Avatar for WaltP
0
149
Member Avatar for aanders5

So I imported a project over from my school comp, and it seems to run ok, but I got these errors, and i don't know what they mean, or how I can fix them. [IMG]http://i421.photobucket.com/albums/pp296/rskom/issue.png[/IMG] Thanks for the help! -Austin

Software Development java
Member Avatar for kane06
0
126
Member Avatar for piecykoos

Hi there, I have been given this question to complete but I can't seem to get my code working properly. I'm very new to C# so sorry if i come across as stupid! Here is the question... Create a class that represents the grade distribution for a given course. In …

Software Development c++
Member Avatar for YouGotCaught
0
1K
Member Avatar for virusisfound

I have done some calculations in two textbox data type is double like 9/8 The answer is in point [B]1.125[/B] how can i make it in complete value. like if it is less than .5 it take 1 as complete number. or if the answer is above .5 then it …

Software Development mathematics
Member Avatar for virusisfound
0
141
Member Avatar for NipunaDK

Hello. I am New Here and This is my First Post :) I'll Start with a Question, That is I know java, But not much. And I know how to build a Program if some one tell me to make a program that calculates area of a Square and something …

Software Development java
Member Avatar for NipunaDK
0
182
Member Avatar for ibn_sumal

Hello guys i've been learning java for a short while and have come upon a problem which i cannot seem to solve. I have a boolean array of 11 values, now i want to prompt the user into entering the number 1 or 2. If the user enters 1 I …

Software Development java
Member Avatar for jon.kiparsky
0
542
Member Avatar for jarograv

I have this code: [CODE]import csv tally=0 i=0 n=1 numb=2 count = sum(1 for row in csv.reader( open('cities.csv') ) ) cityname = csv.reader(open("cities.csv", "rb")) citynames = [] citynames.extend(cityname) for data in citynames: citynames.append(data[0]) tally+=1 if tally>=count: break tally=0 cities_x = csv.reader(open("cities.csv", "rb")) cities_list_x = [] cities_list_x.extend(cities_x) names = [] for …

Software Development microsoft-office python
Member Avatar for woooee
0
304
Member Avatar for cppgangster

Hi dudes, does anyone know where is the problem this my code: [CODE]void CMyListBox::loadSources(CMyListBox::eInputMode eMode,const std::vector<wchar_t>& coll) { wchar_t *pBuffer=new wchar_t[coll.size()]; std::copy(coll.begin(),coll.end(),pBuffer); wchar_t zodis[20]; while (swscanf_s(pBuffer,L"%s",zodis,20)) MessageBox(zodis); }[/CODE] the imput(pBuffer) is this string "šešios žąsys su šešiais žąsiukais." swscanf_s only keeps reading the same word "šešios" ...

Software Development c++
Member Avatar for Narue
0
155
Member Avatar for ThrustinDuffman

Hello. I have been out of programming in C++ for about a year now (around the time I took my last C++ class) and I am wanting to get back into it. So I decided to make a rock, paper, scissors game to refresh my memory but I am running …

Software Development c++
Member Avatar for Narue
0
92
Member Avatar for ankit.4aug

[CODE]#include<stdio.h> #include<iostream.h> int main() { int x,y,z; x=y=z=5; z=++x||++y&&++z; printf("x=%d,y=%d,z=%d",x,y,z); } [/CODE] why the output is x=6,y=5,z=1?? shouldn't it be x=6,y=6,z=1

Software Development c++
Member Avatar for arkoenig
0
201
Member Avatar for Tankadin

Hi all I am having a problem with my method in my linked list class to split linked lists into two sublists. The issue is that for some reason my first sublist has 3 more elements than the second sublist when I split a linked list with a total of …

Software Development java linked-list
Member Avatar for jon.kiparsky
0
160
Member Avatar for missc

what is the pseudo code to get data from the database and view it in your application??

Software Development
Member Avatar for Mitja Bonca
0
99
Member Avatar for yamini222

Hi, I have a panel which contains numerous dynamically generated datagridviews. Everything is working pretty fine, but for instance if there are three datagridviews in that panel. At least one row is selected as default in each datagridview, So what I want is to get colored only user selected row …

Software Development
Member Avatar for yamini222
0
131
Member Avatar for cabosun

So im setting up this gui, but im getting this Nullpointer exception: [CODE]Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at addressbook.dnDisplay.jButton1ActionPerformed(dnDisplay.java:222) at addressbook.dnDisplay.access$600(dnDisplay.java:22) at addressbook.dnDisplay$7.actionPerformed(dnDisplay.java:128) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6289) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6054) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4652) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4482) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577) at …

Software Development gui java java-swing
Member Avatar for jon.kiparsky
0
343
Member Avatar for vivekagrawal

I have a form1 and form2. in form1 there is a textbox which consist any department. and the another textbox consist room related to only these depatment. besides room textbox there is a searchbutton. which opens form2. form 2 consist a gridview. and this grid view should be filled by …

Software Development
Member Avatar for SunnyVunny
0
806
Member Avatar for noctiskram

the only problem in this code is i must use longer username and password like for example dani and the password is web, not d and w only. this is very easy but i didn't make it, please help me with this. In this program, after you log in you …

Software Development c++
Member Avatar for arkoenig
0
881
Member Avatar for solarissf

Hi All, I'm trying to return my username in c#, but my Fullname... like John Smith. Right now I am only getting mt actual login to windows, does anyone know how to do this? string strUsr = WindowsIdentity.GetCurrent().Name.ToString(); MessageBox.Show(strUsr); Environoment.username also brings back login... not full name any suggestions???

Software Development
Member Avatar for solarissf
0
112
Member Avatar for batchprogram

I'm doing some homework for a computer systems class and all is well except this one problem that I can't seem to find a solution to due to the limitations. The problem requires me to write a function that performs addition on 32-bit signed integers but saturates the result to …

Software Development c
Member Avatar for rubberman
0
2K
Member Avatar for ceyesuma

Below is how I set up my JFormattedTExtField. The database (derby) will take the format no prob. The db will then change the form to yyyy-MM-dd If I follow that format from begining to end the JFormatted Field will be fine. However, when a date is queried from the database …

Software Development java
Member Avatar for ceyesuma
0
94
Member Avatar for superjj

Hi I'm working on a project. i'm using c++ gui windowns forms. when people press the red cross, then the program need to do something before exiting the program. can someone tell me how to make this. what event I need to use. thanks in advance

Software Development c++ gui
Member Avatar for superjj
0
134
Member Avatar for solomon_13000

I override the equals method in the Friends class, yet I do not see the value "Spring 2002". Rather I see the value "null" instead. Did I miss something in my code? [CODE] package com.n2n.blotter.core.junit; import java.util.*; public class Birthdays { public static void main(String[] args){ Map<Friends, String> hm = …

Software Development java
Member Avatar for JamesCherrill
0
150
Member Avatar for cretaros

i have encrypted some login credentials in mysql database using md5, now i want what i input as login credentials to be encrypted automatically to ease comparison with the encryption in database: This is how far i have done, no errors bt i cant login anymore [CODE]try { Class.forName("com.mysql.jdbc.Driver"); Connection …

Software Development encryption java
Member Avatar for mKorbel
0
140
Member Avatar for jimmymack

// student.cpp - Script 9.7 #include <iostream> #include <string> // Declare the Person class. class Person { public: Person(std::string theName); void introduce(); protected: std::string name; }; // Declare the Teacher class. // Teacher inherits Person. class Teacher: public Person { public: Teacher(std::string theName, std::string theClass); void teach(); void introduce(); protected: …

Software Development c++
Member Avatar for jimmymack
0
137
Member Avatar for novice20

Hello, can anyone help me regarding how this can be done? I need to declare an 'array' which has 95 indices, and each entry holds 8 bits each of data. am doing this with: PORT_MAP_LEN = 764/8 bit_map_len = [0]*PORT_MAP_LEN but it is giving me list index out of range …

Software Development python
Member Avatar for novice20
0
521
Member Avatar for jaango123

Hi All, We have to create a schema for the below. 05 :LSRR:-CARD-INFORMATION-GROUP. 10 :LSRR:-CARD-INFORMATION-COUNT PIC 9(04). 10 :LSRR:-CARD-INFORMATION OCCURS 1 TO 1000 TIMES DEPENDING ON :LSRR:-CARD-INFORMATION-COUNT 15 :LSRR:-CARDSEQUENCENUMBER PIC 9(04). 15 :LSRR:-CARDNUMBER PIC X(19). 10 :Next field The field LSRR:-CARD-INFORMATION occurs 1000 times depending on the LSRR:-CARD-INFORMATION-COUNT. Does anyone …

Software Development xml
Member Avatar for jaango123
0
111
Member Avatar for xanawa

i have buttons and i would liek to make shortcuts from the keyboard to press them. eg. btnAdd = CTRL+A

Software Development
Member Avatar for Momerath
0
130
Member Avatar for dreadfulalpha76
Member Avatar for P.manidas
0
83
Member Avatar for Leodumbi

Hy guys Can anyone help me on the below? I created a small application that I'm able to add items from an access DB to a DataGridView. Now, My questions is: suppose that I have a list of item in this DGV, containing name and Quantity. Now I would like …

Software Development vb.net
Member Avatar for Leodumbi
0
378
Member Avatar for yongj

So one of my assignments is to code a MAKEFILE program. Though we discussed this over in class I'm not sure exactly sure how it works. Here's one of the examples we went over: [CODE] ----------------------------------------------------------------------------- # # DELDIR makefile # Old-style MAKEFILE format. Microsoft MAKE V1.x # Similar to …

Software Development c
Member Avatar for zaraki
0
164
Member Avatar for jemz

Hello can you help me please, Is it possible to load only 30 data on my listivview?after i run my program?can you helop me please. Thank you in advance and I am hoping for your positive response

Software Development listview visual-basic
Member Avatar for jemz
0
210
Member Avatar for ajwest85

Im using awk script programming in the END state if i set the for loop i in name it would print out the values of the name array but not the sales array, If i set the for loop i in sales it would print out the values in the …

Software Development shell-scripting
Member Avatar for thekashyap
0
150
Member Avatar for fclopez

Hi , A simple stupid question: I am to read the contents of a file that goes this way RXbytes = 0 b TXbytes = 0 b RXbytes = 3 Kb TXbytes = 2 Kb RXbytes = 119 Kb TXbytes = 6 Kb RXbytes = 189 Kb TXbytes = 5 …

Software Development c++
Member Avatar for jonsca
0
485
Member Avatar for xanawa

Hi, I have a value in a string with a semicolene and i would like to remove that semi colene and put a dot. [B]FROM[/B] string a = 10:12; [B]TO[/B] string a = 10.12;

Software Development
Member Avatar for Mitja Bonca
0
118
Member Avatar for lpmike

Hi, i have a card number and i convert it into hexadecimal. After that i wan to set the format to 6 digit if the hexa card number has a length =5. so how i'm going to set the format? [ICODE] Dim value As Long value = Convert.ToInt64(CardNo) dim CNo …

Software Development vb.net
Member Avatar for Luc001
0
190
Member Avatar for saffan

Hi this is my first week in vb.net I m using visual studio 2010, I am trying to show the week days in Combo box but its not showing when i run it. plz help! Class MainWindow Private Sub ComboBox1_SelectionChanged(sender As System.Object, e As System.Windows.Controls.SelectionChangedEventArgs) Handles ComboBox1.SelectionChanged Dim listofdays As …

Software Development vb.net visual-studio
Member Avatar for Mitja Bonca
0
123
Member Avatar for lpmike

Hi all, how to get values from checkbox in datagridview and transfer into arraylist? i'm using datagridviewcheckbox column..new checkbox will be added into datagridview when it populate from sql query. the example table is shown as below. CardNo|Name|Door Access|checkbox1|Lift Access|checkbox2 02233 |Lyn |Testing | checked | - |unchecked 01999 |Matt| …

Software Development vb.net
Member Avatar for Mitja Bonca
0
302
Member Avatar for xanawa

how can i change the textcolor of the datetime picker from code?

Software Development
Member Avatar for xanawa
0
288
Member Avatar for Naveed_786

Hello to all, How to print the contents of textboxes in proper formate like Student Name ABC Father Name BDC DOB 14/02/2011 Please help if any body know Thanks in advance.

Software Development vb.net
Member Avatar for Luc001
0
185
Member Avatar for computerbear

Hi, I am trying to create a form application with console. I label my text box using, this.Test = "Assignment 8". There is a button saying press me. When button is pressed, the box that comes up needs to say Click me in the title area. I can't find anything …

Software Development
Member Avatar for computerbear
0
2K
Member Avatar for Prahaai

Greetings, I'm using PyQt4 and trying to add a QGraphicsItem exactly in the center of the current screen, by clicking a menu button. So each click will add an item in the center of my screen. My QGraphicsScene is very large (10k X 10K), so the QGraphicsView cannot show it …

Software Development python qt
Member Avatar for Prahaai
0
1K

The End.