64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for phpdude89

Hello... I need to get data from one table while omitting data that exist in the other table. This is the query I am running but I keep on getting duplicates since there are more the one row in the second table. Table1 - 'countries' with fields 'Country_Code' and 'Country_Name' …

Member Avatar for jbisono
0
144
Member Avatar for peter_budo

I'm looking forward to learn Core Spring and Hibernate. Which books would you recommend and some good online resources (beside their websites)?

Member Avatar for peter_budo
0
155
Member Avatar for Nikhar

Well, I posted a few problems here on daniweb and thank god that I did so. What I had been using till now was "rusted, naff,useless" code. But after today, I am more accustomed to what the new c++ is. Well, I am 16 years old and am studying in …

Member Avatar for siddhant3s
0
337
Member Avatar for lotrsimp12345

if it contains quote it cuts it out, then i am stuck on part when i just enter in a problemset without a quote or single quote. Then it doesn't gather numbers correctly but stores the entire string [code] int main() { cout <<"enter the problemset and number""\n"; //problems represents …

Member Avatar for Salem
0
111
Member Avatar for grvs

Hi I am new to unix and want to learn shell scripting. Right now I am use cygwin for windows but sooner I will switch to ubantu. So when I wrote my first script (just copied from the book I was reading), I came to know I have to give …

Member Avatar for grvs
0
2K
Member Avatar for lotrsimp12345

[code] #include <iostream> using namespace std; #include "Interface.h" #include <conio.h> int main() { apple t; bool quit = false; while(! quit) { cout<<"the original value at beginning of clock is\n"<<clock()<<"\n"; t.start(); cout<<"hit enter when you want to stop timer\n"; if(cin.get()=='\n') { t.end(); int time =t.elapsed(); cout<<"the time difference is\n"<<time<<"\n"; cout<<"enter …

Member Avatar for lotrsimp12345
0
113
Member Avatar for joshmo

have been, for the past few weeks trying to figure out how I can compare images. From my experience in what I have been working on, I know it is almost impossible to compare two images and get a 100% match but I am not looking for a 100% match …

Member Avatar for Ezzaral
0
232
Member Avatar for Nikhar

Hi everyone. Can anyone please guide me on how can I generate a random number from a group of prset numbers. For example:- There is a group of preset numbers:- 1,5,18,100,127,500,626,929. I want to generate a random number from this group....is there anyway in which we could do this?

Member Avatar for Nikhar
0
360
Member Avatar for HITMANOF44th

i am building some thing that will grab part numbers and description from a data base works great when you type in part of a word or part of the part number the issue i run into is when i type in the full part number for example A11-123 this …

Member Avatar for HITMANOF44th
0
169
Member Avatar for joshmo

Hello. I have come across a null pointer exception in my code. I understand this is got if there is no class/method/variable being referred to but in my case, I have a method in another class that is supposed to be called. However, the exception is thrown at the where …

Member Avatar for joshmo
0
95
Member Avatar for sureronald

Hi all. Anyone know of a good ajax resource out there. I have been googling all along but I don't seem to be getting the right thing. I'm still new to Ajax. Any help will be highly appreciated. Thanks

Member Avatar for sureronald
0
90
Member Avatar for vizy

Hi Friends, I am using Ajax AutoCompleteExtender for my search results(autoSuggest). The Control works fine and I could get the results coming from WebService in Panel with scrollable option. But I need the results shown are formatted as columnwise for ex : Name | Address | Phone# | EmailId with …

Member Avatar for vizy
0
131
Member Avatar for andrewsCWD

Hello, I have just a regular .html page. I want to take my PHP source code from one of my PHP scripts and display that to the viewer so they can see my code on the HTML page, as if it was just regular content on a page. When I …

Member Avatar for prateek shri
0
97
Member Avatar for ivanichi

Hi, everyone, I'm a new member here. Currently, I'm developing a web application and there's a need to make an activation for the product I developed. I want give activation on my product for a time session on local. My question is, is it possible to make that? As we …

Member Avatar for ivanichi
0
126
Member Avatar for tomtetlaw

