43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for LindseyV

Hello there. I am witting a program in vba/access and I have a string coming in. I need to go through the string and look for specific tags and return the rest of the line. So lets say: "I went" "to the" "park" I need to tell the program to …

Software Development visual-basic
Member Avatar for hkdani
0
525
Member Avatar for moonw3ll

[code] #include <stdio.h> #include <string.h> #include <conio.h> #define MAX 17 #define TAX_RATE 0.12 #define LENGTH 30 struct menuItemType { char menuItem[LENGTH]; float menuPrice; int numOrdered; }theMenu[MAX]; void Menu(void); int getData(int); void overView(void); void initialize(void); int order(void); float pbill=0; float bill=0; float totalTax=0; int main(void) { int choice=0; char end; initialize(); …

Software Development c
Member Avatar for moonw3ll
0
156
Member Avatar for firoz.raj

i simple want progressbar should execute until it becomes 100 after some interval.but it is not working properly.can anyone help me .Any help would be Greately appreciated.Here is the code what i have written. [code] Private Sub Timer1_Timer() For i = 10 To 100 Step 10 ProgressBar1.Value = CInt(i) If …

Software Development visual-basic
Member Avatar for firoz.raj
0
118
Member Avatar for itslucky

Hi, :) Dear Friends i want to run the Windows Calculator when i click on the Particular button in my C# application anybody please tell me that how can i do this... :?:

Software Development c#
Member Avatar for itslucky
0
268
Member Avatar for koolhoney07

hiiii is their any special functin available to calculate the execution time of a program written in java.?? thanks in advance..

Software Development java
Member Avatar for verruckt24
0
79
Member Avatar for kiddo39

Hi I'm trying to use PIL to get data from an image and find 'unusual' RBG values but haven't found the right way. [code] Import Image, PIL im=Image.open("image.bmp") ans=im.getdata() print ans [/code] This doesn't examine the RGB values for me to find any unusual ones. If tried others like: im.load() …

Software Development python
Member Avatar for kiddo39
0
303
Member Avatar for etserrano

Hi, I'm writing a C++ single-threaded Unix daemon that listens for data arriving at a port. The whole application logic is contained into an infinity loop. The problem is that the daemon consumes a lot of CPU cycles, specifically because the loop is being continuously executed. I’ve looking around for …

Software Development c++ unix
Member Avatar for etserrano
0
160
Member Avatar for itslucky

Hi, My Dear Friends, i have created a database and connect it with the C#, now i want to view the Print Preview the reports from the Database and show the preview in the C#, (when i click the perticular button) Now please help me to print and view the …

Software Development c#
Member Avatar for itslucky
0
534
Member Avatar for dev_kc

The control is not going to EditGoto,its is coming out of the whole sub part on report click btn Public Sub Create_Report() WordDocument.EditGoto "CurrentDate" WordDocument.Insert Format(Now, "mmm,d,yyyy") End Sub Public Sub EditGoto(inNm As String) owordapp.Selection.Goto What:=wdGoToBookmark, Name:=inNm End Sub Please help me with this:S

Software Development visual-basic
0
65
Member Avatar for lllllIllIlllI

I was just wondering, in all of the code snippets i see there is no #include "stdafx.h" in them, but i cannot compile a program without it. Is this a Microsoft Visual C++ that is the problem or am i just missing the point here?

Software Development c++
Member Avatar for lllllIllIlllI
-1
697
Member Avatar for darkagn

Hi all, I am trying to make a simple game of Craps in Java. My idea was to have a JFrame with an image of the Craps betting table as the background image and when the player clicks on a section of the table they can place or remove a …

Software Development java
Member Avatar for darkagn
0
173
Member Avatar for AirmanTheGreat

OK. So this program is supposed to prompt the user whether they want to play the guessing game. If they say no then end the program otherwise it will start the game and ask them for their first name, last name and the number of guesses they want. Then it …

Software Development java java-swing
Member Avatar for AirmanTheGreat
0
101
Member Avatar for crazyhorse09

Hey guys, I'm working on a poker clock for fun just for me and some friends, and have a form with 2 textboxes and a button. The user enters a time in minutes in the 2nd textbox, and presses the button, and it displays the time in [icode]Hours:Minutes:Seconds[/icode] format, centered …

Software Development vb.net
Member Avatar for crazyhorse09
0
177
Member Avatar for gabec94

