43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for riahc3

Hey Im currently working on a application server written in Java but to use information from a C++ program. The company seems to agree that rewriting thousands of lines of code would be time consuming and simply making libraries of key functions of the C++ program and then passing them …

Software Development c++ java
Member Avatar for riahc3
0
2K
Member Avatar for djjavo

Hi guys I am trying to declare a array within a structure, and it is not working. I'll paste the code below and if anyone can help it would be greatly appreciated. [CODE]Structure league Dim id As String Dim name As String Dim players(20) As String End Structure Dim leagues(100) …

Software Development vb.net
Member Avatar for djjavo
0
3K
Member Avatar for alaa sam

I need to pass some parameters to button_click is that possible and if so how can I do it??

Software Development
Member Avatar for mazzica1
0
189
Member Avatar for poojavb

I need a help to understand what condition can be applied to the below requirement: If suppose we have 2 species name eg. dog and cat... and we have few breed name for the above mentioned species.... so what condition can be applied in such a way that the user …

Software Development java
Member Avatar for niranga
0
176
Member Avatar for alaa sam

hi everyone I'm new to c# and working with file currently I need to read some string from the file but not the whole file so what functions can I use to read the file string by string ?

Software Development file-system
Member Avatar for alaa sam
0
144
Member Avatar for Jackk123

Soo last year, if im not mistaken , i asked for help with the random numbers generator. I didn't do C++ for quite some time, but i started again. So here is what i have : [CODE]#include "stdafx.h" #include <iostream> #include <fstream> #include <ctime> using namespace std; int main(){ srand(time(NULL)); …

Software Development c c# c++
Member Avatar for Jackk123
0
146
Member Avatar for Matth963
Member Avatar for jtodd

Hey guys! I have limited experience with Visual Studio and have a question about Querying an Access database. I have created a Visual Studio application that displays and modifies an access database. I have use datagridview and detailed view to insert data and view data in the Access database. I …

Software Development vb.net visual-studio
Member Avatar for jtodd
0
3K
Member Avatar for Matth963

[CODE]int numdigits(int num){ int len = 0; while(num >= 10){ num = num/10; len++; } return len; } [/CODE] This algorithm is used to count the number of digits but I can't understand it. Someone explain it to me please :D Thanks

Software Development java
Member Avatar for hfx642
0
108
Member Avatar for randolph.gamo

hi guys, sorry to disturb but I'm looking for the instructor's manual to 'C by a modern approach' written by KN king.

Software Development c
Member Avatar for N1GHTS
0
112
Member Avatar for Despairy

is there a warior i can do the following: lets say i have [CODE]string userChoice;[/CODE] assume i have a Warrior class with move function in it is it possible to define : [CODE]#define WARRIOR "Warrior"[/CODE] and than use [CODE]userChoice=WARRIOR;[/CODE] and call the function [CODE]userChoice.move()[/CODE]? [CODE]void play(char gameWorld[][BOARD_SIZE]) { Warrior War(1,1); …

Software Development c++
Member Avatar for Despairy
0
155
Member Avatar for Lee Marsden

Hello everyone I am trying to code an address book in C#, the program should be a console application and should stores names address etc in a string. The menu should loop and continue wish I have done using a do loop, at the moment I am stuck on the …

Software Development c c# c++
Member Avatar for JLarner
0
4K
Member Avatar for stefh

Hi everyone :) Title says it all... I'm trying to bind events to a wx.GenericDirCtrl. I've visited more than 20 web sites but i haven't found how to do it. I've tried different manners but it doesn't work as i expect it to. In some case my control is seen …

Software Development api python
Member Avatar for stefh
0
628
Member Avatar for pendo826

Can Anyone advise me on the problem with the namespace in this code im getting an error. [CODE]//Main. #include "Weapon.h" #include "Room.h" #include <iostream> #include <fstream> using namespace std; int main() { ifstream myfile; string line; myfile.open("BronzeSword.txt"); if (myfile.is_open()) { while ( myfile.good() ) { getline (myfile,line); cout << line …