i am making a game and i am getting a strange error heres the relevant code [code=python] items = {'sword':['sword', 3, 15], 'axe':['axe', 5, 25], 'bow and arrow':['bow and arrow', 4, 20]} for item in items: print items[item[0]] print '\tprice:' + items[item[1]] print '\tdamage:' + items[item[2]] [/code] Heres my error: …

Member Avatar for woooee
0
137
Member Avatar for PinoyDev

Good day! How to copy a file from one location to another.ex c:\ to c:\copied in silent mode.When i load the form it will copy the file automatically. Ex. name.xls - the name of the file to copy. Pls help. Thank you for giving time!

Member Avatar for PinoyDev
0
100
Member Avatar for Cloneminds

Hi there, I'm new to the site and new to learning C++. The program I am writing is for a C++ college class, and I'm just having a little trouble on if I am formatting the if statements I am using correctly. I'll give a breakdown of the assignment. I …

Member Avatar for dsladev
0
165
Member Avatar for BrettOwnz

Hello... I am working on a CPC and CPM ads system for a client, and they wanted to use an iframe displayed on another persons site in order to actually serve the ads. So, i have developed the whole script, and it is working when used by getting the $_SERVER['hostname'] …

Member Avatar for BrettOwnz
0
93
Member Avatar for lotrsimp12345

[CODE] Implementation file using namespace std; #include "Interface.h" #include <time.h> void timer::start() { if(! running) { begin=(unsigned int) clock(); running=true; } } void timer::end() { if(running) { finish=(unsigned int) clock(); running=false; } } int timer::elapsed() { if(running) { return((unsigned int) clock()-begin); } else { return finish-begin; } } int timer::output(unsigned …

Member Avatar for lotrsimp12345
1
322
Member Avatar for lotrsimp12345

Here are my 3 files interface file #ifndef INTERFACE_H_INCLUDED #define INTERFACE_H_INCLUDED #include <time.h> class timer { public: void start(); void end(); int elapsed(); int subtract(); int add(); int output(unsigned int seconds); private: bool running; int begin; int finish; }; #endif // INTERFACE_H_INCLUDED implementation file using namespace std; #include "Interface.h" #include …

Member Avatar for athlon32
0
160
Member Avatar for nschessnerd

Hey, Im using readprocessmemory to get information on a game, but for some reason it skips two bytes.. part of my structure is similar to [code=cplusplus] WORD a; DWORD b; DWORD c; DWORD d; [/code] and i read the following memory into it: 00 00 FF FF FF FF 02 …

Member Avatar for nschessnerd
0
76
Member Avatar for reedie

All, i have a pretty simple task but for some reason i cannot for the life of me figure out how to do it in Python. I have a matrix of numbers, this matrix has a variable number of rows depending on the dataset but always 30 columns. first things …

Member Avatar for sneekula
0
139
Member Avatar for lstammer

This is what I have from another posting: [code=javascript]<script language="JavaScript"> <!-- // Create arrays to contain all the values // for links and image locations link = new Array image = new Array link[1]="http://www.sugarshack.com" image[1]="/images/stores/sugar-index.png" link[2]="http://www.clientswebsitecompany.com" image[2]="http://www.bastropdba.com/images/services/clients-index.gif" // Create a random number between 1 and last number random_num = (Math.round((Math.random()*2)+1)) …

Member Avatar for JugglerDrummer
0
102
Member Avatar for toykwon

