199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for appsrox

Hello, I want to write to a file in a particular format. There should be 2 columns, the first column should allocate 5 spaces to store digits and the next column should allocate 30 spaces to store characters. Ex:- [code] 1 Dave 234 Einstein 100000 Bob . . . [/code] …

Member Avatar for richieking
0
951
Member Avatar for jhong12

i am making a program that will get the area of a rectangle and tell whether the answer is a prime no. or not. which i failed plz. help me

Member Avatar for bobbyg23
0
71
Member Avatar for arjen

hello guys.. can you help me on how to make 45 angle shoot or 45 angle movement of bullet in vb.net

Member Avatar for codeorder
0
200
Member Avatar for paresh_thummar

Hi I want to store query result in single variable like if query is "select count(*) from tablename" , and it return suppose 21 records (integer value) then I want to save this value in my database during insertion of record what should i write in place of question mark …

Member Avatar for Akash Saikia
0
1K
Member Avatar for tomtetlaw

I'm creating a library that easily adds a bunch of debugging features to c++ programms. At the moment I have these features: - A more useful assert dialouge. - Pointer validation using IsBadReadPtr/IsBadWritePtr. - Memory leak tracking. I'm trying to think of other features I could add to this. What …

Member Avatar for tomtetlaw
0
140
Member Avatar for valdeth

Hello guys, Firstly I want to apologize If I ask something silly, but I have just started learning C++, and I really don't know much. As a practice I have a challenge of writing a matrix in a file, and then reading the information (numbers) from it, and in the …

Member Avatar for valdeth
0
177
Member Avatar for mktr

i have a simple question: I want to define a hex character array in C, but I don't want to have to define the elements one at a time. my programme needs an hexadecimal array as input of 128 bits. for example, [code=c]unsigned char temp2[32]= {0x00 ,0x11 ,0x22 ,0x33 ,0x44 …

Member Avatar for Narue
0
7K
Member Avatar for Python_nooby

Recently I have been learning about the socket module and how you can create networking applications using it. I was curious if it would be possible using the socket module to either: Set the port as a USB port to trick the computer into thinking a USB is plugged in …

Member Avatar for richieking
0
494
Member Avatar for jamseyjames

How would you go about extracting part of a key from a dictionary. I have a text file that lists about 1000 birthdays Ex. 1/2/1980 I want to extract just the year portion from the dictionary and then run a count against each year. I have no problems with any …

Member Avatar for richieking
0
83
Member Avatar for Simplicity.

My code tries to solve an optimization problem constrained to hyperbolic PDE by matching a numerical solution to a desired one. The basic idea is that: I've initial condition "U" as input which is being updated by this line: U = Initialize(Update_Design_Parameter(U)). I expect that updated U will affect all …

Member Avatar for Gribouillis
0
167
Member Avatar for lkrvk

Hi guys, i am going on with a vigorous practice with PHP and MYsQL. currently i am doing a simple project which has a form, input box which takes the users name, then selects a random image and place it on the image with a random selection of fonts, with …

Member Avatar for lkrvk
0
261
Member Avatar for flaviusilaghi

Could someone help me. I don't know why i get a stack corruption . Here is my program: [CODE]#include<iostream> #include <fstream> #include<conio.h> #include <string> #include "aes.h" using namespace std; int main(int argc, char **argv) { unsigned char key32[32]; unsigned char iv[16]; unsigned char* inbuf=new unsigned char[128]; unsigned char** intext=new unsigned …

Member Avatar for roboknight
0
207
Member Avatar for vn412

Hi, I've build an application with Mdiparentform. I want to load login form on start up of the application and on succesful login load the mdiparent form and close the login form. Please help me with the code. Thanks

Member Avatar for Netcode
0
673
Member Avatar for xxxtian

