132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for titas.datta

Hi! I have written a code to subtract 2 large integers stored in arrays! But the problem is, its not working when the minuend is smaller than the subtrahend, i.e, when the answer would be negative. I am taking 2 char arrays as parameters, converting them to int arrays, working …

Software Development c++
Member Avatar for Ketsuekiame
0
408
Member Avatar for downtown1933

I am having some trouble posting to website..I've tried posting to many different websites and get the same result.. An error message referencing the js on the page, asking if i want to continue.. Then the response i get is the form I am posting to, with all fields correctly …

Software Development first-post http-protocol
Member Avatar for Ketsuekiame
0
301
Member Avatar for nerden

I am trying to write an application to do various things, one of the elements is going to require a service, The service is called myService.vb and is part of the main solution containing frmMenu which has a button (btnRegister). Is it possible to programaticaly register this service? Alternative question: …

Software Development vb.net visual-studio
Member Avatar for nerden
0
346
Member Avatar for yuvjeeth

Hi Everyone, I would like to know if there is any way to change the color of a part of text in rich textbox when the user types it automatically like the way in vb.net IDE (Classes have blue etc.). Thanks in advance, Yuvjeeth

Software Development ide vb.net
Member Avatar for ddanbe
0
503
Member Avatar for Prem_1

How to compute current ratio in C++ with using header file? Calculate in c++ program with *3* different file. **- 2 file (cpp file) - 1 file (header file)** Information: formula---> **Current ratio = current asset / current liabilities** Please correct me If I'm wrong. I just start study C++ …

Software Development c++
Member Avatar for deceptikon
0
667
Member Avatar for andre.gartner.56

I'm having quite a few errors on this one. This is my first attempt on "free" coding outside tutorials. I do believe it only has to do with bad use of brackets from my side, but i'm a beginner. Line 14 - Illegal start of expression Line 18 - Class, …

Software Development java
Member Avatar for JamesCherrill
0
159
Member Avatar for fhau013

hello ! can you please help me with my independent study. im making library management system with visual studio C# and mysql. what mysql connector needed for C# and how to connect them?? thank you in advance :)

Software Development c# mysql visual-studio
Member Avatar for ddanbe
0
93
Member Avatar for monching

Hello guys, I have my problem in saving date to mysql. Dim conn As MySqlConnection Dim myCommand As New MySqlCommand Dim commandB As MySqlCommandBuilder Dim data As MySqlDataAdapter Dim query As String = "SELECT * FROM events e;" Dim myconnstring As String Dim comm As String Dim vers As String …

Software Development mysql vb.net
Member Avatar for shashikumar s g
0
3K
Member Avatar for manuel.ramirez.9619

Hi! I´m making a really big program of mail sending. However my last problem is the scrolling... The scroll bar don´t react to the mouse wheel and only functions when focusing in the bar , And that´s not user-friendly. how Can I achieve to make the scroll bar react with …

Software Development python
Member Avatar for james.lu.75491856
0
373
Member Avatar for Tcll

IMO, VS2010 with PythonTools 1.5 is the best IDE. it may not be as glamorous as Eclipse or PyScripter, but it certainly has more functionality and accuracy than either of them. -intellisense (PyScripter does a better job than Eclipse) -split file scrolling (not sure about PyScripter, but Eclipse doesn't have …

Software Development ide python
Member Avatar for Tcll
0
658
Member Avatar for Reverend Jim

Several people have asked about storing binary data in a database. I coded up an example today that uses an ADODB.Stream to copy the binary data but after some fiddling I found a more direct way. If you are using MS SQL Server, the easiest way I have found is …

Software Development sql vb.net
0
2K
Member Avatar for jd217

I'm getting a syntax error that's confusing me beyond belief. I'm using MinGW on Windows XP(32-bit), and Notepad++ for a text editor. "Syntax error before unexpected token '('" Originally, I thought it may have been something in the code I was trying to compile, so I wrote a simple "hello …

Software Development c open-source
Member Avatar for jd217
0
1K
Member Avatar for christinetom

Hi everyone.. :), me again. I've never used Linked Lists.. They don't make sense to me. I kind of understand them though. There's plently of online explanations explaining what they are but they all go down the same path. I'm trying to undertstand how one Note (via the next pointer) …

Software Development c++ linked-list
Member Avatar for christinetom
0
275
Member Avatar for phorce

I'm attempting to implement the Factory Pattern. I have a class called "Window" which has a class member function which determines which object is being called and then assigns the particular object pointer. I have written the following code: class Hamming { public: Hamming() { } Hamming(int theSize) { // …

Software Development c++
Member Avatar for deceptikon
0
190
Member Avatar for chloie

hi I have the codes for the save,delete and update button but I need the codes for first,prev,last and next can you please help. please

Software Development vb.net
Member Avatar for Reverend Jim
0
512
Member Avatar for coding101

I need help reading my arp replies. When writing requests to the socket, I cant get replies related to what I sent..Ideas #include <stdio.h> #include <ctype.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <netdb.h> #include <sys/socket.h> #include <arpa/inet.h> #include <linux/if_ether.h> #define ETH_HW_ADDR_LEN 6 #define IP_ADDR_LEN 4 #define ARP_FRAME_TYPE 0x0806 #define …

Software Development c
0
130
Member Avatar for David W

Because things, these days, seem a little 'slow' around this forum, please forebare this old post, (that was recently resurrected by an inquiring mind), and humour this 'update', in good faith that this update might be appreciated by some beginning students of C++ ... :) // beginnerBadCppExampleCodeBeforeFixedUp.cpp // 2013-08-14 // …

