132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cs_tx_usa

Hi Everybody, I am trying to compare single precision floating point values in VB .NET. The code runs ok but the results look not right. Results also contain -Inf values. I see that this is not the right way of comparing floating points. Could you please show me how to …

Software Development vb.net
Member Avatar for cs_tx_usa
0
125
Member Avatar for torbecire

I am building a class that gets a proper fraction converts it to improper and does things like add, multiply... I have no way of testing this since they all have methods. Could someone tell me if this works. Thanks. [ICODE] // THIS CLASS DECLARES PRIVATE VARIABLES. public class Fraction …

Software Development java
Member Avatar for torbecire
0
105
Member Avatar for parthiban

Hi all , I'm new to Networking programming in JAVA .I want to send messages across hosts which are in the same Domain without using any Server program . I'm not clear whether to use UDP or TCP . Give me some ideas and links which are useful to accomplish …

Software Development java tcp-udp
Member Avatar for jwenting
0
110
Member Avatar for Joatmon

After searching around this forum for a bit, I found getch() in conio.h, this very closely matches the type of function I am looking for, but I don't want it to wait for the user to enter a key (It would be nice if it would just return -1 or …

Software Development c++
Member Avatar for Joatmon
0
333
Member Avatar for jkdil33

Hi, I want to create a simple exe(Without any supporting files...just a standalone exe) We dont have Matlab compiler I read in web that we can create exe in Matlab6.0,6.1 using C++ compiler. I have Matlab 7.1 and above. With the current Matlab version can we use C++ or C …

Software Development c++
Member Avatar for jkdil33
0
811
Member Avatar for bharaniabhishek

there is an error that when i type# include <stdio.h> and compile . then errors occurs "unable to include <STDIO.H> so what is wrong in that

Software Development c
Member Avatar for abhikkumarbasu
0
241
Member Avatar for sbv

Hi all I want to set my data grid column width separate for each column. Can it is possible? I tried as follows... [Code] gridMatchedDB.PreferredColumnWidth = 100 [/code] But its setting width to each column. How to set individually ???

Software Development vb.net
Member Avatar for suganzeni
0
128
Member Avatar for andyg55

I have an equation within a while loop like this: [code] while(repeats != 1000000){ x = rand1; y = rand2; result = x + y; cout << result; repeats++; } [/code] Basically, 2 numbers are randomly generated, and are added together to put in the variable 'result'. What the above …

Software Development c++
Member Avatar for vijayan121
0
193
Member Avatar for Barbarrosa

Hello, I've been having a problem with my arrays. The error that I am receiving says "[my array] undeclared (first use this function)" and "invalid types 'bool[int]' for array subscripts". My code has the following setup: [code=cplusplus] int array1[some size][some size]; int main(){ int array2[somesize];int array3[somesize][somesize]; int NUM; /*This number …

Software Development c++
Member Avatar for Ancient Dragon
0
132
Member Avatar for nurulshidanoni

I have this data ROW 1: 3 15 36 56 71 83 97 106 118 135 138 ROW 2: 3 10 31 51 71 78 97 105 113 135 138 How to count when 3 meet 15 is 1 3 meet 36 is 1 3 56 is 1 3 meet …

Software Development c++
Member Avatar for nurulshidanoni
0
231
Member Avatar for eranga262154

Hi all, I already convert a C++ project to C# project. It's fine and working ok. On C++ I use DWORD data type. But in C# for that I used just a int value. Is that ok. Is there compatible data type which I can use for my project. Thanks.

Software Development c# c++
Member Avatar for eranga262154
0
91
Member Avatar for zmnaiaj30

do you know where i can get the conversion table? only the table for my project... and for those who already done with this thing can u please help me? im a noob here T_T

Software Development c
Member Avatar for Ancient Dragon
0
124
Member Avatar for hockeyplayer051

Hello, I had ran into a very difficult problem in my CS110 class in University. The problem asks us to use if statements to take 5 random inputted float numbers: ie. 5.63, 10.5, 16.7, 20.6 & 10.9 and take the median value, Ie the value that is in the middle. …

