64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Jetsetivan

Hi everyone, This is my first post so go easy on me please :). I am trying to compile a simple program that takes two binary numbers and computes a third based on bit operations (i.e. C = A&B, C = A|B etc....) but I run into the "vector subscript …

Member Avatar for Jetsetivan
0
200
Member Avatar for buzzykerbox

Hey,just have a problem with some code,just starting out Its basically a guessing game in vb [CODE] Public Class frmMain Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGuess.Click Dim randNum As Integer Dim guess As Integer = Convert.ToInt32(txtGuess.Text) Randomize() randNum = Int(20 * Rnd()) + 1 …

Member Avatar for buzzykerbox
0
231
Member Avatar for Katsurou

Hi so I have the next problem (didnt write it in code yet because I dont know how i should start) I have to make a program in Visual Studio 2008 that would add words to numbers and make it a word again s ofor example: monday + 4 =friday …

Member Avatar for Katsurou
1
238
Member Avatar for kadvar

Hi, I'm trying to match patterns of the types sentence1 = "keywords=walter&keywords=scott" sentence2 = "keywords=john&" sentence3 = "keywords=james&keywords=john&keywords=brian&" so basically the keywords=somestring& part can be repeated once or multiple times. I am trying to extract the string(s) between '=' and '&'. I have come up with the following so far. …

Member Avatar for woooee
0
90
Member Avatar for j4jawaid

I am trying to minimize the form to system tray. I have written a piece of code. But the only problem i am facing is that when i try to restore the window from system tray. Win Form appears in taskbar but has lost focused means it doesnt appear on …

Member Avatar for jonsca
0
146
Member Avatar for Nexum1

Hello! Thank you for watching.. :) How is it possible to loop a sound without a delay inbetween?? I need a few sounds, about 100, loaded into the memory, all ready to play, And loop, without a delay inbetween. How is this possible in delphi?? I don't want to play …

Member Avatar for Nexum1
0
1K
Member Avatar for DavidDD

Hello there! This is my first post so I'd like to say hello to everyone on the forums! Anyway, I am coding a hangman game. I read my words from a text file with ifstream, then I randomize a word and I set the string "sSelectedWord" to the randomized word. …

Member Avatar for DavidDD
1
130
Member Avatar for niro_fernando

Can any body plz help me , i want to install php apachi and mysql and configer them, can any body help me , i search on the net but the links are not working to downlonad them.plz help me

Member Avatar for Stefano Mtangoo
0
111
Member Avatar for mwaqas1990

