132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Killer_Typo

Okay, so currently i am working on a final project at my college, i have been tasked with creating a database administration tool. One of my major hurdles was how to query the MySQL database and return all of the results into a DataGridView object with correct column names. As …

Software Development visual-studio
Member Avatar for kvprajapati
0
856
Member Avatar for arpal

How can I declare a separate function which will be called in case of Run-Time Error to prevent program crash ?

Software Development c++
Member Avatar for Aranarth
0
121
Member Avatar for poisson

I learned some java in school just 4 weeks ago, so i do not know much things ... so requires your help!! [CODE] String[] alphabetArray = { "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", …

Software Development java
Member Avatar for igonzales
0
118
Member Avatar for doc15

Hey there, So I've looked everywhere for help with my assignment until finally I found this useful service. I'm a C++ beginner and so far the problem solving and coding have fulfilled all expectations. If there is anyone to offer suggestions for my assignment, that'd be amazing! What it is …

Software Development c c# c++
Member Avatar for doc15
0
1K
Member Avatar for VorSec

Hey, I'm new to C++, and looking for a way to split a string like you do in C#. [CODE] using System; class Program { static void Main() { string s = "@This@Is@My@String@"; string[] words = s.Split("@"); foreach (string word in words) { Console.WriteLine(word); } } } [/CODE] A GetBetween …

Software Development c++
Member Avatar for iamthwee
0
1K
Member Avatar for tchiloh

i want get multiple values if i call i method. example: _____________________________________________ public void setData(int age, string name, string address){} ______________________________________________ Data data = new Data(); data.setData(age, name, address); ______________________________________________ when setData() are excuted he doesn't return the parameters with the values. what can i do?

Software Development
Member Avatar for tchiloh
0
113
Member Avatar for Ebisu

Hi, im trying to disable a button until anything has been entered into two text boxes simultaneously. So far i have tried: [code] If String.IsNullOrEmpty(TextBox1.Text & TextBox2.Text) Then Button1.Enabled = False Else Button1.Enabled = True End If [/code] However it doesnt work simultaneously, the button will become enabled if i …

Software Development vb.net
Member Avatar for SiahCheePing
0
121
Member Avatar for igalbk

Hi all. I attached a code creating file from datatable. I have a problem saving Excel file in c# using Microsoft.Office.Interop.Excel. When I'm saving the file as Exsel 2003 (xls) format the file is OK. When I'm saving the file as Excel 2007 (xlsx) format I get error massage from …

Software Development file-system microsoft-office
Member Avatar for igalbk
0
334
Member Avatar for paraug99

Hi Everyone, I'm doing this assignment and i'm stuck. I'm getting junk for my area calculations. any help would be appreciated. heres my code. CPP file [code] // Ass2.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <cmath> #include "BasicShape.h" #include "Circle.h" #include …

Software Development c++
Member Avatar for paraug99
0
84
Member Avatar for TotoTitus

Merry Christmas everyone! I'm using Lisp in a Box (emacs + GC Lisp) And i tried making a function which takes a number as argument, adds 1 to it if it's negative, and substracts 1 from it if it's positive. (look) [CODE=LISP] (defun enlarge(x) (if (< x 0) (- x …

Software Development
Member Avatar for Ghost_Buster
0
117
Member Avatar for santosh5471

Any body having any solution to write a report without using DATA REPORTS and Crystal and allowing it for preview and print. The report should be well designed... Help me

Software Development visual-basic
Member Avatar for vb5prgrmr
0
107
Member Avatar for wingwarp

ok if i wanted to create something how would i say if (button"f") { } do yatta yatta if i wanted to do that how would i... probaly a really STUPID;) quesion but here it is

Software Development c++
Member Avatar for Ancient Dragon
0
150
Member Avatar for Covert06

[code=c] #include<iostream> #include<conio.h> #include<time.h> #include<windows.h> #include<math.h> #include <string.h> #include <sstream> using namespace std; int main() { int result = 1; float checker; //Holds the full array char char_holder; int loop = 0; float checker2 = 0; //gets the letter float checker3 = 0; //Holds the previous array int counter; int …

