64,152 Solved Topics
Remove Filter ![]() | |
Hi, I was told that you can crash Windows in C++ or C by "corrupting the kernel", and I wanted to know if this was actually possible. If anyone knows if this is possible, or how it happens, please tell me. ;) | |
Hi, Thanks for checking this out. The error is that when I use ob_start to store the results of an include file my fwrite statement later on in the code works but only writes a blank file, whereas when the ob_start is not present the fwrite function writes the file … | |
Hello everyone. I need help using an instance of a class in another. Below are two header files. NumDays.h and TimeOff.h I need to have instances of the NumDays class in the TimeOff class as members. When i try to create the instance called maxSickDays, i do not get access … | |
OK, I'm making a backup application and once the backup is complete, I want it to flash FINISHED!!!! - in different colours - any help at all would be appreciated, thanks - MaxICube | |
Hi , I am newbie in C#. I created a database by right clicking on the project in solution explorer and by selecting add new item then selecting database. Database name is SAMP and it has a table called Account. can somebody tell me how to connect to this database … | |
hello guyzz,,,i am almost finished with my code,,but our teacher require us to access a text file..this is it: in my text file: accountList.txt 12345 1234 200000 Jerry Lopez first column was accountNumber, then the pinNumber, then the balance and the name.. what i did was... import java.io.*; public class … | |
Is it possible to get the value of a non-standard attribute in firefox? I am trying to capture the value of attribute required. In IE I am able to get the value using document.form.required but in firefox it just returns undefined. [CODE=html] <html> <head><title></title></head> <body> <form id="form" name="form"> <input type="text" … | |
hey there im hoping that someone can help me in solving this problem i keep on getting this error when i try to connect from register.html to register.php. Here is my code! [code=php]<?php //Database Information $dbhost = "localhost"; $dbname = "musicwebsite"; $dbuser = "root"; $dbpass = "xxxx"; //Connect to database … | |
hello everybody, i want to pass directory name as a variable in include function like this, [ICODE] $page = 'test'; include('$page/test.php'); [/ICODE] i know this a wrong way, but i don't know how to do it. please anybody help in this regard. Thank in advance.... | |
This is what i did for the factorial assignment that we had.. but i have a little trouble in my recursionFactorial method.. can anyone help? tnx public class Factorial { public static void main(String[] args) { int index = JOptionPane.showConfirmDialog(null,"Would you like to compute\n" + "for the factorial of a … | |
I wondered if anyone could help. I am trying to use a FileChooser in java. I have got the dialog box to appear and can select the file, but the box just displays "opening" and the file name. how to I add to the code to make it actually open … | |
hi all, I want to restrict user enter upto value 1000 in a datagridview cell editbegin event.How to check this after we set the following. dataGridViewValueUnits.BeginEdit(true); | |
Hi All I am trying to convert xml file to a text file. But my program creates an empty text file and does not copy any text from the xml file. Please help Thanks My code: Dim Doc As New XmlDocument Dim NodeList As XmlNodeList Doc.Load("C:\Temp\MyXml.xml") NodeList = Doc.SelectNodes("/response/TAG") Dim … | |
The protection on code generated in NetBeans is great. untill it gets it wrong and you have an arbitrary line protected and it totally stuffs up your code and you can not longer work on your project!! Anyone know how to temporarily remove the protection, edit what you want and … | |
I have made this application where theres a tlistview whit image destinations in it. Then i got a timer to shift the picture. then ive addet a random function to shuffle through the picture. now what i want to happen is that the same picture dont get shown twice. So … | |
hey there , Im taking C++ courses in my collage (so ım a newbie) and they are teaching programing language a bit different from the examples in this forum. [code=c] #include <stdio.h> int main (void) { int x; int y; int z; int min; printf("enter 3 numbers : "); scanf("%d … | |
[code] void writingTransactionToFile(string transaction) { string temp; int test; ifstream myfile("transactionlog.txt"); ofstream tempfile ("tempfile.txt", ios::app); if (tempfile.is_open()) { tempfile << transaction; if(myfile.is_open()) { while(!myfile.eof()) { getline(myfile,temp); cout << temp; tempfile << temp << endl; } } else { cout << "Unable to open file."; } tempfile.close(); myfile.close(); } else cout … | |
I have had this problem a couple of times but i am unsure of what it means. could someone tell me what the error message "non-lvalue in assignment" translates to in english, please? | |
I currently have a table in oracle which I have created, but need to take a text file (which I have used a fileChooser for) and then use this file to update the records in the oracle database. How would I go about this? Thanks. | |
I decided to learn the template any how.... but... Each level is giving me the trauma staring up with the domino one after another.. please help.... Problem is I use both printf(); and cout<< for the console output... now the problem lies that i can't just leave one of them.. … | |
I have been writing a Loan Program that requires at one point to read a .txt file and create an array from the contents. This part is nothing new to me. The problem I have is a single line of code and I cant figure out how to make it … | |
Hello Developers! I have been searching for long lame binding for python and have no way but need to learn ctypes to use lame_enc.DLL. For Now I need simple DLL with simple functions to play with. My Question is: Where can I get that simple yet safe DLL to play … | |
I have absolutely no clue why the following code works except for the following three characters: ç, à and è. It should rule out all non-digit characters from being written into an edit control. Because it let's those three pass trough I am forced to turn this: [code=cpp] if(!isdigit(editControl_Content[2])) [/code] … | |
Hi I'm trying to use Free Pascal for a simple problem - passing a function as a parameter to a procedure. This works fine in Turbo Pascal, but in Free pascal throws up the error: Wrong number of parameters in call to "<function name>" In all other respects Free Pascal … | |
Hi there, new to the community and first of all just wanted to say its great to be here. I'm rather new to C++ and i was having an issue perhaps someone could clear up for me. Alright, our instructor for a class im taking would give us simple programs … | |
I have this program all working, except in how the text looks in the file. The text is supposed to be all on different lines, but its all on the same. Here's the code: [code] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; /* * class LogOrder * Allows user … | |
i am tying to query from a db and cant get the time section to come back with the correct result PLEASE HELP!!!!!! [ICODE]<html> <head> <title>Loggin DB</title> </head> <body> <h1 align=left>Please enter search feilds:</h1> <body bgcolor="#82CAFA"> <form method="get" action="loggin1.php"> Page: <select name="Page"> <option value="approve.php" >Approve</option> <option value="custquery" >CustQuery</option> <option value="slpnlogin">SlpnLogin</option> … | |
Basically I'm reading from a file and populating a dynamically allocated array with the words that are in the file. I've already read through the file to figure out what numArts is, so I know how many words there are in the array. This works up until the: [CODE]arts[index] = … | |
I am trying to create an authentication script. I am trying to use the PASSWORD function within Mysql but it wont work. Any ideas [CODE] #!/usr/bin/python # e begoli, python connector for mysql # import MySQL module import MySQLdb import cgi print "Content-type: text/html\n" # connection db = MySQLdb.connect(host = … | |
hello how can i display an information messagebox in asp.net with message and title ? | |
Hi, I'm having this problem and can't get a solution anywhere. -- <Introduction:> I have a master page, then I have a content page which contains a little login form wrapped in <div id="LoginTable"></div> What I want, is to use a ScriptaculoUs JavaScript Effect.Highlight(...) on some mouseovers. The Effect.Highlight is … | |
I have to write two programs, one writes to file based on what the user selects. The other reads the file, and outputs what the user selects. And I'm really not sue if I'm doing this right. Here is what I have for writting to the file: [code]import javax.swing.*; import … | |
Hello. I am currently having problems. I am asking a user to input the position and number of where they would like to insert into the Linked List. After the user input the information, the number does not appear in the Linked List, but everything else does. Can someone help … | |
I have to make a program where I take a file that contains users order information(the file is from another program I had to make), and then tests it and outputs how many of what it orders. I cant seem to get it to work, its running but then at … | |
Hi, How to insert a combox to a column of list ctrl in MFC?....such tht i can select a particular item from a list of items in the combo box of list ctrl column....plz help | |
Johnson's algorithm is a way to find shortest paths between all pairs of vertices in a sparse directed graph. The problem is I can not seem to find any good documentation on it nor any code to analyze. I have been to Wikipedia, read some algorithm books and some power … | |
Hey guys, I've found this article showing how to manipulate itunes using java and com objects. However I dont really understand how it works, and can't seem to tell java to send a play / pause request. The event listeners works. [url]http://www.workingwith.me.uk/articles/java/itunes-com-with-java-and-swing[/url] Could someone try and expand on this? Or … | |
Hello. I'm having problems in 2 different functions: GetNth() and InsertNth() 1) For my GetNth() function, I want to take my linked list and an integer index and return the data value stored in the node at that index position. For example: {42,13,66}, the index of 1 should print out … | |
Hello, I am writing a program that will read in a pair of inputs, (P, S), summarizing the results of a code inspection. One input is the integer problem number, P, and the other is the severity level, S, of that problem. Since a typical code inspection will never have … | |
friends i have a problem. i want to find out tcp statistics(bytes recieved&bytes send). for this i used this code [CODE]dim a as system.net.networkinformation.tcpstatistics dim aa as long aa= a.bytesreceived() [/CODE] this code shows a warning as [QUOTE]Variable ‘a’ is used before it has been assigned a value. A null … | |
hello all i am facing a problem when i try to add new records in to data base. first of all my tech details are given below Front end - vb 6 Back end - Microsoft SQL Server 2000 i am connecting to sql through ADODB connection ( through code … | |
I am trying to solve a tricky problem involving a sorted array. Say I have an array of sorted integers (8, 6, 4, 1) and given the value x I need to check the array to see if any two numbers add up to x. This needs to be done … | |
[code]void decryption() //this function decrypts whatever the user inputs using keys 1 - 100, providing all possible decryptions { const int MAX = 100; string code, output; char array[100]; cout << "Enter what you would like decrypted" << endl; cin >> code; //herein lies the problem strcpy(array, code.c_str()); for (int … | |
Is there a way to Alt-F4 programatically. It will be used to close another programs window that opens wich is the topmost form on the desktop. | |
Ok, so I've been working on this code for a day now and i thought I had all the kinks worked out, but my program isn't working right. I'm writing this code to simulate a game (basically a simulation of a simulation) used to illustrate some topics we are trying … | |
I am a bit confused. I am trying to make a program that will take the choices you make and display them all simular to this: Item 1. Sword Item 2. Shield Item 3. Potion Item 4. Potion but when I try to run it it looks more like this … | |
Can anyone help me please? i need to create a program in which you enter a distance and the program will tell you how long it will take to get there in hours minutes and seconds. My trouble is that they all display independently and not seperately ... for example … | |
Hi, everyone. I am doing a performance test on the heapsort. I wrote this program and it has a run-time error that I cannot explain. I am compiling on Microsoft Visual Studio 2008 and this is the error. HEAP CORRUPTION DETECTED after Normal Block ... well, I think that the … | |
Hi, I am new to java and would really appreciate it if someone could look at the code I have attached. This is part of a java lab assignment that I have got to do for university. For reference, I have also uploaded the lab file. I am trying to … | |
Here is my code I'm pretty sure the problem has to do with using namespace std and the included header files but I can't figure it out (error string no such file or directory in .h, error iostream no such file or directory in .h,error syntax error before namespace) box.h: … |
The End.