I am writing a box program, with various extras. I understand that proper coding requires properties to be private, but I now need to add to this program getTotalEdgeLength, getSurfaceArea, and getVolume methods. Would I put these methods in the main class? I do not know a way to only …

Software Development java
Member Avatar for gabec94
0
107
Member Avatar for herms14

[CODE] 1 // Fig. 29.24: RegexMatches.java 2 / Demonstrating Classes Pattern and Matcher. 3 import java.util.regex.Matcher; 4 import java.util.regex.Pattern; 5 6 public class RegexMatches 7 { 8 public static void main( String args[] ) 9 { 10 // create regular expression 11 Pattern expression = 12 Pattern.compile( "J.*\\d[0-35-9]- \\d\\d-\\d\\d" ); …

Software Development java regex
Member Avatar for herms14
0
101
Member Avatar for Evan M

I'm having several difficulties with memory leaks in a program (I've been using "Visual Leak Detector" to check for memory leaks). I've simplified the code to the following: [code=C++]#include "vld.h" #include "vldapi.h" #include <string> #include <vector> class BaseFoo { public: BaseFoo() {} ~BaseFoo() {} }; class ButtonFoo { public: void …

Software Development c++
Member Avatar for Evan M
0
175
Member Avatar for cljlxwater

hello, i want to guide dates from Excel to use in C# Form . can you tell me how to do ? or, i should look which books ? thank you

Software Development c#
Member Avatar for mcriscolo
0
95
Member Avatar for sonia sardana

hey frnds,I have imports namespace System.Data.SqlClient.I just create object of SqlConnection,But error is there- 'SqlConnection' is ambiguous in the namespace 'System.Data.SqlClient'. .I know its a silly Question i m asking,But its not working..Plz help me out.. [code] Imports System.Data.SqlClient Public Class Form1 Dim conn As New SqlConnection End Class [/code]

Software Development vb.net
Member Avatar for sonia sardana
0
409
Member Avatar for mohsin334

Dear guys, Here I'm gonna show u how to overload different operators in c++. First of all I'm going to overload unary operator(the operator that acts on one operand) that are `++` and `--`. so lets overload the `--` with a simple example. #include<iostream> using namespace std; class school // …

Software Development c++
Member Avatar for daviddoria
0
97
Member Avatar for pdwivedi

hi everyone i have written a simple program which asks for the colour and no of wheels of a vehicle. i used gets() for inputting colour of vehicle.but it was skipping that line. some body suggested me that it is buffer problem and use cin.getline() with getchar() function in while …

Software Development c++
Member Avatar for Ancient Dragon
0
201
Member Avatar for daviddoria

It seems like SO often I need to attach a "valid" flag to a standard type. For example - I have a function called "CalculateLunchTime" that I pass a vector of times. If the vector has 0 elements, they did not take a lunch, so the duration is 0 minutes. …

Software Development c++
Member Avatar for Rashakil Fol
0
598
Member Avatar for mahela007

Why do I get different values for the f.readline() statement in this bit of code? I entered it in the interactive mode of IDLE [CODE]>>> f=open('F:\\Documents and Settings\\folder1\\flder2\\t.txt','r') >>> f.readlines() ['1\n', '2\n', '3\n', '4\n', '5\n', '6\n', '7\n', '8\n', '9\n', '10'] >>> f.readlines() [][/CODE]

Software Development python
Member Avatar for mahela007
0
104
Member Avatar for tasneemnikhat

hey ol, i dnt hav much time left to solve des Q's.. can u plz guide me solving des... Fundamental Exercise /* class design, dynamic memory allocation and operator overloading */ 1. Write a program to implement Matrix class. • Implement addition and multiplication operation • row and col of …

Member Avatar for tasneemnikhat
0
121
Member Avatar for Naik Dhiren

I have a one textbox on the form and combo1 in datagridview when form is load combo1 is empty if value of text1.text is 'A' then combo1 should have below items. combo1.Items.Clear(); combo1.Items.Add("Director"); combo1.Items.Add("MD"); combo1.Items.Add("President"); combo1.Items.Add("Chairman"); combo1.Items.Add("FullTimeDir"); and if value of text1.text is 'B' then combo1 should have below values. …

Software Development
Member Avatar for Naik Dhiren
0
98
Member Avatar for firoz.raj

