64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for iraj.jelo

i have a Qt code writed in C++ . i want translate it to python code, but i have a problem in 4 code line: all code is: void TableView::print(QPainter* painter, const QRect& area) { const int rows = model()->rowCount(); const int cols = model()->columnCount(); // calculate the total width/height …

Member Avatar for HiHe
0
2K
Member Avatar for mbarandao

hello: I'm pulling mysql data and want to load into an array. I getting the data in like manner: $result = mysql_query("SELECT DISTINCT item2 FROM products"); echo "var option_array = new Array(num_of_cats);\n"; $count=1; echo"option_array[0] = new Array(\"Please Select a Merchandise\");"; while($row = mysql_fetch_array($result)) { echo"option_array[".$count."] = new Array(\"--select One--\",\"\",\"\");"; $count++; …

Member Avatar for diafol
0
269
Member Avatar for DarkMonarch

hey guys, im building a small prediction software, the GUI is in PHP and i want to do the data crushing in C. (sequence, matrix and multiple variables isolation) i know the basics in C, but im no C expert. Is it possible to pass from C to PHP other …

Member Avatar for DarkMonarch
0
247
Member Avatar for Patiodude

I recently converted all my .html files to .php, and while the stylesheet they're linked to (which hasn't changed) works almost perfectly, the <h1> through <h6> tags (headings) don't work with the new .php files. The font appears the same size as the body, which is too small to be …

Member Avatar for almostbob
0
221
Member Avatar for Lucaci Andrew

Have some problems with the qt destructor. I'm working on QtCreator: here's the class: the .cpp #include "controller.h" Controller::Controller() { } Controller::Controller(MovieRepo *movrep, MovieValidator *movval){ this->movrep=movrep; this->movval=movval; } void Controller::addMov(int id, string title, string desc, string type)throw(ValidatorException){ Movie* mov=new Movie(id, title, desc, type); movval->validate(*mov); movrep->store(*mov); } const Movie* Controller::getById(int id){ …

Member Avatar for Lucaci Andrew
0
272
Member Avatar for abu taher

i work with 3 more form. 2 form has no border. when i click a button a form is show. when i minimize main form the other form still show. but i want when i minimized main form all from will minimize what was open.

Member Avatar for Qesha carol
0
1K
Member Avatar for coder389

I want to delete the entire folder or directory along with files and folders contained in it. how can I implement in c#?

Member Avatar for Mitja Bonca
0
232
Member Avatar for superbhimanshu

Hi all, I am trying to read data from an excel file using "xlrd" functions. File contains many columns one of which is Date and time (in MM/DD/YYYY and HH:MM:SS AM/PM format). I am successful in reading all other type of data. But unfortunately for this column, program could read …

Member Avatar for superbhimanshu
0
203
Member Avatar for pitic

Hy, I have created a webservice (asmx) which has some webmethods. In same project i also have a webpage (aspx) with some multiline texboxes which i want to use as log output from webmethods. If i call a webmethod from another prorgram i want to display in the textboxes the …

Member Avatar for kvprajapati
0
233
Member Avatar for spowel4

If I have an arraylist of arrays (each item in the arraylist is itself a one-dimensional array), how can I iterate over each element of each array contained in the arraylist?

Member Avatar for JamesCherrill
0
220
Member Avatar for pitic

Hy, I have created a webservice (asmx) which has some webmethods. In same project i also have a webpage (aspx) with some multiline texboxes which i want to use as log output from webmethods. If i call a webmethod from another prorgram i want to display in the textboxes the …

0
82
Member Avatar for ping0ping

Hi I'm trying to append the content from one of the view file (page.ctp) into another view file (index.ctp). So basically what I'm trying to do is: content from page.ctp ----> index.ctp I managed to get the content of page.ctp using below method. $.get('http://localhost/pages/10', function(data) { console.log(data); }); But based …

Member Avatar for ping0ping
0
166
Member Avatar for NunsBeachSurfer

Hi, I'm working on some coding and ran into the problem that my multidimensional arrays are too large for my RAM. After reading a lot of articles, I figure that what I need to do is dynamically allocate the size of the array? The array that I need to do …

Member Avatar for NunsBeachSurfer
0
152
Member Avatar for london-G

