132,726 Archived Topics
Remove Filter ![]() | |
This is my first C program. I am modifying an existing program to have input and when I added two lines of code to 1) print "Enter Purchase Amount" and 2) scanf to capture the data my other printf statement received a compile error that it has the wrong # … Software Development c | |
I have a structure named "Card" in Codes.cs file which is located in Codes folder of project. The source code of this structure is as follows: [code=C#] struct Card { //Suit that this card belongs to private CardSuit suit; public CardSuit Suit { get { return suit; } set { … Software Development | |
hi there. i write a project using VS 2008 and Sql 2005.now i want to deploy it and make its setup.what should i do for sql part?it's too big to install this mass(Sql) on user system.i heard i have to use sql engine? is this true? if yes,what's that? and … Software Development sql | |
alright, so I recently obtained a reference implementation of MD5. I benchmarked it, and it ran about 30% faster than OpenSSL's MD5. The function call is as such: [CODE]fast_MD5(unsigned char *pData, int len, unsigned char *pDigest);[/CODE] it worked great for a simple MD5 hash cracker, but I had trouble tweaking … Software Development c++ | |
Hi! I run Linux (easy peasy) on my netbook and have decided to encrypt the folder of my mail-client (in this case: evolution) via encfs. So I wrote a little shell-script that does all the necessary steps: [LIST] [*]ask for the password [*]decrypt and mount the directory [*]start evolution [*]umount … Software Development shell-scripting | |
Hello,, I'v had some problem,,, when i read a file,using visual C++ 2005. example: a.txt 111,222,333, 444,555,666 with this code : StreamReader^ din = File::OpenText(fileName); String^ str; int count = 0; while ((str = din->ReadLine()) != nullptr) { count++; Console::WriteLine("line {0}: {1}", count, str ); } How can I, convert … Software Development c++ | |
Hi. I'm new to c# and have ran into a problem, I am using the following code to generate textboxes within a panel. [code] private void button1_Click(object sender, EventArgs e) { AddFields(); } private void AddFields() { if (textBoxIndex != 10) { TextBox field = new TextBox(); field.Name = "field" … | |
Hey guys! I'm requesting constructive criticism on the code that I've written so that I might get a better idea of how to strengthen my code while keeping it short and sweet, or even just pointing out unnecessary things or things that I should have added. My assignment was: [quote]Write … Software Development c++ | |
How to drag/drop labels ,that created at run time this is my code ... [code=vb .net] Private Sub server1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles server1.Click 'create new form Dim ser1 As New Form Dim l1 As New Label() ser1.Location = New Point(123, 28) ser1.Height = 95 ser1.Width … Software Development vb.net | |
hello all, i'm a biology student currently taking programming in uni, and i have a homework question to solve. i have to write a programme to create and print a one-month calendar which can be used as month and year calendars as well. the programme should be able to; 1. … Software Development c++ | |
Hi guys , i have mysql in my program , i have a button that checks if the mysql connection works , if it work a msgbox will pop up saying it works , if not it will say check your inputs .. after checking that it works and re-trying … Software Development vb.net | |
Will you please help me in my project. I need to have a graph either pie chart or bar graph. And it must connected to the database for its analysis. Is there somebody know how to do this. Thanks. Software Development vb.net | |
Hello, I am a student attempting to complete an assignment for school. The assignment is: Write an application called Palindrome.java that reads in a five-digit integer and determines whether it is a palindrome. If the number is not five digits long, display an error message dialog indicating the problem to … Software Development java java-swing | |
I m not able to replace the contents,help me out!!! [code] protected void Button1_Click(object sender, EventArgs e) { string a = "11-22-33-44-55"; string [] Array; int i; int lnewvalue; lnewvalue = 2; Array = a.Split('-'); for (i = 0; i <= Array.Length - 1; i++) { Array[4].Replace(Array[4].ToString, lnewvalue); } } … Software Development | |
Hey, I download DarkGDK for Visual C++ 2008 Express (also downloading the correct version of the Direct X SDK). I just saved the SDK in some random directory, so when I try to execute the test code, i get an error telling me d3dx9.h can't be found. So, where do … Software Development c++ | |
//This program will ask the user for k, m and n. //k should not be equal to 1. //Output all numbers multiple by k between m and n. (ex. k=2,m=5,n=20 output should be 6 8 10...18) *problem* How to exit this program when the user assigned k to 1 ? … Software Development c | |
Hi I'm running this on a mac and when i use '\n' it prints the entire contents of the pointed to text file. looking for '\r' just cause an infinite loop. Any idea what the problem might be? [code] #include <stdio.h> #include <stdlib.h> int main(void){ FILE * input; char * … Software Development c | |
Well I am writing a program for Windows Mobile phone, I need to read text files in the program, the character sets (charset) of the files I am going to read are unknown, here I need to convert whatever text(Actually I probably only need to handle UTF-8, UTF-16 BE, GBK, … Software Development api c++ windows-api | |
Hi, I wonder if you could recommend a book that talks about methods for optimization (error function minimization) in conjunction with C++? In particular I am interested in methods for numerically minimizing a multi variable error function, e.g. f(x,y,z, ...). My applications are such that I know that gradient methods … Software Development c++ | |
hai dani, how to create a vertical histogram in c using graphics header file. Software Development c | |
Hey all, I am trying to check if a .exe file is open, if it is open bring it to foreground, if it is not open open .exe file and bring to foreground. The code I have written doesnt seem to recognise if the program is open or not as … Software Development c c# c++ file-system | |
I need to read in a list of adjacency matrices from a text file. I can get it to read in and write out when there is only one matrix in the file, but can't seem to get it to read through more than one. Once I tack another file … Software Development file-system java | |
Ei guys... I'm about to make a project involving the use of a LAN cable/port and c++ I would like to use c++ to to send bit (Binary Output) outputs through a LAN cable. just like what we do with c++ and parallel ports, but this time I'll be using … | |
By using Regex I've got links from an HTML Source. But now I want to save these links into a new array so that I can later use them. I mean, I want all the "m.Groups[]" in a new array. Here's my code: [CODE] String html = getSource(); r = … Software Development regex | |
What I mean by the subject is, is it possible to print out a string that is aware of the name of the variable it is stored in? For example... I'm reading right now about overriding a class's [icode]ToString()[/icode] method, and I want to know if there exists a way … Software Development | |
I am playing with function hooking so I wrote simple program that calls DisplayMessage Function which prints out Hello.. [CODE] void DisplayMessage() { cout << "Hello"; } [/CODE] After this one i found the DisplayMessage offset its (0x00131000) now my target is write a dll to change DisplayMessage function to … Software Development c++ visual-studio | |
I am writing a small app which uses CreateFile to get handles to the volumes present on a system. The access mode specified is GENERIC_ALL and the share mode is FILE_SHARE_WRITE. The call to CreateFile is successful for all volumes barring the system volume. I googled a lot but there … Software Development c++ windows-server | |
Hi, if someone can help me how to read a line in the txt document. I know you read the first line or the entire document but i do not know how a particular line... Software Development | |
Im trying to take two different input fields and have a counter count them to see which one would reach my goal of 200 first. Im very slow when it comes to vb. Is there a timer tut that anyone knows of? Is there a base program I might be … Software Development visual-basic | |
i m developing a movie rental shop project where i have a class as name as Movie. in public there are sum functions like add movie,view movie list etc. the problem is that i don,t know what would b in private access. in movie i have the tital of movie, … Software Development c++ | |
Hi all, I would ask please about, how can I create a simulator using java, is there any tools can help in this area because usually simulators need more works with GUI. Therefore, anyone knows any library or tools can help. Thx | |
1. I have an OGLCanvas with shapes on it 2. Double clicking a shape will open up a wx.MiniFrame where the user can do certain things 3. After OK is clicked or the frame is destroyed I would like the "focus" to shift back to the canvas so that without … Software Development python | |
hey guys i know its kinda noobish not to understand them since i been coding for 1 month but there rlly some stuff which confuses me in multidimensional array and nested loops like here in this program I wanted to know if i sum up like in the array for … Software Development c | |
hi folks, I am getting the below error , I changed strcpy to strcpy_s but no result. I checked for the data types of arguments passed , they are same. No difference. I am using visual studio2005 .Net frame work. What may be possible solution? please help... if (n>0) { … Software Development c++ | |
[CODE=Java]URL myurl = this.getClass().getResource("/SummaryReport.rptdesign"); File file = new File(myurl.getFile()); System.out.println("Name=" + file.getAbsolutePath()); [/CODE] The above code seems to get the resource. But I guess I am going about creating a file connected to that resource wrong? Because I cannot subsequently open a FileReader connected to that file. . I am … Software Development java | |
![]() | I am trying to set up 4 buttons that will move through my array in the GUI. I am entering 2 items and telling the GUI to spit out the 2nd record. If I can just figure out how to get the "First" button to work, I think I can … Software Development gui java java-swing ![]() |
hi friends i have a problem.these are some components that i have in my project: form1:datagridview1(dg1) , form2:datagridview2(dg2) when i clicked on cell on dg1, form2 will be opened.now i have to double clicked on the cell of dg2 to send its data to dg1 on form1(then form2 will be … Software Development | |
OK, so I'd like to play around a bit with learning how to initialize and use microsoft SQL server compact, but I have no idea where to look for the material. I did a quick search for database howtos, but I only found stuff with what seemed to be advanced … Software Development | |
Shouldn't this code work? (select()) Well, this is basically a proxy. It takes things from a program that is running on port 15777 and the puts it out to host on port 15776, but sence I added the select() witch is needed. It hasn't been working right. Any help? [code] … Software Development c++ client-server windows-server | |
Show for session: 1. 2pm- 4pm 2. 8pm- 10pm 1 -------------------------------------------------------------------------------------------------- Enter number of adult customers 2 Enter number of child customers 1 The receipt for the purchase is: Adult 2 20.00 Children 1 5.00 TOTAL 25.00 Press Y to continue Y --------------------------------------------------------------------------------------------------- Enter number of adult customers 2 Enter … | |
Here is a code: [CODE] #include<stdio.h> #include<string.h> int main(void) { char *s1="hello"; char *s2="world"; char *s3; s3=strcat(s1,s2); printf("%s",s3); } [/CODE] What does strcat returns? Why does this code results in run time error? And one more question : Are "hello" and "world" terminated with '\0' in case of char pointers? … Software Development c | |
Hi im writing a program that returns whether an inputted number is prime or not, but Im kind of stuck... [CODE]import math def listfactors(n): # defining the function l = [] for i in range (1, int(math.sqrt(n))+1): if float(n)/float(i) == int(float(n)/float(i)): l.append(i) l.append(n/i) return l primeNum = int(raw_input("Enter number here:")) … Software Development python | |
hello, i am having a datagrid n a checkbox colmn in it.. I get the data in datagrid from the database ...after that when i check specific checkbox those row should be deleted from the datagrid / database ....i was writing the code for the same but am confused as … Software Development | |
hi,,, i am getting memory leaks in my application when i use winhttp functions like WinHttpGetIEProxyConfigForCurrentUser(),WinHttpOpen(),,,,and many others,,,,,how to deal with it??? Software Development c++ | |
Hi, Does anyone no if it is possible to remove controls like a textbox during runtime? | |
Help I need a quicker way to do this, its a combobox that assigns a number to whatevers selected and it takes up to much room and looks messy. [code] private void comboBox19_SelectedIndexChanged(object sender, EventArgs e) { if (comboBox19.Items[comboBox19.SelectedIndex].ToString() == "Clear Float") { glassType10 = 200; } else if (comboBox19.Items[comboBox19.SelectedIndex].ToString() … | |
Hi, I am writing a script that aims to help a person keep a list of characters while reading a book. In doing this, I am writing to a file and checking it constantly, except I ran into a problem. Say I executed a code block such as the following: … Software Development file-system python | |
hi! I m writing a jsp where i want the page content to change when the selected option from a combo changes...how do i execute the method that determines the code which will fetch that data....i guess i'' have to go with javascript but i dont think a java script … | |
help me on how access employee.mdb thru Data Combo and the data will display in txtbox...example in Data Combo will only display employee number and if i press employee number in Data Combo, the name, designation, address will display in textbox..how to code this? can you give me the module … Software Development visual-basic | |
Hi guys i have a question need to ask. I create an application for filling up information. After filling if he want to update when press update and fill up active = from yes to No then it will remove the table 1 to table 2 by using the sql … Software Development visual-basic |
The End.