132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for MillStrike

Goodday people! This time I am trying to index all files of a kind from any subdirectory. To index all files from a selected directory and 1 sublevel I use this code: [code] arrayCount = 0; DirectoryInfo di = new DirectoryInfo(SourceString); FileInfo[] rgFiles = di.GetFiles("*.mp3"); foreach (FileInfo fi in rgFiles) …

Software Development
Member Avatar for MillStrike
0
123
Member Avatar for Laiq Ahmed

Can any1 tell me about the tutorials and description regarding new c++ standard. specially the improvement in STL.

Software Development c++
Member Avatar for vijayan121
0
108
Member Avatar for abar_sow

For my proje i want to remove a unwanted paragraph in a text file. For example my text file may have acknowledgment in between sum useful data so i want to remove the acknowledgment paragraph fully...can anyone tel how to do tat

Software Development java
Member Avatar for Ezzaral
0
105
Member Avatar for dick3425

How do I open a HTML page in VB.NET 2003? I am trying to build a main menu page and would like to open an HTML document from the main menu. Can anyone help? Dick [email]rlafran2@travelers.com[/email]

Software Development html-css vb.net
Member Avatar for dick3425
0
126
Member Avatar for BULK

Hi, all. I'm not so good programmer, but I have tried to read from the serial port and display the string content to 4 textboxes. Problem is when I use Mid, then only one piece of the string is displayed. [Private Sub btnVoltage_Click() Timer1.Enabled = True MSComm1.Output = ("B9" & …

Software Development visual-basic
Member Avatar for BULK
0
93
Member Avatar for rjc

Hello all, this is my first post. My problem is with division and/or the way i am declaring variables. here's my code: [code=cplusplus] #include <iostream.h> int main () { int minutes; float hours; float minutes_late; cout << "How many minutes late are you? " ; cin >> minutes; hours = …

Software Development c++
Member Avatar for WaltP
0
96
Member Avatar for deck55

Currently I have a list that I have read from a file and it looks similar to... file = [S,D,S,D,S,D,N,S,D,S,D,N] What I was wondering is there a way to loop through the list so that I get multiple lists. For Example.... List1 = [S,D,S,D,S,D,N] List2 = [S,D,S,D,N] If someone could …

Software Development python
Member Avatar for deck55
0
93
Member Avatar for MattEvans

I'm working on a C++ module to read wavefront OBJ files; these are text files with many lines with either 2, 3, or more integer or floating point numbers; separated by spaces or tabs. It's not always possible to know how many numbers there will be in a single line …

Software Development c
Member Avatar for Narue
0
139
Member Avatar for City one

