132,726 Archived Topics
Remove Filter ![]() | |
hi everyone, may I request a sample code on how to read/write a binary file in C++. Thanks. Software Development c++ | |
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++ | |
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 | |
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 | |
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 | |
[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++ | |
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 | |
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++ | |
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 | |
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++ | |
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 … | |
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++ | |
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 | |
[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 | |
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 | |
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++ | |
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++ | |
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++ | |
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++ | |
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++ | |
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 | |
[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# | |
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++ | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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 | |
[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++ | |
hi guys! How can I play mp3 / wav file using C language........ please help. Thanx in Adv. Software Development c | |
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++ | |
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 … | |
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 | |
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 | |
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. | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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++ | |
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 |
The End.