132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for shakuN

Hi, A newbie to VB6, I have to plot a graph using the picturebox control. I have drawn the 3 line graphs using the "Line" method and using relevant data. I have to shade the triangular portion marked "X" ( resulting from the lines B & C crossing the line …

Software Development visual-basic
Member Avatar for shakuN
0
173
Member Avatar for reshma.mane

Hi All, I want some interesting Advanced data structures problems. Could you please let me know the link or the actual problem statements? If possible, you can send some hints to solve that problem. This would be very helpful for me.

Software Development c++ data-structure
Member Avatar for Alex Edwards
0
101
Member Avatar for jkuboschek

Hey guys, I've done some google searches today but didn't find a clear cut answer to this. I've got a function that I would like to return an array of strings. Any ideas anyone?

Software Development c++
Member Avatar for jkuboschek
0
161
Member Avatar for alc6379

Thanks to Dani for adding Python to the scripting languages category! ...I haven't heard many people mention Python around here... Am I the only Python fan here? I know its usage isn't as widespread as Perl, but it is, IMHO, as powerful and useful as Perl, for general scripting, web …

Software Development perl python shell-scripting
Member Avatar for ZZucker
0
526
Member Avatar for Tootlol

Basically, I am trying to solve a problem a textbook. The book requires me to use karel J robot to develop programming principles. So the problem is correctly the following code so that the robot will do this: attached This is the code I am suppose to fix. Currently the …

Software Development java
Member Avatar for dmanw100
0
126
Member Avatar for bpacheco1227

I'm having a problem with my for loops. The program is supposed to get a number from the user and when button is pressed add 1 and skip a line until the tenth number is reached. I fell like I almost have it but I'm missing something. Please help. [code=VB] …

Software Development vb.net
Member Avatar for bpacheco1227
0
83
Member Avatar for nano99r

Hi, I have to create this program and I am having difficulty doing it. Develop a Visual C++ program that will determine whether a department-store customer has exceeded the credit limit on a charge account. For each customer, the following facts are entered via a keyboard: a. Account number (an …

Software Development c++
Member Avatar for VernonDozier
0
185
Member Avatar for sivaslieko++

Hi everybody, I have been writing a windows console application in c#. I want it to read all keys pressed and write them all into a text file when a specific window is active in windows xp environment. Now, I can find the active window, but I failed to read …

Software Development
Member Avatar for LizR
0
164
Member Avatar for nojtb

My Code has a problem, either if my first void is static or not i get a error that i cant seem to fix. This is the error i get if the void is static [CODE]Java Compiler By Noj All underpreciated java will soon apear All errors within java files …

Software Development java
Member Avatar for nojtb
0
138
Member Avatar for rugs267

Hey Everyone! I'm having trouble with a C++ program I'm trying to write. I need to input a text file into a 2D array and sort it into 13 rows, 5 columns using strtok. I need to use strtok because some of the words are separated by ws, others by …

Software Development c++
Member Avatar for rugs267
0
253
Member Avatar for stupidenator

Hello Everyone, I am having some trouble with a VBA application I am writing for work. I am using ADODB to connect to an Oracle database and return and I want to return a 2-D array from my function. The problem I am having seems to be determining how big …

Software Development oracle visual-basic
Member Avatar for stupidenator
0
211
Member Avatar for dsnj202

I compiled this at school and swear it ran like a week ago. That was on a PC using Textpad, now I am on a mac using TextMate and I keep getting this error: class Checkerboard is public, should be declared in a file named Checkerboard.java public class Checkerboard extends …

Software Development java
Member Avatar for jwenting
0
141
Member Avatar for BeyondTheEye

I made a win32 application in Visual C++ 2008 using the Windows Forms Application. But for opening files, and saving eventually, havn't gotten to it yet, I was creating some basic classes in other files. The odd thing is the [i]stdio.h[/i] file seems to be working differently in VC. I …

Software Development c++ visual-basic
Member Avatar for Narue
0
267
Member Avatar for mostermand

hi i was wondering how much i should use classes in C++. Should i use it as much as possible?

Software Development c++
Member Avatar for mostermand
0
319
Member Avatar for webdani

Hi All, Below is the code I use in an Unix environment to connect to my organization's mail server(This is to read mails in my Inbox). [code=Java] import javax.mail.*; import java.sql.*; import javax.mail.internet.*; import java.util.*; public class readm { public static void main(String args[]) throws MessagingException { //Properties props = …

Software Development java session unix
Member Avatar for regent_royal
0
481
Member Avatar for prateekprashar

Hi, i am using VB6 with Access databse after a long time and have forgotten some syntax. I am using ADODC connection (the dirty method) wherein one makes a connection using ADODC component and setting its properties (ODBC and selecting table/ query). I need to display the fields of a …

Software Development visual-basic
Member Avatar for selvaganapathy
0
98
Member Avatar for rapture

Hi all, I'm stuck - it might be easy but I don't work with VB6 much. I have a form that is open and has a button on it which opens a second form overtop of it. when the second form opens it locks the first form. Upon exit from …

Software Development visual-basic
Member Avatar for rapture
0
98
Member Avatar for pads

Hello everybody I am from Commerce Background doing some IT stuff got some problem by professors.. Can someone solve this problem thanks.. Program Specification: “The body mass index (BMI), or Quetelet index, is a statistical measure of the weight of a person scaled according to height. The body mass index …

Software Development algorithm c++
Member Avatar for MelechM
0
149
Member Avatar for MelechM

Ok I have Visual C++ 2008 and I made a new project and made an app. It's a basic window with a menu, icon, etc. Now I have the following program for instance: [code] #include <iostream> #include <math.h> using namespace std; int main() { char answer; float c, e, x, …

Software Development c++ visual-basic
Member Avatar for MelechM
0
124
Member Avatar for Tank50

Below i write the coding which is not working properly yo me.I want to open excel file and use select statement with where clause.But one I run the coding it give me exception it says "No Value give for one or more parameters" Pls help me. [ICODE] Excel.Workbook theWorkbook = …

Software Development c# dataset
Member Avatar for dickersonka
0
177
Member Avatar for zachabesh

Scenario: I have 2 scripts. One is an ftp program that takes a list of files and downloads them. The other is a simple program that takes one file and copies it to another directory. What I want to do: When the ftp program finishes with one file, I want …

Software Development python
Member Avatar for zachabesh
0
83
Member Avatar for fake-name

Ok... I'm working on a program that takes ISBN numbers, grabs data on them from ISBNdb.com and sticks said data into a database. At this point, I've successfully managed to get the ISBN XML file from isbndb.com, but whenever I try to feed it into SAX, it seems to try …

Software Development api open-source python xml
Member Avatar for jlm699
0
341
Member Avatar for Nemoticchigga

How would one seperate a decimal into 2 numbers, the left and right sides of the decimal? float example = 131.14567 into... int left = 131 float right = .14567 thanks.

Software Development c++
Member Avatar for ArkM
0
118
Member Avatar for laghaterohan

i want to change first letter of both First name and Last Name to uppercase here is my code however, i am getting error..as Index and length must refer to a location within the string. Parameter name: length MY CODE IS AS BELOW : [QUOTE]Function uppercasefirstletter(ByVal oldString As String) As …

Software Development vb.net
Member Avatar for laghaterohan
0
86
Member Avatar for mancode1007

I am very confused how to write a function which can accept 3 input parameter to calculate sum and average.the sum and average should be returned through output parameter ... pls help ..thx

Software Development c
Member Avatar for Majestics
0
102
Member Avatar for castrohe

I want to insert and order 3 objects (from different classes) in a priority queue. I create an array to access to the element inside the priority and then I push in the priority queue. The code: [code] #include <iostream> #include <queue> #include <vector> using namespace std; class Alumnos{ public: …

Software Development c++ queue
Member Avatar for ArkM
0
113
Member Avatar for Lee_Sonnenburg

Hey I'd like to be able to play an mp3 file in a an application in one of my Load procedures. I just need the syntax for playing the file. thanks, Lee

Software Development asp.net vb.net
Member Avatar for Lee_Sonnenburg
0
167
Member Avatar for Ancient Dragon

Has anyone been able to compile the lib files using Microsoft Visual C++ 2008 Express compiler? I downloaded and installed MySQL 5.0 Server yesterday, then downloaded MySQL++ source. Attempted to compile and got a bunch of link errors. I used dumpbin.exe to get a list of all the symbols in …

Software Development c++ mysql
Member Avatar for mitrmkar
0
167
Member Avatar for Douglas B

I wans wondering if I could get some information on using win32 interrupts and making win32 system calls. I found the interrupt list for windows nt ([url]http://www.ctyme.com/intr/rb-4249.htm)[/url], and Linux ([url]http://www.ctyme.com/intr/rb-8144.htm)[/url], but I'm still unsure about the correct windows interrupt. I'm working on windows XP, but will also be working on …

Software Development assembly windows-vista
Member Avatar for Douglas B
0
404
Member Avatar for Tootlol

Hi! I am a student taking my first computer science course. The course uses Karel J the robot to teach object oriented programming. However, after acquiring the library I was not able to find the "methods" or "behaviours" for the robot. According to the lecture notes they are suppose to …

Software Development java
Member Avatar for jack239
0
112
Member Avatar for edensigauke

well, i started generating my code through Textpad, and when i run it, it runs smoothly, but if i am to create the jar file through Netbeans, it becomes a disaster and returns a null error. i cant even figure out where the error is... here is the part of …

Software Development java java-netbeans java-swing
Member Avatar for edensigauke
0
142
Member Avatar for emilio

i have a method that saves an object to file : [CODE=java]public void Save() { if (canSave) { JFileChooser fileChooser = new JFileChooser(); if (fileChooser.showSaveDialog (this) == JFileChooser.APPROVE_OPTION) { ObjectOutputStream out; try { out = new ObjectOutputStream (new FileOutputStream (fileChooser.getSelectedFile ())); out.writeObject(this.game); out.close (); } catch (IOException ex) { } …

Software Development java
Member Avatar for emilio
0
178
Member Avatar for Dannyo329

I just knew about getch() and found it better than cin (a lot) but there's one problem bugging me, can you makea n if statement for getch()? For example they have: [CODE] int a; cin >> a; if (a == 1) //blah else if (a ==2) //blah else //blah [/CODE] …

Software Development c++
Member Avatar for Dannyo329
0
659
Member Avatar for smileeok

I have a question about the memory allocation of class. My compiler is GCC 4.1.2. I define a class called Foo, create three objects of it, and have a look at their addresses. Following is my code: [code=c++] class Foo { int k; }; int main() { Foo f1, f2, …

Software Development c++
Member Avatar for ithelp
0
139
Member Avatar for aussie_chick

G'day everyone, I need to fill a 2day which is passed as an argument that is able to store the height and weight of 5 volunteers. The function I need to do this in needs to prompt the volunteers for their height and weight. Could anyone please give me a …

Software Development c++
Member Avatar for aussie_chick
0
3K
Member Avatar for Easter Bunny

i have a clients.dat file with client info in it. i have gone through it to find the record i want to delete, used PushBackBuffer to unread the one i want top delete, skipped that bit and carried on reading the rest and writing it to clients.tmp. after i have …

Software Development abuse file-system java
Member Avatar for Easter Bunny
0
143
Member Avatar for SonxQ7

Hi, learning hibernate but still experiencing some errors and exceptions ... [B]My User.hbm.xml[/B] [code] <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="com.genuitec.hibernate.User" table="SNX_USERS" > <id name="userId" type="java.lang.Long" column="user_id" > <generator class="increment" /> </id> <property name="firstName" type="java.lang.String" column="first_name" length="20" /> <property name="lastName" type="java.lang.String" column="last_name" length="20" /> …

Software Development java xml
Member Avatar for SonxQ7
0
204
Member Avatar for pentiumpablo

Hi I was wondering if somebody could help me i am completelty stuck I want to read in triangle measurements from the command line check if the tri is square then when the user is done print out the amount of squares. the user would signfy that s/he was done …

Software Development file-stream java
Member Avatar for javaAddict
0
105
Member Avatar for john88

I dont know why this doesnt work, basically I want to calcualate the letters and numbers and white spaces and so on, nothing fancy. And it does work, it does calculate everything. However I seem to be stuck in the while loop or something because I cant print it out, …

Software Development c++
Member Avatar for MelechM
0
123
Member Avatar for Himanshu1984

hi, I am developing an application in Windows CE platform is Windows Ce .net 4.2. i need to play media file through C code, i have managed to play media file in win32 through "system" command but this command is not available for Windows CE, i have tried CreateProcess function …

Software Development api c file-system windows-api
Member Avatar for Himanshu1984
0
283
Member Avatar for Emerald214

I don't understand why **ptr is used in this code. Please expain to me. [code] template<class NODETYPE> void Tree<NODETYPE>::insertNode(const NODETYPE &value) { insertNodeHelper(&rootPtr, value); } template<class NODETYPE> void Tree<NODETYPE>::insertNodeHelper(TreeNode<NODETYPE> **ptr, const NODETYPE &value) { if(*ptr == 0) *ptr = new TreeNode<NODETYPE>(value); else { if(value < (*ptr)->data) insertNodeHelper(&((*ptr)->leftPtr), value); else if(value …

Software Development c++
Member Avatar for ArkM
0
116
Member Avatar for jgalewsk

Hello, I need some help with some code I have. The compiler is giving me weird errors and I am not sure how to fix it, especially because I dont see anything wrong with the way I wrote my code. It has to do with array of structs and declaring …

Software Development c++ data-structure
Member Avatar for v1d1t
0
205
Member Avatar for ohyeah

I don't mean "iostream.h" or missng "return 0;". I wonder why don't run like it should but shows "press eny key continue"? [CODE]#include <iostream.h> int n,m,result,br=0; int a[100][100]; int jj=0; void main() { cout<<"n?"; cin>>n; cout<<"m?"; cin>>m; for(int i=0;i<n;i++) for(int j=0;j<m;j++) { cout<<"a["<<i<<"]["<<j<<"]="; cin>>a[i][j]; } for(int ii=0;ii<n;ii++) for(int jj=0;jj<m;jj++) { …

Software Development c++
Member Avatar for MelechM
0
156
Member Avatar for bricjames

I am working on a program that will have the user input two numbers ....the program then adds them together and prints out the sum.....the program is to then ask if you want to continue...the user is to type in y or n....how do i go about having the program …

Software Development c++
Member Avatar for MelechM
0
123
Member Avatar for opposition

could someone please show me how i would be able to reverse the printout of a linked list?, i have gotten it to print out in the right order but not sure how to make to printout in reverse. here is my current code, [CODE] void print(node*& head) { node* …

Software Development c++ linked-list
Member Avatar for opposition
0
86
Member Avatar for lumeniel

Hello, everyone the follow error shows when i try run my code if (i==2): width = line[0,3] TypeError: string indices must be integers The code of error is this [CODE] for line in fl: i += 1 if (i==2): width = line[0,3] elif (i==3): frames = line[1,1] elif (i>3): append(array_color, …

Software Development python
Member Avatar for lumeniel
0
89
Member Avatar for sauna

[code=cplusplus] #include<stdio.h> #include<math.h> #define max 100 double f(double y); int k, i; double y[max]; double x[max]; void copyarray(double[], double[]); main() { FILE *file; double h, x, y; printf("this program does a first order ODE for dy/dx=-y+1 with initial condition of y(0)=0 from x=0 to x=0.9\n"); printf("input the step size (h>0):\n"); …

Software Development c++
Member Avatar for ArkM
0
110
Member Avatar for the universe

Hello, Does anybody know how to write a command to generate a random array (let's say with 100 numbers) that contains numbers from a function that goes like y = x exp (2.5). where the range of x is given. I hope that my question is understandable :-) Thank you,

Software Development c++
Member Avatar for VernonDozier
0
147
Member Avatar for skatamatic

Ok, so I'm trying to prove to my teacher that Div and Mod isn't always the best way to solve things. So i created this tiny program, held entirely in main.cpp : [CODE=cplusplus] //Project: Mod_Efficiency //Author : Kyle Wesley //Descrip: This was made to prove that mod/div operations are often …

Software Development c++
Member Avatar for skatamatic
0
3K
Member Avatar for AwesomeLord

I am writing a small program in C++ and I need some help. [code] #include "iostream" #include "string.h" using namespace std; void main(){ string sman; cout << "Are you there? \n \n"; cin >> sman; if(sman == "yes" || sman == "Yes"){ cout << "Screw that! \n \n"; main(); } …

Software Development c++
Member Avatar for MelechM
0
81

The End.