132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for aman rathi

In my program i want to execute same statement on case 3 and 5 in switch() i searched lot on google about this but get nothing please help me [CODE] case 3,5: [/CODE] I know it is wrong but if you have any idea about this than please help me.

Software Development java
Member Avatar for aman rathi
0
101
Member Avatar for nuclear

Hello. First of all i know that this was asked like a million times, but i just cant get the right answer anywhere, yes, even on google. So the thing is that i learned the C++ basics and my learning process was only in a Console Application. And now for …

Software Development c++
Member Avatar for nuclear
0
119
Member Avatar for rina khatkar
Member Avatar for mrnutty
0
160
Member Avatar for bettybarnes

hi guys i have problem with my code here is my code [CODE] Public Sub increment() Dim dr As SqlDataReader If con.State = ConnectionState.Closed Then con.ConnectionString = (strconnection) con.Open() End If Dim str As String = "Select CUSTOMERID from tbl_Customer" cmd = New SqlCommand(str, objconnection) dr = cmd.ExecuteReader While (dr.Read()) …

Software Development vb.net
Member Avatar for MUDASSAR SIEMAB
0
1K
Member Avatar for shrawansher

Hey I am a newbie to perl and I can't seem to solve this problem.My perl program executes some command files each of which create a log file in the format "server.YYYY-MM-DD.HH-MM-SS.XXX.log". After executing the command files i wish to parse through the log files created and look for errors.Could …

Software Development perl
Member Avatar for insertable
0
189
Member Avatar for skydust

i'm working on a small project where i'm storing student details in an array of structures.The admin logs in to modify these details.How do i get this data to remain permanent?(i.e the data entered should not be erased every time i re-open the program) Is there no way other than …

Software Development c++
Member Avatar for skydust
0
163
Member Avatar for uid1

