132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Anbuvengeance

hi everyone, may I request a sample code on how to read/write a binary file in C++. Thanks.

Software Development c++
Member Avatar for Anbuvengeance
0
79
Member Avatar for college.student

I'm running a simlpe hello world program in visual c++ but in the console mode but i keep getting all these errors unbale to start program c:\users\johnathan\warfield\documents\Visualstdio2008\projects\program1helloworl\Debug\program1 helloworld.exe the system cannot find the specified file. how can i find this error???

Software Development c++
Member Avatar for Comatose
0
112
Member Avatar for badbloodyeyez

Hi, I want to know how can I eject a removable device. The device is assumed to be a USB memory stick and comes on a E drive so therefore I would like to safely remove the E drive when the user log off! The code for log off is …

Software Development visual-basic
Member Avatar for badbloodyeyez
0
157
Member Avatar for npasma

OK, yeah u guessed it. VBnoob here. Like so many other poor souls, lost in a sea of code...heres the dealio- I know param's need to be completely done and in the correct order for executeNonQuery() to work, but here's my error: Exception Details: System.Data.OleDb.OleDbException: No value given for one …

Software Development open-source vb.net
Member Avatar for Comatose
0
464
Member Avatar for shers

When I double click on a slide, how do I pass the filename of a selected image in a form, to another form? [CODE]public void DblClickSld(object sender, System.EventArgs e) { frmZoom fZ = new frmZoom(); MessageBox.Show((string)((AxSlide.AxSlide)sender).FileName.ToString()); fZ.Show(); }public void DblClickSld(object sender, System.EventArgs e) { frmZoom fZ = new frmZoom(); MessageBox.Show((string)((AxSlide.AxSlide)sender).FileName.ToString()); …

Software Development
Member Avatar for shers
0
263
Member Avatar for kaviths

[code] #include<iostream.h> using namespace std; class first { int reverse() { char name[]={'k','a','v','i','t','h','a','/0'}; int 1=0; while(name[i] != '/0') { i++; cout<<"value of i is"<<i<<endl; } } int main() { first f; f.reverse(); } }; [/code] my file's name is cpp.cpp and i cannot run it using ./a.out I get a …

Software Development c++
Member Avatar for Freaky_Chris
0
91
Member Avatar for number87

I am doing a shell script to be able to read some records from a file, then ask the user to input a name. The script should then be able to search the records and only print out the requested record. I have figured out how to print the records …

Software Development shell-scripting
Member Avatar for Salem
0
116
Member Avatar for TasostGreat

I'm trying to write a program which reads a file really small size with two number and a character and ouput another file which can have up to 120.000.000 characters. is unistd equal to direct system call function? and if yes is it the fastest way to read/write data on …

Software Development c++
Member Avatar for TasostGreat
0
211
Member Avatar for shers

Hi, I have some images that has to be displayed on a form from a dynamic folder using control array. The controls display 5X3, that is 15 images on one form. How do I display the next set of images using Next button, and go back to the previous set …

Software Development
Member Avatar for LizR
0
185
Member Avatar for mcamacho07

Here is an ex of a problem I'm having difficutly with. I need to make up a program that does the following: asks user for the number of seconds and the number of miles traveled program should convert the given number of seonds into different units of time in years/days/hours/minutes/seconds …

Software Development c++
Member Avatar for Salem
0
574
Member Avatar for bobomicgruvins

I am currently trying to write a program to compute permutations of the array [0,1,2,3,4,5], I need to save all the permutations to another array and I also need the first digit, 0, to be fixed. I have searched through quite a bit of literature on doing this, however I …

Software Development c c# c++
Member Avatar for Salem
0
228
Member Avatar for phoniel

Hey - I'm new asking questions here. I'm writing a simple program to give a number to a power using a recursive function (inconvenient, but that's the assignment). It seems as though the program should work, and debugging shows that it almost does. It has the right value up until …

Software Development c++
Member Avatar for devnar
0
139
Member Avatar for caps_lock

With the code below I am getting an error reading long cannot be dereferenced, how can I solve this problem? [code] import java.io.File; public class TestingClass { public static void main( String [] args ) { File actual = new File("."); for( File f : actual.listFiles()) for( File e : …

Software Development java
Member Avatar for ~s.o.s~
0
376
Member Avatar for l_03

[ICODE] import java.io.BufferedReader; import java.io.FileReader; import TokenizerProcess.StringTokenizer; import javax.swing.JOptionPane; public class ReadFile { public static int count = 0; public static String[][]file = new String[6][3]; public void isReadFile(){ SubjectInput input = new SubjectInput(); try{ BufferedReader reader = new BufferedReader (new FileReader("SubjectFiles/subjects.txt")); String line; while((line = reader.readLine())!=null){ StringTokenizer tokenFile = new …

Software Development java java-swing
Member Avatar for ~s.o.s~
0
148
Member Avatar for radhasb

I am writing a program in which I have done ALOT of coding already but there are still problems and features to be added. So far my program: 1) Takes data from a .dat file and displays it on a table 2) There is a button for which you can …

Software Development java java-swing
Member Avatar for quuba
0
395
Member Avatar for integer*09

Hi all, Currently, i'm having a window to show rows of data. the following is for 1st row: [ICODE]a0_1->Text = "blah,blah"; b0_1->Text = "blah,blah"; c0_1->Text = "blah,blah"; d0_1->Text = "blah,blah"; e0_1->Text = "blah,blah"; ...............[/ICODE] And as for the 2nd row, its just a change for the last integer of the …

Software Development c++
Member Avatar for integer*09
0
89
Member Avatar for Clockowl

Hey guys, I was wondering... I always assumed that references were more or less constant "dereferenced" pointers. With that in my mind I tried to do this: [code=cpp] #include <iostream> #include <string> using namespace std; void outputIt(const string * const textz00rs){ cout << *textz00rs << endl; } int main(){ outputIt("window"); …

Software Development c++
Member Avatar for Narue
0
316
Member Avatar for LucyB

Hi again, Suppose we have an array. Array(3). The user has written 5, 6, and 7 to (0) (1) (2) within that array. How would I add them up? If it's like Array(0) + Array(1) + Array (2) that's all very well but.. What if the array size was (10). …

Software Development c++
Member Avatar for William Hemsworth
0
224
Member Avatar for jorgeberber

Im trying to add a subtotal to my script but i cant think of a way , i tried adding another function to it so it would calculate the subtotal as i go but it wont happen ... . Also i tried returnig the value of this function to another …

Software Development c++
Member Avatar for Lerner
0
168
Member Avatar for noodlecode

I took a class on C++ a few months back. I just finished reading Sams "teach yourself C++ in 21 days" which took me way longer than 21 days to finish. but i feel like i have a basic understanding of the language that was presented in that book. The …

Software Development c++
Member Avatar for MosaicFuneral
0
93
Member Avatar for ahspats

I'd like to implement a sorting algorithm(quicksort or bubblesort or mergesort... it doesn't matter. anything that sorts is ok) into my insert function, so that everytime i create a new element it'll be inserted into right position. The variable listptr is the pointer pointing to the address of the first …

Software Development algorithm c linked-list
Member Avatar for Luckychap
0
146
Member Avatar for BioHazard90

[CODE]class MyProgram { static void Main() { int[] integers; // declare array integers = new int[10]; // size array } }[/CODE] In which line is the array actually instantiated?

Software Development c#
Member Avatar for BlackSun
0
134
Member Avatar for shazzy99

Is there a way to keep the text formatting as it is while reading content form word into richtextbox control in C#?

Software Development
Member Avatar for BlackSun
0
71
Member Avatar for u8sand

Hello guys. I made a simple program that works like command prompt. You insert a command, it inserts it into system(); why i do this? because im also adding my own commands. so before it goes into system. it checks first if its one of my newly made commands. Whats …

Software Development c++
Member Avatar for u8sand
0
166
Member Avatar for shazzy99

I'm using the writeAlltext method to save a text file with the contents saved in string variable namely textFile1. File.WriteAllText(saveFileDialog1.FileName, textFile1); However for each blank line i'm getting two boxes in the output text file. I need to keep the formatting as it is while saving a file. the blank …

Software Development file-system
Member Avatar for Ramy Mahrous
0
191
Member Avatar for yasserovic

This challenge is ( large and easy ) at the same time .. Those who accept this challenge and want to join the fun and interest, We Will take The Best first Program ,, and he will be The " WiNnEr", ================================================ Description The aim of this project is to …

Software Development c++ unix
Member Avatar for Murtan
0
122
Member Avatar for titosd

hello, I have a matrix (string array that have words) and I want to write a function that receive the word and consider whether the word existed or not in the matrix I"m trying to write the function, but i didn't succeeded. this is my code [code] int CheckWord (char …

Software Development c
Member Avatar for Aia
0
146
Member Avatar for gaurisweet2

hey guys can anyone juss gimme a hint about how can i make such a facility in my project that i a client can send a form as an attachment via email plz waiting for ur reply gauri

Software Development visual-basic
Member Avatar for gaurisweet2
0
85
Member Avatar for FallenPaladin

Hi I am having a slight problem with dynamically listing the methods of a selected class. The code I have written is: [code] private void ListMethods(ClassA aClass, ComboBox cmbMethods) { Type type = typeof(Application35.ClassA); foreach(MethodInfo aMethod in type.GetMethods()) { cmbMethods.Items.Add(aMethod.ToString()); } cmbMethod.Visible = true; } [/code] There are a number …

Software Development
Member Avatar for Ramy Mahrous
0
121
Member Avatar for scru

Is there a function in the Windows API I can use to get recent files opened by my application instead of just setting them? (Before you tell me; yes, I know it won't be hard to do myself.)

Software Development api c windows-api
Member Avatar for Ancient Dragon
0
188
Member Avatar for Dannyo329

Does anyone know a decent site for studying about ctime(or time.h) in c++ thats good and doesn't end up telling you its in C?:@ :-/ Cos' when I search on google and I when thought I had found a great site, its actually for C programmers. Any help would be …

Software Development c++
Member Avatar for Narue
0
125
Member Avatar for perfect_girl

[COLOR="Red"][B]I have A project and I need someLibraries in opencv and join it with c++ but I didn't know how to but it Is there any books can help me and where can I find the libraries for opencv?[/B][/COLOR]

Software Development c++
Member Avatar for oanluir
0
152
Member Avatar for supremesoul

hi guys! How can I play mp3 / wav file using C language........ please help. Thanx in Adv.

Software Development c
Member Avatar for scru
0
105
Member Avatar for u8sand

Hello everyone. I want to know how to get my internet IP without going to a "www.ip-address.com" or somthing to get it. I thought about using winsock, but i am still a winsock beginner. I want to connect to 127.0.0.1 (loopback ip) and do a GetHostInfo() command of some kind …

Software Development c++
Member Avatar for u8sand
0
185
Member Avatar for dalbirsingh

Can u people help me in getting java code to transfer files (FTP) over the LAN.Give me the complete code for this. I wan that a FTP request to be send to the desired host and if the host accept the request then the browse menu be opened that allows …

Software Development java lan-wan
Member Avatar for ~s.o.s~
0
170
Member Avatar for J-P

Hi, I have a small problem... I'm developing a small application (very similar to the Windows Task Manager) that I want to be able to control other application windows (Bring them up, change focus, minimize them and so on). I don't know how to control the other windows, but I …

Software Development vb.net
Member Avatar for J-P
0
129
Member Avatar for keyser_soze

i have been using CreatProcess in my program to initialize another program with two command line arguments as C:\\Documents and Settings\\xyz.exe and 2 so the code i am using is [code=c] CreateProcess ( "C:\\abc.exe", " C:\\Documents and Settings\\xyz.exe 2", NULL, NULL, FALSE, NORMAL_PRIORITY_CLASS, NULL, NULL, &si, &pi ); [/code] but …

Software Development c
Member Avatar for Salem
0
118
Member Avatar for letlet_pogs

Hello, have a good day everyone. I am confused if what elements are to be inserted in a queue. Are only numbers can be inserted in a queue? Are letters or word(e.g."Subject") can be inserted in a queue? Thank you ahead everyone. Have a nice day.

Software Development java queue
Member Avatar for ~s.o.s~
0
101
Member Avatar for rak4u

Hi all i am a newbie in development I have a window application in vb.net in VS 2003 there is a tabcontrol which has three tab pages. i want that user was not able to change tabpages by clicking tabcontrol rahter than it is done by clicking button on tabpages …

Software Development vb.net
Member Avatar for Ramy Mahrous
0
2K
Member Avatar for FallenPaladin

Hi, I have I am trying to create a program for my lecturer, who has asked me to create an application containing a number of different class that all inherit from an abstract class. This has been completed and encapsulated, however in writting the application that utilises these classes I …

Software Development oop
Member Avatar for FallenPaladin
0
116
Member Avatar for daviddoria

Anyone see a problem with this line? My Color header is included (I use it all the time). map and vector are included. [code] void GenerateColors(map<Color<unsigned char>, int> &Map, vector<Color<unsigned char> > &List, int num) [/code] I don't see anything wrong? Dave

Software Development c++
Member Avatar for StuXYZ
0
158
Member Avatar for MrGreggles

Hi, I am using a WebClient to FTP files to a server. A question I have though, is how to create a new folder on the server. There doesn't seem to be any option with a WebClient. Thanks in advance! MrGreggles EDIT: Don't worry, I sat down to eat an …

Software Development apple
Member Avatar for LizR
0
111
Member Avatar for sivak

how do retrieve 8 th coloums and 10 th row in datareader?

Software Development
Member Avatar for sivak
0
76
Member Avatar for leeba

I am trying to figure out how many ways you can go if you only take one or two steps. For example. If the number is 4 there are 5 ways you can move going one or two steps. I have to do it with recursion. I have the following …

Software Development java
Member Avatar for BestJewSinceJC
0
95
Member Avatar for sivak

can anyone tell me how to create a assembly ..and how do use it in our application..i am new for .net so only ...how do find out the error in dll?

Software Development assembly
Member Avatar for BlackSun
0
90
Member Avatar for learningxslt

Hi All, I have a set of elements to be added to an existing XML document. I would like to write a XSLT tranformation for this. My requirement is that I need to check whether the element is already there in the XML file. Only if its non existent, I …

Software Development xml
Member Avatar for fpmurphy
0
5K
Member Avatar for osan

Hi, I have a code and I want to add a .cpp file that I made and use the functions that I've done in that .cpp file. So at this project I am adding the ekf.cpp file and then included....but I get this errors. 1>Linking... 1>ekf.obj : error LNK2005: "void …

Software Development c++
Member Avatar for Ancient Dragon
0
281
Member Avatar for Unrealx_

Hi, got some questions.. 1) when i open an openfiledialogue nd then select multiple files,how to add each of the selected files in each datagridview row.. 2) how to set progress bar for copyng a file using file.copy..

Software Development
Member Avatar for LizR
0
80
Member Avatar for Erikmmp

Hi, The program I'm making to teach myself C++ uses a user-specified file and then does the opening and read/write whatever stuff. The error i get is this when trying to compile the read_file.open(in_file) line: "no matching function for call to 'std::basic_ifstream,char, std::char_traits> >::open(std::string&)'" Please help Thanks [CODE=C++]#include <iostream> #include …

Software Development c++
Member Avatar for Erikmmp
0
123
Member Avatar for mmmark

I need the source code from an EXE to customize a little. The programmer had died last year who developed it. He did not took backup the code on his PC.

Software Development visual-basic
Member Avatar for jbennet
0
124

The End.