Hi, (by the way, this site is one of the best forum (display) I 've seen). I have a big issue I would like to resolve, let me explain; I have built a script where I can put IPs into a list and then once I press 0, this list …

Software Development python
Member Avatar for City one
0
89
Member Avatar for choudhuryshouvi

Hi, all this is my question:- I am creating a double tier vb6 application with access in format 7.0 mdb. For this application i'm creating reports using crystal report 9. Now i want to show the report to view data from tables after passing some criteria. I have a table …

Software Development visual-basic
Member Avatar for choudhuryshouvi
0
689
Member Avatar for George2

Hello everyone, I am wondering if I want to debug JNI application (upper layer Java and lower layer C), are there any tools to debug through Java code to C code and return back from C code to Java code. I am using Eclipse. But I do not find such …

Software Development java
Member Avatar for vvl
0
143
Member Avatar for conan19870619

How are an object’s data members initialized if a class has only an implicitly defined default constructor? And why a class might provide a "set" function and a "get" function for a data member? What is the purpose of the scope resolution operator?

Software Development c++
Member Avatar for n.aggel
0
575
Member Avatar for jaepi

Hello there, I've been messing around with threads these days. Currently, I'm having problems with one of my variables of type [B]pthread_cond_t[/B] (let's call it variable [B]Z)[/B]. I made a class (let's say class [B]X[/B]) , and you guessed it right, [B]Z[/B] was declared in it with private access level. …

Software Development c++
0
386
Member Avatar for kshrini

Dear All, I'm developing an application in visual basic 6.0. I'm using Crystal Report 11 developer. I've taken Report Viewer using which I can able to view the report but PrintReport method gives error. Anybody has solution for this? Shrinivas

Software Development visual-basic
Member Avatar for jireh
0
517
Member Avatar for eranga262154

I've read 4 consecutive bytes from a binary file, and store the value as follows, [CODE] int main() { char next4[4] ; while(!fileopen.eof()) { fileopen.read (next4, 4 ) ; } } [/CODE] What I want to do is, that value in next4 want to convert into a decimal/int value. How …

Software Development c++
Member Avatar for eranga262154
0
200
Member Avatar for eranga262154

I have a binary file, contain set of stream, and I want to find some information there. What I have done up to now is read the file, open it and count the number of streams three. I'm stuck now. Just consider one stream. I want to skip first 4 …

Software Development c++ file-stream
Member Avatar for eranga262154
0
2K
Member Avatar for annagraphicart

Okay, so i've gotten some help, however i'm still missing some things. In the code below, I have a Bowler's name, and their score. [code=cplusplus]#include <iostream> #include <string> using namespace std; int main() { string names[3] = {"John","Anne","Mary"}; int score[3] = {5,1,2}; //i.e //John's score = 5 //Anne's score = …

Software Development c++
Member Avatar for Ancient Dragon
0
103
Member Avatar for curt22

How can I make this print the text in the edit box when you push the button instead of "You pushed a button." I have looked all over but I can't figure it out. [CODE] #include <windows.h> #include "resource.h" HWND hWndButton; HWND hWndEditBox; HFONT hFont; /* Declare Windows procedure */ …

Software Development api c++ data-structure queue windows-api
Member Avatar for curt22
0
143
Member Avatar for thompsongunner

I am trying to use the bit fields in a useful way to create packed fields that can be sent out as packets. Let's see if my code can help explain: [code] from ctypes import * class myPacketHeader(Structure): _pack_ = 1 _fields_ = [("seqnum", c_ubyte, 8), ("is_command", c_uint, 1), ("address", …

Software Development python
Member Avatar for thompsongunner
0
3K
Member Avatar for neilyan

im trying to creat a class called Date that includes data members: a month, a day and a year (all type int). that have a constructor with three parameters to initialize the three data members. i have to use a set and a get function for each data member and …

Software Development c++
Member Avatar for neilyan
0
170
Member Avatar for daniweb2013

Hi, I want to make media player with VB. the problem is when i lunch components window, there isnt any item called Microsoft Multimedia control 6 What should i do?!

Software Development multimedia visual-basic
Member Avatar for daniweb2013
0
103
Member Avatar for tonyf

Hi Does anyone know how to create a tip of the day dialog for VB 2005. the examples that I've found so far do not work. Tony

Software Development vb.net
Member Avatar for waynespangler
0
171
Member Avatar for KimJack

Hello all, I have a text file with columns of words Boat Car Van Sue Bird Hue Billy Don Yoe... How do I read each separate column into separate arrays. Array 1 will read: Boat Sue Billy Array 2 will read: Car Bird Don... Any suggestions on how to accomplish …

Software Development java
Member Avatar for KimJack
0
121
Member Avatar for spankyg

[code] [COLOR=green]#include[/COLOR][COLOR=green]"stdafx.h"[/COLOR] [COLOR=green]#include[/COLOR][COLOR=green]<cstdlib>[/COLOR] [COLOR=green]#include[/COLOR][COLOR=green]<iostream>[/COLOR] [COLOR=green]using[/COLOR][COLOR=green]namespace[/COLOR][COLOR=green] std;[/COLOR] [COLOR=green]int[/COLOR][COLOR=green] tmain([/COLOR][COLOR=green]int[/COLOR][COLOR=green] argc, _TCHAR* argv[])[/COLOR] { [COLOR=green]// Let's Declare Variables[/COLOR] [COLOR=green]int[/COLOR] Num_Pegs; [COLOR=green]// Total number of pegs to a side[/COLOR] [COLOR=green]int[/COLOR] Hold_Und; [COLOR=green]// Hold underscore location[/COLOR] [COLOR=green]// User Enters Number of Pegs[/COLOR] cout <<[COLOR=green]"Enter Number of Pegs:"[/COLOR]; cin >>Num_Pegs; [COLOR=green]// Array to create a …

Software Development c++
Member Avatar for spankyg
0
138
Member Avatar for cwarn23

I am a complete newbie to c++ and I am trying to find some tutorials. What I am trying to do is use a variable (from external text file) to rotate a 3D object. Then for the program to take a picture of the position the 3D object is in. …

Software Development c++
Member Avatar for Ancient Dragon
0
108
Member Avatar for therohanz

I got this requirement wherein i have to program the different cpu algorithm namely FCFS, SJF and Round Robin..but i dont know how to make a round robin.. please help me with it..i need it tommorow:( here's my requirement..Link: [url]http://www.4shared.com/file/24492109/a3069b64/ALGO.html[/url] if there is a problem with the link please contact …

Software Development algorithm c++
Member Avatar for therohanz
0
107
Member Avatar for Xsaintx

I have an assignment due tomorrow, my professor hasn't taught the class much of anything other than what other careers there in the programming field and how other careers differ from programming. He hasn't been of much help at all and I'm at a total loss of how to start …

Software Development c++
Member Avatar for Salem
0
98
Member Avatar for dumboo

Hello I need help in converting char * to TByteDynArray in Borland C++ Builder. Below code is suppose to work but it give me EAccess Voilation error. [code=c++] char *one = "test"; TByteDynArray two; two.set_length(sizeof(one)); Move((void *) one[0], (void *) two[0],sizeof(one)); [/code] This kind of code work in delphi and …

Software Development c++ delphi
Member Avatar for Salem
0
1K
Member Avatar for andrewktmeikle

Hey, i am having trouble with a project i have for school. The problem is as follows: I have one database(access), and it contains the specifications for 3 PC's( will be more but not atm), i have added a column stating the specification of the pc. I have an adodc …

Software Development visual-basic
Member Avatar for jireh
0
202
Member Avatar for hisdudeness300

hey everyone, im new, and i have a simple question. im writing this basic code for my class to input six different check amounts, then give the total and average. so far i have it so it works perfect with whole number. the only problem is, the numbers i need …

Software Development c++
Member Avatar for spankyg
0
76
Member Avatar for veronicak5678

i am new to programming and am trying to do a weird assignment. Here are my instructions: There is a drive-thru Car Wash that offers different services. 1) Regular Car Wash 2) Super Car Wash 3) Super Dooper Car Wash 4) Quit The fee for each one of these services …

