132,726 Archived Topics
Remove Filter ![]() | |
I need to retrieve the Date only from Microsoft SQL Server and insert into Listview the code that i used was this SqlCommand cmd4 = new SqlCommand(); SqlConnection cn = new SqlConnection(); cn.ConnectionString = ("Data Source = LOPEZ-PC\\SQLEXPRESS;Initial Catalog=softwareengineering; Integrated security= TRUE"); cmd4.CommandText = "SELECT * FROM [rawinventory] "; cn.Open(); … Software Development listview open-source | |
Hi guys I been programming in c++ for past 2 years and is fairly good with it. First of all I dont need the code or anything but need some resources which i can use to get the basic idea so I can start developing. Had been googling for the … | |
So I'm beginner starting software enginering studies here condition: Given number n ( n<=9999) need to identify if this n is palindrom(ex. 7777,8228,0220...). Need to write in c++ language.thanks Software Development c++ mathematics | |
This is me with another project for beginners :) The Project as stated by ZZucker about 2 months ago: "Given the length of three sides, write a function that checks if it is possible to create a triangle." I could solve it with an annonymus function like this: is_triangle = … Software Development python | |
im writing a program that creates a dynamic array then input numbers(not exceeding 100). i used *new int* to create the array. im running into the problem that it only allows 21 numbers to be entered, then does sort,mean. could anyone explain where im going wrong setting up the array … Software Development c++ | |
I had absolutely no clue where to post this but I figured since it crashes on the C++ side, I'd ask here. I have the following code: Java side (Loads My C++ DLL just fine.. Passes it a ByteBuffer so that I can write to that): import java.io.IOException; import java.awt.*; … Software Development c++ java-swing | |
Dear Experts, I have a situation , I am sure about the best approach for it. I have a database application that is designed to handle both SQLServer database and Oleddb "Access mdb" database. the issue is that during application start up , the application detects the configuration file and … Software Development vb.net | |
#include<stdio.h> #include<math.h> void getColorCode(char colorCode[]); long getResistorValue(char colorCode[]); int i,ch; long r_value=0; char ans; char j; char code; char colorCode[3]; int colorValue[3]; int main (void) { /* clrscr(); printf("\n\t\t\t\tRESISTANCE CALCULATOR"); printf("\n\t\t\t\t"); for(i=1;i<11;i++) { delay(10000); printf("*"); }*/ printf("\n1. START"); printf("\n2. QUIT"); printf("\nEnter your Choice(1-2):"); scanf("%d",&ch); clrscr(); switch(ch) { case 1: printf("*****************************************************\n\n"); … Software Development c | |
Bellow is what i have so far on my assignment. I need some help getting this application working. Thank you for your time! /** General Assignment: Review the grading policy on the CSCI 181 syllabus. The course grade is determined by the weighted average of six components with two possible … Software Development java | |
How can i draw a 1 line border or frame around code using an " * " , searching the net i have seen techniques using loops and various functions but i cant grasp the concepts being used, even a link to a indept tut on this would be a … Software Development c++ | |
Could someone please give me an idea of why I get a nullPointerException when I run this method in my main program. Every list has a variable, first, to store the address of the first node of the list. I assign current1 to the first node of list1 as a … Software Development java | |
I need to read and write an XML file which may contain '€' symbols. So, to start I run this code: from xml.etree import ElementTree as ET optionstree = ET.parse("test.conf") where "test.conf" is the following XML file: <?xml version="1.0" encoding="UTF-8"?> <test>12€34</test> and I get this error: File "<pyshell#7>", line 1, … | |
String testHTMLContent = testhtml+productlogo; Message message = new MimeMessage(session); message.setFrom(new InternetAddress(usern)); message.setRecipients(Message.RecipientType.TO,InternetAddress.parse(to)); message.setRecipients(Message.RecipientType.CC,InternetAddress.parse(ccaddr)); message.setSubject(sub); //message.setText(body); // setDebugMsg("Attempting to send..."); Transport transport = session.getTransport("smtps"); MimeMultipart mimeMultipart = new MimeMultipart(); MimeBodyPart msgContent = new MimeBodyPart(); msgContent.setContent(testcontent, "text/plain"); mimeMultipart.addBodyPart(msgContent); MimeBodyPart query = new MimeBodyPart(); query.setHeader("Content-Type", "text/plain"); query.setContent(queryString, "text/plain"); mimeMultipart.addBodyPart(query); MimeBodyPart htmlPart = new … | |
... The name of program is i think it is function and structured programming waa hard to explain ahmm.. if you input a number 1 temperature must be goes in program then after that i need to input an exit like "ARE YOU SURE YOU WANT TO EXIT?" then Y … Software Development c++ | |
    The name of program is i think it is function and structured programming waa hard to explain ahmm.. if you input a number 1 temperature must be goes in program then after that i need to input an exit like "ARE YOU … Software Development c++ | |
Hi there, What i'm trying to accomplish is: These two methods: f(x : double) : double post: return x integral(og : double, bg : double, step : double) : double post : return (f(og) + f(og+stap) + … + f(bg)) * step So I can call those two in my … Software Development java | |
I think I am getting bad data because I have my pointer doing the wrong thing, I just don't know exactly how to fix it. Any help is greatly appreciated! output: Number: 4669840 Name: Value: 3.76441e-039 Number: 4218312 Name: Value: 6.52879e-039 Number: 2686408 Name: Value: 6.52879e-039 Number: 128 Name: Value: … Software Development c++ | |
**THIS CODE RETRIEVES DATA FROM THE DATABASE. PLEASE HELP ME DEBUG. I AM EXPERIENCING ERROR CALLED INDEXOUTOFRANGE IN: ** **HERE IS MY CODE:** Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Try Dim oradb As String = "Provider=OraOLEDB.Oracle; Data Source=TRAVELMATE-PC/XE;User Id=cj;Password=me;" Dim conn As New OleDb.OleDbConnection(oradb) … Software Development open-source oracle vb.net | |
I have an interesting problem. I am working on a method that iterates through a number of simple java arrays stored in an Object array. The goal of this method is to find the smallest array contained within the Object array. Because these collections are stored in an Object array, … Software Development java | |
http://www.spoj.pl/problems/FP/ here is the link. Can anyone please give me the hint only that how greedy approach is following in this question ? It's strange to see how greedy is there in this question. just the hint of this. no code, nothing! thanks. Software Development c | |
Hi i want to merge two text files.i.e. the content of the second file has to append to the content of the first file. pls help me out Thanks Software Development | |
I've been trying to display sqlite data in wxcomboboxes but I get a type error not all arguments converted during string formatting, I'm Using a caller for the frame and it displays for about five comboBoxes but when I add more (exactly the same way as the first ones) It … | |
Dim FileTrue As Boolean = True While FileTrue = True If My.Computer.FileSystem.FileExists("/Paths/aPath.txt") Then Form2.RichTextBox1.LoadFile("/Paths/aPath.txt", RichTextBoxStreamType.PlainText) Else Call PathSet() FileTrue = False End If My.Computer.FileSystem.FileExists("/Paths/mPath.txt") Then Form2.RichTextBox2.LoadFile("/Paths/mPath.txt", RichTextBoxStreamType.PlainText) Else Call PathSet() FileTrue = False End If My.Computer.FileSystem.FileExists("/Paths/lPath.txt") Then Form2.RichTextBox3.LoadFile("/Paths/lPath.txt", RichTextBoxStreamType.PlainText) Else Call PathSet() FileTrue = False End If My.Computer.FileSystem.FileExists("/Paths/wPath.txt") Then Form2.RichTextBox4.LoadFile("/Paths/wPath.txt", … Software Development vb.net | |
Hello everyone, I am trying to build a inventory and pos system with Ms-Access as database and VB 6.0 programming. I got stuck in one place again. What I want to do is trying to print out the codes and price of the products. In this form, I have a … Software Development printer visual-basic | |
Private Sub Cmd9_Click() 'On Error GoTo Error_Handler Dim Report As New Blank_rShopDrawing 4 Set Report = New Blank_rShopDrawing Report.RecordSelectionFormula = "false" Form1.CRViewer1.ReportSource = Report Form1.CRViewer1.ViewReport Form1.Show 1 Exit_Error_Handler: Set rs = Nothing Exit Sub Error_Handler: MsgBox Err.Number & " : " & Err.Description Resume Exit_Error_Handler End Sub the error in … Software Development visual-basic | |
**While executing the following code and when clicking the clear button it gives me error "Error Input String in not correct" line --> workedHour = Decimal.Parse(HourWorkedTextBox.Text) Any help will be highly appreciated** Public Class Payroll Dim fullName As String Dim pay_Rate, workedHour, grossPay, netPay, taxRate As Decimal Dim taxAmount As … Software Development pay-per-click visual-basic | |
Hi its my first time to join on this community, could anyone help me out to figure out? Actually I want to figure out how this picture would work http://i49.tinypic.com/5bd1tt.png using loop. Basically its like this on a elaborated details: > Write a program like the one to the right. … Software Development pdf visual-basic | |
I am making this two player simple game. I just need to make each of the player press a key any time not alternating from one another. Do I still use getch() for a solution? I have tried but the user still presses his/her assigned keys after the other presses … Software Development c | |
Hey all. I have this program where I need a variable number of for loops. For eg. the program i use to find the pythogorean triplets is for n1 in range(100): for n2 in range(100): for n3 in range(100): if n1**2+n2**2 == n3**2: print str(n1**2) + '+' + str(n2**2) + … Software Development python | |
when i want to add a component or Referrence to vb6 Project it give me this error msg : error accessing the system registry how i can fix that ??? sry again Software Development visual-basic | |
I have a c# project to Create a console project named Cards that includes a struct Card, two classes Deck and Hand, and two enums: Rank and Suit. I attached a require output for this project. I have all my class but when I compile it only show the first … | |
hi everyone well I'm learning network programming currently , I've written a day time client and server but when I run the client it gives me a connection error . Here is my client code #include<sys/socket.h> #include<sys/types.h> #include<stdio.h> #include<netinet/in.h> #include<netdb.h> int main(int argc ,char *argv[]) { int sockfd, n; char … Software Development c socket-programming | |
I am trying to write a program in Python that converts user input from English to Pig Latin ("Y" is not a vowel in this case, breaks off at first vowel and moves preceding consonants to the end). The end product of my program should be able to compute whole … Software Development python | |
HI ! could you please help me here? i'm having a problem on marking the books in my library program if it is borrowed or returned? here's where im at, import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.awt.Color; public class Library { ArrayList<String> bookName = new ArrayList<String>(); {{ … Software Development java java-swing | |
Hey! I have a problen. I'm a user of Turbo C++ yes, it's outdated. I know. LOL SO anyway, i'm supposed to create a program that reads a text document when ran. so I already have the text document named test.txt located on my desktop. but when i try to … Software Development c++ file-system | |
Following is my code for reading from a file. #include<stdio.h> int main() { char s[10][10]; int i=0,j=0; FILE *ptr=fopen("input.txt","r"); char c; while(fscanf(ptr,"%c",&c)!=EOF) { if(c=='\n') { s[i][j]=0; i++; j=0; } else { s[i][j]=c; j++; } } s[i][j]=0; fclose(ptr); for(j=0;j<i;j++) printf("%s\n",s[j]); return 1; } and content of input.txt is A->XAZ|Yz|z X->xZ|x Z->Xz … Software Development c | |
public class Thread7 implements Runnable { public static void main(String r[]) { Thread t = new Thread(new Thread7()); t.start(); public void run() { System.out.println("C"); System.out.println("D"); } System.out.println("A"); try { t.join(); System.out.println("B"); } catch(Exception e){} } } Query1: On compiling this program I get "illegal start of expression" error pointing to … Software Development java multithreading | |
THing is I have an assignment where the object is an array, I need to check when it is out of bound. But I dont understand what this statement means? Can you guys help me verify it? > method "private void rangeCheck(int index)": if the value of index is less … Software Development java | |
Hello, I'm trying to calculate factorials with my program, but it is only working for the first few numbers. It compiles fine, so I can't find the problem. Help please! Keep it simple, I am very new to C++ and programming in general. Here is my code: #include <iostream> #include … Software Development c++ | |
hi, does any one know about the pipe & filter architecture implemntation in C# have a question in that. Software Development c# | |
Hello I'm back guys! @npcomplete....can't do anything about it dude, its what we use in our school...and Im from the Philippines...when I master this compiler, i'll switch.. So here it is my work so far...Record of 100 Buyers..Please check if I did it right..It worked for me so..yea.. #include<iostream.h> #include<cstring.h> … Software Development c++ | |
I'm trying to read information from a text file and populate an array of structs using a pointer. I keep getting an error and I'm not sure how to fix it. Any help, comments, or tips are greatly appreciated! Thanks in advance for your time and help! error: request for … Software Development c++ | |
I am having a problem completing this Java program. Basically everything is complete and running correctly except the end (which I cannot figure out the code for). The point of this program is to convert dates from the "Month Day, Year" format to "DD-Mon-YYYY" format and increment the dates by … Software Development java | |
Hey guys, I am working on an application for my school and work. I work for the It team that maintains and checks the AV equipment we have around campus and solve the problems associated with them. We usually just mark them down with pen and paper etc. Im trying … Software Development c# microsoft-access | |
I am using visual studio 2008 Professional / vb.net and sql*server Express (9.0) *I am using DAL table adapter logic for db access.* One of my tables needs to have a field changed from smallmoney to decimal (9,2) to accommodate larger values. After making the changes below, I am now … Software Development vb.net visual-studio | |
This is and answer to one of the Vegaseat's recent projects for beginners. I share my solution here because -as a begginer and do learn python as a hobby- I need your feedback. So please tell me am I doing it the right way? Thanks in advance for comments from … Software Development python | |
There are so many services which can be used with the interrupt 10h, I'd like to ask the question about two of them whom with i am confused First is, AH = 06H SCROLL UP WINDOW AH = 07H SCROLL DOWN WINDOW While coding in DOS what is meant by … Software Development assembly | |
# convert2.py # PPython Monty # Lab 2 Ch 2, PE 4 # A program to convert temperatures from Celsius to Fahrenheit and # vice versa def main(): # description of program print("This program converts Celsius temperatures to Fahrenheit and") print("vice versa.") conversion = ("C") n = eval(input("How many temperatures … Software Development python | |
I already download MASM but it won't worked. I cannot see the MASM icon needed to compile the program. I downloaded visual 2005 also although I can see the MASM in control panel uninstall program. .model small .data x db "Hello World", '$' .code main proc near mov ax, @data … Software Development assembly |
The End.