64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for divakar.it

I am using VB 6 for my Project. There is requirement that Managers want to see blocking dates of an employee for a project. Eg: If an employee blocked for a project till Dec 2010 then the dates in a calender till Dec 2010 will be showing in a specific …

Member Avatar for AndreRet
0
335
Member Avatar for whodoes21

Hello citizen of Daniweb may I ask a little help from you guys please :) see there's this program that our professor had asked us to make and It's about pointers. as a newbie to this world I was able to (gladly) make it but i feel like it could …

Member Avatar for whodoes21
0
197
Member Avatar for daviddoria

I have this: [code] int serialInt = 40000359; [/code] but what I really need is this: [code] int serialHex = (int)0x40000359; [/code] What can I do to turn serialInt into serialHex? I found some code that claimed to do this: [code] int IntToHex(int input) { std::stringstream ss; for (int i=2*sizeof(int) …

Member Avatar for daviddoria
0
177
Member Avatar for CEVGames

I am not sure where to begin with this code or how to go about it. I was wondering if anyone could give me some ideas as to where to start or ideas on how to accomplish this (If you want to help with sample codes I'd love that too, …

Member Avatar for CEVGames
0
289
Member Avatar for CEVGames

I have a log in system and upon logging in, I cannot get the page to redirect to the members section. I've tried a bunch of different methods, and none seem to work. Here is my current code, can anyone offer some suggestions please? [CODE]{ $username = mysql_real_escape_string($username); $password = …

Member Avatar for CEVGames
0
130
Member Avatar for dreamer_lek91

The question I am going to ask involves Mircrosoft Access and VB and I am stuck with it. This is the question: I have 4 peoeple: L, M, N, O, P there are 4 object: a, b, c, d, e L has: a, c, d M has: a, d, e …

Member Avatar for AndreRet
0
197
Member Avatar for LianaN

Hi! I have two classes: 1) Class A extends JPanel 2) Class B extends JFrame I would like to use some methods from Class A in Class B. How could I implement it? Thanks!

Member Avatar for LianaN
0
117
Member Avatar for cavern

hello everyone, i need help, can anyone help me to check out the coding?? [CODE] Private Sub cmdBatal_Click() paparan.Show Me.Hide Unload Me End Sub Private Sub cmdSimpan_Click(Index As Integer) If InsuData = True Then con.Execute "Insert into Pemilik(Na,Nokad,Warganegara,Notel,Harga,Tingkat) values ('" & txtNama.Text & "','" & txtNoKad.Text & "', '" & …

Member Avatar for abelingaw
0
158
Member Avatar for shinsengumi

Hi everyone. I'm using sqlite3 in Linux and I currently have a problem. I have a database and 2 tables in it: db1 and db2. db1 has 3 columns: empID, empName, empAddr. db2 has just 1 column: empID and its value is set to 0 by default. I created a …

Member Avatar for shinsengumi
0
551
Member Avatar for tech9x

[code=c++] int i; string *opening; string *ending; int *num1, *num2, *num3, *num4, *num5, *num6; char chr, chr1, chr2, chr3; for(i= 0; i< sizeOfArray; i++) { getline(cin,opening[i]); cin >> num1[i] >> chr >> num2[i] >> num3[i] >> chr1 >> num4[i] >> chr2 >> num5[i] >> chr3 >> num6[i]; getline(cin,ending[i]); } [/code] …

Member Avatar for jonsca
0
153
Member Avatar for Tsunami49

Hi there. I am creating a mock up of a physics library currently, and I am currently trying to deal with 2d arrays. Right now I am having issues with transposing the array. here is the code with the messy stuff cut out [CODE] //TMatrix.h #pragma once #include "main.h" class …

Member Avatar for Tsunami49
0
108
Member Avatar for xcarbonx

Hi, I have made a basic calculator program, but need help with some minor things. I have created two radio buttons for the user to click on. If the first is clicked/selected, then the output would be formatted in floating point value (radFloat). If the second is selected, then the …

Member Avatar for Netcode
0
130
Member Avatar for Xtremefaith

So I am new to PHP but I have put forth a lot of effort to research my answer before taking it to the community. So far this what I have: [CODE=php] <?php $id=$_GET['id']; include("config.php"); include("openDB.php"); $table = 'vendors'; $sortBy = 'Company/Name'; $query=" SELECT * FROM `$table` WHERE id='$id'"; $result=mysql_query($query); …

Member Avatar for Xtremefaith
0
152
Member Avatar for ChristinaS

Hi! I'm trying to find min variance (both value [U]and[/U] index). I have x# of product defects tracked over y# of days. prod1 prod2 prod3... Day1: 1 1 1 Day2: 1 2 2 I have arrays that store max & min defects, by product#. minVar = maxDefect[]-minDefect[] gives me the …

Member Avatar for ChristinaS
0
193
Member Avatar for ChrisATO

Hello, thanks for reading my thread. I'm still new to web development so I appreciate your help in advance. I am having a problem that I am sure many people have run across in the past. In my project, I have sidebar menus loaded based upon the user permission level …

Member Avatar for ChrisATO
0
2K
Member Avatar for manshipboy

I am trying to generate a new checkbox in a different form. [code] Public Class frmAdd Public Sub btnitemadd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnitemadd.Click Dim chklowerleft As New CheckBox Dim chkhandleft As New CheckBox Dim indexcounter As Integer = 4 If chkleftlowerarm.Checked = True Then frmMain.chklistLA.Items.Add(chklowerleft, …

Member Avatar for Unhnd_Exception
0
143
Member Avatar for 123balboa123

HI everyone I have a little problem with an exercise I have been given for homework. We were given sample server, client, compressedmessage, encryptedmessage documents to build upon. Now what is meant to happen is the server listens on port 2000 for incoming client requests, once a client makes a …

Member Avatar for 123balboa123
0
114
Member Avatar for tomtetlaw

When I open a file, the file is valid (passes if (!file)). But when I use it with fgets, fgets fails. When I called ferror the return value is 32. I looked that up and it means broken pipe. What does this mean and how could I fix it? This …

Member Avatar for tomtetlaw
0
83
Member Avatar for vlad44

Hi everybody, I'm totally newbie to python I've seen some tutorials and think that is an easy to learn language but I couldn't figure out the real function of scripting language I've read some brief notes about the function being to control an existing application . But I couldn't understand …

Member Avatar for vlad44
0
133
Member Avatar for YahRioO

hi Using while, write a program that keeps reading integers from user until he enters -1 then prints the average of all entered numbers (-1 should be ignored). this is my solution, but i dont know why he gives me wrong average? [CODE]#include<iostream> using namespace std; void main() { double …

Member Avatar for Clinton Portis
0
277
Member Avatar for c_shaft05

I've been messin with python for little under a month now. I've come across one of these sample questions that make you think, stating to compute and print a table of Celsius temperatures and Fahrenheit equivalents ever 10 degrees... well i guess the main thing is i need help trying …

Member Avatar for Duskic
0
435
Member Avatar for Sorcher

I really want this echo to not include people not listed as 1 in the row "activated" in my database. So if its 0 they wont show. [CODE] // Print each user while($row = $result->fetch_assoc()) { echo " <tr> <td>{$row['username']}</td> <td><a href='{$row['website']}' class='example7'>{$row['website']}</a></td> <td align='center'>{$row['disabled']}</td> </tr>"; } // Close table …

Member Avatar for Sorcher
0
93
Member Avatar for Unhnd_Exception

Heres a way to eliminate flickering or create a fade effect on a panel or anything else. If anyone has a technique that would be more effective, please post it. When double buffering doesn't fix a flicker problem on a panel you can use a picture box to mask it …

0
58
Member Avatar for JustAnotherJoe

Has anyone written code that allows Javascript to communicate with mod_wsgi using Ajax? I'm looking for a very simple example that I can build off of (e.g. uppercase a string and return it). The examples that I've seen use PHP/ASP. When I substitute wsgi for 'php' or 'asp', the program …

Member Avatar for JustAnotherJoe
0
491
Member Avatar for Simplified

Hi All I'm getting very odd behaviour when using file.write(variable) - what happens is that if I print out the variable using the print function I get this: [ICODE]4CE1FFC64101843801[/ICODE] ... which is what I expect. However, when I try to write this to a file (using the variable 'valid' to …

Member Avatar for Simplified
0
108
Member Avatar for stephen_UK

I have a php script displaying muliple pages of records which has problems with the pagination of the web pages. When it loads for the first time I get 2 Notice: Undefined index messages - as shown below: Notice: Undefined index: start in /customers/swaag.org/swaag.org/httpd.www/SWAAG-DATABASE/VIEW_in_STEPS5b.php on line 210 Notice: Undefined index: …

Member Avatar for stephen_UK
0
94
Member Avatar for iamdabobo

I'm working on a calculator in python. Introductory college course, so I know some stuff, but I'm far from being an expert of any sorts. This is a scientific/graphing calculator, so I'm parsing a whole string of input. Say the user inputs integ(3*x+3,0,1) (integrate 3x+3 from 0 to 1). My …

Member Avatar for Gribouillis
0
2K
Member Avatar for atla

I'm pretty much a complete beginner. I'm trying to get a 'timer' or 'clock' that pretty much just counts how long you have the window open by using a loop that adds 1 to "a" for every second, and adds 1 to "b" for every 60 seconds (while subtracting 60 …

Member Avatar for richieking
0
170
Member Avatar for ryan-t

Hi, Trying to build my own simple-ish forum script, and i want to display 2 forum posts snippets inside each category on the default page. I thought i knew the code for it but when i do [CODE="php"] $cat = mysql_query("SELECT * FROM forum_cat")or die(mysql_error()); $catresult = mysql_num_rows($cat); for($count = …

Member Avatar for ryan-t
0
129
Member Avatar for tawes01

I have a dialog-based application that just has a big edit box. I want to make a quotation mark bold right when it is typed. How can this be done? I am using dev-c++ 4.9.9.2 (I don't know how to make single characters bold, let alone how to capture the …

Member Avatar for Ancient Dragon
0
146
Member Avatar for hyperion

Hello all, Info: I am using Pelles C compiler. Some code first: Following is the linked list structure I am using. [CODE]typedef struct _NODESTRUCT { void* data; struct _NODESTRUCT* next; } NODESTRUCT, *PNODESTRUCT;[/CODE] Method to add a new node to linked list: [CODE]PNODESTRUCT AppendNode(PNODESTRUCT rootNode, void *data) { PNODESTRUCT tempNode; …

Member Avatar for Narue
0
164
Member Avatar for frogboy77

Can anyone tell me how to find the maximum value for a specific variable(i.e int, long long int, double)? Also is there a way to set a variable to this value(without knowing it and typing it in)? Using Dev C++. Any help appreciated.:)

Member Avatar for frogboy77
0
90
Member Avatar for oggiemc

Hi, Im getting the followin error in one project class in my application: The project was not built since its build path is incomplete. Cannot find the class file for DataControl. Fix the build path then try building this project DataControl is a class in another project in the same …

Member Avatar for apines
0
314
Member Avatar for rolandrogers

Hello - I am trying to get a looping date repeater to work but it is driving me crazy! It works for most dates but breaks for dates that originate in early November. I created a page that shows the code and the output for anyone to see what is …

Member Avatar for rolandrogers
0
138
Member Avatar for ceyesuma

Does any one know where there is some Java code already written to handle deleteing directory trees? Maybe with some undo functions?

Member Avatar for ceyesuma
0
126
Member Avatar for GeekaByte

Hi guys, I'm trying to find a drag and drop cursor for use in a program. It is not in the standard Windows cursors. It's the one you see when moving a control in Visual Studio or when reordering slides in powerpoint - arrow with rectangle below. Please let me …

Member Avatar for Luc001
0
1K
Member Avatar for Snehamathur

Hello I am new to this community and newbie to c language. I want to code for modulus operator (%) in c.. Need Help. Thanks in Advance

Member Avatar for Snehamathur
0
187
Member Avatar for cwarn23

Hi, I have been working on a way to reverse bitwise Xand with c++. I have managed to do most of it but can anybody tweak this script I made so it works to its full potential. At the moment this script tries to return the variable x from ((12 …

Member Avatar for cwarn23
0
112
Member Avatar for tech9x

[code=c++]void getCommands(char * cstr,char * p,string *userInput,string Input) { string currentCommand = ""; strcpy (cstr, userInput.c_str()); p = strtok (cstr," "); while (p!=NULL) { p=strtok(NULL," "); cout << p; } [/code] ERROR `c_str' has not been declared request for member of non-aggregate type before '(' token I have #include <cstring> …

Member Avatar for jonsca
0
383
Member Avatar for radovanov

Hello, I'm totally out of luck with creating a working patternt to match for my preg_match. What I would like to do is, create a pattern that will match sentenses in a bunch of text.. It should recognize a word that has a capital letter and take it as the …

Member Avatar for radovanov
0
118
Member Avatar for Hayzam_#include
Member Avatar for WildBamaBoy

I used someone else's code as an example to start my game and move my character around. I understood the majority of it but there's a couple of parts I don't get. I want my character to move Up when the up arrow is pressed, but smoothly! My code right …

Member Avatar for SgtMe
0
2K
Member Avatar for arctushar

Hello I want to change date format to insert date in mysql. I tried as below code [CODE]<script type="text/javascript"> $(function() { $("#datepicker").formatDate('yyyy-mm-dd'); $("#datepicker").datepicker(); }); </script> [/CODE] but its not working form me. can anybody suggests me how to do it?

Member Avatar for faulkj
0
225
Member Avatar for iamchuckb

Hi all, I'm new here and a little flummoxed by this problem. I am working through the process of creating a notepad type program in java to get a little more experience with the language. My save functionality is not working. This is not unexpected; the part that is really …

Member Avatar for iamchuckb
0
4K
Member Avatar for dre-logics

I use Visual studio 2008 I use MySQL 5.1 I have created een database (test) table (table1 ) with field (Images) Data Type mediumblob size The maximum length of mediumblob is [COLOR="Red"]16777215[/COLOR] (2^24 - 1) characters I want to Check file size before save in MySQL table1. [COLOR="Green"]I want to …

Member Avatar for kvprajapati
0
681
Member Avatar for becka221

Hi, Im guessing this is an easy piece of code, but i cant find the answer Im looking for anywhere. I have 20 files each with a different a list of numbers (not all the same amount of numbers). Each file is called data-01.txt, data-02.txt... to data-20.txt.I need to open …

Member Avatar for vinitmittal2008
0
152
Member Avatar for MikeTackett

I consider myself still a novice programmer but I'm starting to develop and maintain applications with end users for the company I'm working for. We don't have a policy on version numbers and I'm looking for advice on when best to update them. I understand the major.minor portion is largely …

Member Avatar for kvprajapati
1
256
Member Avatar for naveedqadri

Hi all , I am trying to get input from user then convert it into specific format and hold it in new variable. here is my code [code] Dim dtmInputBox As String = "" 'Dim strDTM As String '= "" Do Until Not dtmInputBox = Nothing dtmInputBox = InputBox("Enetr DTM …

Member Avatar for naveedqadri
0
139
Member Avatar for rcossy1023

I am trying to make a contains method where it will search for a name using the compareTo method of the Comparable interface. Here is my problem, It will return true if found but will stay in the while loop and not end if it is not found. AND I …

Member Avatar for mrnutty
0
98
Member Avatar for spooder weld

I'll try to keep this short. I'm writing a 2D platforming engine and I had good collision detection, but I had to add a separate condition for every platform I had. Essentially the collision function compares the sides of 2 rects. Here is a code snippet of the for loop …

Member Avatar for spooder weld
0
366

The End.