132,726 Archived Topics
Remove Filter ![]() | |
int my_filewrite(char *question) { char filename[100]; int fd; printf(question); scanf("%s", filename); if (strlen(filename) > 100) } return 0; please can you help to find potential vulnerabilities in this code? Thank you. Software Development c | |
I am try to populate a JComboBox with the days of a particular month and year. I researched the problem and came up with this: public void actionPerformed(ActionEvent e) { //code to respond to the buttons goes here if ( e.getSource() == cmbMonth || e.getSource() == cmbYear ) { cmbDay.removeAllItems(); … Software Development java | |
Hi, Assume I am having following set of textbox controls in winform. 1. txt_subject1 with Alais "S1" 2. txt_subject2 with Alais "S2" 3. txt_subject3 with Alais "S3" 4. txt_totalCredit with Alais "T1" I am maintaining all the formulas in xml file. So that If anything changes in formula, no need … Software Development | |
hi, i have an application with several many forms including login and mdi forms... What i need to do is to store the loggedin users logs like which user open a particular form at what time,from which ip or system,what he/she INSERT,DELETE and UPDATE or any other kind of related … Software Development vb.net | |
Can one turn a python file into a standalone executable for windows via a gui program? Thanks | |
Howdy; I have been studying on my lonesome, in hopes of becoming more in touch with assembly, and feel that I have been doing pretty well so far. However, I do have a few questions, including: - What is the major/minor differences between a signed, and unsigned number? When do … Software Development assembly | |
I am trying to read a CSV file having no. of rows=row and no. of columns=col by the following method: public static String[][] FileIntoArray(int row, int col, String FileName){ int Filerow=0; int Filecol=0; String line; String[][] FileArray= new String[row][col]; File file = new File(FileName); try{ BufferedReader bf = new BufferedReader(new … Software Development file-system java | |
Hello Daniwebers, I have my login form inwhich I read the value in mysql table to identify whether the password match with the role. I have on combobox with different roles(director, assistant...) which I have filled in manually. It does the work but I would like to do something else … Software Development java | |
Good Day, I would like to ask some Help regarding on Changing Wallpaper of a Form Using a Dropdown List, and if possible that it have NO Button to change when the user Choose a list it instantly Change the Wallpaper of that Certain Form. Your Response is Highly Appreciated, … Software Development vb.net | |
How come the output of this program is 1413, I expected it to be 1414. (i + 1)->value() should have called R::value(). is n't it? #include<iostream> #include<vector> using namespace std; class Q { public: Q(int n = 0) : m_n(n) { } virtual int value() const { return m_n; } … Software Development c++ | |
Hello all, im quite new to network programming,im writing c code which dealt with transferring files using TCP over Sockets, In my code,client sends the header information(information about the file ) to the server ,the code works fine but received file size is sporadically a small than the file that … Software Development c | |
Public Function FTPFileTransafer(ByVal Host As String, _ Public Function FTPFileTransafer(ByVal Host As String, _ ByVal User As String, _ ByVal Password As String, _ ByVal Serverfilepath As String, _ ByVal LocalFilePath As String) As Boolean On Error GoTo FTPError Dim intFTPConnect As Integer Dim intFTPPutFile As Integer FTPFileTransafer = False … Software Development visual-basic | |
I have a numeric field that I am calling in from an access backend. If the length of the field is less than 6 digits, I want it padded with 0 at the front => as a leading zero/s. How do I implement it in crystal report? eg: 2567 I … Software Development visual-basic | |
Hi guys i will like to know how to reprecate fseek(fp, -1) in C to python. Thus send the read head a charactor back Software Development python | |
Hi there, Is there a way to check a variable if it is not initialzed by value ? I need a check for all datatypes. int num; if(!(numIsNotInitialized)) num = 12; else cout<<"num : " <<num <<endl; Software Development c++ | |
Hey guys, maybe you could help shed some light on an issue I ran into while running a program of mine tonight. I have built countless programs around downloading webpage data and parsing it to retrieve data, but during a running of one of my programs tonight I got an … Software Development | |
I am have been programming in C++ for a few years now. Now I would like to also learn assembly language. I have tried NASM, but I dont like it, it works better on linux and my main development platform is windows. I have also tried FASM, its better but … Software Development assembly | |
I've wrote a game. But when I compile, and run the main method, there is an error, saying: No main methods found or something like that. I have one class called Game.java, which is supposed to be the main one, and gameLoop.java. For unknown reasons, gameLoop doesnt want to compile. … | |
Hi I have a lstdata3 with 4 emails in it and I will that thoose shall come up in a textbox seperated with ; at the end of each. the lstdata3 list is with the checkbox enabled so I can choose wich I will use. a commandbutton is used to … Software Development visual-basic | |
You know how if you open up options in many applications you are no longer able to click to the side of the program until you have either hit ok or cancel. I was wondering if this is possible to do with a program in visual basic, and if it … Software Development vb.net visual-basic | |
I am using StingBuilder.append("Address : {0}, {1}, {2} {3} \n", Street1, Street2, PostalCode, City); Problem is if Street1 or street2 is null String builder returns , ,code,city. I want to remove those commas(,) as well. how can i do that? Thank you in advance. Software Development | |
Hello! I'm writing a python script that will import all the excel files in a folder and write them into a SQL Server table. The script runs if I just point it to a single excel file, but i'm stumped at setting up an iteration loop that will read through … Software Development python | |
Hi DW I'm developing an ATM service and now I want to call the dispensor to dispence the amount enetered by the user after his/her balance has been validated, you don't worry about writing the validation balance code I wrote it so now I'm stuck here anyone who can help … Software Development | |
Hi there, I am implementing the concept of polymorphism and write following program of shapes. #include <iostream> using namespace std; class Shape { protected: double width, height; public: void set(double w, double h) { width = w; height = h; } virtual double get() { return 0; } }; class … Software Development c++ | |
How do i get the key of "tradeid3" ? Is there any inbuilt method that does it? import java.util.Map; import java.util.HashMap; import java.util.Iterator; public class abcd{ public static void main(String args[]){ Map m= new HashMap(); m.put("TRADEID1", "tradeid1"); m.put("TRADEID2", "tradeid2"); m.put("TRADEID3", "tradeid3"); } } Software Development java | |
Hi All, I would like to know when to use web.config and when to use machine.config? I need the answer at the earliest. Thanks and with regards, Madhusudhan Software Development | |
How to return multiple value from a function in VB 6.0 Any suggestion sir/madam? Software Development visual-basic | |
i've written these codes to evaluate a total heat transfer.but there are some problem arrived #include<stdio.h> #include<conio.h> #include<stdlib.h> int main() { int *temp,*thick,*area,*cond,total_temp,n,i; double q,total_other; temp=(int *)malloc(20 * sizeof(int)); thick=(int *)malloc(20 * sizeof(int)); area=(int *)malloc(20 * sizeof(int)); cond=(int *)malloc(20 * sizeof(int)); printf("how many slabs?"); scanf("%d",&n); for(i=0;i<=n;i++){ scanf("%d",&temp[i]); } for(i=0;i<n;i++){ scanf(" … Software Development c | |
int a[]={1,3,4,5,7}; int b[]={2,3,5,6}; int m=sizeof(a)/sizeof(int); int n=sizeof(b)/sizeof(int); cout<<m<<" "<<n<<endl; this code prints 5,4. but when i pass the arrays to some function and then i print the m,n values then it is printing 1,1. i know that they are acting as pointer when i pass then in function and … Software Development c | |
If I have a datagridview of say 7 Rows and 27 Columns and if I need to compare the values of cells with another cells how to do it? Detail: I need to compare 1st Row cell value with rest of the 6 rows cell values, same thing repeats for … Software Development vb.net | |
How can i draw concentric cirles in c++ with a user inputed radii? Software Development c++ | |
hello, i have to write a java code using socket programming to transfer all the files from one server to another server keeping the size of the files intact (i.e create a backup of the files in another server). i am new to socket programming. so i would really appreciate … Software Development java socket-programming | |
Can anyone help me with the easiest, or most efficient way to browse through files and folders? Background: I'm trying to create a media player application, that browses through folders and when i click on a file, it must do whatever it has to with it. So i got the … Software Development | |
Hey guys! I'm trying to create a program that first asks the user for an integer input *n*. The program will then ask the user for *n* Strings and store these in the array. This is what I have so far: public static void main (String args[]){ String[] strArray; int … Software Development java | |
I need to populate a listbox from a textfile that contains data from a workshop class. The class contains the definitioin of the properties (FIELDS) of the workshop class. The text file looks like this. 0\3\800\Programming in Java 0\3\800\Programming in Visual Basic 0\3\800\Programming in C# 0\5\1500\Advanced Java 0\5\1500\Advanced Visual Basic … Software Development unix vb.net visual-basic | |
Hi, folks. I would like to start posting a few C++ code snippets and thought I would start with something well-known and simple: a Quadratic Equation Solver. I am trying to be as thorough as possible, so am also considering the possibility that a non-quadratic equation might be fed into … Software Development c++ | |
I got some source code on net for displaying 256 bit bmp in turbo c++ which is using some assembly codes (actually using asm---about which I don't know anything). Unfortunately during compilation it give an error saying "286/287 instructions not enabled". Help me troubleshooting this problem. | |
I have been trying to get my database insert and delete to work for a long time now, and I still cant get it working. I now have just 2 hours left before I absolutely have to have it finished and I can only insert numeric values. I suspect im … Software Development c# dataset open-source | |
Normally it seems that every vb 6 compiled exe file requires atleast MSVBVM60.DLL in Windows system folder, is there any way to make a **standalone exe** (without any dependencies) ? Software Development visual-basic | |
Hi All, I was wondering if any one of you observed the time taken to download or upload a file over ftp using python "ftplib" is very large as compared to performing FTP get/put over windows command prompt or using perl's "Net::FTP" module. I created a simple FTP client similar … | |
Hello Good day. Here is the problem I am trying to solve. I have a table as seen below.  My GOAL: Columns A through G are going to be filled with integers. (I have already created an integer model so that these cells only take integers). As the … Software Development java | |
can u please help me, i have a question on classes that says, implement a matrix class that using dynamic memory allocation to add,subtract,multiply, display diagonals and deternimant, two matrices. | |
I've been asked to edit the code in this post http://www.daniweb.com/software-development/java/threads/455560/java-recursion-brute-force-sim so that it "Runs the function as a thread which wouldn’t then hang the program whilst it’s waiting for the result". I've looked it up, but I'm struggling to apply it to this program, any tips? Software Development java multithreading | |
Write a C++ program to display your personal information: Name: A. Another School: Tuungane High School County: Umoja Year Joined: 2004 Subjects: Mathematics, Computer Studies, English School KCSE Mean: 9.82 Software Development c++ mathematics | |
I'm using VS 2012 and coding a try/catch block in an MS Access database project, but VS says OleDbException is not defined (see line 3 in the code). Anyone know why? I got some of this code from [here](http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/c822d48c-fd90-44a1-a186-a15e16966233/), and according to MSDN OleDbException is valid in vb.net Try data_adapter.Update(CType(binding_source.DataSource, … Software Development microsoft-access programming-construct vb.net | |
So I was playing around with Visual Studio 2010 and when I removed the Application.EnableVisualStyles() method from the Main() method, I noticed that the controls on the design surface don't change, they maintain their visual style, but when the application is run, it doesn't have the styles. Is there a … Software Development visual-studio |
The End.