64,152 Solved Topics
Remove Filter ![]() | |
Hi; I have a Q/A based game which randomly selects questions that are stored in access file table. I have define a vector and a stdstream that takes no of questions as input. The no of records are 300 and I want the program to select only 30 questions but … | |
I am currently writing a program called Encoding and Decoding strings with the Enigma Class. This was a class assignment, but it already has been turned in, and I would like help (I am not looking for the work to be done for me) so I may learn from my … | |
Hi Everyone, I would like to know how to make a DataView global to a particular form. The DataView is currently created and returned from a function within a public class residing in another .vb module. All help will be appreciated. Thanks. Truly, Emad Here's what the code in the … | |
hi. i am creating a new csv file pro grammatically in C# where i am going to take values from a csv file that is already present with me. consisder this csv file, firstname,lastname,middle,company,email xxxxxx,xxxxxxx,xxxxx,xxxxxxx,xxxxx yyyyyy,yyyyyy,yyyyyy,yyyyyy,yyyyyy zzzzzz,zzzzzz,zzzzzz,zzzzzz,zzzzzz I need to read certain values from each row of this file and … | |
Hi, I am a dot net beginner. I have learned programming in c# for website developing. Now I would like to learn vb.net . So I am trying to convert one of my previous work from c# to vb. But now I am facing a problem while converting to vb. … | |
Hi, I need to secure my password and here are my questions. 1. What is the best method of making a salt? I have seen enough arguments for not using user info but rather random values. 2. How do I know user salt if I used random one? Should I … | |
hi.. i'm encountering a bug regarding sending emails.. when the smtp server do not have user autentication, the sending of email is really fine.. but when the smtp requires username and password, no email is being sent.. i believe it is related to web.config.. i have searched a lot of … | |
Hello guys. I made a Windows Form , with some buttons. Each button contains a windows form. If i press a button , the new windows form appear above the Principal Windows Form. But , if I don't close it , and i press another button , the new windows … | |
Hello , I'm just amazed how strong php is , but i don't have an idea where to start , I mastered c++ at a command promp level + kinda average at visual c++ . If some1 could give me some sites or tutorials ? And is code igniter a … | |
Hi All, I have 2 picturebox in vb6. Both of them has the same dimension and the slightly different picture. they are house plans, one for the ground floor and another one for the upper floor. I want to overlay them. But how can I do it? If I am … | |
Hallo everyone. I want to set the day to the validDay. e.g if valid day is 25 then the day must be 25 on DateTime. [CODE]string validDay_str = reader["validation"].ToString(); int validDay = Int32.Parse(validDay_str); string start_str = reader["start"].ToString(); DateTime start = DateTime.Parse(start_str); start.Day = validDay;[/CODE] with this code I get an … | |
Hey guys, I have reached my wits end with this..! This code works on two of the servers that I have tested, but doesn't want to work on the third server that I need it on! It displays fine, but when the form data is posted back itself to be … | |
hi, I want c# source code for process killer as task manger -> it forcefully kill the process which i want <->it may be system process | |
i am sending email to the users using smtp client and MailMessage class. i have been adding the addresses of multiple receivers in the to property of the object of MailMessage class. the problem is that the receiver can see the email addresses of other receipents. is there any way … | |
for some reason, the exact same code without the added "$i[id]" part is working somewhere else on my site, but this is just rediculously NOT working for what i have here: [CODE]function nimg($directory='.') {return count(glob($directory."/item/".$i[id]."/*"));}; [/CODE] i tried this code when there was no item directory made yet and still … | |
hello everyone i had created 5-6 crystal report in my vb.net project with back end sql server 2005 and i had given my path for crystal report. after this i had creted setup and deployed at customer machine but there it dosn't shows any report instead of it gives an … | |
Hi everybody, I'm having trouble with my query on line 19. I'm supposed to search for a name and return the balance and credit limit. I'm not sure why I keep getting a parse error. Thanks in advance! [CODE=php] <?php $find=$_POST['find']; $name=trim($_POST['name']); if (!$name) { echo 'You have not entered … | |
Hello everyone! Please Give me some guidance if u have any idea. im doing a database using vb6 and access. im viewing my database data from access to vb using listview. each data in database have its own picture or image to display. in the form where i put the … | |
I'm sure I'm missing something simple but I just can't seem to figure this one out. I have a dynamic XML file that is too big to display all the information on one web page. So I need a way to split the information across multiple pages. I have used … ![]() | |
Hello, i'm having trouble getting this program to work. It works when i just directly put in the file name, but when i try to use args and i pass it threw the command line. i can't get it to work. I've been testing stuff but i can't seem to … | |
Basically, I have a price quoter that I am working on. The way it should work is: The user selects the quantity of cards from the combo box. In the textfield a price displays once selected. (i.e. 100 = $8.95). (I have this segment working already.) Next the user selects … | |
i'm driving insane right now i have a form wich has a lot of stuff in it as you fill it, javascript generates the OPTIONS[] for four SELECT objects at the end of the form. they are generated right and i have no troubles up to this point until... i … | |
so all i want to do is roll 1 die repeatedly and add it to a total until the total is equal to or greater than 31 this is what i have got to so far [CODE] import java.io.*; import java.util.*; public class comp { public static void main(String[] args) … | |
How can I create a semaphore using the above functions that will allow [I]any[/I] process access to the semaphore? I've been playing around with global variables for hours thinking I was doing it wrong, but now I believe I was misled. I think the problem is that the other processes … | |
I'm having a problem when declaring a TCPListener in C# 2010 Express, and it is causing me a little hassle. It gives me this error when I declare one and I am not quite sure why? [QUOTE]The type or namespace name 'TCPListener' could not be found (are you missing a … | |
i have been trying to debug this program for about 2 days(not the whole days, just when ive been coding) and i still cant find the source of this bug. i have been trying to create a class factory system for a game that i want to make. first, let … | |
Hi, I'm supposed to write a program using super and subclasses to calculate monthly payroll for 5 employees. There are 4 types of employees, salaried, hourly, commissioned, and base plus commissioned. Anyway, I've gotten it to build with no errors and it runs almost like it should but since it … | |
[COLOR="Red"]Hello, I had put this question in another thread and I got a response that seemed to explain it well but I just seem to keep going in circles and I'm still just not getting it. So I need some more help. The other thread started getting pretty lengthy so … | |
![]() | Given s.ss or seconds accurate to the hundredth place, what is the most effective way to convert it to the string mm:ss.s? Here is my current attempt: [CODE]import time def convert(t): print time.strftime("%M:%S",time.gmtime(round(t,1)))+str((".%01d" % (((round(t,1))-int(round(t,1)))*10))) t = float(raw_input('Enter time in s.ss: ')) convert(t)[/CODE] However, the results don't seem quite right: … |
Hi, I apologise to seemingly plague this forum with different problems but I'm stuck on another project. I've a series of forms setup in my windows form application that deal with deliveries. I've made it so that one can add a new order, edit the order and delete the order. … | |
currently writing a program, and for some reason I'm getting these two errors which are really bugging me. I've tried adding the brackets and changing the statement and still no luck. If there is a possible solution that would be grateful. [B]Please note that I have solved the bracket error, … ![]() | |
I've got a situation with minibus repair database design, where it looks like in the Repair table I could do with a 3-composite primary key: jobID from the JobType table (types of maintenance with price and time), mechanicID (Mechanic table), minibusID(minibus table). This way, I've got type of job performed … | |
Hey guys. I just started using portable python and I have to say this module is great. It helped me bypass some problems transferring modules between win32 and win64 cpus. So my question is for all you portable python users is: do you have to install python for each new … | |
[CODE]#include<stdio.h> #define sqrt(x) x*x int main(){ int x=5; int y=sqrt(x+1); printf("%d\n",y); return 0; } [/CODE] The answer is 11. Can anyone explain why? thanks | |
![]() | hello, was wondering how to sort a list which has different data types according to the data type, Example if a list containing 'person' objects. a person object wil have a name, gender and age like so: person1 = person(name, gender, age) so if i have 5 objects in a … ![]() |
hello respected developers. i am using datagrid for my medical clinic application. i want to save data from the datagrid to the datatable, and then save it to the appropriate table in the database. plz help me in this aspect. thx. | |
In the following code I am calling a function from a pthread: [CODE]pthread_create(&threads[t], NULL, dnssearch, (void *)buffer)[/CODE] I need to pass the string (buffer) to a function and the have the function pass a string back. What am I doing wrong in the function: [CODE]void *dnssearch (void *buf) { char … | |
Hey guys, I have been moving and testing my scripts on a different web server, but I am not getting the same results on both computers. Here is the code: [CODE] <?php session_start(); //THIS FUNCTION VALIDATES INPUT function VerifyForm(&$values, &$errors) { if (strlen($values['firstname']) == 0) { $errors['firstname'] = 'Please Enter … | |
Basically, here is what the program is supposed to do: 1. Create a ResistorClass overloaded assignment (=) operator function which shall do the following: * Overload the assignment operator ( = ) to assign all m_dptrRes data values of an object of class ResistorClass to another object of class ResistorClass. … | |
Hello friend... i'm doing a j2me proj it is "banking application on mobile(using netbeans nd mysql database)" as my final yr proj... as i'm a fresher,i hv no clear idea about j2me.....my proj hv following specification. 1.login 2.balance enquiry 3.fund transfer 4.view mini transaction.. I'm able to login user successfully...bt … | |
I've been trying for hours to do this and can't figure it out.. I'm trying to add a new record to a table in my local database.. Heres the SQL code im using at the minute.. I keep getting this error "The data was truncated while converting from one data … | |
hi all :) Newbie here. Just wanna know if it is possible to make a pop up box, that is actually used for a little note holder instead of a premade message box? and if so..can you tell me how to accomplish this? I am wanting to attach it to … | |
I have the following script saved as 'index.php':[CODE=php]<?php $implementation = new DOMImplementation(); $doctype = $implementation->createDocumentType('html'); $document = $implementation->createDocument('http://www.w3.org/1999/xhtml', 'html', $doctype); $head = $document->createElement('head'); $document->documentElement->appendChild($head); echo $document->saveXML();[/CODE]Now when I run the script, I get nothing at all (i.e. no source XML is being received by the browser). Error reporting is set … | |
Hi, i'm currently learning assembly with the nasm assembler and i'm stuck trying to get a memory address into a register. Here is what I have: [code][bits 32] [org 100h] section .data msg db "Hello", 0 section .text mov si, [msg] ;lea si, [msg] ret[/code] I read the nasm manual … | |
Hi, I'm making something of an RSS reader-ish. I'm using the [URL="http://www.feedparser.org/"]Universal Feed Parser[/URL] to do this. The feed is just a list of TV shows, and the date they air. I'm successful at getting the feed, now what i'm trying to do is split it up into chunks that … | |
Hello, I'm having a bit of trouble with inheritance I was hoping one of you could help with. I have a base clase; BaseGameEntity. There are two classes which inherit from this, Drop and DropGuide. I have an entity manager that stores all of the instance of Drop/DropGuide in a … | |
![]() | Is there a way to, instead of duplicating code, to either print the desired number of rows from a list (from user input) or print all items in the list? [CODE]print_list( input ): f = open('pickle.dat', "r") L = cPickle.load(f) f.close() for i in range( input=len(L) ): print 'L[i] = … |
How could I add array values and populate the results in a specified text box?Then repeat for each line after. Then get a final total. Any help would be very appreciated. For example: 1 2 3 4 5 (15)-text box 1 2 3 4 5 (15)-text box 2 4 4 … |
The End.