Hello, Basically I am planning to develop a database system for a school. There will be three subsystems 1. The teachers (add, remove, edit) 2. The students(add, remove, edit) 3. The classes( add, remove, edit) as an interactive timetable. I am planning to use java(netbeans) and would like to hear …

Member Avatar for anand01
0
108
Member Avatar for kendaop

Hello everyone! I'm making a game where players build walls and move their pieces to try to be the first player to reach their target square. Essentially, it's a checkerboard, and players can build walls on the segments between adjacent squares to impede their opponents' movement. The one catch is …

Member Avatar for kendaop
0
654
Member Avatar for triumphost

I'm trying to have my function return an OPENFILENAME struct. Problem: It returns it fine and everything except that I cannot print the filetitle :S At the moment, it prints the path of the file perfectly fine but when it comes to printing the file title via cout, it prints …

Member Avatar for Ancient Dragon
0
275
Member Avatar for trektrak

Ok.. at first I wanna try to put "include.php" on the php.. but it goes around and around.... this is the case... if ($v_name=="") $query="DELETE FROM key_show WHERE code='$v_name'"; else{ $query="insert into key_show(code) values('$v_name')"; mysql_query($query) or die(mysql_error()); } The problem here..the system keep inserting data...it shouldn't be like that yea..it …

Member Avatar for trektrak
0
123
Member Avatar for GeekTool