Software Development c++
Member Avatar for Ancient Dragon
0
97
Member Avatar for allmusic76

Hi folks, Can you help me try to figure this one out? I am trying to create a program that will accept a string from a user input ( cin) in the HH:MM:SS format, and then convert this into seconds. However, I also want to avoid "fat-fingered"input by creating an …

Software Development c++
Member Avatar for Ancient Dragon
0
104
Member Avatar for cybarkop2007

I have a need to pull the header informatilon form about a thousand email messages that have been saved in a file folder as text messages. I want to get this information into a database. I have no skills in coding or scripts. Example: The source IP, To: From: Date; …

Software Development email perl
Member Avatar for cybarkop2007
0
102
Member Avatar for Nektarios

Dear friends Im new in IT and i want to ask you about boundary values check in a program. I have the following exercise that I want to check and i don't know how... [code=c] #include <stdio.h> #include <string.h> struct st { int i; char n[4]; char g; }; struct …

Software Development c
Member Avatar for Nektarios
0
103
Member Avatar for LanierWexford

I was using my old C++ assignments to teach myself Python and ran into issues every other line of code. In my attempt to find another way to ease into the lang I found what I think is an awesome tool "How to Think Like a (Python) Programmer" I understand …

Software Development python
Member Avatar for LanierWexford
0
118
Member Avatar for atish00

How to set font style color and bg color; the online examples are very tough ; can ayone give me a easy and understandable code ??

Software Development c++
Member Avatar for hammerhead
0
126
Member Avatar for mxb7642

I'm trying to access a dll located on a web server. Anyone know if this is possible? and if so how to do it or how difficult it would be do? Any help would be appreciated. Thank you.

Software Development python web-server
Member Avatar for mxb7642
0
85
Member Avatar for GreyInTheLaw

Well, I've been programming for all of about 5 hours in Python now. From first opening my browser and googling the term to making this post here. I've written something up too! It's a short script that accepts input from the user about their date of birth and just prints …

Software Development python
Member Avatar for ZZucker
0
174
Member Avatar for leokuz

I am wondering if it is possible to accomplish following in VB.NET: I would like to automate files move and sorting from "C:\uploaded_files" (files contain any extensions e.g. .pdf, .tif, .eml, .jpg, etc) to directory under different subdirectories as shown below. F:\Files\Oregon\Sold\Victoria Kraus\2008\OSVK082036PI\ F:\Files\Oregon\Leased\Victoria Kraus\2008\OLVK082036PI\ F:\Files\Washington\Sold\Victoria Kraus\2008\WSVK082036PI\ F:\Files\Washington\Leased\Victoria Kraus\2008\WLVK082036PI\ F:\Files\Oregon\Sold\Dan …

Member Avatar for leokuz
0
233
Member Avatar for XZodia

Hi guys! I was wondering if there is any way that I can get Visual Basic 6 to run in Windows Vista? If not, will it work in SP1? I have done so many research but I can't find any answers.. Any help will be greatly appreciated.. Thank you..

Software Development visual-basic windows-vista
Member Avatar for jbennet
0
105
Member Avatar for Sardor

I'm a new in programming. Recently, I began to learm the language C++. One of my good program to make is connecting PC's by telephone lines. Please, inform me about how to use the device modem by the C++. Write some examples, if possible.

Software Development c++
Member Avatar for Ancient Dragon
0
103
Member Avatar for peaceful_soul