Software Development c++
Member Avatar for veronicak5678
0
108
Member Avatar for Geek-Master

I am running Ubuntu and compiling my C++ code using g++. For some reason I can't get it to compile my source code using VOID MAIN. It is always telling me that I must use INT instead. This isn't life threatening, but I was just wondering if g++ just doesn't …

Software Development c++ ubuntu
Member Avatar for spankyg
0
191
Member Avatar for bluebird

Hello! I am trying to add new data into a database. What is the mistake in my code? I got the error message such as "general error". [code] import java.awt.*; import java.awt.event.*; import java.sql.*; import javax.swing.*; public class AddRecord implements ActionListener{ private ScrollingPanel fields; private JTextArea output; private Connection connection; …

Software Development java java-swing
Member Avatar for masijade
0
111
Member Avatar for starjsjwars

Hey can anyone tell me how to make a program that i can have a cmd in the cmd to exacute over and over waiting 1 minute each time?

Software Development c++
Member Avatar for starjsjswars2
0
159
Member Avatar for nedwards

Hi, I'm working on this project and it requires to manually control a digital camera. I have the dll that is supplied by Cannon, but the dll is unmanaged the the demo project they have with it is in C++ or C. I've been doing a lot of research and …

Software Development c c# c++
Member Avatar for nedwards
0
193
Member Avatar for Robin_Dragon

How do you read values from a file you created, to print it in an array to create a frequency?

Software Development c++
Member Avatar for Robin_Dragon
0
149
Member Avatar for Duki

Hey guys, I keep getting a link error in my code. It says this: [code]1>prob4.main.obj : error LNK2005: "private: static int HotDogStand::totalSales" (?totalSales@HotDogStand@@0HA) already defined in prob4.func.obj[/code] Here's my code, maybe someone can help me out. [code]#pragma once #include <iostream> using namespace std ; class HotDogStand { public: HotDogStand ( …

Software Development c++
Member Avatar for Duki
0
92
Member Avatar for Rashul

Hi. Please help. I can't seem to get this program to run. Tips.java Modify the exercise shown below so that it will loop, calculating a new tip each time until the user enters a value zero or smaller for the amount of the bill. Make sure there is a nice …

Software Development java
Member Avatar for Rashul
0
104
Member Avatar for ceyesuma

[code] public static Connection getConnection(){ if(connection==null){ try{ Class.forName("org.gjt.mm.mysql.Driver"); connection=DriverManager.getConnection("jdbc:mysql://localhost:8084","root","ceyesuma"); }catch(Exception exc){ connection=null;} } return connection; } [/code] Here is the bean to get connected. Should this work? [code] package db; import java.sql.*; import java.sql.DriverManager; import java.sql.Connection; /** * * @author James */ public class DBConnection { static String dbdriver; static …

Software Development client-server java mysql
Member Avatar for ceyesuma
0
134
Member Avatar for Dell XPS

I have made some(10) combo boxes in my project!!! i need to make them depend the one on the other... i mean if the first combobox is a car brand (e.g Ferrari) then the second combobox must only contain ferrari models! is there a way to hide the rest selections …

Software Development visual-basic
Member Avatar for Dell XPS
0
110
Member Avatar for kohuke

I have a program that will find the certain ammount of fibonacci numbers. And now i have the question which is the best code for counting time in fibonacci algorithm? I have to find out how many numbers can my algorithm count in 1 minute? the code: [code]//rekursiivne algoritm public …

Software Development algorithm java
Member Avatar for kohuke
0
154
Member Avatar for argonaut

:icon_smile: hi all!! i am a newbie in this forum. can u solve me the problem of interchanging/swapping the value of two varibles without using the third variable... thanks..

Software Development c
Member Avatar for Salem
0
77
Member Avatar for chris53825

Hey guys, I'm trying to make a linked list in C++ such that: it creates a node for each student in a classroom, AND that each student has it's own 4 nodes for their 4 test grades. I've created two structs - studentNode, and gradeNode studentNode containing "name" and "*next" …

Software Development c++ linked-list
Member Avatar for Narue
0
124
Member Avatar for MxDev

hi guys, i wonna to code simple program that could control the system threads in the system by block or start a new job, how to do this in java, or from where i can start to acheive this. thx,

Software Development java
Member Avatar for ksaxena
0
77
Member Avatar for random7

I did vector calculation like blow. Here I just use 2 vector addition C =A1+A2 But, now I want to add many vecters like A1+A2+...+A35 Is there any simple method beside ( I don't want to type continuously like A1,A2,A3,A4.....A35) ex) void sum(vector<long double>& C,const vector<long double>& A0,const vector<long double>& …

Software Development c++
Member Avatar for vijayan121
0
134
Member Avatar for plusplus

I need help with sql statement that includes two tables one table has id and name, lets call it tbluser second table has id and all other info, lets call it tblinfo Something like this Select id from tbluser where name = txtname Select * from tblinfo where id = …

Software Development sql visual-basic
Member Avatar for plusplus
0
106
Member Avatar for SurviBee

Was compiling homework problem with Dev-C++ and got ]Linker Error] undefined reference to determinant(float, float, float, float, float, float, float, float, float) Anyone know what this is? [code=cplusplus] #include <iostream> using namespace std; float determinant(float, float, float, float, float, float, float, float, float); int main() { float x1, x2, x3, …

Software Development c++
Member Avatar for SurviBee
0
229
Member Avatar for Duki

is there a way to make this: [code] If dvdRadioButton.Checked = False And vhsRadioButton.Checked = False Then MessageBox.Show("Format not specified", "Unspecified format", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1) dvdRadioButton.Focus() End If If movieTitleTextBox.Text = "" Then MessageBox.Show("Movie title not entered", "Movie Title", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1) movieTitleTextBox.Focus() End If[/code] throw a single error message …

Software Development vb.net
Member Avatar for matale
0
115
Member Avatar for chait_anya

hi... am using access 2003 databse in my application. i want my databse to be on the 1 pc in the LAN. and my application created in c# will be on the all machines in the LAN. So in that application i have made connection string as " Provider = …

Software Development client-server microsoft-access
Member Avatar for chait_anya
0
197
Member Avatar for Icetigris

Hey everyone. This is pretty lame of me having to do this, but I haven't done Java for about a year and this algorithms class I'm taking assumes we remember all the details. Anyway, I'm trying to implement a method from an interface in another class's main method. Here's the …

Software Development algorithm java
Member Avatar for jtonic
0
135

The End.