In this code i did not understand something. In one class, a variable is declared as private, but then this value is used in another class. import java.awt.Graphics; import javax.swing.JPanel; public class DrawRect extends JPanel { private int choice; //user's choice of which shape to draw. public DrawRect (int userChoice){ …

Member Avatar for GeekTool
0
129
Member Avatar for GeekTool

> I have asked this question before, but i think i could not totally understand the diffefence between bitwise and logical operands. According to the book i am using to learn java, the bitwise operands can change the value and this is described as side effect. Also, in bitwise operands, …

Member Avatar for GeekTool
0
129
Member Avatar for Jsplinter

I'd like to represent an integer with a value between 0-100,000. Unsigned short int (range 0-65535) is too small. Unsigned int (range 0 - 4294967295) is big enough, but for a large data set this wastes a lot of space. Does there already exist a class that is in between? …

Member Avatar for Jsplinter
0
4K
Member Avatar for tomtetlaw

When I handle WM_MOUSEMOVE in my window prodedure, HIWORD(lParam) and LOWORD(lParam) are both a little off. It's returning a point that is slightly to the left and slightly above where my cursor actually is... What's really weird is that as I move the cursor closer to the top left of …

Member Avatar for tomtetlaw
0
574
Member Avatar for subtlehulk

Hello. I have a little problem with some work i've been given to study and i am meant to build a little bingo application. We have to modify our co-workers' code so that it fits out own little scenario. I've chosen to do a British Bingo card application and my …

Member Avatar for JorgeM
0
4K
Member Avatar for Riteman

I have two RichTextBoxes in my vb.net application (rtf1 & rtf2). rtf1 is loaded with the external data. Mostly It contains para split into different sections. The paragraph is a dynamic data, hence the no. of words keep on changing. Now my question is that, I want to select a …

Member Avatar for Riteman
0
3K
Member Avatar for chophouse

My first Daniweb question!! Am at the front end of learning Python (3.2.3) I'm doing a SQL query into a MySQL database for two fields, track_ID and track_duration. I'm getting a return of both, but instead of the duration value being expressed as 00:02:50, as it is stored in the …

Member Avatar for TrustyTony
0
154
Member Avatar for Maha Sh.

Hi all, I am designing a log in page and every day i face a new problem :'( The code now is working fine but i want to add exception to check if the Login Id and the password are not exist in the DB table I tried to put …

Member Avatar for Maha Sh.
0
132
Member Avatar for 330xi

How to hide and then to show again when I want to a standard menu toolbar in MFC doc view application?

0
92
Member Avatar for Lord_Migit

Hi there. I am having some trouble trying to figure out how to delete a pointer that is held in a vector. int main() { vector<Test*> iVector1; vector<Test*> iVector2; vector<Test*>* pVec1(&iVector1); vector<Test*>* pVec2(&iVector2); pVec1->push_back(new Test(11)); pVec1->push_back(new Test(12)); pVec2->push_back(new Test(23)); pVec2->push_back(new Test(24)); //delete iVector1.at(0); delete iVector1[0]; iVector1.at(0) = new Test(21); pVec1->at(1) …

Member Avatar for Lord_Migit
0
258
Member Avatar for bazzer14

Hi..... How do i set a listview to only add one item from a combobox? Example: In the text file containing the list are "Chicken, Beef, Buffalo", that already exists in listview is "Cow" then the listview will only add "Chicken, Buffalo". i have here a code for adding items …

Member Avatar for bazzer14
0
128
Member Avatar for Johannady2

It compiles but my JButton won't work... when i run the applet and press the Exit button.. it just prints some errors(or i dunno what they are) in the black window that opens when you run the applet. import java.awt.event.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; ; public class CheckRadioTest …

Member Avatar for Johannady2
0
255
Member Avatar for Johannady2

I tried to convert this GUI to a JApplet but then I get the error message. > D:\JAVA\PROGRAMS\whiteboard\whiteBoardapplet.java:9: error: whiteBoardapplet is not abstract and does not override abstract method actionPerformed(ActionEvent) in ActionListener > public class whiteBoardapplet extends JApplet implements ActionListener > ^ > 1 error > > Tool completed with …

Member Avatar for Johannady2
0
187
Member Avatar for Johannady2

This is a JApplet. the Radio Buttons for colos work.. why won't the Checkboxes work? import java.awt.event.*; import javax.swing.*; import java.awt.*; public class CheckRadioTest extends JApplet implements ItemListener { //private String CurrentComboName = "Select One"; private int currentStyle = Font.PLAIN; //private int intBold = Font.PLAIN; //private int intItalic = Font.PLAIN; …

Member Avatar for Johannady2
0
197
Member Avatar for abathurst

I am having trouble with databinding when trying to add it to a dropdownlist. I can get it to work with a label: <asp:Label ID="Label3" runat="server" Text='<%# Eval("Location") %>'></asp:Label> But when I try with the DropDownList I get this error and I can't seem to find an answer for it. …

Member Avatar for poojavb
0
190
Member Avatar for hwoarang69

i though repost this issue. i am trying to display image from database. but broken image shows up. and dont how why. i tried debuging like echo, mysql_error, erron, but there are no errors. get.php <?php include("connect.php"); $user_id = $_SESSION['user_id']; $image = mysql_query("SELECT * FROM image WHERE user_id = $user_id"); …

Member Avatar for SpartakusMd
0
2K
Member Avatar for hwoarang69

i have a upload.php page where user can upload images to database. now i want to create gallery.php. where who ever is loged in can view all his photos from database. here is my struct for my gallery.php file gallery.php ______________________________________ (1)at top there is going to be menu and …

Member Avatar for jeremym001
0
140
Member Avatar for rajesh1158

In the below code, I want to know the significance of 10 while creating a PrioriyQueue. I know its the initial capacity but what does it mean?? I replace 10 with any positive number and the output remains same. import java.util.*; class Test { static class PQsort implements Comparator<Integer> { …

Member Avatar for JamesCherrill
0
201
Member Avatar for memomk

hey i heard that there is something called qt signals you can use it to change the GUI out side the main thread coz when i try to change it i get an error that i cant change the gui out of the main thread but i need it to …

Member Avatar for memomk
0
8K
Member Avatar for Vanquish39

Hey guys i have a problem and I'm starting to fall short of solutions. Here is the scenario. I created a student registration HTML file and a servlet to answer this file. The problem is the submit button doesn't work on the html form. I have tried dozens and dozens …

Member Avatar for komalikaa
0
463
Member Avatar for azareth

i have this code, it's purpose is to automatically add a colon when the index is 2, i have done it, but when replacing(overwrite) index 2 where (:) is, you can replace it with a different char, so basically colon will be removed. and also what if the user has …

Member Avatar for azareth
0
2K
Member Avatar for itisnot_me

Ok so I am trying to create a loop that creates a dynamic variable but I cant find out how to do this. this is what I have so far var map = { 'flammable': 'inflammable', 'duh': 'no duh' }; $.each(map, function(key, value) { var key = value; }); alert(duh); …

Member Avatar for itisnot_me
0
202
Member Avatar for hwoarang69

i got a wired error below: 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 'Ö£'}€l‘¸â:m™ëînYWñ×KDnšC=¨ŠnÂRoÕö¨ºk„Ý·ÇçÓQ' at line 1problem uploading image $image = file_get_contents($_FILES['fileupload']['tmp_name']); $image_full_name = $_FILES['fileupload']['name']; $image_size = getimagesize($_FILES['fileupload']['tmp_name']); if(!$insert = mysql_query("INSERT INTO …

Member Avatar for hwoarang69
0
327
Member Avatar for DonutsnCode

Hi guys, Your typical C++ beginner here. I'm using the renowned Deitel C++: How to program to learn C++. I am my own mentor and here's what I can't comprehend: What's a Dangling Reference? According to Deitel C++: How to Program and I quote "Functions can return references, but this …

Member Avatar for elmohler
0
940
Member Avatar for elitely

Hello, I am new in VB2008. Could you guys please advice how I can programmtically delete/remove/clear the content of a cell of DataGridView? Say,for example,I have the following code that populates with data in DataGridView. Now,how can I clear/delete the "Test4" text from the cell of DataGridView? The GridView is …

Member Avatar for elitely
0
4K
Member Avatar for abdelhakeem

Hello Daniwebers! I was just reading This C++0x Beginner Tutorial: http://www.daniweb.com/software-development/cpp/tutorials/373787/beginning-c0x-making-a-raii-class And I was confused by something: " `int_vector(int_vector& aV);` > Obviously, this type of constructor would allow the transfer of the resource, since the source object can be modified and put into an empty-state (or "zombie-state"). But there are …

Member Avatar for abdelhakeem
0
220
Member Avatar for GeekTool

Hello all you guys, First of all, i am done with Html and CSS as i said in the article title. Now i want to learn a language like PHP, Coldfusion, .Net etc. to make dynamic web sites. According to what i have heard from my friends, php is the …

Member Avatar for veedeoo
0
182
Member Avatar for MoMule

I wrote a class called Creature.java that creates a random creature object with various body stats. The Creature class extends MonsterGUI. I used Netbeans to create a new jFrame form, called MonsterGUI.java to create a GUI to display the creature objects' stats using jLabels. In MonsterGUI I have a private …

Member Avatar for MoMule
0
1K
Member Avatar for SuperManofBC

public void compareStrings() This method will prompt the user to type two strings and will put them into different String variables. Then it will compare those strings to see if they are the same, i.e. have the same letters in the same order. If the strings are the same, “same” …

Member Avatar for SuperManofBC
0
211
Member Avatar for Ameer89

Hello all :) I am still a beginner at ASP.NET and VB.NET so I could use all the guidance I can get. So thanks in advance :) I am building a web application using Visual Web Developer as the IDE and Microsoft Access as the database. The application allows users …

Member Avatar for JorgeM
0
196
Member Avatar for hwoarang69

1st user has to fill this form <form action="upload.php" method='post' enctype = 'multipart/form-data'> ImageName: <input class = "text" type="text" name="imagename" /><br/> Description<textarea name="imagedes"cols="16" rows="4"> </textarea><br/> <input type ="file" name="fileupload" /><br/> <input type="submit" name="submit" value="sumbit" /><br/> <a href="index.php">[BACK]</a> </form> than it run php code. here i am getting image infomation $image_short_name …

Member Avatar for pritaeas
0
129
Member Avatar for hwoarang69

SMTP Error: Could not connect to SMTP host. can some one check if i doing this right? $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Mailer = "smtp"; $mail->Host = " smtp.gmail.com"; $mail->SMTPAuth = true; $mail->SMTPSecure = "ssl"; //ssl or tls //$mail->Host = "ssl://smtp.gmail.com"; $mail->Port = 465; //set smtp port for the gmail …

Member Avatar for vibhaJ
1
8K
Member Avatar for poojavb

Hello Friends, I need to create a report for my project I am using Miscrosoft Visual Studio 2010 and the SAP crystal Report I am not able to set up the connection The SQL server that I am using is not coming in the drop down of the server part …

Member Avatar for Katie Kate
0
782

The End.