64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for brixton

Hello! I have a DB setup which simplified looks like this: PRODUCT(id, owner_id) OWNER(id) What I want to do is to produce a list of how many products each owner has, and then sort it in some way, all in a single query. How do I go about this? Thanks!

Member Avatar for brixton
0
107
Member Avatar for bob89

I am new to c++ but have been using java for a while now. I am using Microsoft Visual c++ and when I try to build it I get the following error: Linking... Airline Project.obj : error LNK2019: unresolved external symbol "public: __thiscall FlightManager::FlightManager(void)" (??0FlightManager@@QAE@XZ) referenced in function _wmain F:\Documents\Assignments\CA212\Airline …

Member Avatar for Narue
0
109
Member Avatar for pvsumanbabu

Hi All, can any of u explain the order of constructors ,how it will behaves when order of derived classes as like present in attachment

Member Avatar for Narue
0
95
Member Avatar for jonnytabpni

Hi Folks, I have a textbox which looks out for keypresses when it is in focus. For example, when the ";" key is pressed, a few functions are called. THe problem is, is that in the KeyPress function for the textbox, i have textbox1.Text = ""; to clear it however …

Member Avatar for jonnytabpni
0
336
Member Avatar for Clawsy

I try to program DirectX in Visual C++ 2008. I need at least a win32 working window. I have a BIG problem compiling win32. First, I created a win32 project (a simple Win32 Project - not empty). I don’t modify any code compile when compiler says: Cannot find windows.h. So …

Member Avatar for Clawsy
0
350
Member Avatar for toadzky

I have a combobox that has state abbreviations. It is filled from a dataset table, which is read in from an xml file. The combo box populates just fine. I want the selected value and text to change when I load a record from an accounts table in the dataset. …

Member Avatar for toadzky
0
134
Member Avatar for faniryharijaona

I've got this strange problem, I created an instance called structure, I made a function which return an object of this type. Just before returning, I print it, it gives me the right object. Now when I collect it in 'main' and print it, it becomes 'None'. If someone can …

Member Avatar for faniryharijaona
0
78
Member Avatar for hunterm