can anybody tell me why i am getting type mismatch error in checkinput function.Here is the code what i have written.error is generatiing from bold line. [code] Private Function CheckInput() As Boolean Dim row As Integer, itemCode() As Integer 'At first always Test for Empty TextBoxes If Combo1.Text = "Dept …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
178
Member Avatar for denniskhor

[code] import javax.swing.*; import java.awt.*; import java.util.*; import java.awt.event.*; import java.io.*; public class PartOfSpeech extends JFrame implements ActionListener { private JButton btn1,btn2; private JTextArea txtAreaArticle; private JTextField txtField1,txtField2,txtField3; private JMenuBar jmb; private JMenu fileMenu; private JMenuItem out; public PartOfSpeech() { setTitle("PART OF SPEECH SYSTEM"); Container con=getContentPane(); con.setLayout(new BorderLayout()); jmb=new JMenuBar(); …

Software Development java java-swing
Member Avatar for denniskhor
0
80
Member Avatar for lehe

Hi, These days I have to install a higher version of bash under my $HOME on my office server. I hope to make the new bash automatically run both when I ssh to my server and when I boot into my office computer which loads my $HOME on the server. …

Software Development session shell-scripting
Member Avatar for eggi
0
166
Member Avatar for rasingh24

Hi, i have a project in which i created two classes `TreeDisplayform(Form.cs)` and MytreeNode class in same namespace. TreeDisplay class contains all the GUI related stuff like Browse button textbox, TReeView. I want the user to select a XML file through browse button which will be displayed in textbox.The Xml …

Software Development gui xml
Member Avatar for sknake
0
115
Member Avatar for Gagless

I have to write a program that outputs the length and width of a rectangle and then calculates and outputs the area, using a class called rectangle... I thought I was about done, but when I run the program it says width, length and area are being used without being …

Software Development c++
Member Avatar for Gagless
0
132
Member Avatar for HatGuy

I'm using Python 2.5.2 on a Ubuntu box for a research project based on data from the Fatality Analysis Reporting System (FARS) database (1975-), available at [url]http://www-fars.nhtsa.dot.gov/Main/index.aspx[/url]. I found 115 characters of the form "\xzz" -- possibly hex? -- in 4+ card-image records on about 300k incidents from 1975-1981 so …

Software Development python ubuntu
Member Avatar for HatGuy
0
145
Member Avatar for jhonny_86

Hey! My problem is that I can't modify the "File name" label / text field programatically where you write the file name of your file in the JFileChooser. If I want to have "Write your file" written in the file name (by default) field how would I manage to do …

Software Development java
Member Avatar for jhonny_86
0
126
Member Avatar for hell_tej

I need some help about how to connect MS Access database in NetBeans.I visited [url]www.netbeans.org[/url] but didnt got much help related to MS Access. What I did is I start from Net Beans Desktop Application ....But when i select the option of database in it ....It asks Database URL....I have …

Software Development java
Member Avatar for hell_tej
0
203
Member Avatar for Gadgeteer99

Hey, I just started learning Python yesterday and I got to the end of a chapter on Branching and While Loops...which lead me to a "challenge"...basically it gives me the description of a program and I have to write it. This program flips a coin 100 times and then gives …

Software Development python
Member Avatar for orinbai
0
206
Member Avatar for redZERO

I was wondering do all programs have a unnamed thread by default? For example, if i have a very basic program, can i put Thread.sleep(int) anywhere in it and it will make the program sleep for a set amount of time?

Software Development java
Member Avatar for redZERO
0
102
Member Avatar for winrawr

Well, I don't know if this is what you would call an anonymous function, or "Lambda" function I guess, I haven't really gotten that far into languages that use them yet... but, I am writing a function that is rather long. And I want to just get through it, and …

Software Development c++
Member Avatar for winrawr
0
90
Member Avatar for peacerosetx

Greeting all, Peace. I had this error [QUOTE] error C2059: syntax error : ')' [/QUOTE] in VS with c++ code, and searched the web and forums for a solution but could not find one. Finally I simply typed in the bracket ")" in the "find key" to search for all …

Software Development c++
Member Avatar for peacerosetx
0
536
Member Avatar for crumpet

Hi folks, Just hoping someone can show me where I'm going wrong here. I've been given a tutorial question to count the number of times a particular character (char) appears in a string. The only catch is that you need to use a for loop, as the online checker won't …

Software Development python
Member Avatar for sneekula
0
220
Member Avatar for jesse_johnson2

[CODE]//Tic-Tac-Toe #include <iostream> #include <iomanip> using namespace std; const char COL = 3, ROW = 3; typedef int tttb[ROW][COL]; //tttb tic-tac-toe board bool winner(tttb, int,bool); //funtion name winner bool move(bool); int main() { bool isWinner; isWinner = false; cout<<"isWinner= "<<isWinner<<endl; isWinner = move(isWinner); cout<<"isWinner= "<<isWinner<<endl; if (isWinner = true) { …

Software Development c++
Member Avatar for jesse_johnson2
0
93
Member Avatar for arshad115

i m making a hotel database management system and i have to add records, update and delete them.i m having problem in getting the input,how will i use double pointers?? and i have to get a certain number of records from the user. here is my code: [CODE] void addcustomer() …

Software Development c++
Member Avatar for tux4life
0
2K
Member Avatar for DemonGal711

Ok, apparently my destructor isn't done yet and I'm not sure how to handle this. I have an n-ary tree that contains nodes that are built of data and a vector of pointers. Each pointer was initialized with new, so I need to delete them obviously. One friend said I …

Software Development c++
Member Avatar for ArkM
0
1K
Member Avatar for oldSoftDev

I am trying to figure out how to read a multi line txt file with a data like ranking, athlete name and Athletic sports name with two different year records like 2007 and 2008 like 1. JOHN CARTER in Sprint Race 19. JOHN CARTER in Sprint Race I am trying …

Software Development java
Member Avatar for oldSoftDev
0
113
Member Avatar for Fouly

Hi, I'm trying to count files in a desired directory using MFC... I tried the following code: [code] int CountFiles(const std::string &refcstrRootDirectory, const std::string &refcstrExtension, bool bSubdirectories = true) { int iCount = 0; std::string strFilePath; // Filepath std::string strPattern; // Pattern //std::string strExtension; // Extension HANDLE hFile; // Handle …

Software Development c++
Member Avatar for Fouly
0
259
Member Avatar for abby2589

can someone tell me whats wrong with this codes, because there's some error in printing.. [CODE]#include<stdio.h> #include<iostream.h> struct bday{ char month[2]; char date[2]; char year[4]; }; struct contacts{ char surname[10]; char phoneno[12]; }; void main(void) { struct contacts con[2]; struct bday bd[2]; int i; for(i=0;i<=2;i++) { cout<<"\nSurname : "; cin>>con[i].surname; …

Software Development c++
Member Avatar for Ancient Dragon
0
90
Member Avatar for MJV

I have a stored procedure which returns a parameter @quotenum when run in sql but I'm having trouble getting a return value in my C# form. I'm trying to get the message box to show the @quoteno parameter but im failing misserably. The connection is working an the parameter @estnum …

Software Development open-source
Member Avatar for Seemant
0
194
Member Avatar for 3pid

hey guys, I built an array of objects but I don`t know how to access it`s methods or fields.It keeps sending me errors How should I access them?

Software Development
Member Avatar for LizR
0
124
Member Avatar for Dumpen1337

Hey I got some quetions [b]Question 1:[/b] I have a image that is in a picturebox which is called pictureBox1 I want to read monstersetbase.txt and add small ellipses to my image. The position of the ellipse comes from my monstersetbase.txt. The image is 256x256 and the coordinates is example …

Software Development
Member Avatar for viper1891
0
231
Member Avatar for winrawr

I've tried everything, and I just can't get my program to compile in visual basic. Someone tell me what I'm doing wrong? see attached image, are the includes in the wrong spot or WAT!??!?!

Software Development visual-basic
Member Avatar for winrawr
0
814
Member Avatar for MJV

I have created and tested a stored procedure that works in sql. This stored procedure has one parameter that it requires to run "quoteno" . I already have the database attached to the form. Can anyone help me with the code for this. The name of my stored procedure is …

Software Development
Member Avatar for JerryShaw
0
222
Member Avatar for DemonGal711

I'm dealing with a map of vectors, and I'm making sure I clean up all the memory used. So, what exactly is the best way to handle this? One person said to use clear() on each vector in the map and then use clear() on the map, but I don't …

Software Development c++
Member Avatar for DemonGal711
0
90
Member Avatar for arshad115

i m having so many problems,i m trying to make an hotel database management program in win32 console and i m not allowed to use structures,only variables or pointer or Dynmaic arryas. i m using 2d dynamic array,i have to pass it to a function to store values in it,i …

Software Development c++
Member Avatar for vmanes
0
170

The End.