199,126 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for RenFromPenn

I'm creating a program that is supposed to have enumerated constants that contain days of the week. I am also supposed to have a variable called today that is of type week. Okay, I think I have done all of that correctly. Now I am supposed to assign a value …

Member Avatar for Alibeg
0
134
Member Avatar for CasTex

I am getting error at the second line of the code, what is the problem :-/ [ICODE]$content = '<' . '?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?' . '>'; $content .= "<entry xmlns='http://purl.org/atom/ns#'>"; $content .= "<title mode='escaped' type='text/plain'>".$title."</title>"; $content .= "<issued>".$issued."</issued>" $content .= "<generator url='http://www.yoursitesurlhere.com'>client's name</generator>"; $content .= "<content type='application/xhtml+xml'>"; $content .= "<div …

Member Avatar for almostbob
0
2K
Member Avatar for sacarias40

i get this error:[quote]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'index, user_id, username, message) VALUES(' ', '4', 'zack', 'jh')' at line 1[/quote] [code]<?php session_start(); $_SESSION['user_id'] = 4; $user_id = $_SESSION['user_id']; $_SESSION['username'] = …

Member Avatar for mwasif
0
86
Member Avatar for Eyo

Hi, I have 2 tables: Payment (PaymentId, Date, Description, Amount, PaymentMethodId) PaymentMethod (PaymentMethodId, Description) The first table contains details of any Payments that we receive and is displayed in the datagridview. The second is a lookup table which lists the methods of payment (ie. cash, cheque, credit card) and should …

Member Avatar for Eyo
0
161
Member Avatar for nvnq

:idea: Anyone have C source code program to change the system time in Linux ? Please share me!!! Thank!

Member Avatar for nvnq
0
76
Member Avatar for VernonDozier

I am developing a program that creates random mazes. One part of the program involves keeping track of the correct path. Each point on the path is a (row, column) coordinate. I am trying to store each coordinate as a 2 element integer array and push it back onto a …

Member Avatar for VernonDozier
0
149
Member Avatar for mercury113

[ICODE] if(e.getSource() == choice2) { if(choice2.getSelectedItem().equals("Monitor")) { choice2.setBackground(Color.GREEN); hidebutton++ score++; } else { choice2.setBackground(Color.RED); } choice2.setEnabled(false); }[/ICODE] i have this code here... why do when i apply this method the score is incremented to?? would you plzz help me.. whAt is wrong 2 da Code... 4 example i have a …

Member Avatar for stultuske
0
88
Member Avatar for manoj_582033

Good Morning Friends I Am Using VB.net,I am doing code for search button & it's working for textboxes but not for combobox,accualy when it get any value so it shows on textbox by using textbox1.text=ds.tables(0).rows(0).item(0) & it shows but when i use combobox.text =ds.tables(0).rows(0).item(0) it doesn't show any value but …

Member Avatar for samir_ibrahim
0
143
Member Avatar for winrawr

I'm trying to learn C++, and I thought I'd start by exploring classes, so I wrote this: [code=c++] #include<iostream> #include<string> using namespace std; class user { public: string logonName; string firstName; string lastName; int uID; }; int main(){ user users[2]; int i; users[0].logonName = "rawrMander"; users[0].firstName = "Rawr"; users[0].lastName = …

Member Avatar for Freaky_Chris
0
140
Member Avatar for bluebird

I would like to change the case of the string value. (lower case letter to upper case and upper case letters to lower case) I wrote my program as the following. But linux does not know strlwr and strupr functions. What should I do? [code] #include<iostream.h> #include<conio.h> #include<string.h> const int …

Member Avatar for bluebird
0
105
Member Avatar for sonia sardana

I want to change the text of second column of listview to bold, & secondly, I want to change the backcolor of row,when the user clicks on that row. When we run the form first time,text of second column is bold.But when the user clicks on the row,backcolor is not …

Member Avatar for Ramy Mahrous
0
113
Member Avatar for kv79

Hi all I wanna use MySQL with VB.net I used before MySQL with PHP. I am not sure how to use it with VB.net Some instruction will be helpful. Thanks advance.

Member Avatar for Ramy Mahrous
0
139
Member Avatar for JAA149

Hi Mates, I will just get right down to it. If I have these Entities/Tables. 1 - Clients 2 - Cases 3 - Invoices Assuming all relationships are one-to-many. Which Figure is the right way. [ATTACH]8515[/ATTACH] Figure A - I can deduce which invoice is for which case, which case …

Member Avatar for Fest3er
0
77
Member Avatar for shers

Hi, I'm working on C# with COM. I have a COM OLE control that I wish to create on the form as control array during runtime, as the number of cotrols depends on the number of files in the corresponding folder. How do I go about it? I'm attaching a …

Member Avatar for shers
0
135
Member Avatar for shirish_kal

Hi , I am a new to java and am stuck with coupe of lines i wonder if any of you ppl could help me i wud be gr8full... URL localURL = new URL("http://www.xyz.com"); URLConnection localURLConnection = localURL.openConnection(); String str2 = localURLConnection.getHeaderField("string1"); What wud these lines actually do or to …

