132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lecotti

Hello, simple program here i can't seem to get to work. In a nutshell the program reads characters into an array using getchar and then prints them in a loop, although the numbers printed are not the ones i entered! thanks in advance [code]#include <stdio.h> #define MAXSIZE 100 /*max array …

Software Development c
Member Avatar for lecotti
0
2K
Member Avatar for emint

hi all i got problem reading multiple table from ms access using jdbc. i read two table from one class but i got 12 table to read. so how can i do dat? any help will be great thank you

Software Development java
Member Avatar for emint
0
222
Member Avatar for shekarls

Hi guys, I have the following information in a text file, which looks like this: -rw-rw-r-- 1 user user 12203 Aug 6 01:02 app1.sql -rw-rw-r-- 1 user user 12343 Aug 6 01:02 app2.sql -rw-rw-r-- 1 user user 12238 Aug 6 01:02 app3.sql I need to Trim the unwanted strings and …

Software Development shell-scripting
Member Avatar for sknake
0
95
Member Avatar for Dimansu

Hi In my listview I have a column called grantotal which is of type double.Now it is displayed as 12300 but I want to display it as 12,300. How can I do it? Thanx in Advance

Software Development listview
Member Avatar for sknake
0
97
Member Avatar for nrobidoux

For lack of a better workflow I decided to start my project off by focusing on restoring it's state in CWinApp::InitInstance() and saving its state in CMainFrame::OnDestroy() as I put in data structures. One of the items to restore/save is the simulation time. In fact the app pretty much can't …

Software Development c++ ide
Member Avatar for nrobidoux
0
504
Member Avatar for bhas85

Hi all, I am very new to shell scripting.I have the requirement like one program is there, if it is running leave like that only and if it is stopped it has to be restart and once again keep watching and it is stopped we a have to restart once …

Software Development shell-scripting
Member Avatar for bhas85
0
150
Member Avatar for Voulnet

Hello there fellow members. I have two windows forms, and they call each other. - Form 1 has a button that calls Form 2. - Form 2 does not have an exit button, but rather a button that goes back to Form 1. - Form 1 is the main form …

Software Development algorithm
Member Avatar for Voulnet
0
127
Member Avatar for GarveyDesign

I have attached the latest listing of the program in question. It is actually parse.y but had to be uploaded as parse.txt. When I run Bison now, then the messages I get from that are... parse.y: warning: 8 useless nonterminals and 30 useless rules parse.y:52.1-7: fatal error: start symbol grammar …

Software Development c
Member Avatar for markhurd
0
2K
Member Avatar for farhan.foxtrot

Compiling the following problem with visual studio 2000 gives the errors: temp.obj : error LNK2001: unresolved external symbol "void __cdecl ungetch(int)" (?ungetch@@YAXH@Z) temp.obj : error LNK2001: unresolved external symbol "int __cdecl getch(void)" (?getch@@YAHXZ) Debug/temp.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe. The code is taken from Dennis …

Software Development c visual-studio
Member Avatar for 9868
0
185
Member Avatar for love_dude1984

hello.. my problem is, im using the following code to insert the records..but whenevr i click on ok button it shows the error "Object reference not set to an instance of an object" im declaring the variables in the following form, [code] private OleDbConnection cn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source= ..\\abc.mdb"); …

Software Development dataset open-source
Member Avatar for Dimansu
0
124
Member Avatar for oneat

I am Beginer with asseembly and at first I wanted to compile this code: [code] use32 section .text global _main extern _printf _main: ; printf("Liczba jeden to: %d\n", 1); push dword 1 ; drugi argument push dword napis ; pierwszy argument call _printf ; uruchomienie funkcji add esp, 4 ; …

Software Development assembly
Member Avatar for wildgoose
0
130
Member Avatar for abu taher

I made a cross tab query. please see the attach file. the sum of category show in textbox in my project. like: Stationary = 2000.00 Machinery = 5000.00 Salary = 2200.00 here I can write sql command like:[CODE]select sum(stationery) from table1 [/CODE] but here I know the category"stationery" so I …