Software Development c++ ide
Member Avatar for deceptikon
0
471
Member Avatar for Ahmed.C

Hi. I just wanted to know if there is anyway to make a textbox recognise if there is text or not. I don't want it to be textbox1.text = "". Is there a legitimate way?

Software Development vb.net
Member Avatar for Ahmed.C
0
163
Member Avatar for Rajiv9

Hi, I have avalue like 2.90 i want the value to be round off to 3.00 Can u help me out Rajiv

Software Development vb.net
Member Avatar for Rajiv9
0
2K
Member Avatar for 恒

I use image component to display a picture for JPG,but it is lost a color.why I never meet this. I can't to upload picture to this forum.

Software Development display image pascal
Member Avatar for 恒
0
329
Member Avatar for JameB

Hi guys, I'm working on a side project for a friend and I'm looking for a C++ library that allows me to put bunch of paragraphs in a PDF format. Anyone know any good libraries that can do this as simply as possible? It will be just paragraphs and paragraphs …

Software Development api c c++ pdf
Member Avatar for iamthwee
0
771
Member Avatar for sushilsth

I have boolean value either class a or class b.. if those given condition are fulfilled then i want to have class a label in my report else class b. but when i inserted below format in formula field then i got error. this is just a sample. plz provide …

Software Development vb.net
Member Avatar for Reverend Jim
0
120
Member Avatar for Ahmed.C

So I've been working on this simple FTP Client and i've come across this problem. Basically when the user clicks on the folder, a label changes saying ftpserver.com/folder1 and then when a user clicks on the folder inside that it's meant to be ftpserver.com/folder1/folder2 but the label is only saying …

Software Development file-stream vb.net
0
103
Member Avatar for Akhilesh_2

#include<stdio.h> #include<stdlib.h> #include<string.h> static int compare(const void *x,const void *y){ return strcmp(*(const char**)x, *(const char**)y); } int main(){ FILE *p = fopen("file.txt","w"); char ch = '\0',**c = (char**)calloc(6,sizeof(char*)); int n[6]={0},i=0,j=0; fprintf(p,"jack\nakki\njohn\nrachael\nrobin\ntom"); fclose(p); p = fopen("file.txt","r"); while(1){ while((ch=getc(p))!= '\n'){ if(ch == EOF) break; putchar(ch); n[i]++; } printf(" %d\n",n[i]); if(ch == EOF) …

Software Development c file-system
Member Avatar for Akhilesh_2
0
119
Member Avatar for Ahmed.C

Hi. First Post... Just need some help with this program I'm doing.. I've been programming a FTP Client and i've got the base done but i just have one problem...I've added a listview with 3 columns. 1st column is File Name, 2nd column is File type and the 3rd column …

Software Development file-stream listview vb.net
Member Avatar for Ahmed.C
0
401
Member Avatar for DGULLIVER

