64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for PomonaGrange

HI All, I've been trying to make a membership management type script. This script would have a database with the members contact info and which office they hold, if any. The problem I am having is I would like the script to show the president's and vice president's Contact info …

Member Avatar for langsor
0
164
Member Avatar for plike922

can you check the code... it doesn't work for some reason i tryied everything [CODE]#include <stdio.h> #include "genlib.h" #include "simpio.h" int Fibonacci(int fnum); int main() { int fnum; printf("Please enter in the Fibonacci number: "); fnum = GetInteger(); printf("The number for f(%d) is %d\n", fnum, Fibonacci(fnum)); system("pause"); } int Fibonacci(int …

Member Avatar for Aia
0
113
Member Avatar for cellus205

Can anyone help me translate this regex match in Perl to a VB.Net Regex match? Heres the perl regex: if ($line =~ /\\([\w\d\s\-]+?\.\w{3})\"\t\"/) { print "LINE: $1\n" } # regex match And heres what I have for the VB regex, but its currently not working: [code=VB] Dim fs As New …

0
74
Member Avatar for edek

Hi! Is there any way I can save a database as an SQL file? Or at least save schema if saving data is not possible. Thanks in adv.

Member Avatar for AntonioGK
0
152
Member Avatar for CoolGamer48

Hey, I've been trying to create an RPG, and I really have trouble moving with it. I really can't find any decent tutorials (or even books). The only book I've heard of (Making RPGs with DirectX, or something, by Jim Adams) got pretty bad reviews. The part I can't really …

Member Avatar for Ezzaral
0
866
Member Avatar for Nemoticchigga

Does anyone know if vs2005 has the borland equivilent of a "scrollbox"? Thanks.

Member Avatar for Nemoticchigga
0
169
Member Avatar for witza

:$ Ok people, bare with me for a second (or 60...) I'm developing a part of a larger application, and to cut to the chase, i now need to access an Hashtable that I've made global. This aplication is multithreaded, but I'm trying to access this hashtable from the same …

Member Avatar for nnobakht
0
182
Member Avatar for mksakeesh

[code] #include<fstream.h> #include<string.h> using namespace std; class emp { public: char *per; void write() { ofstream out("ss.txt",ios::app | ios::binary); cout<<"Enter some character ....\n"; cin>>*per; //out.write(per,sizeof(per)); out.write(per,strlen(per)); } }; void main() { emp e; e.write(); } [/code] Why this is not working?

Member Avatar for Clockowl
0
162
Member Avatar for Cosa

I have a problem where i want to compare strings, however the comparison cant be case sensitive. I have tried to use stricmp strnicmp strcmpi They do not seem to be part of the <string> or <cstring> libraries on my compiler. I am using the GNU compiler. Is there a …

Member Avatar for Cosa
0
91
Member Avatar for ulquiorra

Hello all, I am in need of some assistence. So if anyone could help that would make my day;). This is a piece of my code [code] for( int i = 0; i <= 13; i++ ) { cout << "SLOT : " << slotNumber; fprintf( HashTable, "\t%i slot : …

Member Avatar for ulquiorra
0
305
Member Avatar for dinilkarun

Hi, I am using the following syntax in VB 6.0 to copy distinct values from strTableName to TableName strOpen = "Select distinct * into" & " " & strDupTableName & " from " & strTableName rst.Open strOpen, db, adOpenDynamic, adLockOptimistic But I am getting a runtime error "-2147217833". I have …

Member Avatar for dinilkarun
0
458
Member Avatar for hny_lyn

hello to all!!! i really don't have any problem this time, but there's something i wanna learn more about! we are discussing classes and inheritance now!! my professor have given us quite examples of it....but it wasn't that clear!! can i ask for a simple codes that implements a class …

Member Avatar for javaAddict
0
196
Member Avatar for yasmena

this page opens in a pop up where it fetches an image from the Database ...everything works perfect except for passing the id part.. i'm tired of trying and i kept 5 days googling but could not solve it !! any help would be appreciated .. here's the line that …

Member Avatar for Lejonet
0
153
Member Avatar for m_banerjeein

Hi All Guys few quick questions on C.. 1. What does "static void <function_name>(argument1,argument2)" means.. 2. Whether this would give a compilation error if i write this piece of code... int a =1 , b=2,c=3 ; (a=b)=c;

Member Avatar for jephthah
0
129
Member Avatar for jorgeflorencio

[QUOTE]Hello everyone I have the code that allows me to colect values acording if its Fail or Passed[/QUOTE] [CODE]package spimonitoring; import java.io.*; import java.util.ArrayList; import java.util.Arrays; import java.lang.reflect.Array; public class InspectionResults44{ public static final byte HEIGHT_AVG_RESULT = 6, HEIGHT_RANGE_RESULT = 11, AREA_AVG_RESULT = 16, AREA_RANGE_RESULT = 22, VOLUME_AVG_RESULT = 29, …

0
128
Member Avatar for ficus

Hi Guys hope you can help me I am using the following AJAX code to get SUB-Buttons. If no new button is selected I need the main button to revert back to the originally selected main button on mouseout with a timeout function or delay please help. so the code …

Member Avatar for upside_down2000
0
351
Member Avatar for cellus205

Im having trouble trying to pass a parameter to a SQL query that I am trying to run on a DataTable, that Im using to Dynamically populate a treeview. Im not having any trouble filling the first nodes, but to fill the second nodes, I have to use a query …

0
304
Member Avatar for MaestroRage

I am trying to get the main to read in a number, and use that number to do a mod calculation. However my best efforts are giving me garbage values. I am sure I am not using the pointer correctly, yet my efforts have gone unrewarded. How can I get …

Member Avatar for jephthah
0
214
Member Avatar for Saddi

I wanna make a program for a little shop the progs idea is to calculate the daily amount and the items and monthly report but I don't know where to start please help me :) :)

Member Avatar for Saddi
0
85
Member Avatar for y_itay

Hey guys, I was trying to find some way to filter and sort data in a Generic Collection of List<> Type but couldn't find any way to do this. I have Tried to use [B]BindingSource [/B]which didn't really filter any of the data in my collection. Anyone have any idea …

Member Avatar for y_itay
0
636
Member Avatar for dexter1984

[CODE= CPP] //Searching for specific characters while (!stats.eof()) { stats.getline(counter,200); for (int i=0; i<strlen(counter); i++) { if (isupper(counter[i])) upper++; if (islower(counter[i])) lower++; if (isdigit(counter[i])) decimal++; if (isspace(counter[i])) blank++; if (counter[i] == '.') end++; if (counter[i] == '!') end++; if (counter[i] == '?') end++; total++; } } [/CODE] Hi guys, I …

Member Avatar for Ancient Dragon
0
118
Member Avatar for jssupekar

hi, I want to upload one photo at a time in picture box.... I would like to take input from user.. i have taken one button...by clicking on that button it should open the drives and files window.........after selection that link is stored in textbox.... how that link i can …

Member Avatar for Jx_Man
0
103
Member Avatar for vs49688

Hey, I am having a really weird problem with my OpenGL Program. When I compile it in Debug mode and run it through Visual Studio 6, it works fine, but when I run it from windows, it works fine until the part where you go to manipulate the camera of …

Member Avatar for vs49688
0
80
Member Avatar for Typhoon

Due to some changes in my company's structure, I need to transform our catalog of products in a xml file. I need to know how can I do this provided that nobody has a technical background in the team.

Member Avatar for gtd
0
211
Member Avatar for farahphp

Hi All i want to develop a code such that when i click on the text next to the radio button the radio button should be selected and even if the button is clicked how can i achieve this any help would b appriciated thanks in advance [ICODE]<html> <head> <script …

Member Avatar for mnjbadc
0
2K
Member Avatar for Chaster

Hi everyone, well, my problem would be:There is a database server which contains no databases. So there is nothing to connect to (as it is needed by the DriverManager.getConnection instruction). How can I create a new database under these circumstances? Thanks, Chaster

Member Avatar for Chaster
0
137
Member Avatar for god_1896

hi all; I create a php classes to insert my data into database, but it doest work, please help me with this. here is my whole code. [CODE]<?php require_once('connect.php'); class email { var $mail_id; // hotel id in emailRecord Auto_increment. var $name; // hotel name in emailRecord. var $email; // …

Member Avatar for god_1896
0
115
Member Avatar for JackDurden

I know I already posted this but I guess I cant do it the way it was shown. I want a 2-dim array to print out on the same line as string word. I cant seem to figure out how to get a 2-dim array to do this, does anyone …

Member Avatar for Ancient Dragon
0
130
Member Avatar for Scooby08

I was wondering how to store this date into the database: Friday, August 28, 2015 and this time: 8:00PM I have one field that collects the date and another for the time.. Im looking to store them in this format, 0000-00-00 00:00:00.. Is there some way to turn this date …

Member Avatar for buddylee17
0
105
Member Avatar for cellus205

Right now Im having trouble getting data from a MySQL table and creating a new datatable to store this. I have a TreeView control that I am trying to dynamically add nodes to. The query that I have is returning the Attachments column of all rows where Owner = (parameter), …

0
81
Member Avatar for sciwizeh

new to network stuff going through the java tutorials and i did what it said heres the code: [code=java]import java.io.*; import java.net.*; public class EchoClient { public static void main(String[] args) throws IOException { Socket echoSocket = null; PrintWriter out = null; BufferedReader in = null; try { echoSocket = …

Member Avatar for sciwizeh
0
3K
Member Avatar for HLA91

Hi all In the book im learning from 'Getting Started In Java' one of the example programs is a small swing application with some buttons and icons on the buttons. I typed the code and the book tells me to place my picture that i want to use as an …

Member Avatar for HLA91
0
120
Member Avatar for soppyhankins

Hello again! I am trying to make a jump and run game using SDL, but I am stuck at the jumping part. Whenever I press the Up key, the sprite should go up. However, when I press it, it goes down. I have changed it and done math that should …

Member Avatar for soppyhankins
0
252
Member Avatar for JackDurden

I want a 2-dim array to print out on the same line as string word. I cant seem to figure out how to get a 2-dim array to do this, does anyone know how to do this? [CODE]void Sort(string word[],float grades[][8], int number) { int i,j=o, temp; string aName; float …

Member Avatar for Radical Edward
0
146
Member Avatar for saneeha

Can any one guide me how can i write a byte array to a file.. I am using ofstream class function write().. but it only accepts char*, can any tell me some other function or any way of conversion..ma code is: [code]Byte array[512]; //....the array is initialized using memcpy()....// fstream …

Member Avatar for saneeha
0
957
Member Avatar for Seachmall

I have a method that requires two variables to pass through it but for some reason the second one doesn't. I've tried tons of stuff but nothing seems to work. [code=php] function get_area_number($area, $company='daniweb'){ echo '>> '.$company; } [/code] Thats the method, nothing is displayed for the [i]$company echo[/i] unless …

Member Avatar for langsor
0
107
Member Avatar for shaynicb25

I have to create a program that reads the text, outputs the text as is and prints the number of lines and the number of times each letter appears in the text. I have to include an exception, so that if the array index goes out of bounds when the …

Member Avatar for javaAddict
0
444
Member Avatar for Alex Edwards

Is the [X] at the top right corner part of the JApplet or container with the JApplet? I need to make an action happen when the user attempts to close out of the JApplet and I'm not sure of how to properly access the window-closed button within JApplet context. Thanks …

Member Avatar for Alex Edwards
0
173
Member Avatar for Alex Edwards

I'm having a Focus issue when running a Swing application. There are 4 buttons visible on the JApplet. I have an implementation that allows the user to make keyboard and mouse events in the JApplet. The problem is that I can use the keyboard and mouse events when the program …

Member Avatar for Alex Edwards
0
167
Member Avatar for Mylena

Hello, Please, if anyone knows how to pass a Javascript integer variable as a parameter into php mysql_query. Below gg1 is successfully converted to an integer (i checked it using some maths additions), and now i need to pass this value to BirdID. The last line with innerHTML works fine …

Member Avatar for buddylee17
0
169
Member Avatar for sciwizeh

i know that blender has a game engine, but i cannot find anything really good on how to get it to work... i can make physics happen, there are tutorials (like a ball rolling) on that that are easy to understand, but i don't get the event thing that blender …

Member Avatar for sciwizeh
0
128
Member Avatar for Clockowl

Hi guys, Could you tell me what's wrong with this code? I don't get why the compiler says it can't find a matching function... [code=cpp]#include <iostream> #include <vector> using namespace std; template <class T> int printVector(vector<T> &x){ for(unsigned int col = 0; col < x.size(); col++){ cout << x[col] << …

Member Avatar for Clockowl
0
109
Member Avatar for ++C LOVER

guys! please help me to choose language (c++/J2ME) for mobile application! Actually I decided to do in c++ but some of my friends say it is not a good idea to do it! so please tell me which language I should select for S60 mobile phones to do project and …

Member Avatar for peter_budo
0
149
Member Avatar for Shanti C

Hello friends... I got one error ,when my login page is loading... Fatal error:maximum execution time of 30 seconds exceeded in ../../../login.php What would i do for preventing this.. Thanks in Advance. Shanti..

Member Avatar for Demiloy
0
129
Member Avatar for Clockowl

Hi guys, I'm getting a segfault and I don't really understand why.. Here is the code n, i, quadcount, quadPerVert and quadindex are all (arrays of) unsigned integers. [code=cpp]unsigned int *quadsPerVert = new unsigned int[quadcount * 4]; //(...) vector<vector<unsigned int> > quadsPerVertIndex; quadsPerVertIndex.reserve(quadcount * 4); for (n = 0; n …

Member Avatar for Clockowl
0
119
Member Avatar for yasmena

can anyone heLp me i need to send an id to a page through a javascript function but it wont work he can't read the variable function confirm_delete() { var answer=confirm("Are You Sure You Want to Delete ?"); if(answer==true) { window.location="delete.php?id=$id"; // alert(" Title Deleted"); } else return false ; …

Member Avatar for Shanti C
0
96
Member Avatar for Pgmer

Hai all. In my appliction im having MDI parent form. and i made frm2 as topmost form But problem is whenever i open some other appliction still that frm2 will come on top. whenver my application is open or active then only frm2 should be on top. Thanks

Member Avatar for waynespangler
0
95
Member Avatar for death_oclock

I am making a blitting call on my backbuffer: [CODE=C++] BOOL drawImage(IMAGE *lpImage, LONG x, LONG y) { RECT rect; rect.left = x; rect.top = y; rect.right = x + lpImage->lWidth; rect.bottom = y + lpImage->lHeight; dwVideoErrCode = lpBack->Blt(&rect, lpImage->lpSurface, NULL, DDBLT_WAIT | DDBLT_KEYSRC, NULL); if(dwVideoErrCode != DD_OK) { MessageBox(NULL, …

0
71
Member Avatar for HLA91

Hi all I was trying to make it so my small program that gets user input would first ask for a string and then print out the string that the user entered, then it would ask for a number it would read it in as a string and then convert …

Member Avatar for javaAddict
0
157
Member Avatar for veledrom

Hi, Code below returns true for (.). It should return false like it returns false for (,). Is there any other way to check (.) and (,). I simply want validate money. Thanks [code] if (isNaN(form1.paid.value)) { alert ("Syntax is not right."); return false; } return true; [/code]

Member Avatar for veledrom
0
138

The End.