Software Development visual-basic
Member Avatar for ljwolf67
0
99
Member Avatar for loozax

How to make a code for this using multidimensional array in java: Underwear Unit Price Quantity Amount Brief 10.00 5 50.00 Panty 5.00 20 100.00 Bra 25.00 1 25.00 TOTAL AMOUNT: 175.00

Software Development java
Member Avatar for Godstryke
0
195
Member Avatar for loozax

a JAVA program that would input a string and display the total number of vowels and total number of consonants. (use method) Example: Input a string: beautiful Total Vowels: 5 Total Consonants: 4

Software Development java
Member Avatar for Godstryke
0
191
Member Avatar for tdeck

I'm having a problem which can be exemplified by this python (3) code: [CODE] def askname(): sys.stdout.write("What is your name? ") x = sys.stdin.readline() sys.stdout.write("Hello, "+x) [/CODE] When I run it, I expect to get the prompt, type in my name, and then get the greeting. Instead, it prompts for …

Software Development python
Member Avatar for jlm699
0
151
Member Avatar for Ana D.

Hi, I’m having a simple problem, but I don’t know what is wrong. I’m trying to remove all duplicate records from a DataTable using the following code: [CODE]Private Function removeDuplicate(ByVal dTable As DataTable) As DataTable Dim row1 As DataRow Dim row2 As DataRow Const wantedColumn As Int16 = 1 Dim …

Software Development vb.net
Member Avatar for Stevoni
0
154
Member Avatar for fauzanf

Hallo My Friends, I have a problem. I'm trying to insert some label on my form. But i have an error message. The message said, Control on Form reached maximum limit. Any idea??? Thanks & Regards, Fauzan

Software Development visual-basic
Member Avatar for fauzanf
0
87
Member Avatar for nandini vishuu

can anyone tell me how to write a programme to print numbers in following fashion 1 0 1 1 0 1 0 1 0 1 1 0 1 0 1

Software Development c
Member Avatar for Hiroshe
0
98
Member Avatar for b1ue

Hi. iv'e been looking around the web trying to find a suitable script to use with my hltv servers , unfortunately to no avail :( . I'm just wondering if anyone here could perhaps help me out with a shell script to do what i need it to , i …

Software Development shell-scripting web-server
Member Avatar for Fest3er
0
160
Member Avatar for helixkod

