199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hitesh.shah.397

`Inline Code Example Here`hello everyone, i am working on a project , in this as all other project we have a login required so i designed a login panel but when i run the project the textboxes of username and password are having its value as "admin",i tried a lot …

Member Avatar for hitesh.shah.397
0
90
Member Avatar for VernonDozier

Someone a few months ago told me that I had to change a bunch of code from stuff like this... // config_options.h // define _FOO if and only if you want option foo to be available #ifndef _FOO #define _FOO #endif // main.cpp #include "config_options.h" #ifdef _FOO void foo() { …

Member Avatar for VernonDozier
0
789
Member Avatar for triumphost

What am I doing wrong? In the following templated functions, I'm trying to convert all my CopyMemory functions to std::copy functions. I'm not sure what I'm doing wrong as they don't work as they should with the std::copy but instead, they work with memcpy and CopyMemory. I'm only doing it …

Member Avatar for vijayan121
0
579
Member Avatar for mke48

I'm having problems with the code below. I figured since Monster1=new Orc 's attack function can't know whether it's attacking a Troll or Goblin since it accepts an Entity pointer as an argument. But having the be_attacked functions doesn't help either #include<iostream> using namespace std; class Entity { public: virtual …

Member Avatar for vijayan121
0
147
Member Avatar for Andyjava