Software Development c c# c++
Member Avatar for pendo826
0
157
Member Avatar for PM312

i used to create sub procedures in vb6 under tools/ add procedure. Same is not available in vb2008. how can i create sub procedure in form. for eg. Private Sub CmdDisabl() Cmd_New.Enabled = False Cmd_Amend.Enabled = False End sub if i type above code in form i get error statement …

Software Development vb.net
Member Avatar for codeorder
0
197
Member Avatar for SeasideP

Hey i was wondering if someone could have a look at this and help me figure out why the output is repeating it's self and how I would fix it. I have spent several hours trying to fix this. Thanks in advance. [CODE]/* Author : * Date :02/10/10 * Title: …

Software Development gui java java-swing
Member Avatar for SeasideP
0
89
Member Avatar for //Gonz

Hi guys i'm trying to just do a simple email/password validation on two text boxes. This code runs but when i type in a correct email address it throws an error "Object reference not set to an instance of an object." on [CODE]AdAcc.InsertCommand.Connection = OleAcc;[/CODE] I'm thinking i may need …

Software Development dataset microsoft-access open-source
Member Avatar for //Gonz
0
756
Member Avatar for stereomatching

[code] struct S { double operator()(char, int&); }; int main() { boost::result_of<S(char, int&)>::type f = 3.14; // f has type double } [/code] OS : win7 compiler :gcc mingw4.6.2 error message : error: no class template named 'result' in 'struct S'| error: expected ';' before 'f'| error: 'type' is not …

Software Development c++
Member Avatar for vijayan121
0
216
Member Avatar for SpyrosMet

I need to create a simple http client to a web server and my code is the following: [CODE]#include <stdio.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <errno.h> #include <arpa/inet.h> struct sockaddr_in wserver, cl; struct hostent *rem; int fd, newfd, len, l; int main(int argc, char …

Member Avatar for SpyrosMet
0
379
Member Avatar for amby

Hi, I am getting this error at runtime: object reference not set to an instance of object my question is that am i using stringbuilder array correctly here. Because I am new in C#. and i think its the problem with my stringbuilder array. Below is the code: [CODE]using System; …

Software Development asp.net
Member Avatar for Brindha.s
0
223
Member Avatar for bobytch

Hello everyone in this activity i should use if, else if, Boolean, for loop, do while loop ok here is the OUTPUT i must do: GRADING SYSTEM! 96-100 =1.00 94-95 =1.25 92-93 =1.50 90-91 =1.75 88-89 =2.00 86-87 =2.25 84-85 =2.50 82-83 =2.75 80-81 =3.00 78-79 =3.25 75-77 =3.50 74-below …

Software Development c++ java java-netbeans
Member Avatar for CSloan7597
0
192
Member Avatar for mr.ch

basically here is a code, what the question asked to do is to create a graph in quickdraw using the data given to us. now the problem is when i run the program it gives me a few errors. i am new at this and any help would be appreciated. …

Software Development python
Member Avatar for mr.ch
0
107
Member Avatar for tr4nquility

I would like to build a simple highlighter program. The idea is to set an image to change the cursor so that it will look like a highlighter. And then, when we move the cursor, it will trace a line along with our movement. The requirement here is to be …

Software Development image java
Member Avatar for tr4nquility
0
908
Member Avatar for hovestar

I am a new programmer and I wanted to start by writing a Tic-tak-Toe program I have more to add but here it is so far. [CODE] import random board = """ 1 | 2 | 3 ---+---+--- 4 | 5 | 6 ---+---+--- 7 | 8 | 9 """; …

Software Development python
Member Avatar for TrustyTony
0
8K
Member Avatar for homer.favenir

Hi, hope someone has an answer to my problem. my add and edit function is fully working. but after a successful edit, another edit attempt has already an error. Error: Procedure or Function has too many arguments specified [CODE]Private Sub global_edit() '- Is_with_ref_doc Dim ref_docCheckBox As Integer If Is_with_ref_docCheckBox.CheckState = …

Software Development vb.net
Member Avatar for homer.favenir
0
321
Member Avatar for Srinivas0

i am trying to print multiplication table by using for loop but it is showing only the last one instead of displaying all. :( [CODE]#include <iostream> using namespace std; int main() { int i,j, k; cout<< "enter i value"; cin>> i; for(j=0;j<20;j++) k=i*j; cout<< k <<endl; return 0; } [/CODE]

Software Development c++
Member Avatar for frogboy77
0
131
Member Avatar for poojavb

Hello All, I need to create a java code for auto numbering. A value will be mentioned in a table in database eg 10000. The java file has to retrive the database value and start the auto numbering from that particular number. It should increment by 1 for the next …

Software Development java
Member Avatar for poojavb
0
397
Member Avatar for java.util

I have this try-block [CODE]try { FileReader textFileReader = new FileReader(filename); BufferedReader textReader = new BufferedReader(textFileReader); String post = textReader.readLine(); int weeknumber = Integer.valueOf(post); if (weeknumber != weeknmbr) { System.out.println("Wrong weeknumber."); return false; } post = textReader.readLine(); while (post != null) { insertPost(post); post = textReader.readLine(); } textReader.close(); }[/CODE] but …

Software Development java
Member Avatar for java.util
0
114
Member Avatar for morph214
Member Avatar for jdiaz1302
0
258
Member Avatar for daldrome

I have created a program to generate a set of characters in an array. The objective is to move all vowels generated by the array to the left, for example: given the following array: A B C D E F G H I J K L M O P Q …

Software Development c++ objective-c
Member Avatar for daldrome
0
161
Member Avatar for edgar5

I am working on a WIN32 (not MFC) project. Currently it uses the default XP and earlier file dialogs. In attempting to add the option, under Win7/Vista, to use the new-style file dialogs, I have come to a stumbling block. The only code examples I can find come from here: …

Software Development c++ windows-vista
Member Avatar for edgar5
0
2K
Member Avatar for nsyncpilu

Hy , I am using netbeans to create an app. I wanted to eliminate the windows buttons (minimize , maximize , exit) so i could have full control on the exit button , and i used setUndecorated(true) in the PuppetApp.java (main app that netbeans creates). Now i created a exit …

Software Development java java-netbeans java-swing
Member Avatar for NormR1
0
1K
Member Avatar for nchy13

here, there are two functions in branchpredictor class namely predictor and trainer. [B]what i have pointed out is that predictor is working fine but trainer is not updating the variables of the above class. is it that only first function can access the variables. [/B] if not, can any one …

Software Development java
Member Avatar for JamesCherrill
0
169
Member Avatar for walid86

i'm writing some values which are global to the whole app. these values can change depending on the user. [CODE] // create GLOBAL SETTINGS public static class MyGlobals { public static string userName = "userName"; public static string pdfPath = @"C:\mypdfs\"; // deafult value, changes public static string FontName = …

Software Development pdf
Member Avatar for skatamatic
0
176
Member Avatar for theCompiler

i dont have idea what string function must be used to find consecutive characters . example is the word commit it will output the letter m . tnx for th help :D

Software Development c
Member Avatar for nHulk
0
5K
Member Avatar for skran

HELP!! I try to bind a textbox to a datatable but i cant.. I checked if the datatable is filled (it includes the results of a sql query)and it s ok.. i can depict the result in a combo box but not in textbox. I wait for only one result …

Software Development display sql vb.net
Member Avatar for adam_k
0
1K
Member Avatar for javausers

Hi, I m writing code to map single key(Integer) with array of values. But, its not giving the correct output. Here is the code: [CODE]import java.io.*; import java.util.*; class MapDemo{ public static void main(String args[]){ TreeMap<Integer, Object[]> tMap = new TreeMap<Integer, Object[]>(); Object[] vals = {"tree", "map", "sorted"}; tMap.put(1, vals); …

Software Development java
Member Avatar for JamesCherrill
0
108
Member Avatar for AdampskiB

Hello again! I'm having trouble trying to double the value of my coordinates in my point. The object is to create a pair of eyes and their position is identified by clicking a point in the graphic window which would allocated the centre of the left eye, and the second …

Software Development python
Member Avatar for AdampskiB
0
245
Member Avatar for terence193

I am currently trying to write a program to simply output roman numerals (not convert-as on many previous threads) from 1-99.. This is the logic/code I have tried so far, but I am certain that it isn't correct apart from the fact that it isnt compiling. [CODE]#include<stdio.h> int main(void) { …

Software Development c
Member Avatar for terence193
0
228
Member Avatar for raphilix

I'm trying to run a program with 3 levels:1st Menu, 2nd Input and Output and 3rd Calculations. But it keeps me giving me permition denied and Id returned 1 exit status when I try to compile. any suggestion? here is the code [ICODE]#include <stdio.h> #include <stdlib.h> #include <math.h> int calcpercent …

Software Development c++
Member Avatar for raphilix
0
146
Member Avatar for th3b3n

the following code is used to get the contents of an excel document and pint it to console - will eventually filter and write a new excel file, but that will come later. [CODE]/** * */ import java.io.*; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import javax.swing.*; import java.awt.*; import java.awt.event.*; …

Software Development apache gui java java-swing window-manager
Member Avatar for th3b3n
0
209
Member Avatar for danielagaba

hi I came up with this code to help me convert a string into an integer array but i keep getting a null exception when i run it and i am not sure how to fix it. [CODE] import java.io.*; import java.lang.reflect.Array; public class test { static String message; static …

Software Development java
Member Avatar for JamesCherrill
0
326
Member Avatar for th3b3n

Hi all, I'm new to java programming but finding it rather fun and interesting. Right now I have [CODE]for(String name : chkNms) { JCheckBox checkBox = new JCheckBox(name); checkBox.setMnemonic(KeyEvent.VK_C); checkBox.setSelected(false); // checkBox.setActionCommand(name); add(checkBox); checkBox.addActionListener(this); }[/CODE] to create all the check boxes I need, roughly 30 or so. The last line …

Software Development java
Member Avatar for th3b3n
0
226
Member Avatar for stereomatching

This is codes snippet from our codes [code] void testSmartAssign() { boost::shared_ptr<int> A; std::auto_ptr<int> B(new int(9)); A = B; } [/code] Is this kind of assignment well defined? Thanks

Software Development c++
Member Avatar for vijayan121
0
103
Member Avatar for TrueCoding

Hi the aim of my program is to allow a user to enter the size of an array and then allows the user to enter the values into an array. The bit im having a problem with is I want to count how many odd and even numbers there are …

Software Development c programming-construct
Member Avatar for Rushirl Quiño
0
2K
Member Avatar for Mrinal1991

I have a field of Issue date which takes the date of that very day when i fire the query now I want that field of Return Date in my data base should take the date while adding 14days to it? How do i do that?

Software Development vb.net
Member Avatar for Mrinal1991
0
122
Member Avatar for vlady

Hello Guys! Can anybody help me with this code? So what I need? here is it: I want to fill out global variable "student_marks" with a grade for each student and keep it once is loaded. So it means without calling the function "def add_mark()" I will be able to …

Software Development python
Member Avatar for vlady
0
130
Member Avatar for walid86

i have a richtextbox where the user inputs his/her name.. This needs to always be 60pixels wide, regardless of text.. ie: Johnathon or Tim need to be resized to best fit the control. i've looked on the net, but only found VB solutions. Is there a way to achieve this?.. …

Software Development
Member Avatar for Antenka
-1
200
Member Avatar for Ruchi224

Hello.. I have a datagridview.. It is unbound to any database and has 2 columns.. 1 is item name and other is amount/expense, incurred.. I want the total of expense incurred be displayed in the textbox on button click ie adding the numbers in amount column.. I tried something like …

Software Development vb.net
Member Avatar for Ruchi224
0
122
Member Avatar for sigridish

hi! can some one give me a code for exporting listview data to excel? thanks

Software Development listview vb.net
Member Avatar for sigridish
0
359

The End.