Current Code: [CODE] void findMode(int *array, int size) { int array2[size]; int count; int x; int mode = 0; for (count = 0; count < size; count++) { x = array[count]; array2[x] = array2[x]++; } for ( count = 0; count < size; count++) { if (array2[count] > mode) mode …

Software Development c++
Member Avatar for supergeek60
0
201
Member Avatar for newtechie

Can any one suggest me some online material for "List with static array" example codes ?

Software Development c++
Member Avatar for newtechie
0
180
Member Avatar for mps727

Is it possible to make a window with no border or title bar but is still resizable? I know I could put some tricky code to check for click and drag using some sort of panel control or something that blends in with the border, but before I did that …

Software Development
Member Avatar for Diamonddrake
0
122
Member Avatar for samuelmoneill

Hi, I am writing a vb6 application to take in SMS text messages from a modem, do some string maniplation on the messages and store them in a MySQL database. It also prints them to the main screen of the application. I am using a timer to check the SIM …

Software Development app-store visual-basic
Member Avatar for jonc
0
273
Member Avatar for penguin22

not to sure why this does this [code=python] server = smtplib.SMTP("smtp.mail.yahoo.com") server.connect("www.mail.yahoo.com") sendEmail("FlexPt1.txt") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<stdin>", line 10, in sendEmail File "/usr/lib/python2.5/smtplib.py", line 691, in sendmail self.rset() File "/usr/lib/python2.5/smtplib.py", line 453, in rset return self.docmd("rset") File "/usr/lib/python2.5/smtplib.py", line 378, in …

Software Development email python
Member Avatar for zachabesh
0
1K
Member Avatar for mishra59

HI, I am working on a project and need to take the sql table structure out using python language. Basic idea behind is to prepare a program which could run on any sql database and table name provided could fetch what are columns and rows present in that table.

Software Development python
Member Avatar for zachabesh
0
66
Member Avatar for Mikarinkazaa

Sub RecordToScreen() Dim item As Long Set RS = New ADODB.Recordset Statement = "SELECT * FROM tblAsset WHRER AssetID = " & txtAssetID.Text & " picProduct.Picture = LoadPicture(app.path & PictureFileName)" RS.Open Statement, ConnDB, adOpenForwardOnly, adLockReadOnly, adCmdText RS.Close: Set RS = Nothing End Sub ------------------------------------------------------------- :'( Dbug Run-time error '-2147217900(80040e14)': Syntax …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
151
Member Avatar for JayT

Hi, I've been reading through some tutorials on creating a basic web upload script with perl and cgi. The problem is that my server keeps throwing an Internal Server Error 500 without giving any feedback. I am hoping that someone has run into a similar problem or there is an …

Software Development first-post perl web-server
Member Avatar for bildja
0
216
Member Avatar for snvngrc1

[code] #include <iostream> #include<math.h> using namespace std; class Vect3D { friend Vect3D& operator*(double, const Vect3D&) ; friend ostream& operator<<(ostream&, const Vect3D&); public: Vect3D(); Vect3D(double, double, double); const double& operator[](int i) const; double& operator[](int i); Vect3D& operator+(const Vect3D&) const; Vect3D& operator+=(const Vect3D&); Vect3D& operator*=(double); Vect3D& operator*(double) const; bool operator==(const Vect3D&) const; …

Software Development c++
Member Avatar for snvngrc1
0
175
Member Avatar for chirup

I have put a background picture in a panel and now i want to drag and drop bitmap images on it.how do i accomplish that?

Software Development vb.net
Member Avatar for Nada_ward
0
268
Member Avatar for penguin22

I want to delete a directory through python and the cmd window but i want it to open the command do the rd and then close and continue on with the program with out me having to type RD /s folderName

Software Development python
Member Avatar for jlm699
0
112
Member Avatar for sheara

In goal settings for Google Analytics, the goal page is this: [url]http://www.mydomain.com/Gallery.aspx?sbmid=745&new=true[/url] But I believe I need to use Regex, because the 745 will always vary, but the rest is the same. Any thoughts?

Software Development google regex
Member Avatar for sknake
0
44
Member Avatar for SuperMetroid

When I try to run the game it freezes and I get an error. the Code: [code] bif = "bg.jpg" mif = "ball.png" import pygame, sys from pygame.locals import * pygame.init() screen = pygame.display.set_mode((800, 600), 0, 32) background = pygame.image.load(bif).covert() mouse_c = pygame.image.load(mif).covert_alpha() while True: for event in pygame.event.get(): if …

Software Development python
Member Avatar for fallopiano
0
1K
Member Avatar for babbu

acees 2007 vb 2005 error: "Syntax error in insert into statement" [code] m_ColourCount = m_ColourCount + 1 Dim drNewRow As DataRow = m_ColourDataTable.NewRow() drNewRow("CID") = m_ColourCount drNewRow("ID") = m_CustomerCount drNewRow("Colour Name") = txtColourName.Text.Trim m_ColourDataTable.Rows.Add(drNewRow) m_ColourDataAdapter.Update(m_ColourDataTable) [/code]

Software Development vb.net
Member Avatar for babbu
0
111
Member Avatar for shinegun

Hi im a new visual c++ programmer... i have a program with Form1 and Form2. When i click on a Form1's button Form2 shows and then Form1 hides. But i want to know how can i make Form1 show again when Form2 enters the event Closing. Thanks!! Also how can …

Software Development c++
Member Avatar for shinegun
0
74
Member Avatar for TobbeK

I need to serialize items populated in a listview. Can anyone provide me with some simple example how to do that. No matter if it is binary or XML.

Software Development listview xml
Member Avatar for sknake
0
217
Member Avatar for Chris11246

Is there any way to tell if a shape collides with another shape im trying to make a simple game to test things. Im drawing circles with fillpie.

Software Development vb.net
Member Avatar for atqamar
0
162
Member Avatar for coder2050

I'm trying to Post to a site using WebClient in C# but it doesn't seem to Post the values at all I try posting two strings to a testform that I have set up on my localhost. In the PostBack of the page I update a label to say "Login …

Software Development c# first-post
Member Avatar for coder2050
0
616
Member Avatar for chamindakumara

Please explain me how to display a text line in a customer display which is connected to COM1 using VB6 (With sample VB codes)

Software Development display visual-basic
Member Avatar for chamindakumara
0
49
Member Avatar for Lfmoncur

I have a problem with a piece of code where I ask the user to type in a filename and then I need to store the number contents of the file in an array, and then use whats in the array to find the sum of the numbers, the biggest, …

Software Development c++
Member Avatar for daviddoria
0
109
Member Avatar for magix

Hello, I'm trying to simply do a SELECT from an ODBC source. It works perfectly in PHP but not in perl ! Therefore there is no problem at source or at ODBC level, it seems to reside at perl/DBI level... What I do : [CODE] use DBI; $dbh = DBI->connect('dbi:ODBC:' …

Software Development perl
Member Avatar for magix
0
311
Member Avatar for nigelhoath

I'm having problems updating a multimap. I need to change the key value. I have found various examples but none seem to work. Any help gratefully received. Below a simplified map test bit of code. I had hoped the line between the commented asterisks would do the trick but seems …

Software Development c++
Member Avatar for nigelhoath
0
146
Member Avatar for MV89

I am creating a program which performs statistical analysis of an array. So far i have got an enter array, that gives the min, max and median values and sorts the array. I have not been able to work out the mode. I have been able to find the mode …

Software Development c
Member Avatar for MV89
0
121
Member Avatar for Tamir09

Ive made an icon library for my program, so that I dont have my program depend on Windows for icons. I want to know how I can have my program use the icons from that dll file instead of from individual icons that I have in the program directory.

Software Development vb.net
Member Avatar for Teme64
0
309
Member Avatar for barker1889

Ive got a class which i want to use within a c# windows application, It sounds really simple but where do i put the code which creates the class object and the code that uses the class? Ive tried it in most parts of the code but after creating the …

Software Development c c# c++
Member Avatar for ddanbe
0
187
Member Avatar for jmmille

Hey guys. I have a program that does a SQL query and parses the info into a text file. The problem is it misses the first row every time it loops. I know the root cause here is my double use of the read function. I'm hoping to gain some …

Software Development sql vb.net
Member Avatar for sknake
0
1K
Member Avatar for Koinutron

I'm a newbie to c++, and as I'm reading my textbook, I'm applying different rules to this program for converting gallons to liters and vice versa, My question is how can I check that the user input is numeric and not a string of characters? I've tried several things with …

Software Development c++
Member Avatar for Koinutron
0
144
Member Avatar for Mongz

My application need's to read a certain row on excel document.Anyone can help with C# code for reading excel doc.

Software Development
Member Avatar for sknake
0
215
Member Avatar for moorcroft

Hi I have the following block of code copied from a previous project and it throws a null exception. This is because the value of HttpContext.Current is set to null and it therefore cannot return HttpContext.Current.Application. Can someone help me work out why this value is null? [CODE=C#] private static …

Software Development
Member Avatar for sknake
0
534
Member Avatar for ssbark

Hi everyone, I am making a windows application in which I want that when user presses enter key while textBox1 has focus then an event is generated. I tried using following but it doesn't workout:- private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (e.GetHashCode() == Keys.Enter.GetHashCode()) MessageBox.Show("Enter key has been …

Software Development c# visual-studio
Member Avatar for ssbark
0
113
Member Avatar for QuantNeeds

Hello , My program works fine but I still have one error that appears and I would like to fix it. It is complaining about [code] srand( time(0) ); [/code] with the following error: .cpp(25) : warning C4244: 'argument' : conversion from 'time_t' to 'unsigned int', possible loss of data …

Software Development c++
Member Avatar for mrnutty
0
810

The End.