Hello all. public class LoginFragmentActivity extends SherlockFragment { EditText e1 = null; EditText e2 = null; Button b; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInatanceState) { View view = inflater.inflate(R.layout.login_layout, container, false); e1 = (EditText) view.findViewById(R.id.reg_email); e2 = (EditText) view.findViewById(R.id.reg_password); b = (Button) view.findViewById(R.id.btnLogin); b.setOnClickListener(new View.OnClickListener() { @Override …

Member Avatar for Andyjava
0
121
Member Avatar for yindra.puentes

hello! I'd like to rank a numpy array without getting the number positions changed. I was able to do it using the numpy function below but it keeps ranking the 'NaN' values as well, how can I get it to ignore them and just rank the real number values instead. …

Member Avatar for TrustyTony
0
393
Member Avatar for oscargrower11

I'm trying to do something simple like get calc.exe to start minimized, but it's not happening. import subprocess import win32gui import win32con info = subprocess.STARTUPINFO() info.dwFlags |= subprocess.STARTF_USESHOWWINDOW info.wShowWindow = win32con.SW_SHOWMINIMIZED x = subprocess.Popen("calc.exe", startupinfo = info) It pops up the same as always, no matter what I provide for …

Member Avatar for TrustyTony
0
349
Member Avatar for harris24

Hi, I've posted m code below and cant get it to work because of *fatal error c1004 unexpected end-of-file found*. Appreciate any help. #include <iostream> using namespace std; /* //what i addedint q[8][8]; void printSolution();//int q[]); void hereQueen(int q[], int n1, int n2); */ class Queens { bool canGo; int …

Member Avatar for harris24
0
526
Member Avatar for np complete
Member Avatar for WaltP
0
295
Member Avatar for HunainHafeez

i have a table in Mysql's database, tblStudents, which has 1,000 stdents, from different departments, e.g 500 from IIT, 300 from IMS, 100 from Medical, 100 from Engineering. and on fornt end in, i have 2 dropdown boxes, one drpdwnDown box is filled with values, IMS, IIT, MEDICAL, ENGINEERING. now …

Member Avatar for slyme
0
210
Member Avatar for krutatA

Someone told me that even the basic Oracle SQL commands are useful to learn and I can find jobs with it. I will not just learn the basic commands of course, I will do my best to learn it completely but first i need to know if its still commonly …

Member Avatar for krutatA
0
141
Member Avatar for triumphost

Why is C++ on linux basically C? I've tried everything to avoid C on linux but it's simply near impossible. I've tried to stick directly to the standard library but I somehow find myself using dirent.h, types.h, etc.. Is there any other ways to do these other than using C …

Member Avatar for deceptikon
0
765
Member Avatar for shilpa200

Hello, I'm very new to C#. Basically, this is an existing windows form application, I'm supposed to add a checkbox in two existing forms. The forms have other comboxes and and textboxes. There's a restricted folder for many departments.So, when i fill up the other fields and check this check …

Member Avatar for shilpa200
0
78
Member Avatar for Dev93

I have just started getting into SFML and Visual studio as well . I have always worked on turbo c++ . I am not sure I understand the very first code that I have come across while getting into SFML . Here is the program.. #include<iostream> #include<SFML\System.hpp> int main() { …

Member Avatar for Bob
0
395
Member Avatar for Dev93

What should be the output to the following code ? I am confused because I am getting a slightly different output everytime . Any other advise would also be appreciated . #include<iostream> #include<SFML\System.hpp> void apple_thread(void *data) { using namespace std; for(int i = 5 ; i<11 ; i++) { cout<<"I …

Member Avatar for Ancient Dragon
0
336
Member Avatar for toyotajon93

Ok Guys, got a question on a nested list and how to return the values from it. Writing a scout script for a game I play. The return is this: [[278,278,-1,[25076,u'name',3,6,u'',0,0,1,[0,0,None,5]]]] [[278,279,-1,[25076,u'name',3,6,u'',0,0,1,[0,0,None,5]]]] I'm wanting to place the coordinates i.e. 278 and 279 along with the 3rd value in this case …

Member Avatar for vegaseat
0
196
Member Avatar for HunainHafeez

I am working in php along with Mysql in backend, why this query is giving error : You have some problem in mysql syntax, check manual, this is that query: $Userid= $_SESSION['userid']; echo $Userid; $Dep = "select departmentName from department where userid='$Userid' "; $qry ="select registrationNo,name,fatherName,cnic,gender,discipline,department,admissionSession,email,password,address,domicile,contactNo,status,currentEmployer,designation,salaryInfo,totalExperience,lastOrganizationname,organizationAdd,organizationPhno,organizationEmail,Remarks from students where registrationNo='$RegNo' …

Member Avatar for jstfsklh211
0
250
Member Avatar for ronak.patel.946

I know little bit of php-mysql and web programming. For my project work, i made one login module, it contains two pages but it has some errors. I use WAMP for project, whenever i feed data and press login it does not go to profile.php page and session does not …

Member Avatar for jstfsklh211
0
266
Member Avatar for dyingatmidnight

Okay this is strange. I'm new to AJAX and I'm trying to use it with php to check a variable from my database before a form is submitted. It works almost fine. The strange part is that it seems to be saving anything I enter into the text field. var …

Member Avatar for dyingatmidnight
0
136
Member Avatar for lewashby
Member Avatar for saleem.mukhtiar

> Quoted Text Here Hello Guys ... HOw's are you .. kindly guide mein about format of DateTimePicker where user can select date from calnender as wel as time also .. Thanks in advacne waiting for your reply ... TC

Member Avatar for ShahanDev
0
117
Member Avatar for sammry

i have 2 tables as follow sales (table1) sales_id, userid(buyerid), product id, productname, orderid, status users (table2) userid, username, pass Now, I need to display the top customer who makes regular purchase on my shopping site. How can I achieve this? I tried as SELECT A.(*), B.username FROM sales A, …

Member Avatar for sammry
0
131
Member Avatar for mke48

I'm having a problem with the code below. Can anyone help me? #include <iostream> #include <string> using namespace std; class Aircraft { public: Aircraft() : MPrice(0), LPrice(0), BPrice(0), PPrice(0), TotalPrice(0) , Stars(0) {cout<<"aircraft constructor"<<endl;} virtual ~Aircraft(){cout<<"aircraft destructor"<<endl;} protected: string Missile; string Laser; string Bomb; string Propulsion; int MPrice, LPrice, BPrice, …

Member Avatar for jacob.lemelincarrier
0
3K
Member Avatar for eburlea

Good day, I've created a webpage on localhost using php. I have a local network with 3 computers at home. I can access the webpage only from one computer (http://localhost/mywebpage/). What changes should I make in phpmyadmin to be able to access the webpage from all computers? Is it possible? …

Member Avatar for AndreRet
0
643
Member Avatar for lewashby

data = open('sketch.txt') for each_line in data: try: (role, line_spoken) = each_line.split(':', 1) print(role, end='') print(' said: ', end='') print(line_spoken, end='') except: pass data.close() I'M gettin the following error when I run this code but it looks exactly like what I'M seeing in my Head First book. File "sketch.py", line …

Member Avatar for lewashby
0
202
Member Avatar for gilgil2

Hi I have a log in script that if successful starts a session. When you enter the correct info it days that you are logged in, but when you try to acces a restricted file it says that you are not logged in. If you then log in again it …

Member Avatar for gilgil2
0
741
Member Avatar for firdousahmad
Member Avatar for daniel36

my text is to show on webpage is- Comment ça marche Tu es bloquĂ© par une question, ou par un exercice de mathĂ©matique, ou par un chapitre de chimie que tu n’arrives pas Ă  comprendre ? But my website is not showing some french charachter of this type of text …

Member Avatar for DarkMonarch
0
213
Member Avatar for sarah49

hi everyone. I have just started to program in php. I tried to develop a php code to retrieve data from a form and insert into a table created in Mysql. Here is my php code. This code gets executed when the user submits the form. <html> <body> <?php $con …

Member Avatar for broj1
0
231
Member Avatar for Kert

I have a small Python program that should react to pushing the up button by running an appropriate method. But instead of doing this, it gives me a confusing error... from tkinter import * class App: def __init__(self, master): self.left = 0 self.right = 0 widget = Label(master, text='Hello bind …

Member Avatar for ZZucker
0
343
Member Avatar for David2012

Hi Everyone! My question is on Pagination (as it is called). I have a php program that accesses a database and shows the result list with HTML. Well, if my result list is quite long how do i code so that only say 10 rows show per page. I know …

Member Avatar for urtrivedi
0
365
Member Avatar for kshahnazari

hey guys reading deitel book and have a little problem with the code that I cant understand #include <iostream> using std::cout; using std::endl; #include <iomanip> using std::setw; int main() { // define array sizes const int responseSize = 40; // size of array responses const int frequencySize = 11; // …

Member Avatar for NathanOliver
0
179
Member Avatar for Shodow

i am making a booking system and i am thinking how am i suppose to know if there is a conflicting time.. i want to add an Error message if the time is conflicting in other event help me please Example: Date Time Start Time End DEBUT September 18 5:00 …

Member Avatar for G_Waddell
0
222
Member Avatar for noblesw

I have Table of Contents working fine. I can't get a Table Of Figures to work, however. I have tried setting the Caption property, but I still get "No Tables of Figures Entries Found". Anybody, HELP! Thanks.

Member Avatar for AndreRet
0
512
Member Avatar for HansK

I have problem with external links, where users add additional characters to the end of a variable. The links should be something like "page.asp?ID=261", however I see many external links to the page with malformed additional characters, like "page.asp?ID=261FTR223". These are mostly from social networking sites. I need to clean …

Member Avatar for JorgeM
0
98
Member Avatar for ccbuilder

Does anyone know tutorials for link list to be able insert,delete,cout list,give id and time void list_insert( UINT time, UINT id, UINT event) { } void list_head_delete() { } UINT list_head_event() { work_ptr = list_head; if(work_ptr == NULL) { return 0; } else{ printf("Should print the list head \n"); return …

Member Avatar for deceptikon
0
97
Member Avatar for vivekanandaan

I have a domain registered. I've uploaded my pages in httpdocs of my webspace. Other html pages are working fine, but my asp.net pages are not working properly. when i try to load those pages i am getting error as below : Server Error in '/' Application. -------------------------------------------------------------------------------- Runtime Error …

Member Avatar for JorgeM
0
194
Member Avatar for brylle
Member Avatar for azyyati.sharifuddin

can someone help me solve this problem...i can't solve it..this is for my final project report & i really need help from the expert one....

Member Avatar for azyyati.sharifuddin
0
81
Member Avatar for bangla

Hi, I have the below code to block the view source but its not working for me. Someone pls take a look and let me know. Thanks. [CODE]<html> <head> <script language="javascript"> function onKeyDown() { // current pressed key var pressedKey = String.fromCharCode(event.keyCode).toLowerCase(); if (event.ctrlKey && (pressedKey == "c" || pressedKey …

Member Avatar for akmwebtech
0
210
Member Avatar for jimmyjhonrubio

import java.util.Scanner; // Needed for the scanner class /** Chapter 2 Programming Challenge */ public class Wordgame { public static void main(String[] args) { String name; //The user's name String age; //The user's age String city; //The name of a city String College; //The name of a college String Profession; …

Member Avatar for JamesCherrill
0
211
Member Avatar for straylight

Basically I am attempting a HW assignment for questions that a frequently asked in interviews. I am not sure if I am having problems with the coding or actually understanding what they question is asking for. Basically I am asked to find an element in a sorted array and that …

Member Avatar for Bob
0
208
Member Avatar for dearjoy

I have a project in vb.net which i would like to create a program that a textbox will only allow alphabet,space and dots and it is in uppercase only.. no special character and numbers allowed. Thank you and God bless.. Hope to help me..

Member Avatar for ome2012
0
164
Member Avatar for vizz

How to detect end of video and redirect to another page using php for dynamic url? I have, <video autoplay> <source src=videos/poke.avi type='video/mp4; codecs="theora, vorbis, avc1.42E01E, mp4a.40"' > <p>Your browser doesn’t support video.</p> </video> I want to do this, video.onended = { // do stuff (redirect to show content) }

Member Avatar for vizz
0
126
Member Avatar for tones1986

Hey folks, I am working on a project (its a continuation of my previous project)... but with a few additions. First off, i have to use class templates... I have used them before, but not when working with multiple class definitions and multiple files. Below i will post sections of …

Member Avatar for programmerkk
0
271
Member Avatar for G_Waddell

HI All, I'm writing an application in Visual Basic .NET but the application will use a SQL backend. If the user runs the application and the backend database is not set up, I want the user to select a SQL Database Instance, supply an administrator user ID (sa) and Password …

Member Avatar for G_Waddell
0
337
Member Avatar for brylle

I have a textbox has a maxlength of 18, e.g Textbox=ABC123456789012345 i want that the first 3 input must be letters only.

Member Avatar for brylle
0
202
Member Avatar for ss123456

i have made a database in sql+. it has a database. there is a table project. its columns are p_id,p_name,p_manager. i have inserted 5 rows in above table. in d front end in vb6 i have a form . please help me with the code such that my p_id is …

Member Avatar for ss123456
0
256
Member Avatar for barfi.anana

i am trying to make a program where i have a server with multiple clients, where a client sends a message to the server and when the server replies to it, the server broadcasts the reply to all the clients. the code has some error and is not working. i …

Member Avatar for np complete
0
3K
Member Avatar for lscamaro

Hey guys! I'm having a problem and I hope you guys can help me figure it out. I have to create a program that prints all the armstrong numbers from a user given lower and upper bound. I have a lot of the code but I can't seem to get …

Member Avatar for np complete
0
125

The End.