Member Avatar for shirish_kal
0
100
Member Avatar for FrancisC07

hi! i have a problem.. i want to make a program the will input your name and age, and the output will count the char i been input. but my problem is i don't know what would be the code so that i can count the char i been input.. …

Member Avatar for FrancisC07
0
159
Member Avatar for Manutebecker

I want to create a battle system for an RPG game, one a little more robust then the previous one I made. This one I want to be very dynamic and easy to use. I want to use the Allegro API for it, but first I want to make sure …

Member Avatar for Manutebecker
0
158
Member Avatar for winrawr

Should I avoid casting between data types? I haven't really seen much about the use of this, but it seems like one of those last-minute-no-way-around kind of methods... but, for example, how would I use the length of a string in a for loop? The length property of a string …

Member Avatar for grumpier
0
168
Member Avatar for angel1

hi ppl... can u please help me with this program.. i dont get how to do it. I tried hard but dont' get it.! thanks Suppose that $ 1000 is deposited in a bank account that pays interest at the rate of 8%. if interest is paid annually, at the …

Member Avatar for BlackSun
0
115
Member Avatar for monkey_king

Hi, I was just wondering if adding debug symbols to my program, will slow down it's performance. I'm running linux. thanks in advance

Member Avatar for daviddoria
0
89
Member Avatar for Jacky1

OK i have an array of 10 elements and I want to color the 5th element with a different color than the default color , is that possible ? Thanks

Member Avatar for Jacky1
0
102
Member Avatar for Manutebecker

So I'm having trouble with classes today, I want to do something like [CODE] #include <iostream.h> using namespace std; class Dummy{ char Name[256]; void setName(char nam){Name=nam;} }; int main(){ char[256] temp; cout << "Name?\n"; cin >> temp; setName(temp); } [/CODE] I want something like this to store a char array …

Member Avatar for Manutebecker
0
8K
Member Avatar for JoeK

[B]This assignment requires that I allow for user input in a GUI for principal, interest rate, and term in years. I also have to provide a pulldown with 3 preset rates that will also load a cooresponding term length. All of that plus an amoritization table as well. I have …

Member Avatar for JoeK
0
457
Member Avatar for ravikiran032

If we consider a pointer variable if takes size of 2 bytes and it can carry max address value of 65535 but actual address are larger than 65535 , how it is able to manage these address..... will u please explain me.

Member Avatar for Alibeg
0
90
Member Avatar for VBNick

when a cursor key is pressed, WM_KEYDOWN is received, and when it is released, WM_KEYUP is received. How can I get this same functionality with a character key? I found the messages WM_CHAR and WM_DEADCHAR, but they dont work like the above messages. Can anyone help? Thanks, Nick

Member Avatar for VBNick
0
153
Member Avatar for sacarias40

i get this error:[quote]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'index, user_id, username, message) VALUES(' ', '4', 'zack', 'jh')' at line 1[/quote] [code]<?php session_start(); $_SESSION['user_id'] = 4; $user_id = $_SESSION['user_id']; $_SESSION['username'] = …

Member Avatar for sacarias40
0
96
Member Avatar for trinidad_techie

[COLOR=DarkRed][SIZE=2]Hey..i'm new to this forum so plz bare with me lol..um, i have an assignment that i'm presently doing on the .NET framework. The assignment asks for a report on the description of .net framework and some of its components-- common language runtime, .net framework class library, server-side managed code …

Member Avatar for trinidad_techie
0
159
Member Avatar for winrawr

Can I do this? [code=c++] while(variable=functionCall()!=0){ /* ... */ } [/code] the function I'm calling, is returning a 3, but the variable in the while loop is equal to 1... I'm not sure what is happening in this statement, Originally I thought it would just always evaluate to true and …

Member Avatar for winrawr
0
121
Member Avatar for piotr_kast

I write application which continously reads and rewrites files (this program converts web links in htm files to local links, because I want use this files offline). When I wrote procedure: [code] // index.htm FileName = (string)kolekcjaPlikow.GetValue(0); StreamReader myStreamReader = null; myStreamReader = File.OpenText(FileName); bufor = myStreamReader.ReadToEnd(); myReadBufor = bufor; …

Member Avatar for piotr_kast
0
168
Member Avatar for serhannn

Hello everybody, I have a paragraph containing many sentences and I need to extract a certain sentence, which contains a certain. I have no problem finding the word with my code but my question is, how can I extract the whole sentence? The code should work, regardless of the position …

Member Avatar for Comatose
0
163
Member Avatar for Borderline

I wonder if someone can point me in the right direction for securing my site more effectively. Having experienced problems with Google warning pages being placed on my site relating to potential malware, I've been looking into "beefing up" security, but am find the tutorials relating to safeguarding against sql …

Member Avatar for Borderline
0
116
Member Avatar for laconstantine

ok so i got 2 files which i want compile to dll and 1 to exe i got this command: csc /out:MyClient.exe /reference:MyLibrary.DLL MyClient.cs i totaly have no clue where do i add this at visual c# 2008 express edition?? any help will be appreciated

