199,114 Archived Topics
Remove Filter ![]() | |
Having problims adding a picture files to the database. Bot sure where i am going worng, ignore the commented out lines that was my first attempt. A little help please! [CODE] 'If the query found that the name had not been entered before add it into the table If imgUpload.PostedFile … | |
can someone help me do this problem An array can be used to store large integers one digit at a time. For example, the integer 1234 could be stored in the array a by setting a[0] to 1, a[1] to 2, a[2] to 3, and a[3] to 4. However, for … | |
hi im creating an application that query data from fox pro, manipulate it and export it to excel. here is the code im using to creat excel object: Dim oExcel As New Excel.Application Dim obook As Excel.Workbook = oExcel.Workbooks.Add im getting excell.application underlined(error msg:new cannot be used on an interface) … | |
Hey all, I am just learning PHP and have pieced this code together, but I cannot get it to work. Anyone have an idea on why? First file is the file contact page. <html> <head> <title>RT Photography-Contact Page)</title> <style> BODY{font-size: 8pt; font-family: Verdana } .button {background-color: rgb(128,128,128); color:#ffffff; font-size: 8pt;} … | |
I was wondering if someone could give me a quick hand with this. I have a text box that a user types a directory location in. Obviously the directory path includes at least one "\" character and could contain many more. Because the slash is the escape character and I … | |
I need this to try every ables[z] and the move on to another check. How can i check if its finished without finding the right word in the ables against the other array. Or if its finished and has found the word. [code] for(int i = 0; i < array1.length; … | |
Hi all I'm having trouble with some of the login controls for my website. I've successfully set it up so when a user registers it enters the details into an Access database. I'm now trying to get the login to work but can't see how to implement this. I've had … | |
Hi all I've been trying without sucess to write values back to my app.coonfig. I have put my config and code below as I am having zero luck but I have followed MSDN/google pages. Does anyone know where I am going wrong? thanks [code] config.AppSettings.Settings["FTPHost"].Value = tbFtpHost.Text; config.AppSettings.Settings["FTPUserName"].Value = tbFtpUsername.Text; … | |
Note:- I am NOT asking you to write the program for me. I am NOT asking you to do the homework for me either. All I am asking you is if you could suggest an algorithm for me. Present below are two algorithms. Can you please suggest me an algorithm … | |
I'm trying to import this file [code] 45256 Rodrigues Joana 58 75 58 61 59 75 63 92 37915 Wright Michelle 98 83 56 62 63 90 57 67 81984 Williams Jenny 55 67 54 63 89 84 93 75 73984 Phaneuf Lesley 78 85 57 51 68 94 51 … | |
Is there a way to see what a macro gets expanded to? I tried to put it in quotes and use printf, but of course printf just printed exactly the string. The result of: [code] #define SetMacro(name,type) \ virtual void Set##name (type _arg) int main() { printf("SetMacro(Test, int)"); } [/code] … | |
System: Xubuntu, Karmic 9.10 Compiler: gcc Python: python2.6 IDE: CODE::BLOCKS Trying the following example: #include "Python.h" void initxyzzy(void); /* Forward */ int main(int argc, char **argv) { /* Pass argv[0] to the Python interpreter */ Py_SetProgramName(argv[0]); /* Initialize the Python interpreter. Required. */ Py_Initialize(); /* Add a static module */ … | |
Im working on shell like software under Linux, In my shell the main process print ">>" than the user enter the command. The main process forking new process that will execute the command And than new ">>" will be printed To run the wanted command im using execl (I have … | |
Extract Blocks of Info from Log File New learner..this would be my first try at writing in Python that I can actually put to use: Have log file content that looks like [URL="http://i.imgur.com/RcU3J.jpg"]this[/URL] Basically - I only want to keep "slots" with the indicator "[COLOR="Red"]/* mysql */[/COLOR]" - the blocks … | |
I'll explain what I'm doing before I get to the exact problem. I've been making a 2D game in python. Originally I was making it in pygame but I faced a problem. To prevent a very low frame rate I either had to reduce the screen dimensions and remove features … | |
Hi, I'm having trouble finding the '@' sign in multiple lines of text. What I want to do is find the @ sign, and if I have found it, print the whole line, if not, skip it. So far I have this: [code] string input; getline(fin, input); for (int i … | |
any one knows how to set an excel object to instance type....thanks | |
Hello out there. I have been racking my mind around the below code since Thursday, but I can't seem to figure out why my Search function will not find any values in the map even though I type the exact name from the text file the map is suppose to … | |
Hello, I have a problem in my program I want to check the input if it's a number or not the number Component of N boxes for example if N=4 the input 1234 is valid the input 123a is invalid i try with this code [CODE]printf ("Please enter guess no.%d … | |
How can i insert a decimal point into either an integer or a String(probably a String), 2 decimals from the right? like with money? eg/ 13922 139.22 | |
Seems that I'm going to get hung up on every CandyBar exercise in this book I'm working through. Such is life. I'm doing something stupid, and I can't see it. Something appends garbage into my structure's first field when I try to give it the defaults. [code]#include <iostream> const int … | |
Hi, my professor is asking a project. Overview: Get x number of students for a simple survey. Make a data analysis, including [1] name [2] gender [3] ID [4] Question 1 and data analysis - probability - % - distribution In this project, each student is an "object" I am … | |
When I try to use MS SQL Server Enterprise Manager to create table, I typed column name, data type as "int", however the length of "int" is 4, that is fixed I cannot change, now the problem is I need to use this column as record ID, my database is … | |
Really any ideas will help but id like to try and make the game hangman. id like to mak it simples in a gui(i dont really need the image of the hangman) but id like to atleast have it show all the letters and make them dissappear as they guess … | |
I thought I was following a recipe that worked, but not so. Can someone explain to me why this does not compile? (And I have yet to include a couple of constructors!) - Thanks, Rich. [CODE]//CIS 180 Rich Mansfield 0457321 12/6/09 //Lab11.1 - This program illustrates the use of classes … | |
I would like to make it so you enter how much you will give in (E/G £20 and £15 in change) and then it tells you how much change you get back. I will post the code and if someone could fix it so you enter amount you'll pay and … | |
First off, i would like to introduce myself. My name is Ryan, im 18 and a professional gamer. About the client! Well this client is for my clan members, they can login and retrieve updates, news, ect through a webbrowser Help! Okay, so i have set a webbrowser, two texboxes … | |
I need to string names from a text file which the name will output no more than 29 characters and no commas. My output displays no commas, but i cant figure out how to count the characters and output no more than 29 characters in the name. I think I … | |
I'm finishing up my simple shift cipher which takes a .txt file line by line and converts each character of the line to its decimal value and then adds an integer value (shift value) to that decimal value. The decryption procedure works the same way except that instead of adding … | |
Hey guys, I'm trying to get this form to display in the listbox the address from the info from the textboxes, I followed an example that uses a class to do it, but it seems I am going wrong somewhere and I don't know where. Here is the code for … | |
hi, i have the following code: [code]#include <iostream> using namespace std; class test{ public:: bool t() { cout<<"enter your answer(y or n)\n"; int answer = 0; cin>>answer; if (answer =='y') return true; else return false; } }; int main(void){ test t; return t.t; } [/code] i get this error: cannot … | |
If I have a template class: [CODE]template <class T> class myclass { public: T function(); }[/CODE] and it has a member function for example T function(), it is possible to define it separately for different kind of template parameters? So define somehow: int myclass::function(); double myclass::function(); mystruct myclass::function(); with totally … | |
Hi, I nead to do some menu in gui Netbeans. I have got buttons, and a nead to change one JPanel in witch is some others components. Could you help me how to change JPanels? or some another way to do menu? i'm not good at it :( | |
Hi All, I have a very simple DataSet linked to a ListBox. I need the User to be able to add Data and have used the following code (in a ToolStrip command button): [CODE]Dim newFileRow As DataRow = Database1DataSet.Tables("tbl_Files").NewRow() newFileRow("File Name") = fleName newFileRow("File Path") = flePath newFileRow("Times Opened") = … | |
Hello I am a fairly new to Java, below I have created a program for calculating the distance between two cites that is inputed by the user. For the second part of my program I need to have a menu system and the constant SPEED value to change according to … | |
Hi, I need to export huge amount of data from ado.net datatable(which i get by db query) to excel. I tried the following way : 1. Create excel object with workbook/worksheet @ server side...and use memory stream to write whole document to client side. But this gave me "out of … | |
Thanks for your input vegaseat. I have posted the code that is giving me the problem in the two scripts and I hope you can comment further. Thanks in advance - Elvedon. [CODE]#The script displayed below is only part of the larger original script.# #filename = 'firstScript.py' #!/usr/bin/python from Tkinter … | |
I have a question about my logic in trying to code something. Let's say I have an array of 50 values. Now I want to find the values that are over (lets say 100). And I want to print "There are 11 values over 100" Now, my question is, I … | |
As i paint any figure in Java, the lines don't look smooth and I clearly see pixels. Any not very difficult solutions? | |
I would like to update 2 fields values from one record to a set of records in the same table: I tryed this: [CODE]UPDATE dd SET dd.comment = y.comment, dd.author = y. author FROM Table1 dd LEFT OUTER JOIN (SELECT * FROM Table1 WHERE Idx=1234) y ON dd.vin = y.vin … | |
I posted a question yesterday for the beginning of this code and I'm not exactly sure what it is I'm doing wrong. Just a quick summary- I'm trying to make a zodiac calculator, well five of them, but the formatting will be similar, so if I get one right, then … | |
this is my code [code=php] $query="call call_history('','$real_sdate','$real_edate','$level','$userid',@_count,'0','10')"; //Listing the result $rs = mysqli_query($mysqli,$query); $rs = mysqli_query($mysqli,"SELECT @_count"); while($row = mysqli_fetch_assoc($rs)) { print_r $row; }[/code] always i get blank result or error mysqli_fetch_assoc() expects parameter 1 to be mysqli_result i want to do it with procedural mysqli.. not with oop mysqli..!! … ![]() | |
This is a school assignment and I think it's nearly done, there are probably some parts that need straightening out, but at this point I'm just trying to get my program to compile correctly. The program depends on an input file with sample data as follows: 1000 John 9.5 9.0 … | |
Hello, Im trying to make some small programs with QT4. Everyting goes well untill I want to create my own widgets with the Q_OBJECT in a class. Then I can't compile the thing anymore. It says: [code]Undefined symbols: "vtable for Communicate", referenced from: __ZTV11Communicate$non_lazy_ptr in main.o ld: symbol(s) not found … | |
hi everyone divya hea..i'm new to java..i gotta do a inventory project in java..i've been told its simple..but i just dont seem to know how to do it..pls help..:Spls someone submit the code..i've attached the project details as images pls jus c it..thnx | |
Hi, I'm a beginner in C++ and just learned linked lists.I'm trying to write a code which creates a linked list according to the int numbers taken from the user and prints them all.i'm writing the code in Dev c++.However i have a problem in printing the list.By the way … | |
please help anyone.. i have MDE made with MS ACCESS 97 and i want it to work in MS OFFICE 2003, but have some errors... Can anybody help me with this problem??? | |
Hi, I need to login to a site, make some changes and then there is an apply button which i need to click to save the changes. The HTML code is as below for the buttons [ICODE]<input type="button" onclick="clickApply()" alt="Apply" value="Apply " class="button" name="applybutton" id="postApply"/>[/ICODE] I am able to login … | |
Hello. I have created another homework assignment in C++. Program is working correctly, however there are 2 flaws I need help with. [B]Description:[/B] User enters the name of sportsman, and 7 marks given to this sportsman by referees. Marks must belong to interval [0.0 : 10.0] . Float sum is … | |
Hi everyone, I am a new in Delphi,and trying to learn it. I am using Delphi 2005. I will like to find out a code for creating a form that will calculate the average of three different parameters and display the message box with the calculated averages. |
The End.