Hi Everyone, Been a few years since I had to post anything here so I'm glad to be back. I've been asked to do a report to show vouchers that have been issued and presented for July (this year and last year). I have done this SQL: SELECT tblOutlet.OL_NAME, Format([VI_TRANSACTION_DATE_TIME],"mmmm …

Software Development microsoft-access sql visual-basic
Member Avatar for BitBlt
0
267
Member Avatar for JukesK

i've just given a script to update and maintain by my manager, but its bash and i dont know that much about it.. i currently have a script that looks through .txt files for given serials that then reports to a php webpage. within this script we have around 20 …

Software Development shell-scripting
Member Avatar for Watael
0
287
Member Avatar for Thermalnuke

Hey guys, I havent coded visual basic in a long time I am using access 2003 and doing some code under a form. I have a button that is named system Setup and when you click on it it opens up and another form that has three comboboxes and a …

Software Development visual-basic
Member Avatar for Klahr_R
0
162
Member Avatar for ShiftLeft

I'm pretty comfortable with "C", but where I lack, is understanding what types of options must be passed to compiler to produce the tightest code possible. Here is an example of a formula in "C"; int ADDR = VIDEO_BASE + (WND_X + POS_X) + ((WND_Y + POS_Y) * SCR_X) * …

Software Development c c# c++ visual-studio
Member Avatar for ShiftLeft
0
431
Member Avatar for leonidas007

i've being trying to fix the error in my code for quite some time but am unable to resolve one or two of the errors like expected primary-expression before 'public' main.cpp:211:22: error: expected ';' before 'public' main.cpp:216:23: error: expected '}' before 'else' i am a beginner in programming # include<iostream> …

Software Development c++ queue
Member Avatar for mike_2000_17
0
152
Member Avatar for Peter_Aye