Member Avatar for ddanbe
0
87
Member Avatar for Dav1d1

Hello I try pass data from a table in Firebird to SQL server Mobile. I'm using c# in vs2005, and I have problems with transactions. At the end, if I want to rollback transaction, I would like to undo changes, but in the code I show you, Changes allways saves …

Member Avatar for Ramy Mahrous
0
114
Member Avatar for AdRock

I have a code snippet i've been working on but not getting very far. What I have is a text file which looks like an XML but i want to get the data between the tags and ignore the tags themselves. I want to count the number of data items …

Member Avatar for BevoX
0
161
Member Avatar for Freaky_Chris

OK, I've been looking at templates recently and eveything was fine...never had a problem with them at any point. But then when I decided to write a function that would either return the given template type or not. the following code explains what I mean.[code=cplusplus]template <class T> T find(char x, …

Member Avatar for Freaky_Chris
0
125
Member Avatar for kidego32

Hi all, I have a customer table. Each customer can have multiple contacts, as well as multiple phone numbers. Each contact can also have multiple phone numbers. My design right now is as follows: [B]customer table:[/B] cust_id cust_name cust_address ... [B]customer contact table[/B] cust_contact_id cust_id (fk) -> refers to customer …

Member Avatar for Ramy Mahrous
0
100
Member Avatar for abhi_marichi

[code]I have used outportn(base,pin); cmd with header file dos.h and as per my knowledge there are no errors in the program. BUT ITS NOT WORKING for crazy it worked ones in my friends computer and never worked again ... What should I do ??Please help me I use XP. [/code]

Member Avatar for abhi_marichi
0
150
Member Avatar for jacline

I have a final exam on tuesday and i cant solve this problem. can you help me please? [url]http://www.cs.bilkent.edu.tr/~david/cs101/assignments/lab09/05cs101lab9extras.htm[/url]

Member Avatar for Salem
0
91
Member Avatar for Gribouillis

In python, a "function object", that is to say an object which can be called as a function, is simply an instance of a class which has a [icode]__call__[/icode] method. An example is [code=python] class FuncObj(object): def __call__(self, *args): print("args were %s." % str(args)) func = FuncObj() func(1,2,3) # output …

Member Avatar for Gribouillis
0
184
Member Avatar for samarudge

Hi, Is there any way to retrieve the contents of a DIV from another website, E.G. there is a div on Youtube with the ID description, how would i get the contents of that DIV? Thanx Sam Rudge

Member Avatar for samarudge
0
297
Member Avatar for cakka
Member Avatar for No Pain No Gain

The code below downloads the test.mdb file but when I try to open it MS Access says it is in an unrecognised format. Is it not possible to use Inet for downloading an Access database? Dim strURL As String Dim bData() As Byte ' Data variable Dim intFile As Integer …

Member Avatar for No Pain No Gain
0
302
Member Avatar for DevGeek

hello all, i need some help regarding windows login.i have created an application in C# which replaces the windows-login and which gets username and password from the user to enter the windows. But my problem is that i have done the user authentication through win32 API function "LogonUser()" and it …

Member Avatar for DevGeek
0
2K
Member Avatar for gauravmishra

I am trying to take continuous pictures of small window of my screen and create a continuos motion picture sort of thing and display it on the java panel . For this i am taking snapshots of the screen window by using "Robot" class . but the panel is only …

Member Avatar for puneetkay
0
165
Member Avatar for tomtetlaw

Im on Windows XP pro. im using DarkGDK engine. I am making a FPS in a map that a tutorial provides. T tell it to load my object and position it under the camera and when i run it i look down and i can see it, but if I …

Member Avatar for tomtetlaw
0
98
Member Avatar for l_03

hello...i am confused,,it is possible that a linkedstack will be full??i only implement a method that isEmpty(),,and it reads the method if the stack is empty..but if the stack is full, it do not even read the method i made....would someone help me?/,,,thank you ahead...

Member Avatar for ~s.o.s~
0
128
Member Avatar for pcmicro

Good evening to all of you! I was wondering if anyone would be willing to assist me in building an HTML feed back form powered by PHP. Quite frankly I don't care what its powered by as long as it work. Any suggestions??? Thanks for your support. C-

Member Avatar for almostbob
0
429
Member Avatar for chococrack

I am having trouble finding out info regarding how to stop my application from "Beeping" every time I change focus with the "ENTER" key. For the sake of clarity here is the specific action and code which produces a sound (which I want to eliminate): I am simply trying to …

Member Avatar for chococrack
0
176
Member Avatar for revenge2

This is my first official python program/scrip which I've done my self;) yay!:D. Im sure most of you guys know the 21 card trick where you guess what card a person is thinking of accurately. anyway, I have trouble passing information between modules within modules and functions within functions. this …

Member Avatar for Murtan
0
332
Member Avatar for besktrap

Hi everyone. I'm currently working on a Tic Tac Toe game, and I am having a little trouble with, well, I'm not even sure what to call them. They are a variable with brackets like so below. Anyway, I have this variable: [CODE]char Line_One[3] = { ' ', ' ', …

Member Avatar for VernonDozier
0
107

The End.