So, I am supposed to be encoding and decoding hidden messages in images. I have perfect the decoding hidden messages part, but am a bit stuck on the encoding part (encoding a message by changing the red value in the pixel color to the unicode number of the letter. I …

Member Avatar for sneekula
0
3K
Member Avatar for JackieW

I've got a *very* simple form, one field. I want a person to be able to go in and update a single number. (example: '10 are signed up of 100 entries' - with 10 being the form number) I only want the most recent number to show up, not the …

Member Avatar for JackieW
0
104
Member Avatar for Laidler

i am trying to code a toString() method which returns the string "Power: ON" if the power variable is equal to true and "Power: Off" if the power variable is equal to false (the power variable is the boolean type). However i dont know how to do this as the …

Member Avatar for BestJewSinceJC
0
1K
Member Avatar for Rahul1123

Hi, I am trying to invoke a shell script from python. This shell script while running expects user inputs based on which it proceeds to perform several actions. I want to automate the process of sending the user inputs(may be from a file) I am using the subprocess Popen class …

Member Avatar for jlm699
0
4K
Member Avatar for blackcorner

I have three ASP.Net applications and I want them to share their user status (Anonymous, LoggedIn). For this I use a custom Membership provider which lets me manage my users database effectively. But... How can I authenticate a user in one of this applications AND let the other two applications …

Member Avatar for blackcorner
0
120
Member Avatar for shar123

I am having an issue with a project due. I am missing something? can you please help? here are the instructions and what i have so far. The final project will consist of three files called, Shape.py, Circle.py, and Square.py. I’ve written a test file you can use to see …

Member Avatar for jlm699
0
280
Member Avatar for planetPlosion

I have a list of directories named dirList. I need to filter and sort before I pickle I think. This is what I've got. [code] fileHandle = open( 'dirList.txt', 'w' ) fileHandle.write( 'yadda yadda yadda intro' ) cPickle.dump(mu1List, fileHandle) fileHandle.close() [/code] the mu1List is declared at the beginning and it …

Member Avatar for Gribouillis
0
82
Member Avatar for shadwickman

This technically isn't fully a Python-related question, but I couldn't find a better place to post it than here. I'm just curious about how to get/update weather information from the internet... like say that sidebar gadget in Vista that updates the weather and temperature from some online-source. The problem is, …

Member Avatar for shadwickman
0
124
Member Avatar for kbullard516

Hello, i have to design and implement an application that helps a museum analyze the flow of visitors for an exhibition that lasts for 3 weeks.(The museum is opened 7 days a week for 4 hours)...well getting to the point. I need to store this information in a 3d array …

Member Avatar for kbullard516
0
89
Member Avatar for lucky1981_iway

Hi, I have a web page. In that there is a toggle button to show or hide advanced search options. Below that there is a "IFrame A"(Table). IFrame A conatins "IFrame B" (Table Contents). Based on the toggle switch status, i want to update "IFrame A" size without refreshing the …

Member Avatar for lucky1981_iway
0
207
Member Avatar for Lamya

[COLOR="Green"]Hello Programmers[/COLOR] This Is My Question & the answer But .. The out put not exist i don't know what is the wrong with it [COLOR="Red"]Write a program that will take as an input 5 Capital Letters and then display on next line in small letters and in reverse order. …

Member Avatar for Lamya
0
119
Member Avatar for weblover

hi all ..i need help plz ...where can i find a java code(not Javascript) for an image slide show ...made in GUI ...if someone knows ..plz help ..and thnx in advance

Member Avatar for verruckt24
0
1K
Member Avatar for SKANK!!!!!

[CODE] else { ##User isn't registering, check verify code and change activation code to null, status to activated on success mysql_connect("localhost", sssssss, passs) or die(mysql_error()); mysql_select_db("sssss") or die(mysql_error()); $queryString = $_SERVER['QUERY_STRING']; $query = "SELECT * FROM users"; $result = mysql_query($query) or die(mysql_error()); /* Your script is always falling into this …

Member Avatar for SKANK!!!!!
0
316
Member Avatar for planetPlosion

I'm trying to get a dirList.txt file in 2 different directories to (eventually) compare them. I've got a basic start going [code] # A program to create and compare directory lists of # a music folder and its backup import os, cPickle, string, stat, fnmatch # Define variables for the …

Member Avatar for planetPlosion
0
124
Member Avatar for love_dude1984

hello frendz.. im working on a small application wher i need to copy the data from excel sheet and paste it to the text file.im trying to create a macro for tht. the selected row should be in a specific format. like if ther r 3 colums then the text …

Member Avatar for love_dude1984
0
195
Member Avatar for love_dude1984

hi.. im writing a macro in Excel to copy a selected roe into a text file. i ve taken a button on a sheet and when user clicks on the button the selected row (only selected row) should b copied into a file on c: seperated with ","... ive written …

Member Avatar for love_dude1984
0
109
Member Avatar for Besherek

Hi guys, I think I may have complicated matters for myself with this one. I'm making an image gallery, which is built based on a hierarchy. I have no problem outputting the images directly in their specific category. The problem I'm having is I'm trying to call 1 thumbnail from …

Member Avatar for Besherek
0
113
Member Avatar for candidz

I am new in php. i need sample projects+Adminside with full source…..projects like [url]http://demo.tsmarketinggroup.com/southcoastme/admin[/url] User name: admin Password: admin Please help me,

Member Avatar for BzzBee
0
246
Member Avatar for angelic_devil

ok i m trying to delete folder with all contents ... the contents r all files..its not working...plz help [CODE] <? $mydir = "d:/lucky"; $d = dir($mydir); while($entry = $d->readfile()) { if ($entry!= "." && $entry!= "..") { unlink($entry); } } $d->close(); rmdir($mydir); ?> [/CODE]

Member Avatar for angelic_devil
0
116
Member Avatar for chandradyani

dear all, I want to make a digital library goverment regulation which related to export import activity in my aoffice. The problem is: I dont know how to upload the .pdf file to local server and provide the link to acess it automatically, Please help me..:(

Member Avatar for BzzBee
0
2K
Member Avatar for Diamonddrake

I have written (mostly) with some take from a simple tutorial a calculator control for a program I am working on, the control works fine, except i would like the control to accept key input, like the windows calculator does, i.e. asterisk activates multiplication, enter evaluates and the numbers are …

Member Avatar for Diamonddrake
0
6K
Member Avatar for Lukezzz

I am reading a .txt file line by line and when the line in the file is "Hello1", I want to Replace that Line with "Hello2" but I dont get that to work. I think I miss something out here [code] //Save this emailadress to the RouletteDataBase file String Path …

Member Avatar for landonr
0
280
Member Avatar for daviddoria

I was looking at this: [url]http://www.parashift.com/c++-faq-lite/ctors.html#faq-10.18[/url] I don't understand [code] File f = OpenFile("foo.txt"); [/code] It seems like File is one class, and OpenFile is a separate class, so how can you assign an OpenFile to a File? Also, is it necessary to have this second class? Why not something …

Member Avatar for Ancient Dragon
0
296
Member Avatar for qavo

If you send two asynchronous requests in quick succession I presume this involves two different instances of the XMLHttpRequest. Are you supposed to allocate a different onsteadystatechange function to each different instance of XMLHttpRequest (which seems a bit awkward). I have tried to use a single "pipe-like" function and then …

Member Avatar for Airshow
0
167
Member Avatar for NathanOliver

hi i have a very large array that i want to populate but i don want to run the for loops every time so i thought i would right a program to output text to fill the array and was wondering if this would work. the array is [icode] int …

Member Avatar for NathanOliver
0
107
Member Avatar for badplasmid

Hi all, New to the forum here, and coding in general. I am posting because I am having a problem with a simple program intended to act as a word, character and line counter, with each counter being its own function. I keep running into the same problem over and …

Member Avatar for badplasmid
0
98
Member Avatar for Laidler

im having a problem getting an abstract method to work, heres the code [CODE] abstract ImageIcon getPicture(); { return picture; } [/CODE] When i compile the code i get the following error: Appliance.java:30: return outside method return picture; Can anyone help me fix this?

Member Avatar for BestJewSinceJC
0
197
Member Avatar for HalloJoe

Hi all! I need to check if an object with equal property value(CustomObject.Key) exist in my custom list In a List(Of String) i would do it like this [code=VB.NET] Public Class StringList Inherits List(Of String) Public Overloads Sub Add(ByVal s As String) If Not Me.Contains(s) Then MyBase.Add(s) End If End …

Member Avatar for tennisace24
0
4K
Member Avatar for waldchr

After much frustration of trying to figure it out on my own, I am finally ready to admit that I need help. Does anyone know how to compile allegro 5? (or better yet have a precompiled version I could get my hands on) I have tried many tutorials and none …

Member Avatar for tux4life
1
641
Member Avatar for daviddoria

To redirect clog, I have been using this: [code] std::streambuf* clog_save; std::ofstream ofs; clog_save = std::clog.rdbuf(); ofs.open(LogFilename.c_str()); std::clog.rdbuf(ofs.rdbuf()); cout << "Test cout." << endl; std::clog << "Test log." << endl; std::clog.rdbuf(clog_save); ofs.close(); [/code] However, it seems like bad "code reuse" practice to have to put this in every program I …

Member Avatar for ArkM
0
178
Member Avatar for kenji

Hello, I need some help understanding the nonlocal variables and functions. Currently I'm reading "A byte of Python" to ease myself into the language, which so far seems to be fairly straightforward even if the syntax is a little strange coming from C++. I have copied a small script from …

Member Avatar for vegaseat
0
136
Member Avatar for saadjaved14

Hey... ok before i start i want to say that i'm not a very good programmer... and i'm new with this... and i got a project that i have to submit in 2 days so i badly need help!! ok the problem is: I'm using binary file handling, a code …

Member Avatar for ArkM
0
107
Member Avatar for starsinthesky

i really dunno what i miss or what's wrong with my codes. it would only work when you hit the "Post" button on the second try. i think it has something to do with my GUI, coz if i would just test the form named "fields" the javascript would work. …

Member Avatar for starsinthesky
0
312
Member Avatar for jonnytabpni

Hi folks, I am currently making a piece of software in c# which uses a very large .dbf (yuk!) database (about 120MB). I have a "Remote" class which is used to do the database operations. I use ODBC to connect to this database. All works, except that due to the …

Member Avatar for jonnytabpni
0
194
Member Avatar for qajaq49

I'm trying to write a short bit of C code that will get a filename from the user, via the keyboard, and open the specified file, but I haven't been able to get fopen() to recognize the variable filename when I use fgets() to get it. Here's a snippet of …

Member Avatar for qajaq49
0
702
Member Avatar for pczafer

how im gonna loop menu if option not 1 or 2 ??? [CODE]void display( ) { int option; system("cls"); //clear screen cout<<endl<<endl; cout<<"\t * Display Menu *\n"; cout<<"\n\t1. Display For Certein Date"<<endl; cout<<"\t2. Display All Appointments"<<endl; cout<<"\nEnter Option Number: "; //Enter option cin>>option; cin.get(); switch ( option ) { case …

Member Avatar for tux4life
0
187
Member Avatar for Sky Diploma

As i have written Atoi(); Now i have written Itoa. Here I have used a method of getting the last digit stroring it in an array and then reversing the array to get the required answer. I look forward for Improvements in this code. [CODE=C++] /**************************************************************************** Function Name:: itoa(int ,char …

Member Avatar for Sky Diploma
0
551
Member Avatar for firoz.raj

can anybody tell me why i am getting error object variable or with block variable not set .here is the code what i have written. any help would be greately appreciated. [code] Public Sub Addtolistview() 'Dim success As Boolean DataPath = GetSetting(Application.Name, "BasicSetup", "Database", "") 'StrQuotationStartID = GetSetting(Application.Name, "BasicSetup", "QuotationStartID", …

0
45
Member Avatar for moteutsch

How can I clone an object in C++, so it is a seperate object, but exactly the same as the original? Thanks, - Moshe

Member Avatar for moteutsch
0
79
Member Avatar for timb89

i want to make a prgoram that will read in a set of numbers and determine whether or not they are prime numbers, this is what i got so far any ideas? [code] #include <iostream> #include <queue> #include <vector> using namespace std; int main() { queue <int> input; queue <int> …

Member Avatar for timb89
0
76
Member Avatar for csergec

Hi I am writing a function which gets values. These ones will be used in my sqlite query [code] def updateDB(tel, month, price): mytel = (tel,) myprice = (price,) connection = sqlite.connect("mydb.db") cursor = connection.cursor() sql = 'UPDATE mydatabase SET %s = ? WHERE number = ?' cursor.execute( sql % …

Member Avatar for csergec
0
2K
Member Avatar for aveao

I need some help. I have been problems getting my programs to recognize variables outside of the subroutines even if I make them public. Ive been able to work around the problem until now. I am working with arrays. It wont let me declare the array outside the subroutine and …

Member Avatar for Teme64
0
265
Member Avatar for grisha83

Hello, I have a program called Date. While this program compiles and runs, I have noticed something weird. I have an output line that displays my values twice. Sample Run: The word date output is: February 12 2009 [B]The numeric output of the date is: 2/12/2009 The next incremented date …

Member Avatar for grisha83
0
124

The End.