132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Steve Lawley

What do i add to code be able to hit enter as well as clicking the button. <%@ Page Language="VB" %> <script runat="server"> Function era(ByVal yEAR As Integer) As System.Data.DataSet Dim connectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0; Ole DB Services=-4; Data Source=Cresta Tunes.mdb" Dim dbConnection As System.Data.IDbConnection = New System.Data.OleDb.OleDbConnection(connectionString) Dim …

Member Avatar for iamthwee
0
148
Member Avatar for nirmala.s

Hi folkz, Need help in writing a C program..The scenario is as follows: We need to copy a log file frm the database to a txt file and the txt file should automatically get updated whenever the log file is modified... Also there shld be a facility to filter data …

Software Development c++ file-system
Member Avatar for Ancient Dragon
0
112
Member Avatar for NSta

Hi i am so lost and stressed please can some help me. My question is how do i code the follwoing • Constructor: Copy The copy constructor should check the validity of the Entry object parameter through the use of the isValid method and copy the valid objects media and …

Software Development c
Member Avatar for NSta
0
130
Member Avatar for d1e9v85

i am having trouble iwth this question i am a little weak with classes that is why i cant complete this any help would be greatly appreciated Create a class for airline reservation. Assume that there are two aircraft models A, B. The class has following constants defined, const int …

Software Development c
Member Avatar for ~s.o.s~
0
205
Member Avatar for _Soul_

Hi everybody Anyone knows how to verify the ordinance of numbers but without using vectors!.. example: n=3456; the order is ascendent or n=9874321 the order is descendent it seems we need to create a fuction but I´ve no idea how! plese help...:eek:

Software Development
Member Avatar for _Soul_
0
109
Member Avatar for denn0069

