64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Smn

Beginner's question : How is c different from c++? what are the differences? Which one shoul i go for , if i know basic oops (just basics)? **plz provide some genuine answers rather than simply "google"ing ..... I have searched a bit and not yet satisfied.**

Member Avatar for rubberman
0
141
Member Avatar for Anil_7
Member Avatar for Moschops
0
110
Member Avatar for jez9

Syntax error. Im not really familiar in using parameter so i dont know whats wrong with code . i used ms access. Private Sub btnupdate_Click(sender As System.Object, e As System.EventArgs) Handles btnupdate.Click Dim name As String = txtfname.Text Dim pos As String = txtpos.Text Dim address As String = txtadd.Text …

Member Avatar for jez9
0
135
Member Avatar for Niloofar24

Hi friends! I'm coding a program; i have a Tkinter window with a view button and i can add names with entry box and add button into a list that will be saved on a db file. Now i want the program to show the list names otomaticly when the …

Member Avatar for Niloofar24
0
259
Member Avatar for maminya.aka

This my form `<form enctype="multipart/form-data" action="upload.php" method="POST" > <table> <tr> <td>Name :</td> <td><input type="text" placeholder="Name" id="text3"></td> </tr> <tr> <td>Chose File : <input type="file" name="image" /></td> <td> <input type="hidden" name="MAX_FILE_SIZE" value="2000000"/> </td> </tr> <tr> <td></td> <td><input type="submit" value="upload"/></td> </tr> </table> </form> ` code to upload image <?php include ("koneksi.php"); // error_reporting(E_ALL …

0
62
Member Avatar for Baradaran

Hi, I have a sql statement which was running fine yesterday. After making a few changes to the website, it stopped working. I managed to get the statement work on my localhost, however, when I publish the same pages onto the server, I receive the "Operand should contain 1 column(s)" …

Member Avatar for tmlslvn6
0
2K
Member Avatar for jez9

hello again :) heres the code for declare button: Sub table_load() Dim CMD As OleDb.OleDbCommand = New OleDb.OleDbCommand("Select * from tblnumber", con) Dim rd As OleDbDataReader = CMD.ExecuteReader() If rd.HasRows() Then Dim pos As New Point(5, 5) Dim sz As New Size(50, 50) Do While rd.Read() Dim tblnum As New …

Member Avatar for jez9
0
95
Member Avatar for harishprakash
Member Avatar for Niloofar24

Hello! My this time question is about breaking a list. I have a list with the name favorite_movies. Here is 2 functions of all functions from the file: def add(): load_favorite() favorite_movies.append(ent.get()) dump_favorite() #print (colors) def view(): load_favorite() from Tkinter import * v = Tk() v.geometry('300x300') v.configure(background = 'white') top …

Member Avatar for Niloofar24
0
573
Member Avatar for Niloofar24

Hi everybody. How can i creat e text file to use as a database in python? I want to save my project's data changes into hard disk. What should i do?

Member Avatar for snippsat
0
5K
Member Avatar for rpv_sen

Hi Friends i am trying to upload the photos in my dynamic place through my script. my path will be specified below [B]$uploaddir = ../gallery/categoryname/name/[/B] when i was trying to upload the photo is not moved in the above path. unfortunatelly is it moved to [B]../gallery/[/B] Please help me to …

Member Avatar for rpv_sen
0
328
Member Avatar for alan91

How to write a program using nested for loop to display the following output: 0 * * 0 1 2 * * * * 0 1 2 3 4 * * * * * * * * * *

Member Avatar for Lardmeister
0
2K
Member Avatar for aliasadullah
Member Avatar for Niloofar24

Hello friends :) This is my code: #!/usr/bin/env python3 # -*-coding: utf8-*- def callback(): lbl.configure(text = 'button clicked!') import Tkinter window = Tkinter.Tk() window.geometry('300x300') window.configure(background = 'PeachPuff3') lbl = Tkinter.Label(window, text = 'Nothing yet!') btn = Tkinter.Button(window, text = 'add', command = callback).pack() window.mainloop() Why it doesn't work?

Member Avatar for Niloofar24
0
10K
Member Avatar for jez9

here is my code: With RECEIPT For i = 0 To MENUORDER.lvorder.Items.Count - 1 .LstOrder.Items.Add(MENUORDER.lvorder.Items(i)) 'dont know what to do next Next i .ReceiptNo.Text = Me.lblos.Text .lblTotal.Text = Me.lbltotal.Text .lblCash.Text = Me.TextBox1.Text .lblChange.Text = Me.lblchange.Text .ShowDialog() End With [forms : RECEIPT, MENUORDER] i dont know how to display listview subitems …

Member Avatar for jez9
0
188
Member Avatar for jez9

hi, I want to Count how many times i click a button and display the number in listview. but i dont know the syntax for counting a button, can someone help me with this problem?

Member Avatar for jez9
0
11K
Member Avatar for Nation

I am developing a java application that uses a jtabe to allow the user to capture data. This data would be written to a text file later. The application is working fine. Good. However, I wanted to add a button such that when a user click this button, the application …