Hi. Please could anyone help me look at this code and tell me why the image is not getting drawn? I have already cross-checked the path, and it is alright, as it does not throw any exception. Thanks in advance. class PotPanel extends JPanel{ public PotPanel(int width, int height){ Dimension …

Software Development image java
Member Avatar for mKorbel
0
268
Member Avatar for drmangeshajoshi

Hi All My query is very simple. I have a data file with two fields only in EXCELL.( Fields are Name and Address) 1. Import this file in MSACCESS 2007. 2. Creat a Form in VB2008 Express edition. 3. Fetch the data from database file. 4. How to distribute/install this …

Software Development vb.net
Member Avatar for kRod
0
133
Member Avatar for Fangling

hi can anyone tell me how do i put load linq query into datatable then populate into datagridview? my codes are as follows: Dim dt As New DataTable '' Create 3 typed columns in the DataTable. dt.Columns.Add("ConflictingPaper", GetType(String)) dt.Columns.Add("Numberofstudents", GetType(String)) dt.Columns.Add("AdminNo", GetType(String)) 'Dim query1 = (From a In dt3 Group …

Software Development vb.net
Member Avatar for kRod
0
242
Member Avatar for Stuugie

Hi All, I'm trying to loop through and open PDFs in a folder using Java. I have the following code: import java.awt.Desktop; import java.io.File; import java.io.IOException; public class OpenPDFs { public static void main(String[] args) throws IOException { // TODO code application logic here String fp; fp ="S:\\Economic Forecasts\\Fcst13\\SourceForecasts\\"; File …

Software Development java pdf
Member Avatar for Stuugie
0
594
Member Avatar for Raja ali

#include<stdio.h> #include<conio.h> #include<string.h> struct { int num1,num2; char s1; int *ptr; int abc[5]; }a[2]; void main() { int start, last; start=&a[1].num1;//error last=&a[0].num1;//error printf("\nsize of structure :%d bytes",start-last); getch(); } getch(); }

Software Development c
Member Avatar for nullptr
0
125
Member Avatar for sushilsth

Private Sub btnload_Click(sender As Object, e As EventArgs) Handles btnload.Click Dim sqlquery As String = "select frmStudentReg.regno,nursery.rollno,[nursery.nepali(writing)],[nursery.nepali(oral)],[nursery.maths(writing1)],[nursery.maths(oral)],[nursery.maths(writing2)],[nursery.english(writing)],[nursery.english(oral)],[nursery.physical_edu(oral)],[nursery.creative(oral)] from frmStudentReg,nursery where frmStudentReg.regno=nursery.regno" Dim sqlcommand As New OleDbCommand Dim sqladapter As New OleDbDataAdapter Dim table As New DataTable With sqlcommand .CommandText = sqlquery .Connection = conn .ExecuteNonQuery() End With With sqladapter .SelectCommand …

Software Development vb.net
Member Avatar for Begginnerdev
0
269
Member Avatar for Hikki_Passion

Ok, so I am trying to write a code that will find the attributes in a html tag using lists and splitting them up. Unfortunately its giving me a hard time with the added quotation marks. [CODE] def find_attribute_value(html_tag, att): '''Return the value of attribute att (a str) in the …

Software Development html-css python
Member Avatar for james.lu.75491856
0
1K
Member Avatar for sankubha

I have renderer a JPanel at the fourth column of my JTable. I need to draw an image Dynamically. I have used this code to get the component...... at certain row and column..... JPanel cPanel = (JPanel) jTable.getCellRenderer(0, 4).getTableCellRendererComponent(jTable, jTable.getValueAt(0, 4), false, false, 0, 4); Graphics graphics = cPanel.getGraphics(); When …

Software Development cpanel java
Member Avatar for sankubha
0
241
Member Avatar for Kratoswoo

So working on something and it is running on asp.net so this page is refreshing a lot. It has numbers in a textbox that have been counted and keep changing all day long. What I want to so the textbox witht he highest number is turned green. int[] MyNumbers = …

Software Development
Member Avatar for ss125
0
304
Member Avatar for RinzLove

Hi all, I've a problem fixing the syntax error. I'm doing a function, randomGraphGenerator(int n) that will generate non-negative weighted complete graph with n vertices. Could you help me out on this. Many thanks in advance... public class randomGraphGenerator { private final int n; private int E; Private Bag<Edge>[] adj; …

Software Development java
Member Avatar for JamesCherrill
0
336
Member Avatar for ss125

Please can anyone explain clearly.... what is the difference between session and httpcontext.current.session and application variables? Thankyou in advance...

Software Development asp.net session
Member Avatar for ss125
0
225
Member Avatar for leghorn

$resFile = &getFileName($ARGV[0]); $fileType = &getFileType($ARGV[0]); $table = &getTableName($fileType); could u please tell me as to what these commands are doing? also , if I convert them to shell script,will thsese work ? there's a perl script that Im trying to convert to shell script. resfile=getfilename $1 filetype=getfiletype $1 table …

Software Development perl
Member Avatar for leghorn
0
262
Member Avatar for mark.kj.125

Currenlty i have learned html5 and css3 from different sites no one give complete tutorials about everything and doesn't made me satisfied when i see uniques combinations of tags and and some that i don't know i totally get disappointed.People have done great work only with html and css and …

Software Development html-css
Member Avatar for best4earn
0
282
Member Avatar for mikeoabban

i have a datagridview and a button on my form. when values are entered into the 2 cells of the datagridview and the button is pressed, the numbers are multiplied and the result is displayed in the third cell. this works alright. i now want the multiplication to be done …

Software Development
Member Avatar for ChrisHunter
0
903
Member Avatar for ss125

Hi friends, I displayed some items on my dropdown list.And users are allowed to select multiple items in the drop box. After that, If a button is clicked, I have to execute a single sql code. Say for eg, update table_name set flag='y' where field_name='[Dropdown selected items]' Please help. Thanx …

Software Development
Member Avatar for ss125
0
209
Member Avatar for jakarias

How to create multiple-choice questions in java using a certain time?

Software Development java
Member Avatar for jwenting
0
223
Member Avatar for fuhanspujisaputra

Displaying a description based on code in database C#, database, WindowsApplication, Hi everyone, i have a question how do i input the descriptions columns if i type the number based on my database in code columns, i already retrieve the code from database, but now i also want to display …

Software Development open-source
Member Avatar for fuhanspujisaputra
0
238
Member Avatar for chad.calamba05

I need to get the sum of two numbers but i do not know how example > **what the result should be:** 1,000,000 + 2,000 = 1,002,000 > **my code's result:** 1,000,000 + 2,000 = 3 > It seems that my code only adds the numbers before comma (,) My …

Software Development vb.net
Member Avatar for nashy13
0
2K
Member Avatar for VIPER5646

Hi all I have a Products table which has a description and a size column the description is a string value and the size has a double value. What I need to do is after reading the data it converts the decimals value of the size column into a fraction. …

Software Development vb.net
Member Avatar for VIPER5646
0
1K
Member Avatar for Kignoumba

Can someone help me out here? i'm trying to write a program on 8051 assembly, my topic is a digital time zone clock with 7segment segment display with a 4x4 keypad , were each key if the time of one country. and i can't attribute the time to keys. thanks …

Software Development assembly display
Member Avatar for rubberman
0
281

The End.