Software Development c++
Member Avatar for Covert06
0
240
Member Avatar for adity

Hi, I have a Jtable created in swing of which one column contains check boxes. What i want is a few check boxes on specific rows.And now in the entire column Any help! :) Also i donot know the row number at which i want the check boxes.That needs to …

Software Development java java-swing
Member Avatar for leiger
0
119
Member Avatar for runningkuma

I've been rewriting a copy of the original Pokemon battle system in java. hered my current code: [CODE] private void opTurn(){ //Todo: opponents random attack does random damage, //misses, or causes a status effect //p.pause(005); wait(1) Action.setText("Tiffayoniton attacked!"); curPl -= 10; plCur.setText("" + curPl); } private void A1MouseClicked(java.awt.event.MouseEvent evt) { …

Software Development java
Member Avatar for NormR1
0
124
Member Avatar for daffydk13

I have the program working but with using ActionListener and ActionPerformed. Instructor wants it changed since it is not the clicking the button that triggers the application but entering in '-1' as a grade. I am lost on trying to change it as nothing seems to work for me so …

Software Development java java-swing
Member Avatar for NormR1
0
174
Member Avatar for pickler

hi everyone. i have a problem with my c++ program that i am making for my assignment. This is an ISBN asignment and basically The ISBNPrefix module simply reads the ISBN prefix table. This module contains all of the functions that are needed to access the table. Store the function …

Member Avatar for pickler
0
179
Member Avatar for LevyDee

I am reading in from a text file and storing the data into different string variables which are in my struct. Currently I use an asterisk to separate the info in the text file, and have a garbage string variable that I pass the asterisk into in my struct. I …

Software Development app-store c++ ios
Member Avatar for LevyDee
0
123
Member Avatar for loveforfire33

Hi, im trying to populate each datagrid with an individual record from a table by using a loop - ideally id like something like this below [code] using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.IO; using System.Data; using System.Data.SqlClient; public partial class Default2 : …

Software Development
Member Avatar for PierlucSS
0
83
Member Avatar for mohamed mo'men

ways to do random variables in array but not repeat , how i can do that?

Software Development java
Member Avatar for NormR1
0
59
Member Avatar for dansnyderECE

Note that I posted this thread earlier, I'm reposting because the issue has evolved some and I have a clearer idea of what the problem is. I'm trying to resolve a segmentation fault that occurs in the traversal of a string array. My code is doing the following: - open …

Software Development c++ file-stream ios
Member Avatar for dansnyderECE
0
385
Member Avatar for Monkeyseraph

