199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for 15389049

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 …

Member Avatar for TomW
0
107
Member Avatar for moods125

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 …

Member Avatar for moods125
0
273
Member Avatar for wiss.dev

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) …

Member Avatar for TomW
0
102
Member Avatar for Ryyback

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;} …

Member Avatar for kireol
0
110
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
96
Member Avatar for beforetheyknew

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; …

Member Avatar for adams161
0
88
Member Avatar for woolm110

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 …

Member Avatar for woolm110
0
243
Member Avatar for tig2810

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; …

Member Avatar for tig2810
0
237
Member Avatar for Nikhar

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 …

Member Avatar for nezachem
0
132
Member Avatar for PDB1982

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 …

Member Avatar for Dave Sinkula
0
90
Member Avatar for daviddoria

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] …

Member Avatar for daviddoria
0
138
Member Avatar for sanitizer

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 */ …

Member Avatar for Gribouillis
0
732
Member Avatar for stewie griffin

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 …

Member Avatar for nezachem
0
124
Member Avatar for rmatelot

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 …

Member Avatar for Namibnat
0
2K
Member Avatar for god0fgod

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 …

Member Avatar for god0fgod
0
208
Member Avatar for Weetnie

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 …

Member Avatar for jephthah
0
104
Member Avatar for wiss.dev
Member Avatar for wiss.dev
0
96
Member Avatar for whitetigerx8

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 …

Member Avatar for whitetigerx8
0
101
Member Avatar for titosd

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 …

Member Avatar for anonymous alias
0
171
Member Avatar for beforetheyknew

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

Member Avatar for cale.macdonald
0
66
Member Avatar for grib

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 …

Member Avatar for grib
0
149
Member Avatar for jwxie

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 …

Member Avatar for jwxie
0
111
Member Avatar for michael123

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 …

Member Avatar for Nemesis80
0
821
Member Avatar for c.pentasuglia

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 …

Member Avatar for adams161
0
101
Member Avatar for richman0829

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 …

Member Avatar for richman0829
0
156
Member Avatar for zobadof

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 …

Member Avatar for Clinton Portis
0
115
Member Avatar for xcarbon

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 …

Member Avatar for me655321
0
99
Member Avatar for trcartmill

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 …

Member Avatar for Lerner
0
135
Member Avatar for BobRoss

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 …

Member Avatar for BobRoss
0
166
Member Avatar for songweaver

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 …

Member Avatar for me655321
0
351
Member Avatar for sam1

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 …

Member Avatar for somemnguy
0
532
Member Avatar for merse

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 …

Member Avatar for merse
0
141
Member Avatar for nillsource

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 :(

Member Avatar for javaAddict
0
128
Member Avatar for Chris147

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") = …

Member Avatar for Chris147
0
1K
Member Avatar for Izzywizz

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 …

Member Avatar for Izzywizz
0
136
Member Avatar for anishmohan

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 …

Member Avatar for Ramesh S
0
216
Member Avatar for Elvedon

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 …

Member Avatar for vegaseat
0
715
Member Avatar for wittykitty

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 …

Member Avatar for donaldw
0
119
Member Avatar for kolibrizas

As i paint any figure in Java, the lines don't look smooth and I clearly see pixels. Any not very difficult solutions?

Member Avatar for kolibrizas
0
112
Member Avatar for Teofil

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 …

Member Avatar for Teofil
0
103
Member Avatar for Ryveris

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 …

Member Avatar for TomW
0
93
Member Avatar for sam023

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..!! …

Member Avatar for nileshgr
0
252
Member Avatar for exospire

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 …

Member Avatar for super-sonic
0
358
Member Avatar for Japus

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 …

Member Avatar for Japus
0
113
Member Avatar for divya2909

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

Member Avatar for divya2909
0
76
Member Avatar for atohas

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 …

Member Avatar for atohas
0
65
Member Avatar for Zevs

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???

Member Avatar for Zevs
0
72
Member Avatar for pysup

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 …

Member Avatar for ruandejun
0
2K
Member Avatar for Eternity[LK]

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 …

Member Avatar for Eternity[LK]
0
105
Member Avatar for khipasi

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.

Member Avatar for FlamingClaw
0
119

The End.