132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for trickx0729

Hi guys, I have the same post in the java category. I tried using C# in coding this project on how can a user log-in his online accounts using a windows application created in C#. The windows application can store his username, passwords and the corresponding URLs, and all i …

Software Development c#
Member Avatar for trickx0729
0
111
Member Avatar for laghaterohan

hello, i was just wondering as to what is the major difference between the Endswith() and Equals() method in .net (c#) ? I wrote the following code for string comparison n also for numerals by using Endswith method however even if i use Equals method i get the same output …

Software Development
Member Avatar for laghaterohan
0
246
Member Avatar for S2009

Hi I am developing an application (using C# and SQL SERVER 2005) for calculating fine in an library. The fine calculated should not included Sundays. I have used the following code to calculate the fine. But the code includes all the sundays and hence Fine is charged for all the …

Software Development
Member Avatar for ddanbe
0
115
Member Avatar for S2009

Hi I am developing a windows application. For your infomation FRONT END : C# (VISUAL STUDIO 2008) BACKEND : SQL SERVER 2008 In a single form I have an option for add and remove books. Two different buttons are used(Add and Remove Books). When I click on Add button the …

Software Development c# visual-studio windows-server
Member Avatar for lighthead
0
5K
Member Avatar for hitchiker

[code]Excel.Application ExcelApp = new Excel.ApplicationClass(); ExcelApp.Visible = false; String WorkbookPath = filename; Excel.Workbook ExcelWorkbook = ExcelApp.Workbooks.Open(WorkbookPath, 0, false, 5, "", "", false, Excel.XlPlatform.xlWindows, "", true, false, 0, true, false, false); Excel.Worksheet Sheet = (Excel.Worksheet)ExcelWorkbook.Sheets[1]; DataTable newTable = new DataTable(); string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + filename + ";Extended Properties= Excel …

Software Development c c# c++ open-source
Member Avatar for sknake
0
643
Member Avatar for laghaterohan

Hello all, I want to update the database thru datagrid n also delete the contents of the selected row from the datagrid n then the database should be updated. however am getting a repeated error as to Unable to find Table[0] or Update unable to find TableMapping['Table'] or DataTable 'Table'. …

Software Development
Member Avatar for sknake
0
114
Member Avatar for dummy C#

I'm trying to export an excel file to my sql database. But not all the column inside the excel file i need. So, i just need some selected column for input to the database. But now i still cant finish with the code. HELP ME PLS.(red color word is where …

Software Development microsoft-office
Member Avatar for Tank50
0
381
Member Avatar for rizillion

i need to how to give codings to buttons that are present in confirm dialog box. For Example if there are two buttons as "YES" and "NO" and if i click "YES" then the program should close. If i click no then th dialog box should return to the program. …

Software Development java
Member Avatar for peter_budo
0
164
Member Avatar for fghdmhmmd

hello every body how to design multi pages in crytal report ?

Software Development
Member Avatar for fghdmhmmd
0
105
Member Avatar for DoEds

this is our homework... // make a c program that will ask any number from the user. //Output all numbers multiples of 3 from number to 30. [ICODE]// make a c program that will ask any number from the user. //Output all numbers multiples of 3 from nuber to 30. …

Software Development c
Member Avatar for tux4life
0
109
Member Avatar for ynaffit

i tried to create a program that would get the sum of the squares but i couldn't get the right output. Could u help me debug? and tell which part of my codes where wrong.PLEASE! :S [code=cplusplus] #include<iostream.h> #include<conio.h> #include<math.h> int x,num; int f(int); main () { clrscr(); cout<<"Enter a …

Software Development c++
Member Avatar for nirav99
0
111
Member Avatar for ddanbe

Hi all, I have made (just to learn C#) a calculator program, which is working OK. I made a Round button class for it, but the edges of the buttons still look "crispy". I set [B]SmoothingMode [/B]and [B]PixelOffsetMode[/B] to [B]HighQuality[/B] but it seems to have no effect. Is this once …

Software Development gui windows-vista
Member Avatar for emarshah
0
878
Member Avatar for yassar

Hi, I am modifying a software in delphi, The software is in Turkish, but it cannot show special Turkish characters properly. Can anyone help me solve this problem.

Software Development delphi pascal
Member Avatar for yassar
0
185
Member Avatar for sharat87

Hello, I have an application written in python and Tk. My application is to be scriptable with python, i.e., the user gives a small piece of code written in python, and that is to be executed by my application in a different interpreter, with different set of local variables. I …

Software Development python
Member Avatar for shadwickman
0
113
Member Avatar for emarshah

Hello to all, [INDENT]I am making an application which will only take images, convert it into binary image using a threshold. Now this binary image will be segmented horizontally on the basis of black pixels. In the attachment [ATTACH]10789[/ATTACH], this is the original image file. Now i have to segment …

Software Development image
Member Avatar for emarshah
0
163
Member Avatar for Thew

Hello, I have a small question. I have done some projects in C++ and Delphi. In C++, when I work with classes, I always use pointers.I make functions and classes that takes pointer to a class as an argument. But in Delphi, like this example: (some class).Create(Owner: TComponent) function take …

Software Development delphi pascal
Member Avatar for Thew
0
76
Member Avatar for dinilkarun

Hi All, I am using the below code to write into a text file [CODE] # Write into log file inp=file(Doc\Log.txt, 'w') inp.write('Log file start') inp.close()[/CODE] The text file 'Log.txt' is present in 'Doc' folder inside the application folder. Now I want to create a text file with a time …

Software Development file-system python
Member Avatar for baki100
0
164
Member Avatar for thwias1b3008

Hi, There's no error on my codes for searching the Record in MSFlexGrid, but i want to know :-/ if its [B]possible to search the record in other column of MSFlexgrid.[/B]:-/ for example I want to search the record that is placed on the column 3 and not in the …

Software Development visual-basic
Member Avatar for thwias1b3008
0
102
Member Avatar for mimsc

Hey Fellas...Im getting this error on a "select box"...im trying to parse some info: PWC6197: An error occurred at line: 88 in the jsp file: /jsp/cpanel/HomeSellerList.jsp PWC6199: Generated servlet error: string:///HomeSellerList_jsp.java:147: cannot find symbol symbol : method indexOf(java.lang.String) location: class java.lang.Object PWC6197: An error occurred at line: 88 in the …

Software Development cpanel java java-jsp
Member Avatar for sillyboy
0
846
Member Avatar for Piya27

Hi All, How can I accomplish splitting of data(string). For eg, If I want to split the 'Date Of Birth' ( given in the format dd/mm/yy) into its constituents dd, mm and yy separately. Specifically, I have a DOB field in my database(sql) and in the form, I have three …

Software Development vb.net
Member Avatar for Piya27
0
80
Member Avatar for firoz.raj

I Simple want when user click on the combo box .the other corresponding detail should come in a text box.i have written a code but it is not working .Kindly help me. any help would be Greatly appreciated.here is the code what i have written. [code=vb] Private Sub CboEmpName_Click() Dim …

Software Development visual-basic
Member Avatar for firoz.raj
0
108
Member Avatar for Clawsy

Hello, I'm making an application in Visual C++ that hides/shows an application window from taskbar by clicking a button. First problem (googled it) is that I don't know how to retrieve the information about a window state (SW_HIDE,SW_SHOWNORMAL, etc.). Is it hidden, minimized, normal or maximized? I only know how …

Software Development c++
Member Avatar for Clawsy
0
4K
Member Avatar for linkingeek

Here is the code building a table of contents which i felt correct from every sense but output is somewhat unsatisfactory. [code=c] #include<stdio.h> #include<limits.h> #include<stdlib.h> int**buildtable(void); void filltable(int**table); void processtable(int**table); int smaller(int first,int second); int larger(int first,int second); int rowMinimum(int*rowPtr); int rowMaximum (int*rowPtr); float rowAvg(int*rowPtr); int main() {int**table; table=buildtable(); filltable(table); …

Software Development c
Member Avatar for linkingeek
0
109
Member Avatar for JohnE1

O/S: Linux Shell: BASH I know of 4 different ways to use a for loop: 1. for I in {1..10}; do echo $I; done| 2. for I in 1 2 3 4 5 6 7 8 9 10; do echo $I; done| 3. for I in $(seq 1 10); do …

Software Development shell-scripting
Member Avatar for sknake
0
93
Member Avatar for OffbeatPatriot

[code=c] #include <stdio.h> int main() { printf("hello\n"); return 0; } [/code] It's all the more frustrating because I've designed stuff MUCH more complicated on this computer. My errors seem to be all linking errors. I've done all I can think of, which was really just to make sure my subsystem …

Software Development c visual-studio
Member Avatar for OffbeatPatriot
0
592
Member Avatar for lancevo3

Today is the first day I have attempted Operator Overloading and am running into a few errors so any assistance would be great! The first one I'm having issues with is here: const MyString& operator=(const char* rightOp) The assignment operator should also be overloaded to allow assignment of a C-style …

Software Development c++
Member Avatar for wildgoose
0
248
Member Avatar for kramer4583

I have been working on this program for school, it does some things right but with a few things I am struggling. [QUOTE]For this assignment you will be writing a two person chip game. You will start out with a pile of 1000 chips. Each player will have the chance …

Software Development c++
Member Avatar for kramer4583
0
187
Member Avatar for Humbaba

[code] int number; char letter; cout << "\nEnter a number\n"; cin >> number; cout << "\nEnter a letter\n"; cin >> letter; cout << "\nThanks!"; [/code] Let's say I had 5 of these questions lined up, it seems the user could just type something like "1 a 2 3 4" on …

Software Development c++
Member Avatar for Dave Sinkula
0
87
Member Avatar for ihatehippies

If I wanted to save the binary information of an executable as a string object in a .py file what would be the easiest way to go about that without receiving null byte and EOF errors.. I've messed around with converting each char to its ordinal and then separating them …

Software Development python
Member Avatar for vegaseat
0
147
Member Avatar for MansoorAhmedK

[B]How i save Picture 'BMP File' in Sql Server Image Field, Plz send me full Code in VB.6[/B]

Software Development visual-basic
Member Avatar for tom curren
0
112
Member Avatar for iliketacos

this script give me a memory error in parse()...what is a memory error and how can i fix it? [code] import cgi class COM: def __init__(self): f=open('C:/site/commentlog.txt', 'r') self.lines=f.readlines() f.close() def writecom(self, post): f=open('C:/site/commentlog.txt', 'a') f.write(post) f.close() def getcom(self): try: form=cgi.FieldStorage() q=form.getvalue("posts") if q: writecom(q) return q except: return 0 …

Software Development html-css python
Member Avatar for vegaseat
0
117
Member Avatar for jlm699

I feel like I'm losing my mind... I uninstalled wxPython this morning and was going to reinstall with the latest version as I'm having peculiar problems with UliPad that I just downloaded yesterday. Well after uninstalling the wx package and docs & demos I went to the wxPython page and …

Software Development python
Member Avatar for vegaseat
0
221
Member Avatar for Ather14

I am trying generate even fibonacii numbers less than four million, but I keep getting negative numbers at some point and eventually it converges to a positive answer, which is obviously wrong. Can anyone please help me out? #include <conio.h> #include <stdio.h> void main (void) { clrscr(); int f1=1; int …

Software Development c++
Member Avatar for NathanOliver
0
181
Member Avatar for geoamins

the below code accessing the report from the given IP Address... initailly i was facing problem during loading business report from the client computer because the i was used this code Dim cryRpt As New ReportDocument cryRpt.Load("D:\Reports\PTC_1.rpt") on server the above code doing best work because the path is identifing. …

Software Development client-server vb.net
Member Avatar for di.arie
0
188
Member Avatar for gianniszaf

Hi there, I have the following string which is tab seperated [code]dasj dhsahdwe dhasdhajks ewqhehwq dsajkdhas edward das dsaw das daswf fjdk ewf jken dsajkw dskdw hklt ewq vn1 daskcn daskw[/code] How can I format it in python in order to make each column to have the width of the …

Software Development python
Member Avatar for vegaseat
0
553
Member Avatar for Zetlin

Ok so for the last couple of days I have been struggling with file handling. Here is my problem I create a new file and write some text into it. Then I open it again to add more text to it but somehow the new text is being written in …

Software Development file-system python
Member Avatar for Zetlin
0
249
Member Avatar for Jonx

So after some scrambling around trying to find a good beginner programming language, i have found python, and with my ultimate goal being game development, also pygame. I have just started learning some basics, and I was going through a tutorial when i ran into an error that im not …

Software Development python
Member Avatar for vegaseat
0
2K
Member Avatar for kes_ee

What is the difference between these two methods; [CODE=python]# Solution 1 list1 = ['a', 'b', 'c', 'd'] temp_list1 = list1 for i in range(len(list1)): temp_list1[i] = "1" print list1; # ['1', '1', '1', '1'] print temp_list1; # ['1', '1', '1', '1'] # Solution 2 list2 = ['a', 'b', 'c', 'd'] …

Software Development python
Member Avatar for vegaseat
0
130
Member Avatar for mrnutty

How could one share a .exe that loads textures. I am using c++ and openGL. I want to share the .exe that I made using rapidshare.

Software Development c++ opengl
Member Avatar for tux4life
0
84
Member Avatar for si_f

Hi All I am writing a C# windows application and it needs to run in a standard user account, however, the application should allow a standard user to create further standard user accounts using Vista\Windows 7. In order to create new accounts you need to be part of the administrator …

Software Development c c# c++ windows-vista
Member Avatar for serkan sendur
0
236
Member Avatar for monkey_king

If I simply just want to tokenize the first element of a string and then output the remainder of the string, how can this be accomplished? thanks [CODE=c] #include <stdio.h> #include <string.h> int main(){ const char* line= "0 firstline"; char* l = strdup(line); printf("beforeToknization:\t%s\n",l); char *tok = strtok(l," "); printf("firstToken:%s\trestOfLine:%s\n",tok,l); …

Software Development c
Member Avatar for jephthah
0
3K
Member Avatar for emint

hi, i got class A which class got some graphics to display. when i run the program in class A its fine, but i when run from class B it display like 40 sec delay. any one who can help me? really need help!

Software Development java
Member Avatar for emint
0
107
Member Avatar for daviddoria

I'm trying to start writing tests for all of my functions as per Test Driven Development. My question is, say I construct a test for "rotate vector". It would be something like this: [code] int TestRotateVector(const Vector &V) { Vector Original(1.0, 2.0); Vector Rotated = Original.Rotate(10); //rotate 10 degrees if(Rotated …

Software Development c++
Member Avatar for StuXYZ
0
186
Member Avatar for mypicturefaded

I swear this code worked a few minutea ago...but now it is coming up with the Parameter is not valid error. What am I missing here? sigpic is a public local variable. [CODE] private void SaveFile(string fileName, byte[] bytes) { //MessageBox.Show("Saving file '" + fileName + "' of length " …

Software Development
Member Avatar for mypicturefaded
0
377
Member Avatar for ivanhuk

I've created a class and create two new objects from that class. 3 variables are stored as private. I have mutator and access functions for these variables. When I try to write a value through these functions, they don't seem to change the variable in the class. What am I …

Software Development c++
Member Avatar for Lerner
0
145
Member Avatar for tdeck

I'd like to extract a column from a dataGridView and add it to a dataSet. Apparently I can't cast a dataGridViewColumn to a dataColumn like this [ICODE]DataColumn col = (DataColumn)inputGrid.Columns[0];[/ICODE] even though they seem like they're holding essentially the same thing. Any suggestions you have would be great, I'm still …

Software Development dataset
Member Avatar for ddanbe
0
106
Member Avatar for jasscat

How do I format a decimal number so that, if there are one or two digits to the right of the decimal point, that shows up (e.g. 123.45) but, if there are digits of zero to the right of the decimal point, the number is formatted as a whole number …

Software Development
Member Avatar for jasscat
0
180
Member Avatar for shopnobhumi

What could be the possible explanation of this program output? I am trying to learn c++ so please help [code]#include <iostream> using namespace std; int main( ) {int b[3][2]; cout<<sizeof(b)<<endl; cout<<sizeof(b+0)<<endl; cout<<sizeof(*(b+0))<<endl; // the next line prints 0012FF68 cout<<"The address of b is: "<<b<<endl; cout<<"The address of b+1 is: "<<b+1<<endl; …

Software Development c++
Member Avatar for Ancient Dragon
0
174
Member Avatar for Talguy

I am trying to make a java sever code communicate with and iphone hello world app. When I run the iphone app it sends the length of the string first then sends the string. the Length of the string should be 2 but my server code prints out 33554432. Also …

Software Development iphone java objective-c os-x
Member Avatar for Talguy
0
175
Member Avatar for walter clark

I have a Windows program (Visual C++ CLI Type) that displays video in a sub window. When something happen the user makes a note of the event by hitting a button. The problem is that the event involves a number of choices and finding the right button to click is …

Software Development c++
Member Avatar for walter clark
0
73

The End.