Actually i want data from database in DataGridView, OnLoad of Form. I have write this code but this is not working. I have checked that connection established correclty and query is also wrtie but where is problem? [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using …

Member Avatar for mwaqas1990
0
136
Member Avatar for makdu

Hi , i want to write a file to C:\\Program Files\\ using c# Here is what i have [code] string currentsnap = "C:\\Program Files\\currentsnap.txt"; commandtorun("route print > " + currentsnap); [/code] command to run funtion is given below [code] private static void [B][COLOR="Red"]commandtorun[/COLOR][/B](string commandexecuted) { string currentstatus; ProcessStartInfo startInfo = …

Member Avatar for makdu
0
229
Member Avatar for mimis

Hi, i have to sort two arrays in a specific way. I have two parallel arrays A[N] and B[N]. Ι have to sort A in descending order. The changes in A should be happened in B at the same time. If 2 or more items in A is the same, …

Member Avatar for mimis
0
113
Member Avatar for xuexue

please help me guys, i need to know how is it possible to make a line graph using php/javascrip/html. data will be coming from a live database, so basically the webpage will just plot the data coming from the database, but the problem is that, even the basic know-how's i …

Member Avatar for julzk
0
108
Member Avatar for gu0gu0

hi guys, can i ask how do i check for validation for my username field if last letter must be an alphabet? the username is in the format of 7digit + alphabet i had successfully check for the first 7 digit using isnumeric substring 0,7 but i have no idea …

Member Avatar for Ken VB
0
98
Member Avatar for xuexue

hi there, wanna ask for your help guys, i know how to connect MS Access to Visual Basic, now, my problem is that, how can i connect MySQL to VB 6? could you give me some helpful code.. i have MySQL 5, MySQL Connector, MySQL ODBC installed in my computer.. …

Member Avatar for xuexue
0
81
Member Avatar for Dannyo329

Hi, whilst reading a book on Java, I came across a bit where the author used [CODE] GregorianCalendar now = new GregorainCalendar(); [/CODE] And I was just wondering, is that any different from [CODE] Calendar now = Calendar.getInstance(); [/CODE] And if so, why did he use GregorianCalendar instead of the …

Member Avatar for Dannyo329
0
95
Member Avatar for Mike516

I made a registration script my problem is getting the errors to post in the div area. here is a picture: [url]http://screencast.com/t/OTcwNWMxN2Qt[/url] [CODE] <head> <LINK href="css.css" rel="stylesheet" type="text/css"> <title>Registration</title> </head> <div class="roundcont"> <div class="roundtop"> <img src="/images/tl.gif" alt="" width="15" height="15" class="corner" style="display: none" /> <form action="<?php $_SERVER['PHP_SELF']; ?>" method="post"> <table class="table"> …

Member Avatar for amd_k8
0
72
Member Avatar for shaunmccann1

Hi, Ive got a similar problem, it seems a run of the mill thing to break a string into tokens yet its kept me head scratching for days, is there another option or is it a simple code tweaking problem. Fairly new to C/C++ but ive been coding in C# …

Member Avatar for shaunmccann1
0
162
Member Avatar for llamaboy

Hi I am trying to make a nursery registration form for an assignment at uni and have hit a stumbling block. I have written the functions but dont really know what to declare them as. Could anyone help. [CODE]#include <cstdlib> #include <iostream> #include <fstream> using namespace std; int menu(); //creating …

Member Avatar for llamaboy
0
121
Member Avatar for m7md.is

hi every one this is the Project requirements i did the first three things but i have problme with number 4 You are hired by an electronics company aiming to build microwaves. You are asked to develop an application that simulates the work of these microwaves. Consider the following specifications: …

Member Avatar for m7md.is
0
224
Member Avatar for veledrom

Hi, This is my URL [inlinecode]index.php?name=BSC&Subject=C++[/inlinecode] When I do [inlinecode]echo $_GET["Subject"];[/inlinecode], result is [B]C[/B] without ++ I also tried (string) and settype() functions but no luck How do I solve this problem? Thanks

Member Avatar for veledrom
0
165
Member Avatar for nadnakinam

hi everyone, I have designed a web site which works fine in local server. but when i upload it on to server i get this problem, which really annoying me :@ I'm getting this warning, Warning: Cannot modify header information - headers already sent by (output started at C:\...\...\Domain.com\login.php:6) in …

Member Avatar for nadnakinam
0
103
Member Avatar for Moonrise_state

Hi again, I have a class that is supposed to match different people of different genders together under different rules. For example, they are supposed to live in the same postal district. The problem is Java seems to be mismatching people, and I think its because it isn't comparing the …

Member Avatar for Moonrise_state
0
118
Member Avatar for balam

Hi, I have a paginations script to display data from my database but i would like to paginate someones search results. I have this script but get an error that says "syntax error, unexpected '=', expecting '}'" for this if(!$start){$start = 0;} [CODE] <?php include ("connect.php"); $per_page = 20; $start …

Member Avatar for balam
0
122
Member Avatar for SamiBH

Hello I want to learn how to make a script, that reads 2 tabels to find and print top 10 users Table1: postname - userid Tabel2: username - id ( userid = id ) the script needs to count and print top 10 users with most posts #1 userA 1000 …

Member Avatar for SamiBH
0
111
Member Avatar for denniskhor

[CODE] FileReader readKGN = new FileReader("KGNLibrary.txt"); int KGNLib = readKGN.read(); readKGN.close();[/CODE] i dunwan read it as int.. because i wan use it on IF, so i need it to compare wat i input string item into text area with text file inside string item. [CODE] if (POS[i].equals(KGNLib)) { jTextArea2.append((POS[i] + …

Member Avatar for rrusin
0
103
Member Avatar for iamcreasy

This simple code is producing weird output. I write a line and press enter, it echo's the line...well, supposed to...Because, sometimes, it is not showing. In code blocks, i can assume that when the program is returning zero the program is terminating correctly. I tried to figure out, when it …

Member Avatar for xavier666
0
147
Member Avatar for requiem2

Hi guys, This is my first post here. Actually wanted to insert record into an sql database (using sql server 2000 and visual studio 2000) I'm using a dataview to see if the user already exists. This, i've been able to retrieve and it works. Now if the user does …

Member Avatar for somit
0
152
Member Avatar for qupav

i have this part of my link list program [CODE]template <class E> LinkedList<E>::node * LinkedList<E>::getNode{ ... ... }(const E &item) [/CODE] and my compiler, bloodshed dev c++, says expected constructor, destructor, or type conversion before "*" token expected ";" before "*" token i don't think there is an syntax error …

Member Avatar for qupav
0
131
Member Avatar for adams161

i've written a game board currently but its minimal. i draw the board and then i've added two labels that i've postiioned off to the right side with setlocation. I dont know that set location will work as i add more controls so i'm looking for a better way. currently …

Member Avatar for adams161
0
122
Member Avatar for jogendar

i have created executable jar file for my program pedit.java as follows jar cvfm pedit.jar manifest.txt images *.class splash.gif where images is a directory where the icons for toolbar are there,as my program is a editor... my problem is that when i run the jar file the application is loaded …

Member Avatar for masijade
0
139
Member Avatar for dorivalmartinez

Hello. I would like to open and read OO Writer. I used the script: [file = open('myfile.odt', 'r'] [lines = file.readlines()] [file.close()] [for i in lines: print i] I get some strange characters. I had write 'rb', instead 'r', but it did not work. I have copied a ODT file …

Member Avatar for vegaseat
0
4K
Member Avatar for Zetlin

Alright guys so I have a little problem with a nested list. so here is my list: [code=python] a = [[1,2,3], [4,5,6], [7,8,9]] #I know that I can do for example a[0][0] and that will return the first value in the first nested list but I don't know how to …

Member Avatar for vegaseat
0
116
Member Avatar for jogendar

[code] String filename = jfr.getTitle(); File fname = new File(filename); System.out.println(filename); if(filename.equals("untitled")) { System.out.println(filename); return; } else { System.out.println(filename+"+"); } [/code] when i run the above code though the filename is "untitled",the statements under both if and else are been executed... is there any wrong in it??

Member Avatar for ahmed hashmi
0
83
Member Avatar for vaibhav2614

I am writing a C program that requires me to use a dynamically allocated struct which is defined as below. [CODE]typedef struct 513 { 514 char* word; 515 int freq; 516 }wordfreq;[/CODE] When I allocate the word field of this struct, I am allocating this dynamically as well (using strdup). …

Member Avatar for Narue
0
111
Member Avatar for zeroge

Hi I use the following form validation and it works all fine, except my email input does not get validated. Input type = email field name = emailto this is the code: [CODE]function formCheck(formobj){ // Enter name of mandatory fields var fieldRequired = Array("emailto","from", "emailfrom","zigi"); // Enter field description to …

Member Avatar for zeroge
0
191
Member Avatar for neosonic

I am using line function to draw line in the picturebox from the x1,y1 to x2,y2. I can draw it, but I also want to write a string on top of the line. My application is drawing a cable across with corresponded voltage, Something like 110 ------------------------------------------- but the line …

Member Avatar for neosonic
0
136
Member Avatar for genieuk

Hi, I wanted to ask professional members who has built websites in the past wheter you include all your include files in the <head></head> section of your site. I split my design in two header-inc.php and footer-inc.php, obviously the <head></head> section will be in header-inc.php. Reason is most of my …

Member Avatar for almostbob
0
163
Member Avatar for SimonLeefe

I have an Excel workbook containing named variables across several worksheets. In one of these worksheets I have a "run solver" button, which kicks off a VBA routine. The first thing this routine does is allocate values of variables picked up from the workbook to local variables inside the VBA …

Member Avatar for SimonLeefe
0
533
Member Avatar for shizu

Hi All.. I am using MsFlexGrid in my program.. normally after I double click, enter value, KillFocus then press OK to close the dialog.. now I would like to add a message box once I enter value. Then I found out that, after message box prompt out and I click …

Member Avatar for mitrmkar
0
139
Member Avatar for Venom Rush

Hi All I'm trying to build a page that has a captcha and allows for a file upload. Currently when I select a file, fill in the captcha and hit submit the file is uploaded to the server in a temp directory before checking the captcha. I need the captcha …

Member Avatar for Venom Rush
0
62
Member Avatar for wasyazwan

I have attached that file. The sample of data are as below: PUBLT 167_89 656 PB -38321.478 6807.984 657 PB DAUD 200005041 278.271074.5150 69.4035 08370074.1830 69.2755 083800254.1925290.4620083900254.5615291.010008400008390098.2710 74.3630 20.3943 278.27100.0211 15.5954 74.3726 278.2748 PUBLT 167_89 656 PB -38321.478 6807.984 657 PB DAUD 200005042 278.271074.4940 68.1425 08430074.1610 68.0010 084400254.1720292.1650084500254.5400292.315508460008450098.2710 74.3418 22.0833 …

Member Avatar for wasyazwan
0
586
Member Avatar for P00dle

I'm reading a whole xml file in as a string. Some of the Node values are directories, e.g. "C:\" When I print out the string, to make sure that the file has been read in correctly, I see that it has completely ignored the Nodes that have directories in them. …

Member Avatar for P00dle
0
88
Member Avatar for love_dude1984

hi.. im trying to put my data on a server & work on the same from other machine..im using win2003 as OS of my server & on the other machine's XP is the OS. my problem is, when i try to run my C# applications from the other machines, it …

0
81
Member Avatar for CJesusSaves

Hello all, I am Lisa and fairly new to C++/MFC. For a class project, we are to develop any software of our choice and add as much functionality as possible. I have chosen to build a program similar to MS Paint since MFC has functions that makes building shapes very …

Member Avatar for CJesusSaves
0
157
Member Avatar for 68thorby68

I am try to put the finishing touches to a mail function, and would like to show an alert to tell the user the form has been submitted correctly. I would then like to redirect them to another page in the site. The alert works OK on its own, but …

Member Avatar for 68thorby68
0
163
Member Avatar for rouse

In the following code I just want to disable the textbox if “other Amount is selected”, radio element 7. I have been working at this too long cause I can’t see the problem. Can someone point out what I am doing incorrectly [Code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" …

Member Avatar for rouse
0
180
Member Avatar for rayarman

Hi, I have a problem with IE7 (Works fine in FireFox!). I'm sending a Jquery AJAX POST request to get option values from a PHP script. The php script returns a bunch of the following: [code]<option value='x'>xxx</option>[/code] Ajax also sends a value to the PHP script, so if that value …

Member Avatar for rayarman
0
82
Member Avatar for Alicito

hello my friends ... in C# Forms ( application form) my question is about the (DateTimePicker) is there any way to calculate the days between two different times which were entered by the tool DateTimePicker by an existing method or something else ... thank you in advance

Member Avatar for jonsca
0
133
Member Avatar for Fbody

I just started an advanced C++ course and my instructor sent around a file with this piece of code: [code]class smallobj // specify a class { public: smallobj() : iData(0){} // Constructor smallobj(int iInValue) : iData(iInValue) {} // Overloaded Constructor ~smallobj() {} // Destructor void setdata(int d) // member function …

Member Avatar for Fbody
0
1K
Member Avatar for ppetree

Hi All! I found a simple star-rating system based on mootools, dhtml and css. It seems to work fine with one exception that I just can't seem to figure out. You set it up as in the following:[code] <td class='td_stars'> <ul id="price" class="rating onestar"> <li id="1" class="rate one"><a href="#" title="1 …

Member Avatar for ppetree
0
143

The End.