I have the following XPath expression written in Java: [CODE] " pProbs = XPath.newInstance(/n-grams-sorted/n-gram[contains(.,"+content1+") or contains(.,"+content2+") or contains(.,"+content3+") or contains(.,"+content4+") or contains(.,"+content5+")]/@probability"); [/CODE] My problem is that not all of the contains() expressions return true. What I need is: If one of them returns 'false' (i.e.: there are no nodes …

Software Development java xml
Member Avatar for uid1
0
215
Member Avatar for dantinkakkar

I'm writing a java program that adds event handlers dynamically on the go on instructions by the user. My problem is, that how do I basically add them?

Software Development java
Member Avatar for peter_budo
0
144
Member Avatar for DesignGhosts

Hi guys, This might be a long shot but its worth a go....so im using LabWindows CVI, a ANSI C software development environment for "test and measurement, data acquisition, instrument control, and scientific analysis" application. Now the problem I have is running a .exe application from a button click event: …

Software Development c
Member Avatar for DesignGhosts
0
482
Member Avatar for Mike Bishop

i have a datagrid and want to format the cell background colours which is working fine. as you can see if the value of the cell is > 95 the cell goes green if the cell value is < 90 the cell goes red. i need help with anything between …

Software Development vb.net
Member Avatar for Mike Bishop
0
99
Member Avatar for vishal1949

I just wanted to know what would happen if you abuse the CharStack class by pop()ing more characters than you push()? Would it be an error of out of exception or something else.

Software Development abuse java
Member Avatar for JamesCherrill
0
227
Member Avatar for NicAx64

hi , I just using 64 bit linux with my powerfull desktop computer. and I use Scientific linux as the destro,I use the RPM binary package to install gcc. and I using nasm also. I write simple example program in a nasm assembly (free) book.And the author gives some library …

Software Development assembly c++ redhat
Member Avatar for linuser
0
3K
Member Avatar for destruct0

Hi !!! If any one can help me I'll be pleased! I have one TextBox. I entering some text in the Text Property. After that I pressing the "Enter" button and the cursor position it's going of the next line. I would like to go back the carret at the …

Software Development
Member Avatar for Momerath
0
396
Member Avatar for naffan

Hi All, I've a little problem with writing and saving to a file I'm close but I can't seem to grasp what i'm doing wrong here. Trying to save student object(s) to allstudents.txt This is my loadStudent method; [CODE]public student[] loadStudent() throws IOException, ClassNotFoundException //loads the accounts and returns them …

Software Development java
Member Avatar for naffan
0
174
Member Avatar for junharefa

I want to insert data from the textBox to MySQL Database. Here is the code snipped that I have created. [CODE]private void button6_Click(object sender, EventArgs e) { string connectionSQL = "server=localhost;database=db_junisman_kulit;uid=root;password=;"; MySqlConnection conn = new MySqlConnection(); double no_simpan = 0; try { conn.Open(); MySqlCommand cmd = new MySqlCommand("INSERT INTO tb_backorder …

Software Development c# mysql
Member Avatar for Mitja Bonca
0
1K
Member Avatar for rigz

Can anyone give a solution for this? Im just new here. Wishing to have a great time here :) by the way : I made a program that the user will buy a certain product (a cake) then i also have a "receipt-like" after. But i dont know how to …

Software Development c++
Member Avatar for rigz
0
200
Member Avatar for emorjon2

Hi All! I'm try to make a game in C++ with OpenGl. So far i've programmed the sprite and the platform. the next thing is to create a AI bot who will try to kill you in the game. but I've got the most bisarr problem with that: The AIBot …

Software Development c++ opengl
Member Avatar for emorjon2
0
233
Member Avatar for kylelendo

What happens if a value from hex editor is deleted but not modified ... Friendz plz help

Software Development vb.net
Member Avatar for kylelendo
0
132
Member Avatar for yakovm

I have a program which prints (by printf) to the stdout some data and also calls to function *foo* which also prints to the stdout some data [the way (implementation) of how printing is done from foo is unknown and I can`t see the code of foo]. I have to …

Software Development c
Member Avatar for Narue
0
97
Member Avatar for jasonmrc

hi i am trying to validate a id card textbox with the format 123456m i want to check and if it is not in that format show a messagebox invalid input. how can i read char [7] and compare it to a deafult char m your input is appreciated.

Software Development
Member Avatar for rikthefrog
0
111
Member Avatar for skatamatic

I work for an instrumentation company as an in-house software developer. We are thinking of restructuring our database that we use to record data. I am wondering what would be more efficient. Basically theres an array of sensor values Starting at Data0 and ending with data appended with the sensor …

Software Development
Member Avatar for rikthefrog
0
343
Member Avatar for varun45

Hello i am needing advice about a project that i have got. Its about traffic light using wireless sensor simulation. I want to know about the different softwares that can be used to work on such application, i mean the simulation part. I tried google but apparently i dont really …

Software Development java
Member Avatar for peter_budo
0
165
Member Avatar for ramanjot1620

i have made a project. and it includes crystal report for printing something. but in exe file when i click the form then its not opening with error " Cannot load file or assembly : CrystalDecsions.Windows.Forms, version /...." What should i do now??????

Software Development assembly
Member Avatar for Momerath
0
138
Member Avatar for ankit_the_hawk

I have been experiencing problems in using the gets() command in C. Whenever I use it twice followed by scanf for eg: [code] char name[20],add[20]; printf("Enter name : "); gets(name); printf("Enter address :"); gets(add); printf("Enter age :"); scanf("%d",age); [/code] Here it skips name.(doesnot take input of name!) It doesnot input …

Software Development c
Member Avatar for thisun
0
13K
Member Avatar for stigzem

I am to present my project recently.This is very important you see I can't proceed with my project because I am not able to capture a video in my VB form from a video device attached to a PC using USB. How can I do that please help me.

Software Development video visual-basic
Member Avatar for azzdog_dev
0
668
Member Avatar for sheennave

Hi! I am new in hibernate annotations so i am practising it on the console. In here i am using hibernate3.jar(came with Hibernate 3.5.1), hibernate-annotations-3.4.0.GA.jar etc. However when i run the main the application didn't start and following errors were generated. Any idea,please help.. !?? 0 [main] INFO org.hibernate.cfg.annotations.Version - …

Software Development java session
Member Avatar for sheennave
0
1K
Member Avatar for jbrandon52

I'm having a hard time figuring out the best way to approach this problem. Security is not much of a concern in this particular setup, but performance is. I have a script that will Telnet to a telecommunications switch and run a series of commands, display the output, and logout …

Software Development perl python web-browser
Member Avatar for Gribouillis
0
469
Member Avatar for sadsdw

Hi there, I have a file with 500.000 columns and 300.000 lines. The format is like that: ColXX ColWW ColQQ ColTT ... ColEE H1 G1 H1 K1 ... L1 G1 H1 K1 L1 ... O1 . . . Based on the first line information, (ColXX to ColEE), what is the …

Software Development c++
Member Avatar for Ancient Dragon
0
132
Member Avatar for PratikM

Hi guys, I'm running Visual Studio 2010 C++ Express on Windows 7 and I was just wondering how to make the debug screen in full screen. So Any Help is Appreciated. Thanks

Software Development c++ visual-studio
Member Avatar for pseudorandom21
0
586
Member Avatar for Simplified

Hi All I'm learning C at the moment using Code::Blocks running on Windows 7 (64-bit) and I'm having a bit of a problem with code that I've compiled. This code works and compiles just fine: [CODE]#include <stdio.h> int main() { char cards[] = "JQK"; char a_card = cards[2]; /* "K" …

Software Development c ide machine-learning
Member Avatar for Simplified
0
114
Member Avatar for Naveen2961

Hi There, I am trying to get the Sum values of a Column and want to check if entered value in Textbox is valid. Here is my code below [CODE]mystr = ("Provider=Microsoft.JET.OLEDB.4.0;" & _ "Data Source=K:\Amrut Diary\Amrut_Diary\ADDB.mdb") con = New OleDb.OleDbConnection(mystr) con.Open() strsql = "SELECT SUM(Available_Stock) As Avstk FROM STOCKDB …

Software Development open-source vb.net
Member Avatar for hericles
0
985
Member Avatar for sathya88

hi, am try to create a simple jar file... i got some error to run that jar file error =" Failed to load Main-Class manifest attribute from bala.jar" my code: [CODE]import javax.swing.JOptionPane; public class hello{ public static void main(String args[]){ String s= JOptionPane.showInputDialog("enter name plz...."); JOptionPane.showMessageDialog(null,"hello "+s); } }[/CODE] here …

Software Development file-system java java-swing
Member Avatar for sathya88
0
159
Member Avatar for I<3CPP

Why doesn't this code work [CODE]class myclass { public: int *ptrarray; myclass() { ptrarray = new int[2]; *ptrarray[0] = 5; //here I want to set the value of ptrarray[0] to 5, not its adress *ptrarray[1] = 10;//here I want to set the value of ptrarray[1] to 10, not its adress …

Software Development c++
Member Avatar for I<3CPP
0
112
Member Avatar for Marvin Danni

I am very new to assembly language and I have been instructed to make the brightness of a bright white LED to vary according to the brightness of the room that the LED is in, the brightness of the room will be detected by a light dependant resistor and the …

Software Development assembly
Member Avatar for thines01
0
107
Member Avatar for senator22

I am relatively new to C++ programming but conversant with C# programming. I am currently working on connecting to Avaya Aura Contact Centre RTD tables. The issue I am having is that the compiled software download from Avaya website connects to the server and download data to the console screen, …

0
163
Member Avatar for jonnyboy12

Hello, i have been coding for quite a while now. Up until now i have not figured out weather or not to do this. [CODE] somthing * newsomthing; newsomthing->funtion(); [/CODE] or this [CODE] somthing newsomthing; newsomthing.function(); [/CODE] I know what a pointer is , but often i dont know weather …

Software Development c++
Member Avatar for mrnutty
0
113
Member Avatar for bibiki

Hey there, I have taken earlier this tutorial on adobe's site for building an application for mobile devices. The tutorial provides a war file. After deploying the war file on my tomcat server, a few directories are built. Most importantly, WEB-INF folder. This folder contains some java files on one …

Software Development java
Member Avatar for bibiki
0
93
Member Avatar for Cyph0n

Hello everyone. Today I decided to write a little Caesar cipher script in Python. After tweaking the code and testing it, I shot up my browser and had a look at other snippets on the web. I was shocked at what I saw. All of the Python solutions I went …

Software Development python web-browser
Member Avatar for lrh9
0
246
Member Avatar for Cally_Law

Hi,I'm currently using vb8. i need help in coding. How can I increment a number in a textbox everytime when the form is loaded? I want that first time when the form gets loaded Company_id should appear in the textbox as NEW010101. Second time it should appear as NEW010102. Third …

Software Development vb.net
Member Avatar for debasisdas
0
882
Member Avatar for muff1n

Hi all, I'm about to start on my Java course next semester. Since I've only coded in C/C++ til now, I'm a bit stumped. I'll give you an assignment from last year, maybe some of you guys can show me how this program would look like in Java. Here goes: …

Software Development java
Member Avatar for muff1n
0
179
Member Avatar for [Prototype]

Hello DaniWeb! How can I check the state of a socket to see if it's connected or not? [CODE] SOCKET sock = socket(AF_INET, SOCK_STREAM, 0); SOCKET client; //I know that this isn't binded to an address but nevermind that. client = accept(sock,NULL,NULL); if (client == [COLOR="Green"]HERE - Need to see …

Software Development c++
Member Avatar for L7Sqr
0
130
Member Avatar for yousafc#

Hello,This is my code.I have in big problem anyone have a solution. I want view crystal Report by using studentid. [CODE] { CrystalReport1 objRpt; objRpt = new CrystalReport1(); string con = ("Data source =DATA;Initial Catalog = Schooldata;Integrated security = True"); SqlConnection objCon = new SqlConnection(con); // Here I am writing …

Software Development
Member Avatar for yousafc#
0
146
Member Avatar for Derren

hiya, What i am trying to do is save text from a number of text boxes to a user named file then subsequently be able to reload the data back into the same text boxes at a later date. so far i have this which was provided for elsewhere on …

Software Development vb.net
Member Avatar for codeorder
0
266
Member Avatar for Hendo

Okay, this may sound silly but I haven't done a console app in over two years. I have two quick questions: [LIST=1] [*]1 For a console app, does .NET need to be installed on a PC to run the app executable? [*]2 What is the line code to launch an …

Software Development
Member Avatar for gusano79
0
201
Member Avatar for bd338

Hi! Basically I'm receiving user input, storing it in a buffer, and then (so far) testing the first of the three digit combination. However, when I CMP the first digit to the first number in the correct serial code it always tell me that I've entered the wrong serial code, …

Software Development assembly
Member Avatar for bd338
0
302
Member Avatar for Derren

hi, So heres the deal i am still learning VB (bet you guessed that), now what i am tryiing to do is create a form with a number of text boxes (say 25) where a user can enter their own data. Which they can then save as a file and …

Software Development vb.net
Member Avatar for Netcode
0
89
Member Avatar for lukename

Hi. I have visual studio 2005 and i'm wondering does every header file has source (*.cpp) file with same name? For example windows.h and windows.cpp? If yes then where are all these source files? When using search on my computer i can find 3 times less cpp files than headers...

Software Development c++ visual-studio
Member Avatar for venomxxl
0
108
Member Avatar for Prankmore

I'm trying to determine then print the country of origin of a product based on its bar-code. I have isolated that part of the bar-code and stored it as countryCode, now what i am trying to do is determine its country then store the country name as a string so …

Software Development c
Member Avatar for Prankmore
0
201
Member Avatar for nomin-ginger

i have a very long string like this: [ICODE]TGTGCAACGTATATTCCAACGAAAAACCTGGAGAAGAAAAGAATAAGTAAAATGAACTAGAGGCTGATGGCACAGTAAACACAAATGCCTGAAGTCAAAATACATTCTTTATAAGCCCAAAGCG[/ICODE] i want to convert it into array but i wanna split it by length of 5 array elements: [ICODE]array[0] = "TGTGC"; array[1] = "AACGT"; ..... array[n] = "AAGCG";[/ICODE] any idea? plz....... help thanks :)

Software Development java
Member Avatar for sathya88
0
316
Member Avatar for zaxahmed

I'm trying to draw the rhombus into each grid section of the 3x3 square grid. Both the codes are pasted. I've tried various methods but could not succeed. Any insight on this matter is greatly appreciated. Thank you. [B][U]3x3 square grid[/U][/B] [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class threebythree …

Software Development java java-swing
Member Avatar for NormR1
0
168

The End.