Member Avatar for JamesCherrill
0
570
Member Avatar for PinoyDev

Good day! I just want to ask a little help on how to redirect the user to the previous page after 5 seconds? Thank you!

Member Avatar for PinoyDev
0
3K
Member Avatar for harishprakash
Member Avatar for batoolhussain

hi everyone. I have two array, array1 is two dimension and array2 is one dimension. I want to compare each number in array1 to array2 and if the number is not existing in array2 i want to add this number to array2. I am using vb.net2010. please help me

Member Avatar for batoolhussain
0
112
Member Avatar for harishprakash
Member Avatar for jez9

database table : tblsale fields : id [autonumber], name[text], TOTALQTY [text], TOTALPRICE[text] lvlist column: QTY, NAME, PRICE this is my code sql = "UPDATE tblsale set TOTALQTY = TOTALQTY + lvlist.FocusedItem.getTOTALQTY AND TOTALPRICE = TOTALPRICE + lvlist.FocusedItem.SubItems(2).getTOTALPRICE where name = '" & lvlist.FocusedItem.SubItems(1) Dim acscmd = New OleDb.OleDbCommand(sql, Con) acsdr …

Member Avatar for jez9
0
385
Member Avatar for Smn

I have created a sample program on C.When i try to run on a different system (win 7 64 bit) it is asking for x64 version of the file (of the executable file created ). P.S. - I am not talking about the compiler, but about the executable file created …

Member Avatar for mike_2000_17
0
3K
Member Avatar for Ventech_IT

Hi there i want to create a news item that posts to my database (this works fine) but i want to be able to upload an image in the same form and submit the file path to the news table where all the other content is placed. Here is my …

Member Avatar for Ventech_IT
0
242
Member Avatar for reyarita

hey guys ! good day! guys i have a thesis project,enrollment system in high school den i have confuse with how to process in sectioning. sample guys if one student will enroll in one section (section galatia)den if the staff will click save button den if its done. then another …

Member Avatar for Vers20
0
871
Member Avatar for ivel

Is it possible to solve this problem in c++? Write a program that counts the numbers from 3 to 117. But for multiples of three add 3 instead of 1 and for the multiples of five add 5 instead of 1. For numbers which are multiples of both three and …

Member Avatar for NathanOliver
0
293
Member Avatar for krishnisilva

hi, how can i add data to a datagridcombo box column from a mdf file, i want to take the first name of all employees and display in the datagrid view combo box column: is the code below correct , please can u tell me what should i do to …

Member Avatar for yonathansona
-1
2K
Member Avatar for showman13

I know there are a lot of articles about random numbers, but can't find an efficient way to do what I need. if I have a table that is designed with an auto increment ID for each record, it would be pretty simple to get the min and the max …

Member Avatar for showman13
0
234
Member Avatar for jez9

it can only save 1 record, but i want to save 2 or more from listview to database database table: table1 , fields [receiptnum,nod,qty,price,total [all in text]] For Each x As ListViewItem In lvorder.Items sql = "insert into table1 (receiptnum,nod,qty,price,total) values ('" _ & lblos.Text & "','" _ & x.SubItems(0).Text …

Member Avatar for jez9
0
221
Member Avatar for Heanre

Our teacher tells us to add a crawl functionality that will get information from other databases online... is this legal, cause i think it's not

Member Avatar for Heanre
0
152
Member Avatar for techker

Hey guys is it posssible to read from file and add to collectionBase?For my litle project i need to use collection and read file but the app needs to save. it saves to file but i find it faster and easyer to read from collection and search,edit,delete... string[] lineOfContents = …

Member Avatar for techker
0
255
Member Avatar for marcelocent

## solution 1: fast enough response, simple function, fail fast from time import clock def isanaword(k,s): """ goes through the letters of second word (s) and returns it if first word (k) contains exactly same letters in same number """ for c in s: pos = k.find(c) if pos==-1: return …

Member Avatar for vegaseat
0
255
Member Avatar for dwlamb

