199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ehpratah

Good Day Guys Im Having a hardtime getting this simple script working, basically im trying to open pop up windows when a link is click(which work fine until i found out that the same data is being fetch over and over again which is the last data inserted in the …

Member Avatar for ehpratah
0
207
Member Avatar for sris20013

class string { public: string( char const* t ) : s(t) {} ~string() { delete s; } char const* c_str() const { return s; } private: char const* s; }; there is a problem in the above code can anyone help

Member Avatar for Jamblaster
0
132
Member Avatar for Guruprasad_1

Trouble filling the SafeArray with double datatype values using 'SafeArrayPutElement'. **I get E_INVALIDARG error.** *pEventCode is my safearray... dEventCd is the 'double' value...I want to insert the dEventCd values to my *pEventCode safearray one by one when (bPriv) is true... Please help lResult=SafeArrayUnlock(*pEventCode); HRESULT hr = SafeArrayDestroyData(*pEventCode); for(INT_PTR count(0); count …

Member Avatar for Guruprasad_1
0
466
Member Avatar for patk570

Hello everyone, I have a table that i want to limit to 10 results per page and have a simple pagination script to generate the next 10 results. I have tried many different options, but alas it does not work. here is what I have so far. <tbody> <? //specify …

Member Avatar for patk570
0
176
Member Avatar for Labdabeta

Hello, I am wondering how libraries create graphics contexts in a cross-platform manner. Somehow libraries like SDL create graphical windows seemingly without using the system headers. I know how to set up a window for graphics using Win32API, and how to get input from it using the same. How do …

Member Avatar for Labdabeta
0
355
Member Avatar for HunainHafeez

ALTER FUNCTION [dbo].[customers_udfMin2] ( @decission tinyint ) RETURNS int AS BEGIN -- Declare the return variable here DECLARE @min int Declare @default int = 10 -- Add the T-SQL statements to compute the return value here if (@decission = 1) Begin SELECT @min = MIN(customers.cus_id) from customers End else RETURN …

Member Avatar for HunainHafeez
0
495
Member Avatar for tqmd1

Sir, I have following codes <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="language" content="english"> <meta http-equiv="Content-Style-Type" content="text/css"> <title>Numeric Textbox</title> <style type="text/css"> body { margin-top:220px; } #bc { background-color:#FFE4B5; } #ft { font-family: "verdana"; font-size:14; font-weight: bolder; color: green; } .bt { width:100px; …

Member Avatar for JorgeM
0
317
Member Avatar for sk8ergirl

I have this method I'm trying to the return is the student that will be removed and then remove student at pos I tried almost everything I put the return outside the if statment , but I still get error I also tried to substract 1 from the size but …

Member Avatar for sk8ergirl
0
356
Member Avatar for João_5

Ok, new question... I need to get data from one mysql row, set it as $ad The following code will convert it to readable date format. <?php function adConvert ($ad) { $seconds_ad = $ad / (10000000); //86400 -- seconds in 1 day $unix = ((1970-1601) * 365 - 3 + …

Member Avatar for João_5
0
309
Member Avatar for HunainHafeez

names of web development certifications ? i have to fill a form for certification, in drop down they only mentioned WEB development and left the box to be filled by applicant so what should i write ? i'm interested in asp.net(C#) etc but tell em all popular web certification names …

Member Avatar for HunainHafeez
0
234
Member Avatar for hulkishungry

Hey, there isn't really a general forum that I was trying to post this is, so I've had to stick it in the "most" relevant forum that is avaialble. I've been at uni for two years now and I still haven't found something that I'm particularly good at. I thought …

Member Avatar for hulkishungry
0
170
Member Avatar for tqmd1

Dear Sir, I have following codes <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <title>Numeric Textbox</title> <SCRIPT LANGUAGE="JAVASCRIPT"> //------------------------------------------------------------------ function isNumberKey(evt) { var charCode = (evt.which) ? evt.which : event.keyCode if (charCode > 31 && (charCode < 48 || charCode > 57 || charCode == 110)) { alert("Enter …

Member Avatar for JorgeM
0
495
Member Avatar for Labdabeta

Hello, I noticed that in c++ everything that can be done using a static function in a class could be done by using a public function in the same namespace. Assuming that you bind your classes in a namespace these functions do not take up names in the global namespace. …

Member Avatar for mike_2000_17
0
204
Member Avatar for jonsan32

My button uses the following. It produces a random post within my blog whenever a user clicks it. <div id="myLuckyPost" class="random button"></div><script type="text/javascript"> function showLucky(root){ var feed = root.feed; var entries = feed.entry || []; var entry = feed.entry[0]; for (var j = 0; j < entry.link.length; ++j){if (entry.link[j].rel == …

Member Avatar for jonsan32
0
6K
Member Avatar for humorouscheese

This is my first full sized c# project, so I apologize if the answer if the answer here was obvious. I've got a program that runs a method called firstrun, which is called at the point that the form loads (if a value from a file is true). This method …

Member Avatar for tinstaafl
0
240
Member Avatar for stanwaka

Hi i'm pretty new to C++ (well very new!) and i need to read the information from a text file into an array. The kind of data i'll be using is a simple list of names. This is my first attempt at; [code=c] #include <iostream> #include <fstream> #include <string> using …

Member Avatar for ilileve
0
47K
Member Avatar for kshahnazari

Hi , The question is in the topic , the thing is that the sources now availabe in web are old and dont work anymore , I want to connect to a usb port meaning like "Com4" port and send commands a get data from that port , anyone know …

Member Avatar for kshahnazari
0
201
Member Avatar for miladshayan

I am a beginner I am using with CORSIKA software. cosika's outputs are text files with 8 or 7 column and more than 2000 row(like matrix) . Arrays of this matrix are number in Scientific notation like fallowing image ![340c241a97cdc541d3f4b8c57ada068d](/attachments/large/4/340c241a97cdc541d3f4b8c57ada068d.jpg "340c241a97cdc541d3f4b8c57ada068d") I want to read data in 7th column and …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for LucyLogic

Hello, everyone. I am taking a beginning python class and was wondering if anyone could help me out? We are writing a program that generates 100 random numbers (between 1 and 1000), and keeps a count of how many of those random numbers are even and how many are odd. …

Member Avatar for vegaseat
0
510
Member Avatar for refphlex

Why is my output like this instead of all the data being in the table? (PS : must use while(!fin.eof()) thanks #include <iostream> #include <iomanip> #include <string> #include <fstream> using namespace std; int main() { ifstream fin; ofstream fout; string Name; int Id; float grossIncome ; float netSalary; float incomeTax …

Member Avatar for tinstaafl
0
239
Member Avatar for like_bilal02

Hi, SIR I HAVE A SHEET IN WHICH I HAVE 6 COLUMNS FOR RICE INVENTORY. 1)Report No 2)IN/OUT/PROCESS/Fg(This column show whether Rice In, out,Proceeds & Finshed goods) 3)Product Name 4) In (If In & FG i have make entry of quantity in this column) 5) Out (If out or process …

Member Avatar for PDB1982
0
148
Member Avatar for abinaya_1

hello everybody.. I have a table which contains all the info about a file i.e its id, name, size, createddt and modifieddt. now i need to copy all the files(file content) to a local drive. Gotta do this in c# console application. Can anybody help me?

Member Avatar for Ketsuekiame
0
282
Member Avatar for SHARATH_1

I am trying to add actions and paint on the image in JPanel. Till now I could only succeed to add image into the JPanel. But I could not add mouse actions on the image and paint it. Can anyone please go through my code and give suggestions!! public class …

Member Avatar for mKorbel
0
224
Member Avatar for CodingCabbage

Sorry, I posted this in software development not python. How do i make an auto-incrementing column? Heres my pseudocode/sql attempt c.execute('''CREATE TABLE <tableName> ( <columnName> <auto incrementing??!!>, <columnName2> text, <columnName3> text, <columnName4> text ) ''')

Member Avatar for vegaseat
0
615
Member Avatar for cambalinho

template <typename a, typename ... b> class events { public: typedef std::function<void( a arg, b ... argx)> OnSomethingHandler; events(OnSomethingHandler Handler) { handlers_.push_back(Handler); } void operator ()() { for(auto i = handlers_.begin(); i != handlers_.end(); ++i) (*i)(); } private: std::vector<OnSomethingHandler> handlers_; void AddHandler(OnSomethingHandler Handler) { handlers_.push_back(Handler); } void TriggerEvents() { for(auto …

Member Avatar for cambalinho
0
794
Member Avatar for narasimha9

display city_name using two tables. I have written two queries but unable to display the results. First Table name is tbl_city and it has id,state_id,city_id,city_name. Other table name is tbl_states and it has id,state_id,state_name $state_id=$_REQUEST['state_id']; $query="select c.city_name FROM tbl_city AS c,tbl_states AS s where c.state_id='$state_id' AND s.state_id='$state_id'";(two tables using alias) …

Member Avatar for Reverend Jim
0
231
Member Avatar for mavtcr
Member Avatar for G_Waddell
0
969
Member Avatar for Biff2013

You will use the P10Class here: public class P10Class public class P10Class { public static int SEQ_NUM; public static int BIN_NUM; public static int seq_search(int[] data, int key) { boolean found = false; int i = 0; SEQ_NUM = 0; while ( !found && (i < data.length) ) { if …

Member Avatar for Biff2013
0
286
Member Avatar for Indians

This is my php & html code for show numbers in words. this works correctly `<input type="text" value="<?php include("number_words.php"); echo convert_number_to_words(123); ?>" size="70" readonly="readonly" />` this is my final total amount html code `<input type="text" name="totalamount" id="totalamount" size="8" readonly="readonly" />`. here i am doing convert numbers into words. but i …

Member Avatar for broj1
0
526
Member Avatar for iv_jo

I need to get the name of the table with the biggest number of rows, I can find the biggest number of rows with function count and than function max, but i don't know how to see from which table is that maximum, can anyone help? tnx

Member Avatar for Tpojka
0
280
Member Avatar for davy_yg

What's the difference between char and varchar in phpmyadmin ? I am trying to decide whether to use char or varchar for name for example.

Member Avatar for RomelynCastillo
0
273
Member Avatar for strongard63

here is an example of **random** binary code : 000000000110000001100000000000000000000001000000 000100000000000001110000001001000010000001101001 000100000000000000101001011001010110010000100000 000000000000000001010100000000000110001000100001 001011000110000001010000001000000010100100000010 000000000000000000001001000000100111010000100001 010000000110000101000010000101000110000101000110 001000000010000000000100000000100001011100000101 the code above is only for clarity and specification my question is : how to **decode** a **random** binary code to plain text ??????? and what are , **generally** , the methods used …

Member Avatar for ddanbe
0
203
Member Avatar for Benjamin_4

Honestly am writing an application and am stuck at this point. problem is am writing an asset derpreciation application and i am calculating for Monthly Depreciation,End-of-year value ,Accumulated depreciatio.I want get the results of the values in this form in my jTable when the calculation is done. for example when …

Member Avatar for mKorbel
0
208
Member Avatar for Darkicon

I have a slightly malfunctioning mouse. My problem is that when my computer wakes up, often my mouse stops working. The light remains on and all buttons work but I cannot move my mouse until I unplug it and plug it back in. I've written programs to fix strange issues …

Member Avatar for Darkicon
0
226
Member Avatar for JohnOSull4021

Hey guys trying to make this OO but no luck..can anyone help? import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; import java.util.*; public class Main implements ActionListener { public static void main(String[] args) { new Main();// Calling the class construtor. }//end main //Setting up ALL the variables JFrame window = …

Member Avatar for JamesCherrill
0
163
Member Avatar for daino

The below code simply reads the string **"This is a test"** from a text file and displayes it on the console. I've deliberately placed an endline at the end of each time the string is loaded to show that the string is all that is passed to '**mystring**' from '**myfile**'. …

Member Avatar for daino
0
220
Member Avatar for you207

Hi ! I have arrray A[n][n] and i can input numbers in the interval -100 and 100 . I need to copy array A to array C[n*n] , and copy the number who are in a user iputed interval [k;l] and sort array C. I need help . I out …

Member Avatar for vmanes
0
418
Member Avatar for joester007

I'm getting a warning at the end of my code that says, Warning 1 Function 'Result' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used. The code works fine, but can someone explain why I'm getting this …

Member Avatar for joester007
0
158
Member Avatar for renagadejesus

So the question is a 2 parter. I believe I have the part a completed right, but not 100% where to add in the second part. The first question is as follows: A. Create an application named Numbers whose main() method hold two integer variables. Assign values to the variables. …

Member Avatar for Dean_williams
0
351
Member Avatar for Mafiamanandre

Hi all. I would like to know how can I code form1 to open form2 immediately when form1 loaded in Visual Basic? eg. Form1 opens and immediately form2 opens. This is almost like website redirection. Thanks.

Member Avatar for DM Galaxy
0
502
Member Avatar for apohbakuteh

Hi guys i am a total beginner on VB.As mention on the tittle i would love a help on my problem.Here is my code Imports System Imports System.Data Imports System.Data.OleDb Imports System.Data.SqlClient Public Class Form1 Dim conn As New System.Data.OleDb.OleDbConnection() Private Sub btnSignUp_Click(sender As Object, e As EventArgs) Handles btnSignUp.Click …

Member Avatar for apohbakuteh
0
385
Member Avatar for inspire_all

Consider the below statement if(i==2) The lexical analyzer reads the source program one character at a time.So if we divide the statement into characters it would divide if into i&f and it would say that i is an identifier.But it doesn't do this.So is there any look ahead mechanism which …

Member Avatar for inspire_all
0
180
Member Avatar for gahhon

I have a repeater in my webpage which containing Buttons as well.. <asp:Repeater ID="rptView" runat="server" OnItemDataBound="rptView_ItemDataBound"> <HeaderTemplate> <table border="0" width="90%"> <tr class="RepeaterHeader"> <th align="center">Date</th> <th align="center">Category</th> <th align="center">Description</th> <th align="center">Amount</th> <th align="center"></th> </tr> </HeaderTemplate> <ItemTemplate> <tr class="RepeaterData"> <td align="center"><%#Eval("CurrentDate") %></td> <td align="center"><%#Eval("Category") %></td> <td align="center"><%#Eval("Description") %></td> <td align="center"><%#Eval("Amount", "{0:C}")%></td> <td …

Member Avatar for |-|x
0
176
Member Avatar for MaddTechwf

I've been working on an ASP.NET project. I've successfully implemented LDAP authentication for login and have tested it with multiple users with no issues. LDAP is only controlling my login credential. Everything else is stored in a SQL db. In that database I have a users table that has a …

Member Avatar for |-|x
0
185
Member Avatar for VUEKID

ok, NEED HELP HERE TO GET ALL THE CHARACTERS IN THE TEXT FILE AS A FULL LENGTH AND DO SOMETHING WITH IT... Line 31 #include "stdafx.h" #include<stdio.h> #include<stdlib.h> #include<string.h> #include <iostream> #include <iomanip> #include <string> #include <sstream> #include <fstream> #ifndef _DEPRECATION_DISABLE /* One time only */ #define _DEPRECATION_DISABLE /* Disable …

Member Avatar for tinstaafl
0
195
Member Avatar for beastie805

I am having a problem with readin input data, my program is reading the last name in my .txt document twice and inserting it into each one of my functions an extra time. here is the out put Enter the name of the .txt file that you want to open …

Member Avatar for beastie805
0
194
Member Avatar for uswer

1. Write a C++ program that simulates the throw of a dice. The program allows the user to enter the number of throws he/she would like to do. The program then, will calculate the statistics of the number of faces appears in these throws. The program should satisfies the following: …

Member Avatar for Jamblaster
0
163
Member Avatar for João_5

Hello guys, my turn to ask a very simple question. I already have a Mysql DB with querys working great. I import data from Active Directory server, and one of the values is State, enabled or disabled, etc. But this values came in a form of code: 512 = Enabled …

Member Avatar for diafol
0
290
Member Avatar for SaroGFX

Hi guys, I am trying to create a fast and smooth flickering / blinking logo. With my limited knowledge on javascript i've come up with the following script that basically does the job, but the 'animation' isn't smooth at all. Does anyone have an idea how I could go at …

Member Avatar for SaroGFX
0
157
Member Avatar for DeanMSands3

Hey Daniweb! What's a good site, or maybe someone could write up a quick-and-dirty example of a desktop app showing how to use the Model View Controller pattern? I'm no slouch at google-fu and found this lovely example through Wikipedia: http://www.songho.ca/opengl/gl_mvc.html which I'll look at after class tonight. I'd still …

Member Avatar for hulkishungry
0
301

The End.