[CODE] public boolean randomFlower() { Grid<Actor> gr = getGrid(); ArrayList<Location> loc = new ArrayList<Location>(); loc = gr.getOccupiedLocations(); int row = (int)(Math.random() * 19); int col = (int)(Math.random() * 19); Location new1 = new Location(row, col); boolean existent = false; // if i is less than size of occupied locations for …

Software Development java
Member Avatar for NormR1
0
93
Member Avatar for eng hassan

can anyone tell me how can i represent a global function & a ( struct ) in a UML diagram????

Software Development c++
Member Avatar for eng hassan
0
84
Member Avatar for eng hassan

HI everyone,,,i am a beginner in c++ & i have an a assignment that i cant even start & i need in advice that i can get so plzzzzzzz help,,, the assignment is about a game [B][U]The Predator‐Prey game [/U][/B]is a simple board game where a set of predators and …

Software Development c++ oop
Member Avatar for eng hassan
0
118
Member Avatar for ajwei810192

Hi, I have been trying to use multiple sorts on a long xml file using XSLT 2.0, which each one of the xml elements look like: [CODE]<song> <title>(I Just) Died In Your Arms Tonight</title> <category>Rock</category> <album>80 Popular Hits</album> <artist>Cutting Crew</artist> <date added="02-03-2009"/> </song>[/CODE] This is my XSL snippet, and I …

Software Development xml
Member Avatar for ajwei810192
0
386
Member Avatar for j-green.10

I have a string that includes numbers and letters and I want to be able to seperate the string into parts. An example of the string looks like this FAP834E. I want to seperate it so that the first letter is seperate (F), the second and third are together (AP), …

Software Development c++
Member Avatar for Lerner
0
93
Member Avatar for gerard4143

I have a question about functions and pointers to functions.... Why does a C program treat a function call to a function and a function call to a function pointer the same? [CODE] #include <stdio.h> #include <stdlib.h> typedef void (*funcptr)(void); void myfunc(void) { fputs("Hello, World!\n", stdout); } int main(int argc, …

Software Development c
Member Avatar for gerard4143
0
176
Member Avatar for insanely_sane

Hey guys. I am currently just a 11th grade student but since I'm done the whole curriculum for my Computers class already, I recently just started making extra stuff for fun. One of things I'm doing is Making a graphical/visual sorting applet. Something like : [url]http://www.cs.ubc.ca/~harrison/Java/sorting-demo.html[/url] I have my code …

Software Development ide java
0
110
Member Avatar for zismad

Hi all, i need a 26 rows by 8 colums check boxes table. i get the number of rows from a data base so i prefere to create the check boxes at run time. the thing is it takes something like 10 seconds on my powerful computer to draw them …

Software Development
Member Avatar for zismad
0
182
Member Avatar for SimonSellick

Hi, Can anyone point me towards a working example of a plug-in architecture for C#/.Net 2? I am developing a simple task manager and I want the individual task types to have their own, separately compiled processors. These will conform to a common interface / API defined by the task …

Software Development api
Member Avatar for SimonSellick
0
168
Member Avatar for Saravanan R

I want to save Text box values in VB and retrieve.If you having any sample code please help me

Software Development vb.net
Member Avatar for Netcode
0
109
Member Avatar for daanh

i'm reading a an excel file with xlrd. When i'm running the code a warning pops up: 'WARNING *** format u'"*"' produces constant result ' I think that u'"*"' stands for unicode, is that correct? But what does 'produces constant result' mean and what implications can it have? Thanks

Software Development python
Member Avatar for Gribouillis
0
134
Member Avatar for matthewl

I am having an issue with my multimap insert. I have looked high and low for a possible solution to this problem. What I am trying to do is make an dynamic hierarchy data structure that has a root element then child elements under it holding values. I thought using …

Software Development c++ data-structure storage
Member Avatar for matthewl
0
196
Member Avatar for mahdi68

Hi i use this code for hide form but when i run project form is shown !!! where is probleam ??? thanks [CODE] private void Form1_Load(object sender, EventArgs e) { this.Visible = false; }[/CODE]

Software Development
Member Avatar for nick.crane
0
72
Member Avatar for abhelp

I have a directory listing with many subdirectories having many files. I want to recursively search for the oldest 5 files starting from the base directory and not 5 from each subdirectory. I am writing a shell script which sorts them using ls -lRtur|egrep "txt|jpg" > /tmp/file1 Now from this …

Software Development shell-scripting
Member Avatar for griswolf
0
641
Member Avatar for Syphilis

What's Up? So, In my first python script, If a button is pressed, Then it defines a variable called var, With the content of "0" and then sends it over the net to another python script, And here's the problem. When it comes to receiving the content of var. [code]var …

Software Development python
Member Avatar for Syphilis
0
141
Member Avatar for JMC31337

After searching for how to use inline assembly with Dev-C++ i fig'd i would share my code This takes 2 const chars and swaps them thru inline AT&T assembly The variable booga starts as booga booga and ends up as JMC31337 [CODE] #include <iostream> #include <stdio.h> #include <stdlib.h> using namespace …

Software Development assembly c++
Member Avatar for JMC31337
0
167
Member Avatar for anku123

i do need some help related to combox: 1) m making my project and in that have used combox for selecting various options and had inserted the item , suppose i had entered MBA, BCA, MCA, B.E. in the begging i have used database to enter marks per semester(i.e. upto …

Software Development visual-basic
Member Avatar for santosh5471
0
147
Member Avatar for sdhawan

Hi guys , what i am trying to do is when i select a row in datagrid i see the selected row in a text box,now when i try to edit that row in text box that row in the datagrid gets unselected.how can i keep that row selected. Thanks

Software Development
Member Avatar for nick.crane
0
102
Member Avatar for sdhawan

hi guys i need help with date time picker.What i am trying to do is to select data from table according to teh date selected by the user .My code looks like this but it doesnt work, it doesnt pull anything, can anyone help me with where am i going …

Software Development dataset
Member Avatar for nick.crane
0
127
Member Avatar for bgk111

Hey all, Ill try to keep this short. I am trying to issue a command to another computer using ssh (ex ssh user@host 'csh /home/usr/SCRIPTS/tp.csh) and am getting some annoying error messages. when I run the tp.csh program on the host machine, it runs fine, when I issue the above …

Software Development shell-scripting
Member Avatar for bgk111
0
241
Member Avatar for manutd4life

Hello, i need to do a program which takes an input sequence of characters from the alphabet {A,B,C} and compresses it by replacing each subsequence of a particular character by a single occurrence of the character, and the length of the substring. e.g. Input : AAAAABBBBBBBCCBBBAABBCCCCCS Output: A5B7C2B3A2B2C5 i dont …

Software Development c
Member Avatar for manutd4life
0
166
Member Avatar for ereruh

Hey. I would like to save a txt file from the listbox into a folder that the user chooses. I've got the writing to work, but so far it only saves the file to the debug folder (since I haven't specified another folder) This is what I have so far: …

Software Development
Member Avatar for ereruh
0
242
Member Avatar for sanagopi

i need a detail explanation about left shift and right shift operators in c..its very hard to understand it..especially when i am using shifting on hex and oct values...seems to quite confusing me...i got the output..but i dunno how it comes...please clear my doubts.. thank you

Software Development c
Member Avatar for sanagopi
0
130
Member Avatar for wb4whd

Ok I have a program that has some web controls. When the user logs into the web system it loads in WebBrowser4 and their worklist comes up. I want to code the web control so if they click any link in the control it will load those links in a …

Software Development vb.net
Member Avatar for wb4whd
0
167
Member Avatar for niyujin

My English is very poor...there must be a lot of mistake in my expressions. but It would be very kind if you can answer my question... 3Q. In c compiler ( vs 2010 express c++), I tried the code as follow, 0 error 0 waring. In C++, it is the …

Software Development c
Member Avatar for gusano79
0
201
Member Avatar for catdieselpow

I am trying to fiqure out this problem for a long time. I am teaching myself C++ from C++ for Dummies and I cant figure this out. Fill in a 2 dimension 3x3 array with odd numbers. The display shows the array as it is being filled. Use random integers …

Software Development c++
Member Avatar for Aranarth
0
100
Member Avatar for mayank.15

I am using Lucene Highlighter 2.4.1 for my application. I use the highlighter to get the best matching fragments, and display them. I make a call to a function String[] getFragmentsWithHighlightedTerms(Analyzer analyzer, Query query, String fieldName, String fieldContents, int fragmentsNumber, int fragmentSize). For example : [code=java] String text = doc.get("MetaData"); …

Software Development java
Member Avatar for ~s.o.s~
0
166
Member Avatar for gedas

hi guys, i am planning to undertake a massive project which would be something to do with wii remote as i am aware the wii remote communicate with the console or computer via blue-tooth. i was wondering what sort of data wii remote sends back to the computer or a …

Software Development java
Member Avatar for gedas
0
113
Member Avatar for anuragcoder

Hi guys... guess i won't be posting after this for a long time.... could you all please help me out with syntax highlighting in c++ once again. I have made a full featured text editor(please check the snippet C.L.O.S.E) but could you please suggest about syntax highlighting or atleast indentation.. …

Software Development c++ regex
Member Avatar for anuragcoder
0
128

The End.