I have an endless scroll application in PHP and jQuery. This my javascript: var base_url = window.location.origin; $(window).scroll(function() { if($(window).scrollTop() + $(window).height() > $(document).height() - 100) { var offset = $(".badge-item").length; console.log(offset); $.ajax({ url : base_url+'/index.php/display/jQuery_movies', type : "post", data : { offset_cnt : offset }, datatype : 'html', success …

Member Avatar for dwlamb
0
204
Member Avatar for apkrieg

Okay. So I have this code in intel syntax. BITS 64 section .text global asm_proc asm_proc: jmp program section .data ; b8 - mov rax, <32bit immediate> ; 64 00 00 00 - The number 100 decimal ; C3 - ret program db 0b8h, 064h, 000h, 000h, 000h, 0c3h I …

Member Avatar for apkrieg
0
172
Member Avatar for lithium112

I have a little problem with the SetParent API. On my local system, it works fine. But when I put the program on a virtual machine, the handle does not work properly. Here's what I've got in my code: var si = new ProcessStartInfo(filetoexec, args); si.UseShellExecute = true; si.WindowStyle = …

Member Avatar for lithium112
0
262
Member Avatar for RikTelner

If I have ready assembler code. How do I make it into runable code, I want to mess around with it and test it in VMPlayer. As far as I know, I could use NASM, and all "NASM's" can be downloaded from: http://www.nasm.us/pub/nasm/releasebuilds/2.11.06/ so, I've managed to find the right …

Member Avatar for RikTelner
0
371
Member Avatar for jean_5

I have the following code: //list is the result of the query of the database var list =[]; var _this = this, $div = _this.$div, opts = _this.settings, $table = $div.find(opts.tableSelector); var fieldsToShow = ["Right Identification", "Left Identification", "Total", "RIGHT IDENTIFICATION RELAPSE", "LEFT IDENTIFICATION RELAPSE", "Total", "IDENTIFICATION TOTAL IN "]; …

Member Avatar for jean_5
0
328
Member Avatar for leyla

Hi, I know that there have been a lot of questions on this topic and I have followed the solutions however my code still does not work. No error comes up, even after using Try and Catch and the code does not break, but the values are just not in …

Member Avatar for leyla
0
162
Member Avatar for cambalinho

i have these code for show popupmenus: case WM_USER + 1: { if(lParam==WM_RBUTTONUP) { POINT pCursor; GetCursorPos(&pCursor); HMENU test=GetSubMenu(GetMenu(HandleWindow),0); SetForegroundWindow(HandleWindow); TrackPopupMenu(test, TPM_LEFTBUTTON | TPM_RIGHTALIGN, pCursor.x, pCursor.y, 0, HandleWindow, NULL); PostMessage(HandleWindow, WM_NULL, 0, 0); } } break; the menu is showed normaly, but why the click message isn't working? heres the …

Member Avatar for cambalinho
0
206
Member Avatar for Stefce

Hello i im confuzed with this problem, i have converted the php code into the right format `MySQLi` and i get this wierd error `Notice: Array to string conversion in C:\xampp\htdocs\Training\core.php on line 25` So i dont know where is the problem in the `login.php` or `core.php` look at the …

Member Avatar for Stefce
0
223
Member Avatar for cambalinho

when do: operator HBITMAP() { HBITMAP hbitmap=CreateBitmap(imageweight,imageheight,1,32,NULL);//create the bitmap with icon size SelectObject(hdcimage, hbitmap);//add the bitmap to memory DC MessageBox(NULL,to_string(GetLastError()).c_str(),"error",MB_OK); return hbitmap; } the hdcimage is copyied to hbitmap, right?

Member Avatar for cambalinho
0
3K
Member Avatar for leo_7

``Bookkeeping You work for a company which mainly trades with 3 other companies. You record your balance in a file (you can still use cin or scanf to read or if you want you can read from "input.txt" file) with the following convention: Debit of Company A Credit of Company …

Member Avatar for happygeek
0
150
Member Avatar for jez9

this is my code dim btn as button dim rs as dataadapter rs =" Select * from tbltable1 where status = 'unavailable'", con) with rs [i dont know what comes next but i tried this one] btn.enabled = false end with [nothing's change] [so i tried this one] dim rs …

Member Avatar for jez9
0
161
Member Avatar for riwakawd

On my view I am trying to get it so if my input link[] is next to the upload button then that link post will be inserted into the database with image I use codeigniter for a mvc frame work. I can insert the links and images fine, but the …

Member Avatar for riwakawd
0
201
Member Avatar for jalpesh_007

hello all, I am working on android project. i have started background music in one of my activity named"myMainScreen.java" now on that activity i have put one button. while clicking on button i will redirected to another activity called"page_play.java" through intent. Music will get stopped on the second activity(page_play). but …

Member Avatar for jalpesh_007
0
5K
Member Avatar for PulsarScript

Hi all ,how to create multiplication table,based on user input.User enters 1 value in one box,second value in second box and pressses the create table button for output? Regards

Member Avatar for pixelsoul
0
90
Member Avatar for apkrieg

Okay, so I am learning Assembly and I started with 32bit and `bswap` seemed to work fine. Now I have this code main.c #include <stdio.h> #include <stdlib.h> extern int asm_proc(void); void print_bits(unsigned long long bits) { for (int i = 0; i < sizeof(unsigned long long) * 8; i += …

Member Avatar for apkrieg
0
823
Member Avatar for Niloofar24

Hi everybody! How can i call a function from Tkinter without using Buttons? I have a test.py file and there is a function def message in it: def message(): print('Good morning') from Tkinter import * tk = Tk() tk.mainloop() I want to type test.py message from linux terminal and the …

Member Avatar for sneekula
0
11K
Member Avatar for markdean1989

I wonder why this program does not do any changes to the text file that I am trying to modify. Scenario: My program uses the Fstream header file, I declared infile as IFSTREAM and outfile as OFSTREAM. I simply want to transfer data from infile to outfile. The data is …

Member Avatar for markdean1989
0
521
Member Avatar for techker

Hey guys i got this code working 50%.. i have a login that passes the info to my main form that i need to search the txt file and show all info regarding info(NIP) in my txt file name,account number,cash,Nip so i search for the Nip since that is the …

Member Avatar for techker
0
155

The End.