hello friends :) well can anybody tell me why does this code [code=c] for (i = 0; i < 10; i++){ childpid = fork(); if (0 == childpid){ /* This is the line that is different in parts A and B. */ execlp("some_prog", "some_prog", (char *)0); exit(2); } else if …

Software Development c
Member Avatar for peaceful_soul
0
114
Member Avatar for Grub

Hi, I have written a Solitaire game program and have made a history of moves so the user may either go back on moves and make another choice or go forward after having gone back. Now I am using a vector to store the moves. When the user has made …

Software Development c++
Member Avatar for Jim Larkin
0
158
Member Avatar for Penguin506

I'm doing an assignment for C++. I'm to write a program that will help elementary school students learn multiplication. Use rand() to produce two integers between +10 and -10 inclusive. The program should then use those numbers to output the question. So far I haven't put the functions in, i'm …

Software Development c++
Member Avatar for Jim Larkin
0
250
Member Avatar for shahriar2403

In my application i use adodc to connect with access database and have command button to show a report consisting of datas from that database. I also have command button to add datas in runtime. But in runtime when i call for show report firsttime it show what is in …

Software Development visual-basic
Member Avatar for shahriar2403
0
104
Member Avatar for leroi green

hey guys and gals, newb back again with a little request from the Java Gods. in line 31 i've got an error saying "cannot find symbol" [code]NextRecord record = new NextRecord();[/code] [B]i've got 2![/B] count 'em 2 Java books and i'm still stuck...Help? [code] import java.io.File; import java.io.FileNotFoundException; import java.lang.IllegalStateException; …

Software Development java
Member Avatar for leroi green
0
108
Member Avatar for priyala

I need one more help Say suppose I have 3 records from database when i did a select query I need three values to be popualted in the three different text box . If I have four then i need four text box in the form How can I do …

Software Development visual-basic
Member Avatar for choudhuryshouvi
0
263
Member Avatar for atish00

so far I ask user for number of terms : [code=c++] cout<<"Enter the number of therms in the array \n\n"; cin>>x; for(i=0; i<x; i++) { cin>>arr[i]; } [/code] But It looks preety non-user friendly, I wanna input it just like we enter a string. We the user should hit shift …

Software Development c++
Member Avatar for atish00
0
112
Member Avatar for batcater98

I having troubles with the different seperators in this one and just picking out the lines I want keyed from the .dat filename. I basically have an autogenerated flat file that is an export of a directory structure. I want to parse through the flat file and pull values from …

Software Development data-structure file-system perl
Member Avatar for tuxboy
0
153
Member Avatar for Mido â„¢

i want do this pro that looks like phone index but i have problems and i dunno how to fix this its console application - c++ source file plz help me quikly [CODE]#include<iostream.h> void main() { char names[10],n; double tel[10],tel1; int x,i,f=0,f1=0; cout<<"1 - add new rec"<<endl; cout<<"2 - search …

Software Development c++
Member Avatar for hammerhead
0
225
Member Avatar for bugmenot

hi guys, i am using vb6 as front end and oracle as back end for my project. i am using ADO to connect to oracle database. can u please help me with the code. my code is [B]Dim con As New ADODB.Connection Dim str As String Private Sub Command1_Click() str …

Software Development open-source oracle visual-basic
Member Avatar for bugmenot
0
283
Member Avatar for CzechRock3

Hi im a student programmer and I was writing a program... and I need to beable to load a form from string variable like Private Sub cmdLoad_Click() dim strFormLink(99) as string strFormLink(1).Show End Sub That will not work... Have Any ideas(If you do I'd be really greatful I tried code …

Software Development open-source visual-basic
Member Avatar for CzechRock3
0
105
Member Avatar for chocl8drop

I am working on a program that implements a complex number class. I will include the main part of the code. I am getting the following error and can't figure out why. [code] error C2143: syntax error : missing ';' before 'namespace' [/code] Here is the beginning of the program. …

Software Development c++
Member Avatar for chocl8drop
0
739
Member Avatar for aminit

Hello All: I want to make a simple login to a program created in C#, I want when I entered the program I must asked about the password, another thing is how can I by another form confirm the password(change the password), nest time when I entered the new password …

Software Development
Member Avatar for aminit
0
81
Member Avatar for majestic0110

Hi all. have just dragged a datagridview control onto a form. this loads up a sql d/b fine and appropriately. the grid is editable (new rows can be added/changed etc)Now i need those changes to be thrown back to the d/b - how do i do that ? many thanks …

Software Development
Member Avatar for majestic0110
0
135
Member Avatar for gawain_

This snippet while(<>) { for my $word ( split(/\s+/) ) { $idx{$word}{$page_number} = 1; } $page_number++ if ( /\014/ ); } is part of a perl script which indexes words by page (I'm trying to rewrite it in python). I do not understand it, or rather, I can guess a …

Software Development perl python
Member Avatar for gawain_
0
91
Member Avatar for sgw

When there are several cout statements, if the first cout statement has, say, << fixed << showpoint << setprecision(4), then all the subsequent cout statements *without* these settings will also have that effect. For example, in the following program, [CODE]cout << "sin(" << angle << ") = " << fixed …

Software Development c++
Member Avatar for sgw
0
13K
Member Avatar for Infeligo

Hello to everybody. I'm trying to solve an ACM task #755 called [URL="http://icpcres.ecs.baylor.edu/onlinejudge/index.php?option=com_onlinejudge&Itemid=8&category=9&page=show_problem&problem=696"]487-3279[/URL]. It's about telephone numbers, quite straightforward. But still something is wrong in my code, because the automatic control says "Wrong answer" and I can't find on which input it fails. I tested it on Windows using MinGw. …

Software Development algorithm c++
Member Avatar for Ancient Dragon
0
195
Member Avatar for sofian786

how would i write this programme to calculate the average monthly sales figure for a single user like in one calendar year. A user will be asked to enter 12 sales figures (pounds & pence), one for each month of the year, and then the average monthly figure will be …

Software Development visual-basic
Member Avatar for sofian786
0
91
Member Avatar for MagicBytes

Hello there, how can I [COLOR="red"]SendKeys[/COLOR] to the same window with out having to run a new instance of it every time I click on the command button on my form ? [COLOR="Green"]Private Sub [/COLOR]Command1_Click() Shell "notepad", vbNormalFocus SendKeys "This is a test string" [COLOR="green"]End Sub[/COLOR] The code above keeps …

Software Development visual-basic
Member Avatar for djjaries
0
143
Member Avatar for joshmo

am trying to write a simple server program that prompts the user for an ISBN number or an author. it should check if the number is a valid number i.e if the number is 4 digits...it should also check if the user has entered a number or characters..it should then …

Software Development c
Member Avatar for joshmo
0
96
Member Avatar for priyala

Hi, I am using mysql as the backend. I am trying to retreive data from the mysql table into VB front end For EG: I have Id using id I do a select query and retrieve the value Can some one help me with VB code what do i do …

Software Development visual-basic
Member Avatar for Jx_Man
0
78
Member Avatar for edsat

hi there, I'm new here. I have a problem to open a form with variable. Help me Please

Software Development visual-basic
Member Avatar for Jx_Man
0
153
Member Avatar for cs_tx_usa

You VB .NET developers out there, I have posted 3 threads requesting help on reading floating point values from a binary file but did not get any reply at all. Is it because I am asking a stupid question or noone really have a clue about the question I asked? …

Software Development vb.net
Member Avatar for cs_tx_usa
0
214
Member Avatar for i_me_roo

Hi, Is there a way of timing how long it takes between a piece of code executing to when it finishes and then displaying this time? I would like to display a clock which begins timing when a program starts running and stops when it finishes. Thanks

Software Development display java
Member Avatar for Aldehyde81
0
162
Member Avatar for atul_gurucool

hi...everybody.. i want to some suggestions regarding my project. my project is Networks Analyser. i am working on this project by using c programming on Linux OS. i know that how to capture the coding of masseges by decryption algo. and i want to display this coding in the form …

Software Development c gui
Member Avatar for ithelp
0
82
Member Avatar for sal21

From a CICS application i send a txt file in dir c:\my_dir\test.txt my probem is when the job is finished... How to be sure when the file is updatable or movable from dir to other dir???

Software Development visual-basic
Member Avatar for choudhuryshouvi
0
123
Member Avatar for Slade

Hi Guys, I'm writing a program for work which uses the HtmlTextWriter to output html files (it's a reporting system). In each file I want to render a style tag at the beginning and to do this I'm using the HtmlTextWriterStyle enumeration. This means I need to convert any value …

Software Development c c# c++ html-css
Member Avatar for Slade
0
153

The End.