132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for aminit

HellOoo : my questoin is like this , if I have a function [code] void hello(string hh){ hh=textbox1.text } [/code] if I want to take the value of hh from the function 'hello' , to use it in another function , it impossible to make this [code] void main() { …

Software Development
Member Avatar for harrypalmerr
0
119
Member Avatar for outbackandy

[COLOR=#555555]Hello everyone! [/COLOR] [COLOR=#555555][COLOR=#555555]Any help would be much appreciated![/COLOR][/COLOR] [COLOR=#555555]My problem: [/COLOR] [COLOR=#555555]I want to break up a string into separate objects.[/COLOR] [COLOR=#555555]Scenario: [/COLOR] [COLOR=#555555]I am reading a txt file into my program and I want to[/COLOR] [COLOR=#555555]separate the String in to separate categories. [/COLOR] [COLOR=#555555]String line = "BATHROOM TOI …

Software Development java
Member Avatar for masijade
0
172
Member Avatar for sa.alavifar

i have a project in c# code with 3 leyer; and all of database code are in data leyer, which method is better? 1- send sql string statementto data base for select or update? 2 - using stored procedure? in databases with larg scale wich is better? pleas help me?!

Software Development sql
Member Avatar for harrypalmerr
0
104
Member Avatar for fantasma

Greetings from Portugal to everyone. I'm building a project to a course in my university and i've stucked in some compiling error given by NetBeans and g++ in my dynamic array implementation. Glad if someone could give a hand to this. Here is the code [ICODE]#pragma once #include <iostream> #include …

Software Development c++
Member Avatar for fantasma
0
123
Member Avatar for syd_master

when i run my code...this error come out [QUOTE]"data type mismatch in criteria expression"[/QUOTE] here my code: [CODE]Private Sub Text2_Change() TXT1 = "" TXT1 = "SELECT * FROM Profile WHERE sID =' " & Text2 & "'" If RS.State = 1 Then RS.Close End If RS.Open TXT1, Conn, adOpenKeyset, adLockOptimistic …

Software Development visual-basic
Member Avatar for AndreRet
0
328
Member Avatar for chris5126

Hi, I have a machine with X-Fi Titanium sound card. Im getting the following errors when trying to compile the driver. [CODE] make make -C /lib/modules/2.6.9-89.0.23.ELsmp/build M=/root/XFiDrv_Linux_Public_US_1.00 make[1]: Entering directory `/usr/src/kernels/2.6.9-89.0.23.EL-smp- x86_64' CC [M] /root/XFiDrv_Linux_Public_US_1.00/xfi.o In file included from /root/XFiDrv_Linux_Public_US_1.00/xfi.c:17: /root/XFiDrv_Linux_Public_US_1.00/ctatc.h:22:34: linux/spinlock_types.h: No such file or directory make[2]: *** [/root/XFiDrv_Linux_Public_US_1.00/xfi.o] …

Software Development audio c
Member Avatar for chris5126
0
488
Member Avatar for sravi.pearl

haiii Do anyone know how to convert array like this ['26','18','20'] into [26 18 20] because i have to plot graph for these value, ['26','18','20] array is not allow me to do that ,i got ['26','18','20'] from database table with data type varchar....problem is i shouldnot change the datatype .... …

Software Development python
Member Avatar for TrustyTony
0
95
Member Avatar for novice20

[B]hi... I have a value, value=4501-E001 I am concerned about only the value before hyphen i.e., 4501 I need to check whether various values begin with 4501, followed by something, n am not concerned about "something" that follows. How can this splitting be done in python?[/B]

Software Development python
Member Avatar for Gribouillis
0
131
Member Avatar for Blastoise

Write a program that will ask for a password. If the password is entered correctly, a message should be displayed like “You may enter”; otherwise after 10 tries display a count down from 10 to 0 then a message that the hard drive is being wiped out should be displayed. …

Software Development hard-drive java java-swing
Member Avatar for Eric Cute
0
147
Member Avatar for oceantech

Hi all! I have a directory with multiple text files of data. I have been trying to develop a loop to read through all the files, eliminate the first 88 lines (text header) and create a new file with only the data values. I have been all to write the …

Software Development shell-scripting
Member Avatar for griswolf
0
120
Member Avatar for Skillzilog

[CODE] Inherits System.Windows.Forms.Form Dim bill As New POS Dim mypath = Application.StartupPath & "\db1.accdb" Dim connection As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=d:\db1.accdb;Persist Security Info=False;") Dim cmd As OleDbCommand Dim cmdGetIdentity = New OleDbCommand() Dim sql2 As OleDbDataAdapter = New OleDbDataAdapter("Select * from customer", connection) Dim db1 As DataSet = New DataSet Dim …

Software Development dataset vb.net
Member Avatar for Skillzilog
0
112
Member Avatar for iraqi4life

I have this bit of code: [CODE]case 1: case 3: case 5: case 7: case 8: case 10: case 12: day = 31;[/CODE] Does this mean the values 3,5,7,8,10,12 can only be day=31? How can I make it so only the Max value is 31? So it can equal 31 …

Software Development java
Member Avatar for Eric Cute
0
136
Member Avatar for Perry31

Hi friends, I've created program for getting the data members from the structure and pass those variable in a function dynamically. The structure will dynamically change and its members also changing.Now i need to rectify the memory leak problem in this.I declared maximum size of buffer is 30000 when i …

Software Development c data-structure open-source
Member Avatar for Perry31
0
150
Member Avatar for swathys

hi, when i run my report its asking for database login id and p/word. i have make a connection before it and everything goes well but i'm not sure why its come out with the login asking for id and p/word. HELP !!1

Software Development vb.net
Member Avatar for swathys
0
178
Member Avatar for UaBoy

I am making a program for my CS class. Is there a way, in python, to set more than one value to a variable? Am I thinking about this in the wrong way? I need to make a program that asks a bank account holder for their username. If that …

Software Development python
Member Avatar for TrustyTony
0
120
Member Avatar for jimbob90

Here's my main [code=c++] int main () { int list1[3] = {5,5,6}; int num = 3; int result; int *arr = list1; int maxVar; int *maxVarHolder; maxVarHolder = &maxVar; result = sumarr(*arr, num, *maxVarHolder); return 0; } [/code] Here's the function header: [code=c++] int sumarr (int *arr, int size, int …

Software Development c++
Member Avatar for mike_2000_17
0
232
Member Avatar for stud02

I have a working c file which count lines from a text file. Is there a function that filters out lines with comments(lines started with //)? So when I load in a text file with a c code, it only has to count the lines without comment.

Software Development c
Member Avatar for WaltP
0
133
Member Avatar for brendono978

Hey everybody, here's my assignment. "Program 69: String Pattern Matching – Naïve Approach Write a program that will prompt the user to enter a string of characters. There will be a maximum of 10 characters entered for the string. The program will then ask the user to enter lines of …

Software Development c
Member Avatar for brendono978
0
1K
Member Avatar for Lxyslckr

The Vehicle.java is the file that I am modifying. The second code is the testdriver. [CODE]public class Vehicle { String make; String model; int year; public Vehicle(String s1, String s2, int y) { if (y >= 1980 && y<= 2012) { year = y; } else { y = 2010; …

Software Development java
Member Avatar for haranaboy
0
433
Member Avatar for Juicebox

I need help with a project. The project utilizes the random number generator. What I have to do is get the player to set the min and max numbers of the game, and then a random number must be generated and the user has to guess what the number is. …

Software Development java
Member Avatar for kramerd
0
174
Member Avatar for Lxyslckr

I need to verify that the number the user inputed is between 1908 and 2012. here are the actual instructions "The constructor must also verify that the value provided for "year" is at least 1908 and at most 2012 – if not, set the year to 2010 by default" I …

Software Development java
Member Avatar for Lxyslckr
0
104
Member Avatar for JOSheaIV

Okay so I am a newer programmer and have no clue how to use the language fortran77. All I know is I have the source code for the old game Adventure. Here is where I downloaded it from [URL="http://jerz.setonhill.edu/if/crowther/"]Where I Downloaded Files[/URL] I have no clue how to use this …

Software Development c#
Member Avatar for Momerath
0
108
Member Avatar for kumar86

hello guys, I have written a script to open notepad and added the text in script, after that i want to save the file in text format. from pywinauto import application from pywinauto import application app=application.Application() app.start_('Notepad.exe') app.Notepad.edit.TypeKeys('hello') app.Notepad.MenuSelect("File->Open") app.Notepad.MenuSelect("File->Save")/*saveas dialog box opened and waiting for the filename*/ Please guide …

Software Development python
Member Avatar for kumar86
0
108
Member Avatar for sravi.pearl

hiiii all, Can anyone please help me regarding this .... i have table with 2 cloumns in a database "details" Name Age john 26 Mary 18 Nancy 20 i want to get only the Age in an array. I tired in this way: db=MySQLdb.connect(user="root",passwd="my",db="mydb") cursor=db.cursor()# prepare a cursor object using …

Software Development python sql
Member Avatar for sravi.pearl
0
207
Member Avatar for AntonyLini

Hello All, Inheritance in WPF application -- Create a window with all possible controls and functions which can be act as base form. then save it as template. Next time when u create a new form the saved template will appear on items. Create Window -> save it as template(File->export …

Software Development
0
312
Member Avatar for RaigaX9

Hello, I need help on the NFLTeam program that uses an array on the number of players and their names. I've been doing an NFLTeam program where it prints the wins and losses of both falcons and steelers as well as printing out the number of players in those teams …

Software Development java
Member Avatar for RaigaX9
0
195
Member Avatar for DrueY

Error C2057: expected constant expression Error C2466: cannot allocate an array of constant size 0 Error C2133: 'inc': unknown size Why? Here's the code: [CODE] #include <stdio.h> #include <stdlib.h> #include <fftw3.h> static double *rdata = NULL, *idata = NULL; static fftw_plan rplan, iplan; static int last_fft_size = 0; double A[8192]; …

Software Development c
Member Avatar for DrueY
0
317
Member Avatar for tet3828

I'm trying to compile some code in Visual C# Express. Would someone please have a gander and help me out by giving me a brife explanation of why I'm getting an error "oleDbDataAdapter is not in the current context"? From my understanding (which must be wrong) oleDbDataAdapter is part of …

Software Development open-source
Member Avatar for Momerath
0
334
Member Avatar for Arturo32

Hi everyone, Actually i'm learning C#, and i have an assignment, to program a 3x3 puzzle, that where you have 8 pieces and 1 free slot, so you can move the pieces and solve it. Our teacher told us it must be done with picture boxes. I've been doing some …

Software Development puzzle
Member Avatar for Arturo32
0
207
Member Avatar for Greywolf333

Hey all, I need to initialize an array to hold an image to all zeroes. The dimensions are that of an image [numcols][numrows][3], where 3 is for rgb values. I know this isn't necessary when I'm reading an image into the array, of course, but I'm going to be using …

Software Development c++
Member Avatar for Greywolf333
0
132
Member Avatar for sciprog1

Hello Members, Is it possible to have a Scrollbar for a JOptionPane as described below? [CODE]public class Hello { public static void main (String args []) { JOptionPane.showMessageDialog (".............."); } }[/CODE] If you can show me some pseudocode or a sample program, I would be very grateful. Thank you!! sciprog1

Software Development java
Member Avatar for sciprog1
0
1K
Member Avatar for ChaosKnight11

Hi, I want to start preparing for an IT Olympiad for next year for a chance to get a full bursary for college. We can choose between Java, Python, C and C++. Of the lot I'm most comfortable with Python seeing that I at least have a bit of experience …

Software Development delphi python ruby
Member Avatar for woooee
0
186
Member Avatar for VIeditorlover

Ok, the problem is this - plenty of code, many times called, probability of raising exception is about 1e-5. From many reasons is not possible to serialize params into string just for the case that exception would be raised. Is there possible to save *values* of params *generically* just from …

Software Development api c c# c++
Member Avatar for divin757
0
96
Member Avatar for Learning_Curve

[B]Intent:[/B] I'm trying to create a simple GUI application (VB Desktop) that will allow me to modify an XML file's nodes which contains the program settings and table definitions for an application. The GUI application's datagridview contains three columns: colA, colB, colC. ColA should be the direct value from an …

Software Development gui vb.net visual-studio xml
Member Avatar for Learning_Curve
0
180
Member Avatar for 0dark

Hello guys, this is my first post, so don't be harsh if I do something stupid. Well, the reason why I'm posting here is because I need to find a method to alter the stream itself, not just the buffer I send to a variable with "file.Read(". For example, lets …

Software Development c++ encryption file-stream
Member Avatar for Ancient Dragon
0
231
Member Avatar for C++Challenged

I need to write a program to decipher a code and process a set of characters in a text file. this is the text file: >EBC;Iit_is a CaPital Mistake tO_theorize Before_one has DatA123. There are 6 encrypted characters at the beginning of the file. The encryption is based on the …

Software Development c++ encryption
Member Avatar for hardatwork
0
143
Member Avatar for karpe

Hi all Happy to join this forum, hope you can help me from time to time :) I'm and electrical engineer, and I use C program as part of my work, at a very basic level, just to control a piece of hardware. I now have a problem which I'm …

Software Development c
Member Avatar for karpe
0
186
Member Avatar for ItecKid

I have this code. pthread_create does not through an error message, however it does not execute it's argument function. See comments in code for better description [code=c] void * moveFiles (void * arg); int main (int argc, char **argv) { pthread_t * tid; int rc = 0; /*variables count and …

Software Development c
Member Avatar for ItecKid
0
2K
Member Avatar for giftalp

I have created class menu and class number. I would like that my functions in class do sum, subtract, multiply, and divide. I've done sum, but I have problems with other functions. When I do difference, it is actually sum my numbers, and result of multiplication and division is 0 …

Software Development c++ mathematics
Member Avatar for giftalp
0
195
Member Avatar for hatux

I have a couple of classes in my app. So in one of them i use same int to make my life easier on the other one [CODE] import java.util.*; public class ObtainKey { public static void KeyAnalyzer() { int idx = 0; int tokenCount; String input; String inputArr[] = …

Software Development java
Member Avatar for hatux
0
216
Member Avatar for zarifin99ska

hello, i'm have a payment form and a listview in this form. i'm adding about 3 item in the listview, so it has 3 row. but how can i insert the items in one of the column into database. for example for listview [U]id[/U] [U]item[/U] [U]netmount[/U] 123 Stock1 113.00 231 …

Software Development listview vb.net
Member Avatar for roottybrian
0
1K
Member Avatar for hq1

Hey so I wrote this blackjack program to read from file but i'm getting these errors on the specified lines: Error 1 error C2059: syntax error : 'while' line: 46 Error 2 error C2228: left of '.ins' must have class/struct/union line: 48 Error 3 error C2050: switch expression not integral …

Software Development c++
Member Avatar for Ryaether
0
137
Member Avatar for mrbungle

So here's the problem- My app has an image in it in a picture box. I need the end user to be able to change it. So the code I added below should do that. However, I get the "A generic error occurred in GDI+. while saving" I understand it …

Software Development vb.net
Member Avatar for mrbungle
0
215
Member Avatar for suntom

Hello, new coder here :-) I've been working on one of my first scripts, an SMTP script for sending mail with Gmail. It works and all, but I wan't to have an "if" the login to the server failed, it would print and message saying so and return to the …

Software Development email python
Member Avatar for richieking
0
1K
Member Avatar for bunnyboy

Consider those two function. When I load file, everything is fine, but then, when I want to save changes, the file is still being locked. Where is the catch? [CODE=C#] public static string Load(string loadPath = null) { string output; string file = loadPath == null ? _defaultFile : (_defaultFile …

Software Development file-stream file-system
Member Avatar for bunnyboy
0
212
Member Avatar for ItecKid

Hello, I am trying to read through a UNIX directory in C and write all the filenames to an array. However, the array is not being populated with any value. Here is a snippet of relevant code: [code=c] char **files = {NULL}; struct stat fileinfo; int count = 0; int …

Software Development c unix
Member Avatar for nezachem
0
109
Member Avatar for Streamx1

Please, help to organyze time out. I have a program which connects to another device by COM port. If device is disconnected and I try to connect this device, the time out exeption must be. Can anyone give me example of making time out here? [CODE] private void OnButton_Reading_Click(object sender, …

Software Development c#
Member Avatar for nick.crane
0
398
Member Avatar for NewOrder

i want to make a java game . where can i start. i am intermediate at my java (i know threads, swing, generics).. do you know any websites or sources of information that provide project ideas and info on how to create games?

Software Development java java-swing
Member Avatar for NewOrder
0
136
Member Avatar for mi.mac.rules

I'm making a program to add/sub/mult numbers from bin/oct/dec/hex format and output in whatever base the user asks, run syntax: [CODE]./instruction <num1> <num2> <base1> <base2> <output base>[/CODE] and, besides the stupid implicit declaration warnings I get for some unknown reason (I'd love to know why), when I run this (I'm …

Software Development c
Member Avatar for mi.mac.rules
0
241
Member Avatar for globberbob

Hi there, im new to the site and am hoping someone out there can help me with my question, im pretty newbie in the world of c++ and programming in general. Im making a program with a menu, you can choose between entering a number yourself to be tested as …

Software Development c++ mathematics
Member Avatar for globberbob
0
327

The End.