132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
Can any one suggest me some online material for "List with static array" example codes ? Software Development c++ | |
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 | |
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 | |
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 … | |
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 | |
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 | |
[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++ | |
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 | |
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 | |
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? | |
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 | |
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 | |
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++ | |
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. | |
![]() | 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 |
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 | |
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 | |
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++ | |
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 | |
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++ | |
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 | |
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 | |
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 … | |
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 … | |
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++ | |
My application need's to read a certain row on excel document.Anyone can help with C# code for reading excel doc. Software Development | |
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 | |
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 | |
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++ |
The End.