132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for saintchuks

iam new in C#, am creating a website using asp.net but i am facing some problem. the problem is this i want to a web application that can retrieve data from mysql database and display the data in textboxes. the concept is this i want a client type his/her username …

Software Development display mysql
Member Avatar for Lucaci Andrew
0
244
Member Avatar for zoro007

Hello, i want ask somthing about mysql in multi pages i hope someone help me and sorry about my English this code works good but there problem if i used it with this tybe sql = "SELECT * FROM emaillogs ORDER BY id DESC" cursor.execute(sql) results = cursor.fetchall() if page …

Software Development python sql
Member Avatar for zoro007
0
243
Member Avatar for Neelam_1

why we can't declare a static variable incide local class(class inside a function) ?

Software Development c++
Member Avatar for Neelam_1
0
276
Member Avatar for 2384443

Hey Guys, could you tell me the different ways to write throw method (Exception Handling) in a program.. I mean like we can write BufferedReader in many ways (2 ways so far i've studied).. eg; 1. BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); 2. BufferedReader br; { br = new BufferedReader(new InputStreamReader(System.in)); }

Software Development java
Member Avatar for milil
0
245
Member Avatar for xednycrex

Hi my name is Xednyc, I'm very new to C++ since this is my first year in college, I am taking an IT course. I am currently out of ideas on what program to make, anyone could suggest an interactive, fun, yet not so simple program for a newbie like …

Software Development c++
Member Avatar for Lucaci Andrew
0
191
Member Avatar for Seba Sama

Hello, I lost some hours trying to set up wxWidgets and starting a simple program using Code::Blocks. wxWidgets is installed and built, following [this](http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef) tutorial. But when I start a new project I get into some message saying: "A matching debug configuration cannot be found in the wxWidgets directory you …

Software Development c++
Member Avatar for Seba Sama
0
2K
Member Avatar for Deep Modi

Please preview image: I want to create something like this. Red fonts is just typed using paint. (it's not software or else) I know how can I know the Size, attribute type and all so but the main quesstion is how can i create tag on windows? at the bottom. …

Software Development vb.net
Member Avatar for Deep Modi
0
293
Member Avatar for alex-i

Anyone help me to create one form with C# WPF which use LINQ TO SQL with SQL Server. WPF -------------------- Form has 2 textbox and 1 image in WPF txtFirstName txtLastName Image SQL Server Database -------------------- tblEmp EmpID - int Firstname - nvarchar(10) Lastname - nvarchar(10) Image - image, varcharmax …

Software Development
Member Avatar for Ketsuekiame
0
187
Member Avatar for Philip Carlo

an i ask for help? what is wrong with my codes thanks in advance Sub show1() Dim DReader As MySqlDataReader SqlCmd = New MySqlCommand("SELECT * FROM book WHERE accesion_num = '" & b_id & "' ", SqlCon) DReader = SqlCmd.ExecuteReader While DReader.Read accnum.Text = DReader.Item(0) isbn.Text = DReader.Item(1) txteditbooktittle.Text = …

Software Development dataset vb.net
Member Avatar for Rahul47
0
125
Member Avatar for mixelplik

I'm reading a file in line by line. At the end of the file there wackily are to carriage returns. I'm reading the lines in like this (code below) then parsing them. Because there are two wonderful returns the wonderful program crashes everytime I run it. char* ptr; ptr = …

Software Development c++
Member Avatar for Lucaci Andrew
0
192
Member Avatar for Royal_1

Assignment 1: Bank Account Class You are hired by a Canadian bank in order to develop a java application for processing withdraw and deposit transactions. The application enables staff of the bank to create new bank accounts, to process account transactions and to display the balance of a particular account. …

Software Development java
Member Avatar for Slavi
0
742
Member Avatar for ever-jolly

Hello everyone, Please can someone help me with a code to find two(2) fields at thesame time. As in with a msgbox "Enter Date" then after that "Enter Shift". Because there are two 'shifts' tied to a 'date' I will really appreciate this help.

Software Development visual-basic
Member Avatar for ever-jolly
0
304
Member Avatar for narlapavan

class A{ Vector<String> s = new Vector<String>(); } public class Vec { public static void main(String[] args) { A a = new A(); a.s.add("String1"); a.s.add("String2"); a.s.add("String3"); a.s.add("String4"); a.s.add("String5"); Vector<A> vecA = new Vector<A>(); vecA.add(a); System.out.println("Size of vector is "+vecA.size()); // here i am getting size one a.s.clear(); a.s.add("String6"); a.s.add("String7"); a.s.add("String8"); …

Software Development java
Member Avatar for scudzilla
0
284
Member Avatar for lmuller89

Hi All, I am having trouble trying to locate the problem with this code. When I run it I get the follow error "First-chance exception at 0x0FADA9E8 (msvcr120d.dll) in ConsoleApplication2.exe: 0xC0000005: Access violation reading location 0xCCCCCCC0." It seems to show an error on the dbgdel.cpp but I am completley lost …

Software Development c++ file-stream ios oop user-interface
Member Avatar for AndrisP
0
170
Member Avatar for bijoy.balakrishnan.3

I hav two tables sales (sa_no,sa_date,cu_id,total) ladger(ledger_id,cu_id,payment,payment_date) I want to display the transactions of a customer (cu_id) in one crystal report in the order of dates ,such as sa_no sa_date total ledger_id payment payment_date ie one row from sales then one row from ledger for the customer cu_id Please help …

Software Development vb.net
Member Avatar for jared.geli
0
292
Member Avatar for mixelplik

I'm trying to parse an input file line by line. I want to grab each line one at a time, put it into a null terminated char array. I can't seem to do it. I tried something like this and just got weird ass results. int q = 0; do …

Software Development c++
Member Avatar for Ancient Dragon
0
4K
Member Avatar for mixelplik

I'm trying to search for a word in an array of strings, everytime it gets to the while loop it just loops infinitely. It's getting the words and comparing just that when it gets to the second else, It just takes a fat dump. Can anyone help? So damn frustrating. …

Software Development c++
Member Avatar for mixelplik
0
142
Member Avatar for cambalinho
Member Avatar for cambalinho
0
2K
Member Avatar for akfjmalcmask

Hi guys, i am so new here, but i work c++ for 3 years but i have a hard. i have a executable file and i want to encrypt this, how i manipulate an exe file ? i have a little bit asm x86. Thanks for your comments.

Software Development c++
Member Avatar for akfjmalcmask
0
2K
Member Avatar for sk8ergirl

I've created connection on java when I run the programe I get successful message , however in the service tab next to the project tab I can't see the my database connection under the database // inside method Connection connection = null; String url = "jdbc:oracle:thin@serverName"; string name ="test"; string …

Software Development java oracle
Member Avatar for sk8ergirl
0
272
Member Avatar for Rahul47

Which one of the following is the smart, efficient and safe way to declare a string array ? And if you have any other way do suggest. char a[10]={'A','B','C'}; char a[10]="ABC"; char a[]="ABC"; char *a="ABC"; Please take into consideration the memory allocation and size, memory wasted, methods of retriving data …

Software Development c
Member Avatar for mathematician
0
131
Member Avatar for godzab

Hello all, I was wondering on how I would extract a number out of a String after a specified character. For example, if String s = "22+5+35" , how can I extract and store the numbers 22,5, and 35 in a ArrayList?

Software Development java
Member Avatar for Taywin
0
320
Member Avatar for isaacss

When writing my code in Textpad, I get the following error when I go to compile it in Java... Tool completed with exit code 2. I need help - this is all very new to me.

Software Development java
Member Avatar for Taywin
0
86
Member Avatar for Rahul47

Fairly easy pointer increment program is as follows. #include<stdio.h> int main(){ int i,a[10],*p=a; for (i=0; i<10; i++,p++){ printf("\nAddress of a[%d] is %d",i,p); } getch(); return 0; } Here is output: Address of a[0] is 2293488 Address of a[1] is 2293492 Address of a[2] is 2293496 Address of a[3] is 2293500 …

Software Development c
Member Avatar for Ancient Dragon
0
231
Member Avatar for H_beginner

I am using the gcc compiler and I am new to using flags. Can any one tell me a source for it. e.g. I wanted to use *-funroll-loops* but I dont know the proper syntax. Can any one help.

Software Development c c++
Member Avatar for L7Sqr
0
252
Member Avatar for Harsh rocks

how to make a program to make a report card

Software Development c++
Member Avatar for Labdabeta
0
129
Member Avatar for Rahul47

The expected outcome dosent agree with result. Following is the code snippet. int a,c; a=10; c=0; c=(--a)+(--a); printf("C: %d", c); printf("\nValue of a: %d", a); I expected C to be 17 i.e (9+8), but it comes out to be 16. And a becomes 8 as expected. When expression is changed …

Software Development c first-post
Member Avatar for N1GHTS
0
413
Member Avatar for hitesh suthar
Member Avatar for rubberman
0
132
Member Avatar for sohail.butt.144

I need a program which shows the number is even or odd and print the table of 2 if the any even number we enter and when we enter the any odd number the program print the table of three please help as soon as possible

Software Development c++
Member Avatar for Learner010
0
291
Member Avatar for VBnewbiecode

'i got a problem here. i want to add a new record to my database but when i click the add button an error occurs saying syntax error on INSERT INTO statement. it is placed on the da.update(ds, "studentprofile") what should i do?? here's the code: Private Sub btnadd_Click(ByVal sender …

Software Development vb.net
Member Avatar for Reverend Jim
0
200
Member Avatar for V3N0M

Hi there I am currently teaching myself C and I have to create a program with a 2d array that receives upto 5 names and prints them out. No pointers should be used :(. So I am wondering can anybody help me with this. #include <stdio.h> int main(int argc, const …

Software Development c
Member Avatar for V3N0M
0
150
Member Avatar for chrisl007

Hello, as it can be inferred from profile, I am new. I have read the community guidelines and I have done prior research. I am a very weak coder(through my own fault). However, I like to believe I firm conceptual understanding. **So What is my problem?** I have an assignement …

Software Development algorithm c++ programming-construct queue
Member Avatar for chrisl007
0
227
Member Avatar for zaim.notty

write a program using function in 'cmath.h' to demonstrate the usage of 9 commnads in cmath header file . using 'loop control structures' #thanks for any help

Software Development c++
Member Avatar for Ancient Dragon
0
99
Member Avatar for Learner010

I read about pointers and it says that array names can be used as pointer constants and pointers can be used as array names and here is an example that prove the first statement (`array names can be used as pointer constants`) #include<iostream> using namespace std; int main() { int …

Software Development c++
Member Avatar for deceptikon
0
161
Member Avatar for dr_iton

I created a three layer application with BO (Business Objects), BLL (Business Logic Layer) and DAL (Data Access Layer). I had to do some unit testing using nUnit tool. I've done that like following and works perfectly: SQL Tables: USE [Projekti_TI_1] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO …

Software Development client-server sql
Member Avatar for dr_iton
0
198
Member Avatar for Doogledude123

Alright so I'm coding a Quadratic Equation Solver to help with my Math Class. However the teacher requires each calculation to be written out. I have the solver working, however I'm not sure where to start when it comes to printing each step. I know I will need to `System.out.println()` …

Software Development java
Member Avatar for JamesCherrill
0
269
Member Avatar for IT_Techno

hi I have filled my datasetfrom my sql db then used that data to show at crystal report, when i go back again to fill it with another data it show to me the old one why ? how can i solve this problem ?? Best Regards

Software Development dataset
Member Avatar for IT_Techno
0
183
Member Avatar for Oremuss

Hi guys , I have to do simple brute force program for my homework and I dont know what to do. It should work when I put there some password(max. 4 letters for examle: azxd ) and the program should start to trying every possible combination one at time like …

Software Development c
Member Avatar for Oremuss
0
209
Member Avatar for stresstedout

Hi, I am trying to a game, and i wanted to add my images to mysql. I have managed to save and retrieve the images. I have written a code which allows me to only retrive 1 image on my jframe in a jlabel from the database, i am a …

Software Development java
Member Avatar for stultuske
0
363
Member Avatar for fx.eko

when I create a program with VB6 and I do storage program that I have made the message "System error & H80004005 (-2147467259). Unspecified error". Can you all enlighten me? thank you for your help

Software Development storage visual-basic
Member Avatar for fx.eko
0
2K
Member Avatar for castajiz_2

if (ts1.CompareTo(DateTime.Now) == -1 && ts2.CompareTo(DateTime.Now) == -1) { MessageBox.Show("...."); } the function asks for a object, i gave an object...

Software Development
Member Avatar for ddanbe
0
175
Member Avatar for fx.eko

when making a component (ocx file) of the combo box, and the wear components of the user control, then I compile it into ocx files. Once finished I include the components of it into the main program. then I do click and drag the combo box to the form, but …

Software Development visual-basic
Member Avatar for fx.eko
0
908
Member Avatar for H_beginner

Can anyone please tell me how can I do loop unroll void do_block (int lda, int M, int N, int K, double* A, double* B, double* C) { /* For each row i of A */ for (int i = 0; i < M; ++i) /* For each column j …

Software Development c
Member Avatar for H_beginner
0
295
Member Avatar for jocker403

I defined two class, one it's call Movil and the other it's call Camion which it's a derived class of Movil. The code that I am talking is: #include <cstdlib> #include <iostream> //class definition class Movil { int ruedas; float velocidadMax; public: Movil (int ruedas=0, float velocidad=0); void setRuedas (int …

Software Development c++
Member Avatar for rubberman
0
205
Member Avatar for najiawad0

I am 11 years old and I love programming, I know: PHP (A little) , JavaScript , HTML , C , C++ and Java (Just started learning). I really wanna learn Objctive-C but I couldn't find good free tutorials. Can anyone please recommend me a Objective-C tutorial? Thank You!

Software Development objective-c
Member Avatar for midynamics
0
434
Member Avatar for stresstedout

Can anyone help me to improve my code so i can add more than image to my sql database. The code i use is below: Connection connection = null; String connectionURL = “jdbc:mysql://localhost:3306/mydb”; ResultSet rs = null; PreparedStatement psmnt = null; FileInputStream fis; try { Class.forName(“com.mysql.jdbc.Driver”);//.newInstance(); connection = DriverManager.getConnection(connectionURL, “root”, …

Software Development java
Member Avatar for stresstedout
0
222
Member Avatar for bobwahler

Win 7 clients, Need to populate alternate IP with current DHCP assignment (I believe everything else will be static). It appears that PowerShell is the only way to get at the alternate IP config variables. We are wrestling with a TechRepublic PS module that could be the modified. I used …

Software Development lan-wan shell-scripting
Member Avatar for cgeier
0
285
Member Avatar for shakin

** # import a data table with space? # ** Good day! I need to read in all the data in a file within column two and export it in a file. The issue is the data is not standard and has blank fields from time to time. It also …

Software Development c printer
Member Avatar for N1GHTS
0
260
Member Avatar for kristina.densmore

I just started programming in C our first asssignment is writing an alogrithm to compute the volume of water in cubic feet, flowing through a pipe of diameter d in feet, with a velocity of v feet per second, give this fomula r=d/2 area=pi x r squared volume = area …

Software Development algorithm c
Member Avatar for cgeier
0
480
Member Avatar for shaneetra.graham

I'm buidling my own shell and I was trying to implement a history function, but was a little lost on where to start. I know i would like to use a for loop to go through list, I'm just having trouble on where to store it.

Software Development c
Member Avatar for N1GHTS
0
130

The End.