I have the following code: [code=c]class date { private: unsigned int nDay,nMonth,nYear; static unsigned int nMonthArr[12] = {31,28,31,30,31,30,31,31,30,31,30,31}; //LINE 36 ...[/code] Upon compilation I recieve these errors: n:\courses\8110\Labs\Lab7b\Lab7b.cpp(36) : error C2059: syntax error : '{' n:\courses\8110\Labs\Lab7b\Lab7b.cpp(36) : error C2143: syntax error : missing ';' before '{' n:\courses\8110\Labs\Lab7b\Lab7b.cpp(36) : error C2143: …

Software Development c c# c++ visual-studio
Member Avatar for denn0069
0
103
Member Avatar for ReDeViL

Hi ppl! can anyone tell me how to capture system date and o/p it later in a prog?? what function do i use?? thanks in advance! appreciate any help rendered. :cheesy:

Software Development c++
Member Avatar for dwks
0
141
Member Avatar for Big John

I'm just learning java and this is my first sort program. I can't get it to run. I sure could use some help. public class SortCharArray { public static void main(String[] args) throws Exception { char[] someChars = new char[10]; int x; for(x = 0; x < someChars.length; ++x) { …

Software Development java
Member Avatar for kimbokasteniv
0
312
Member Avatar for lamees

My problem is a part of my actual program,but it is not all of it.it may seem simple to expert users of java.The problem is to access a folder,count number of files in it,determine their sizes and store their names in an array,and it 'll be good to determine also …

Software Development java
Member Avatar for kimbokasteniv
0
105
Member Avatar for jrcagle

Hi all, We just hit functions, and I assigned my students to write ten short functions to do things like convert Fahr. to Cels., etc. My "brilliant" :rolleyes: plan was to create a test suite and have them import their file and run the tests. Because the filename wasn't absolutely …

Software Development python
Member Avatar for vegaseat
0
118
Member Avatar for sneekula

I have a data file with chemical names (one name per line) and want to load that into a Tkinter GUI listbox and then be able to select it by clicking on the line. Need some help.

Software Development gui python tkinter
Member Avatar for vegaseat
0
2K
Member Avatar for kurt_tna

I've been working on this now for a couple of weeks and am still having dificulties. I'm trying to come up with a function to compute and return the area of the quarter circle by dividing it into a given number of rectangles. I need to have it accept the …

Software Development c++
Member Avatar for mathematician
0
120
Member Avatar for JoBe

Hello ladies and gents, I'm reading The C++ PL from B.Stroustrup and in chapter 5 the second exercise goes like this: What on your system, are the restrictions on the pointer types char*, int*, and void*? For example, may an int* have an odd value? Hint: alignement. I actually have …

Software Development c++
Member Avatar for ~s.o.s~
0
349
Member Avatar for majoy

i have compiled and run a symbian application using Visual C++. It finished building, was run and was displayed using the emulator. I wanted to do unit testing on it using C++ tool. And then i got errors which is something like this... Outbox_7000.obj : error LNK2001: unresolved external symbol …

Software Development c++ email
Member Avatar for Ancient Dragon
0
184
Member Avatar for MDGM

hi all, My website host does not support changing perl file permissions online through an ftp program or any other method, and i need to change my .pl file to have different permissions in order for them to work. how do i change my file's permissions to chmod 755 or …

Software Development perl
Member Avatar for MattEvans
0
110
Member Avatar for Monsignor

I'm not sure if my title makes sense. My problem is the following: I input a string and the function in my program is supposed to change every digit (except for 0) it finds in the string to a value -1 of that digit (eg 'er345ut' should be changed to …

Software Development c
Member Avatar for the_count
0
180
Member Avatar for Firestone

I keep looking at this code, and cant find out the problem... I made this as part of a library of math functions. It asks the user to enter the number of numbers to subtract, then enter them. It should work, but for some reason doesn't. [code] void sub() { …

Software Development c
Member Avatar for ~s.o.s~
0
96
Member Avatar for d1e9v85

hi i need help on making a recursive palindrome function of only string values. the recursive funstion shouyld return true is the string stored in the array is a palindrome, otherwise it should return false. Also the function should ignore spaces and punctuation in the string. thank you all help …

Software Development c c# c++
Member Avatar for WaltP
0
139
Member Avatar for amithasija

i am using the combobox on panel and it got fill when panel loads ,it has 7 enteries and i want whenevr the panel opens or the combo fills i'll see "money "as my default selected value out of those 7(whose position is not fixed).plz help me to do this(urgent)

Software Development
Member Avatar for amithasija
0
213
Member Avatar for yashamaru2006

Hi, Can anyone help me read the code below? I have an idea but i am not quite sure. [code] *(DWORD*)(pDesPtr+(nDesIndex>>3)) |= pSrc[nCount] << (nDesIndex&7); [/code] thanks a lot,

Software Development c
Member Avatar for yashamaru2006
0
85
Member Avatar for freesoft_2000

Hi everyone, I am currently trying to use a JTextPane as a cell renderers for a JTable but it does not seem to work although the program compiles. I alsways get an error stating class cast exception saying that i must cast the editor component to JTextField instead of a …

Software Development java java-swing
Member Avatar for Phaelax
0
218
Member Avatar for aznballerlee

My program is supposed to out put 10 20 40, but it doesn't. What's wrong with it? [code] int main() { int arr[3] = { 5, 10, 15 }; int* ptr = arr; *ptr = 10; // set arr[0] to 10 *ptr + 1 = 20; // set arr[1] to …

Software Development c++
Member Avatar for John A
0
147
Member Avatar for PaTchX

I am playing around with "patching" an old DOS 16-bit real-mode .exe, trying to change the machine code calls. The disassembled code is: [code=asm] push bp mov bp, sp xor ax, ax push ax mov ax, 1 push ax mov ax, 64h push ax ; location_X call f_drawDialogBox; 9a 06 …

Software Development assembly
Member Avatar for PaTchX
0
281
Member Avatar for sgriffiths

Hello all I want to split regular expression values in the list (in quotes) list("A","B"....... ) What is the best way to go about this? Regards

Software Development c
Member Avatar for ~s.o.s~
0
99
Member Avatar for Line

Hey! Writing a simple client/server in C and I'm currently stuck with getting the results after calling system("ls") so I can send it from server to client. Since system() returns an int I tried popen() --> [CODE] char buffer[1000]; FILE* myPipe = popen(buf, "r"); if(myPipe==NULL){ //errorstuff } while(fgets(buffer, 1000, myPipe)!=NULL){ …

Software Development c client-server
Member Avatar for Ancient Dragon
0
112
Member Avatar for kipl20

hi i need to write a while loop to print out groups of stars shown in the attachment the middle set?? cud someone provide me with an answer please as i am desperate to get it working. thanks in advance

Software Development c
Member Avatar for ~s.o.s~
0
124
Member Avatar for Acquire

Hi guys, I'm making a program tha thas to open a file, and then store the information from the file into a structure variable, only I can't get the function to work. I can get the program to work if I put the reading of the file in the main …

Software Development c
Member Avatar for Lerner
0
106
Member Avatar for stealth_rhino

I'm just starting out in VB by taking an online course. The project I'm supposed to make will not run, and i cant figure out why. Here's what I have: [code=php] Private Sub cmdCalculate_Click() 'Declare variables Dim curPrice As Currency Dim curCost As Currency Dim curComm As Currency 'Set variable …

Software Development visual-basic
Member Avatar for sendoshin
0
111
Member Avatar for belhifet

hi, first post here. It seems a very nice community. So, I know a little about 16bit DOS Assembly and also a little about 32bit Linux Assembly. I started learning Assembly out of curiosity, to understand C better and to learn exactly how the stack worked. I am currently learning …

Member Avatar for mathematician
0
243
Member Avatar for drsmoothj2009

I am currently trying to make an application, sort of a mock sound player. I got so far as to make a play button to play, and a stop button to stop. But i need a way to pause it. I noticed that visual basic does not have a pause …

Software Development vb.net visual-basic
Member Avatar for waynespangler
0
102
Member Avatar for chubbywubba

[code]#include <iostream> #include <iomanip> using namespace std; struct Node { int number; char color; bool open; }; #define DEPTH 5 #define ROW 3 #define COL 6 void setNodes( Node nodeArray [ROW][COL][DEPTH]); void setNode (Node &node, int depth); void printArray (Node nodeprint [ROW][COL][DEPTH], int depth); void main () { Node nodeArray …

Software Development c++
Member Avatar for vegaseat
0
71
Member Avatar for Sin-da-cat

OK, so the part of my course about files is over, but now I am wondering: if you have a file with, say, a bunch of names (each in its own line), is it possible to use "C" to make a new file with the names aranged alphabetically? For example, …

Software Development c file-system
Member Avatar for vegaseat
0
387
Member Avatar for tatsumarhu2000

hi, im really new to this programming language and im having a hard time in strings. can anyone teach me how to compare strings the easiest way. what im doing is a login program and i have to compare the inputed username to a string. example: a = daniweb is …

Software Development assembly
Member Avatar for mathematician
0
22K
Member Avatar for perlguy

I am trying to modify a parser for delimited files I already wrote so it works on a delimited file that doesn't contain each set of data on the same line. So for example, ||A||B||C||D||E||F ||G||H|||A||B||C|| D||E||F||G||H|||A where each data set is separated by 3 pipes instead of 2. Can …

Software Development perl
Member Avatar for KevinADC
0
72
Member Avatar for nanodano

Does anyone know where I can find the pthread library for Linux? And I don't want any rude "go google it" responds. I tried that, and all I came up with was one download available for win32.

Software Development c google
Member Avatar for nanodano
0
81
Member Avatar for paulfaz

Hi, Im just starting out attempting to learn assembly, and ive come across what is probably a really simple stumbling block.. The aid of google has failed me this time and im hoping someone on here can help me. I started writing a simple program that takes input for an …

Software Development assembly google
Member Avatar for mathematician
0
150
Member Avatar for adkozak

Hi everyone I am trying to get done the stocks program the first function is readStocks, it compiles but deosnt give me rigth ptompt, i guess i have some kind of execution error. Could any one give me advice on that? THank you. [code=cplusplus] //Stock's statistic #include <iostream> #include <stdlib.h> …

Software Development c++ ios
Member Avatar for adkozak
0
151
Member Avatar for chubbywubba

[code] #include <iostream> #include <ctime> using namespace std; // Dynamic Single Array of integers #define dAry class DynaArray { private: int SIZE; int* array; public: DynaArray(); // Default Constructor DynaArray(const DynaArray& dAry); // Copy Constructor ~DynaArray(); // Destructor DynaArray& operator= (const DynaArray& dAry); // Assignment Operator // Accessors int getSize() …

Software Development c++
Member Avatar for manutd
0
177
Member Avatar for dks1385

What,s wrong with this code: procedure TWinForm1.Button2_Click(sender: System.Object; e: System.EventArgs); var varForm:TwinForm1; begin varForm.Close; end; Error: system.NullReferenceException

Software Development pascal
Member Avatar for ttheobald
0
188
Member Avatar for Clinton Portis

I need a little help calculating odds for a roulette game.. i'm not sure why someone would bet 1:1 odds.. to me, that just means you win your money back without making a profit. also, 1:1+bet back doesn't seem any different than betting 2:1.. this is how I calculate it: …

Software Development c++
Member Avatar for Bench
0
343
Member Avatar for srinivasdama

how to divide the given number by 3 using bitwise operators and what are other methods without using /,*,%.operators..

Software Development c++
Member Avatar for Rashakil Fol
0
98
Member Avatar for 7even

I have the following sample code: [CODE]]import wx class TestFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self, None, title="tree example", size=(600,30)) self.tree = wx.TreeCtrl(self) root = self.tree.AddRoot("Example") items = [ "test1", "test2", "test3",] self.AddTreeNodes(root, items) self.Bind(wx.EVT_TREE_ITEM_EXPANDED, self.OnItemExpanded, self.tree) self.Bind(wx.EVT_TREE_ITEM_COLLAPSED, self.OnItemCollapsed, self.tree) self.Bind(wx.EVT_TREE_SEL_CHANGED, self.OnSelChanged, self.tree) self.Bind(wx.EVT_TREE_ITEM_ACTIVATED, self.OnActivated, self.tree) self.tree.Expand(root) def AddTreeNodes(self, parentItem, items): for item …

Software Development python
Member Avatar for vegaseat
0
629
Member Avatar for Adventurgurl

**Creating New User Issue** in VB.net with SQL 2005: I have a LogOn table and a Usr (User) table. A form that collects the new UserID,Password,FirstName,LastName, etc... I want to have two separate INSERT statements to first insert the UserID & Password. Then grabs the LogOnSys just created and create …

Software Development email vb.net
Member Avatar for hollystyles
0
374
Member Avatar for Gunner54

Code [code] //God Mode }else if(stricmp(lpcLine, "!god") == 0){ bRet = false; if(ADDR_GODMODE[0] != 0x90){ BYTE godmode[] = {0x90, 0x90}; EnableHack((BYTE*)ADDR_GODMODE, godmode, 2); Echo("GodMode On"); } else{ BYTE godmode[] = {0x7B, 0x05}; EnableHack((BYTE*)ADDR_GODMODE, godmode, 2); Echo("GodMode Off"); } [/code] Error error C2109: subscript requires array or pointer type

Software Development c c# c++
Member Avatar for Lerner
0
95
Member Avatar for ChadW

I have a countdown timer in my application that is to be controlled via keyboard. Currently, it will start (or reset to the starting value of 20minutes) when the user presses "B", and stop when the user presses "A". Trying to figure out how to restart the timer from the …

Software Development vb.net
Member Avatar for waynespangler
0
601
Member Avatar for PPaul1

I'm trying to figure out how to add a reset button and a calculation button to my program. I'm lost here. The program works when the user put in the loan amount, lenght of loan and interest rate. I need a button to reset the fields so another user can …

Software Development gui java java-swing
Member Avatar for masijade
0
273
Member Avatar for brittoonline

:sad: hi Can anyone tell me the steps to do before deploying a MDB application like how to create Topic and Queue JNDI.. or any other steps like that we should do in the WEBLOGIC 8.1 CONSOLE WINDOW before deployment.. i have a JMS Client program,A helper program and a …

Software Development java queue
Member Avatar for brittoonline
0
91
Member Avatar for Firestone

I cant get my function code to work. Its should return an average of however many numbers are entered, but it always returns 775863 no matte what... can anyone tell me whats wrong? [code] #include <stdio.h> int avg(int av[], int y, int x, int z); int main(){ int x=0; int …

Software Development c
Member Avatar for Ancient Dragon
0
109
Member Avatar for Mr Violent

I'm a bit confused on how the precompiled header system works. I'm using Visual Studio 2005 and when trying to include multiple .cpp files in a project, they each, on compile, give me an unexpected end of file error. I have them all set to precompile a header, stdafx.h, and …

Software Development c++ visual-studio
Member Avatar for Mr Violent
0
139
Member Avatar for andyww14

This is my first post - Hello everybody, hopefully you can help get on straight and narrow with regards to c++ Anyway on to question: What I need to do this is to utilize the constructor of one class in a second class - thereby optimizing the code by avoiding …

Software Development c++ first-post
Member Avatar for Mr Violent
0
107

The End.