Hi, I have 15 textboxes that I created. Now, I want to assign a value to each of these texboxes. I want to do somethign like this. [CODE] for(int i = 0; i < 15; i++) { //example: texbox0.Text = 0; (textbox.Name+i.tostring).Text = i.tostring(); } [/CODE] Thank you for your …

Member Avatar for sknake
0
199
Member Avatar for kolosick.m188

I have this code being called by a QMainWindow: [code=c++] centralWidget()->currentWidget()->addSubWindow(new SubWindow()); [/code] the centralWidget is a QTabWidget the currentWidget is a QMdiWindow and I get the error: [icode] error: 'class QWidget' has no member named 'currentWidget' [/icode] please help

0
81
Member Avatar for MONODA

Hello, I am writing an application which uses the trig functions of the math module in python but for some reason, the float values that some of the calculations return are obviously incorrect. for example [code=python]math.cos(90*math.pi/180)[/code] returns 6.1230317691118863e-17 rather than 0. Does anyone know of a way which I cant …

Member Avatar for MONODA
0
306
Member Avatar for Blaine Tuisee

Here's the code i'm running. I know it's not the connection because it connects fine, it just doesn't like the transaction. Thank you to any who help. [code=c#] OracleTransaction txn = conn.BeginTransaction(); try { // Set the connection property of the command object OracleCommand cmd = conn.CreateCommand(); cmd.Connection = conn; …

Member Avatar for Blaine Tuisee
0
257
Member Avatar for Zaffron

So I have been playing with classes, seeing that they are more efficient than globals, and I wrote this hopefully simple test program to see if I properly reverse engineered tetlaw's simple rpg. For the life of me I cannot figure out what is wrong with it. If an expert …

Member Avatar for Zaffron
0
103
Member Avatar for troy19

hey .... i have a problem when i try to update/delete/add to the database (microsoft access 2007) it gives me the error : Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC Microsoft Access Driver] Could not delete from specified tables. /internet project/delmsg.asp, line 7 LINE 7 is …

Member Avatar for troy19
0
63
Member Avatar for vigneshsr

Hello Everyone, Below is the working code, that I just coded for you guys to understand in a easier way: [code=html]<html> <head> <script type="text/javascript"> function updateTotal() { var sundayTotal = Number(document.getElementById('sunday').value); var mondayTotal = Number(document.getElementById('monday').value); document.getElementById('total').value = sundayTotal + mondayTotal; } </script> </head> <body> Sunday Duration: <input type="text" id="sunday" onkeyup="updateTotal()"> …

Member Avatar for serkan sendur
0
185
Member Avatar for NEo4

Hello! I have program that consists of multiple forms. Each of the forms share a common variable which I stored in the main form. But to access the variable from another form, I have to type something quite long like this: MainForm.CommonVar.Function(arg1, arg2, arg3, arg8) I use this many times …

Member Avatar for NEo4
0
86
Member Avatar for travis67

I have a problem with syntax in C#. I need to make my own treeview control in which I just need to add one property to nodes. For an example, if I have list of files listed in my tree, I want to keep filesize somewhere that is related to …

Member Avatar for sknake
0
119
Member Avatar for nahmartin

My apologies my c++ abilities are poor (self taught) I have a text file that needs editing the first 10 lines of the file needs replacing but the other 1,000,000 + lines don't I need the information in the first 10 lines to know what to edit them to i …

Member Avatar for nahmartin
0
138
Member Avatar for Creator07

Hello, I was doing a test Win32 Project. I am using the standard rename() function under cstdio. My program was not working. So, while tracing, I got the return value of rename function as [B]-1[/B]. I have not seen anywhere, rename(0 function returning -1. Could anyone tell me what's wrong. …

Member Avatar for Creator07
0
202
Member Avatar for jcmeyer

Let's say a user of my application opens two or more MDIChildFrames. How can I get access to any one of the child frames? If I keep track of the names of the child frames in a list is there a way to use the name to call upon a …

Member Avatar for jcmeyer
0
89
Member Avatar for vash47

So, hello, guys. I'm new to this forums and this problem has been bugging me lately. I'm making a Windows Forms app in C#: So I have a form with two buttons, one of them is a "New" button (private void botonNuevo_Click(object sender, EventArgs e)). This new button creates a …

Member Avatar for vash47
0
112
Member Avatar for kangarooblood

I've been trying to do a really easy game here, the thing is that the when a player reaches 0, it just keep going to -5 and such like. WHat's wrong? [code=c++] #include <iostream> #include <cstdio> #include <cstdlib> using namespace std; int main () { srand(time(0)); int player1 = 100; …

Member Avatar for bunnyboy
0
111
Member Avatar for jcmeyer

When I run this code: [CODE]sql = "SELECT Name FROM nameDatabase" self.cursor.execute(sql) list=self.cursor.fetchall() print list[/CODE] I get: >>> [(u'Joe',), (u'Katie',), (u'Bob',), (u'Ian',)] However, if I try to make a SingleChoiceDialog with wxpython it does not like that list. Is there any way to get those values in a so it …

Member Avatar for jice
0
112
Member Avatar for peter_budo

I got components in layout as I wish to have them. Unfortunately 2nd row doesn't start as expected bellow first one, but directly under it (you can see portion of text draw on panel, should be visible whole). [attach]10549[/attach] I know that [LIST] [*]toolbar should have height of 60 [*]sidebar …

Member Avatar for masijade
0
891
Member Avatar for Zurompeta

This issue has me absolutely stumped. I have a drop-box on my site that contains 26 options (each options being a letter of the alphabet). This drop-box is being used to sort a database full of records by the records that correspond with the selected letter chosen. The "onchange" event …

Member Avatar for Airshow
0
113
Member Avatar for diafol

Hi all, I'm a bit of a jobber with JS, so please excuse me. I'm use prototype quite a lot for ajax calls, but have always used inline onclicks. I'm trying to be less obtrusive by creating event handlers/listeners. I used to do this with the aid of pHp to …

Member Avatar for Airshow
0
243
Member Avatar for ejazmusavi

hi every one! I have a datagridview which contain 5 column (data source is a table in ms acces). i want to add 3rd and 4th column using loop but there is an error occured "input string was not in correct format" [code=c#]for (int i = 0; i < dataGridView1.Rows.Count …

Member Avatar for ejazmusavi
-1
96
Member Avatar for RiceFiend

Hello, I have the Fill, Show, Remove, and Find functions working properly, but I cannot get my WriteToFile function to work. I know that there is a problem involving WriteToFile("Success"); but I don't know how to fix it so that my void WriteToFile function will work. Any help would be …

Member Avatar for RiceFiend
0
257
Member Avatar for MashMeli

I need to get selected index value from the dropdownlist and sort it on the GridView. The code above can only sort by column. Anybody has any idea how to add the column with the selectedValue into the Sort? [code] dv.RowFilter = "NOID = '" + ddl.SelectedValue.ToString() + "'"; dv.Sort …

Member Avatar for kvprajapati
0
81
Member Avatar for rupeshpradhan

I am using an array 'array_studentDetails'. This array will be used by other functions after it is initialized. Should I make it a global array as I have done in this example OR should i return the array to the calling function and pass it on to the other function …

Member Avatar for shadwickman
0
154
Member Avatar for vuyiswamb

Good Morning All I have the Following code that sends an e-mail, let me first post the markup and the code behind. The following is the markup of my page [code] <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head …

Member Avatar for vuyiswamb
0
892
Member Avatar for Creator07

These things are getting on my nerves. I am trying to do a test program in Win32 API which has "Browse for folder" and uses some string formatting. But, I am unable to. [B]Please help in this general problem:[/B] If I use strcpy() in Visual Studio 2008 to do some …

Member Avatar for Creator07
0
154
Member Avatar for ROTC89

ok my assignment is to make a login form that will accept a user name and password. if the user name and password don't match it doesnt do anything, but if it does it takes it to a website. my only problem is when i go to run it i …

Member Avatar for Gori
0
120
Member Avatar for Creator07

Hello, I am very new to Win32 Shell Programming. I am doing a simple project which needs me to select a folder from the hard-drive. The following is small parts of the program: 1 : This is the "Brows For folders" calling part. [CODE=cpp] case IDC_BROWSE: { char buf[MAX_PATH]; BrowseFolders(hDlg, …

Member Avatar for Creator07
0
164
Member Avatar for sachintha81

I have two forms, namely MainDataForm and JobForm. In MainDataForm I have a text box named txtJobID which contains a certain job ID. There I also have a button - btnNewJob, if clicked opens the above said JobForm. Now, on JobForm there is another text box named txtNewJobID and when …

Member Avatar for sachintha81
0
142

The End.