I have two textbox that corresponds to the my two combobox. [CODE]if (purposecb.Text == "-Select One-") { MessageBox.Show("Please select the purpose of the visitor's visit.", "message", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); purposecb.Focus(); } else if (placevisitcb.Text == "-Select One-") { MessageBox.Show("Please select the place where the visitor would visit.", "message", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); placevisitcb.Focus(); …

Member Avatar for xxxtian
0
126
Member Avatar for vineeshvs

i want to write a function to which i need to pass two matrices and get the sum and product of them as output. but how can i return more than one matrix from a function? (i want to pass and return using pointers)

Member Avatar for Akash Saikia
0
154
Member Avatar for TheDocterd

Hi there I need to know how to select multiple list items from a list box. My code below only selects one email address when there's found that more than one ID's is behind schedule... [CODE]Private Sub Form_Load() folder = Dir("c:\LogBook\*.txt") 'variable folder conatins names of files in folder c:\LogBook\ …

Member Avatar for AndreRet
0
263
Member Avatar for Nony2007

Hi All, I can connect C# to SQL and read SQL table but i am having problem in writing the outcome to text file. I really appreciate if you could assist me. this is the code. [CODE]//====================================== using System; using System.Data; using System.Data.SqlClient; using System.IO; namespace Chapter07 { class OrdinalIndexer …

Member Avatar for Nony2007
0
1K
Member Avatar for kalender

Hi, Need some help here again. If you guys take a look at: [url]http://83.233.5.191/crurre/index.php[/url] There is a field called "Personnummer". Fill this with: 440611-1890 Then press "Hämta personuppgifter" It will then fetch/recieve some personal data and fill the correct fields. But.. as you can see. The number disappear when the …

Member Avatar for Akash Saikia
0
163
Member Avatar for himit

Hi, I need the name of the XML tabs. I'll use an example to explain what i want. XML- <?xml version="1.0" encoding="ISO-8859-1"?> [CODE] <catalog> <cd> <title>Empire Burlesque</title> <artist>Bob Dylan</artist> <country>USA</country> <company>Columbia</company> <price>10.90</price> <year>1985</year> </cd> <cd> <title>Hide your heart</title> <artist>Bonnie Tyler</artist> <country>UK</country> <company>CBS Records</company> <price>9.90</price> <year>1988</year> </cd> <cd> <title>Greatest Hits</title> <artist>Dolly …

Member Avatar for xml_looser
0
157
Member Avatar for Bildderfrau

Hi folks! My friend just asked me to code a program which detects ellipses of an image. The images he will use with this program have 2 different kinds of pixel values - black (0) & white (255). So I researched a bit and found an algorithm for ellipse detection …

Member Avatar for Bildderfrau
0
366
Member Avatar for axman1000

I have an XLS file. Let's assume that it has 1000 rows in all, with 10 columns. I would like to import rows 5 through 995 (say), and columns 1 though 7 and 10. How can I do this using an SQL query, either though OPENROWSET or BULK INSERT? I …

Member Avatar for Momerath
0
136
Member Avatar for varshasan

Imports System.Data.OleDb Public Class updateharvesting Dim co As OleDbConnection Dim cm As OleDbCommand Dim dr As OleDbDataReader Private Sub updateharvesting_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load GroupBox1.Visible = False End Sub Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged Label2.Text = "enter no" …

Member Avatar for Jx_Man
0
129
Member Avatar for jfunchio

Im just learning how to do triggers in mysql with php I have two versions of the trigger i would like to use but i keep getting errors saying the syntax is wrong. the first one is: [CODE=mysql] CREATE TRIGGER credits_earned AFTER UPDATE ON takes on (grade) REFERENCING NEW ROW …

Member Avatar for urtrivedi
0
253
Member Avatar for onat12`

Hi, I am creating an login page connected to a database. I am using access ODB. the problem is, if the user makes an wrong input, and the invalid data message box appeared, when typing the data again, and press ok, the following exeption occured: Not allowed to change the …

Member Avatar for onat12`
0
3K
Member Avatar for jwenting

Validation whether a string can be parsed to a valid date according to a supplied formatting string (which should conform to the formatting rules as supplied in DateFormat). This version can also flag dates in the past as error (we need that because many of our applications should accept only …

Member Avatar for javaAddict
0
258
Member Avatar for caswimmer2011

Hello, I have this code that sorts strings but it does not sort them at all. I've been working on it for 2 hours already. Any help will be appreciated. Thanks in advance :)[code]public void SelectionSort() { for (int i = 0; i < myList.length - 1; i++) { int …

Member Avatar for mKorbel
0
183
Member Avatar for TheDocterd

Hi All I don't actually know how to explain my problem, but here goes.. I have a small form. It has a listbox with a submit button. In the list box there are ID's displayed, i.a 10027, 10028, etc. Those ID's are the names of text files that have logbook …

Member Avatar for monarchmk
0
181
Member Avatar for Jaseem Ahmed

i have a database in sql server2000... i have some of them tables, that i want to connect with visual basic.. the connection is tested, its connected.. now first tell me which data control should i use?? And then the code for updating, editing, adding a record in my database …

Member Avatar for AndreRet
0
597
Member Avatar for karthiyayiniyp

sir/madam i need a help.......how to search a string from oracle to vb.......my codings are not working properly so please correct it........i attach my codings below... [COLOR="Red"] accse.Open "Provider=MSDASQL.1;Password=tiger;Persist Security Info=True;User ID=scott;Data Source=facultydetails" rsfdcse.Open "select * from csefacultydetails where name= " & "'&name1.Text '", accse, adOpenDynamic, adLockOptimistic If Not rsfdcse.RecordCount …

Member Avatar for AndreRet
0
170
Member Avatar for Khoanyneosr

[CODE] #include <iostream> #include <ctime> #include <cstdlib> #include <string> #include <algorithm> using namespace std; // Functions int instructions(); int game(); //Types and Arrays string word[] = {"GOLDFISH", "COMPUTER", "ANONYMOUS", "JACKET", "SHARP", "SERVICE", "EFFORT", "CHARACTER", "CHANGE", "WITHOUT", "PRODUCT", "UNFOLDS", "MUSIC", "MOMENT", "LIFETIME", "PROVIDE"}; char guess[50]; char inst[50]; int main() { cout …

Member Avatar for pseudorandom21
0
1K
Member Avatar for Jaseem Ahmed

i dont know aany thing about adodb.. please help me.. please tell me the step by step way to connect the database with adodb in vb6, and to add and update..

Member Avatar for AndreRet
0
130
Member Avatar for PerplexedWon

I am having troube getting this program to compile. I have been on it for the past 5 days and starting to feel burn out. maybe an extra set of eyes can point me in the right direction of what i'm doing wrong. The error messages i'm getting are: expected …

Member Avatar for PerplexedWon
0
172
Member Avatar for agarg12

What's wrong with this code.... //templates #include<iostream> using namespace std; template <class t> t max (t w,t x) [B][COLOR="Red"]--->here i get no error if I use &w and &x in place of w and x...[/COLOR][/B]{ if(w>x) return w; else if(w!=x) return x; } int main() { int a=10,b=343,c; c=max(a,b); cout<<"Max="<<c; …

Member Avatar for agarg12
0
134
Member Avatar for pradvin

Hello All, Can some one help me how to write query for finding the profi per unit using SQL server 2005/2008. I have got a unit table which contains UnitId and Quantity and the other table which contains cost price, selling price and the Unit Id. Thank you

Member Avatar for debasisdas
0
76
Member Avatar for paresh_thummar

hi Friend i have a problem to create user through Membership provider I Wrote [CODE] try { Membership.CreateUser(txtbox1.Text, txtbox2.Text); Response.Redirect("AHome.aspx"); } catch (Exception ex) { Response.Write(ex.Message); } [/CODE] and I got "The password-answer supplied is invalid. Exception" Please Help Me......

Member Avatar for paresh_thummar
0
186
Member Avatar for ReaperUser101

Hi guys The just of what i whant to do is read lines of text from a file until it reaches a delimiter and then execute that text in a query and repeat the process till there is no more text. I am using Delphi 6(don't have a choice) and …

Member Avatar for ReaperUser101
0
220
Member Avatar for manish250

I have a jsp page which is showing data in that page from DB.there is also a facility to show data in excel file.So there is a link to import the data in excel file. I have noted down that url by pointing the cursor to that link that is …

Member Avatar for ~s.o.s~
0
229
Member Avatar for PhoenixInsilico

I am stuck in program which need to build a hash of unknown number of keys which we will enter or give. If there would be a push function we can make loop and increase its size.But how will be it possible with hash.

Member Avatar for PhoenixInsilico
0
66
Member Avatar for protas

Hi all, I was making a program as one of our activities. The output should be something like this: [IMG]http://img10.imageshack.us/i/ss1qh.jpg/[/IMG] When I press on Display Output, it should look like this: [IMG]http://img29.imageshack.us/i/ss2pa.jpg/[/IMG] However, when I have to Insert a record, the added record should be added on the record when …

Member Avatar for biswajit_cs07
0
174
Member Avatar for DishevldPeasant

Hello, I am fairly new to SQL and PLSQL and am having a problem debugging some code for triggers, the compiler keeps saying that the trigger is not initialized properly. Here is a posting of the code. This is for a homework assignment, but I am lost so I would …

Member Avatar for debasisdas
0
127
Member Avatar for SolidSora

I want a loop that can count back and forth from 0 to 3. At first it counts up 1 each time and then when it reaches 3, it will count backwards to 0, then back up to 3 and so on. I already have a runnable that makes it …

Member Avatar for jon.kiparsky
0
3K
Member Avatar for Arjun_Sarankulu

Below is my code [code] string strpos2 = System.Configuration.ConfigurationManager.AppSettings["arraycolumn"]; char[] sep2 = { ',' }; string[] number = strpos2.Split(sep2); [/code] number contain array of string how can i assign this array of string to int[]

Member Avatar for Arjun_Sarankulu
0
131
Member Avatar for kay21

Hi everyone, I need some help with identifying real world entities and their attributes for a hospital scenario. I have listed below the entities and attributes that I could think of. Please comment or give suggestions on how I can improve it. [CODE]EMPLOYEE ([U][B]Employee_SSN[/B][/U], Address_ID, Contact_ID, Employee_Name, Designation, Salary) PATIENT …

Member Avatar for Momerath
0
123
Member Avatar for markdean.expres

Guys I was just wondering if I could do something like this in my report; There would be more than 8 table controls in the report(.rdlc) and each would hold records that has specific values on specific fields. The fields in my database table are; 1. Year 2. Semester 3. …

Member Avatar for markdean.expres
0
86
Member Avatar for dynaflex

My class recently switched from python to java. I feel like they just threw us in and said " oh they know python so they must know java" My first assignment is quite simple but having no prior knowledge of java i'm lost. basicly "PizzaRun is a simple program that …

Member Avatar for alexsmth114
0
213
Member Avatar for shbunch

I have an assignment where I really have no idea how to even begin. It is as follows: •Create a destructor that prints a message before exiting. •Create a new function called void incrementMinutes( Time &, const int ); That increments the minutes by count. • create a member function …

Member Avatar for VernonDozier
0
100
Member Avatar for AngelicOne

I have three forms. All forms are shown and I have a button on the third form. The button should close all the forms including the form where the button was created. Application.Exit() is not suitable for this because I don't want the application to exit including the forms that …

Member Avatar for AngelicOne
0
118
Member Avatar for MDanz

for example.. in one column it has "test1, test2, test3, test4" .... when i search for test1... i only want rows the word 'test1' in them specifically. $search = test1 i've tried LIKE %$search% but it get's all rows with the word 'test' in it... i want only rows with …

Member Avatar for davidchilders
0
116
Member Avatar for nurulainishaher

I already had the data of output current and voltage..I need to train all the data to get maximum power point using Back Propagation Neural Network..How can I do that?thank you for your answer..really appreciate it..

Member Avatar for nurulainishaher
0
82
Member Avatar for Marcial

Hello, I made the following code based on the following physics problem: "A sphere of metal has a radius of 6.7 cm and a density of 9.27 g/cm^3. What's the mass of the sphere?". The program runs error-free, except that it gives me a result (mass) of 8758.99 grams. The …

Member Avatar for VernonDozier
0
155

The End.