132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for wauspe

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
Member Avatar for Ezzaral
0
170
Member Avatar for Jorox03

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
Member Avatar for Jorox03
0
220
Member Avatar for visweswaran28

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
Member Avatar for N4JRY
0
152
Member Avatar for sidyusuf

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
Member Avatar for Reverend Jim
0
682
Member Avatar for Jacklittle01

How do I use pylunch? Step by Step would be awesome!

Software Development python
Member Avatar for JeoSaurus
0
144
Member Avatar for Jacklittle01

Can one turn a python file into a standalone executable for windows via a gui program? Thanks

Software Development gui python
Member Avatar for vegaseat
0
370
Member Avatar for pbj.codez

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
Member Avatar for ShiftLeft
0
136
Member Avatar for abra_ka_dabra

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
Member Avatar for JamesCherrill
0
257
Member Avatar for london-G

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
Member Avatar for JamesCherrill
0
160
Member Avatar for eos.paks

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
Member Avatar for GeekPlease
0
119
Member Avatar for mahesh113

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++
Member Avatar for Lucaci Andrew
0
168
Member Avatar for prathiyus

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
Member Avatar for rubberman
0
204
Member Avatar for rahul.gour

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
Member Avatar for tinstaafl
0
255
Member Avatar for game06

i can some one help me with jframe and panel. i want to create button using jpanel. i look online but they seem to have different ways to do it and i have no idea which is the best way to do this. ex some people extends jframe at top. …

Software Development java
Member Avatar for pbj.codez
0
256
Member Avatar for Pixelzzz

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
Member Avatar for GeekPlease
0
214
Member Avatar for otengkwaku

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
Member Avatar for TrustyTony
0
160
Member Avatar for new_developer

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++
Member Avatar for mike_2000_17
0
357
Member Avatar for JOSheaIV

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
Member Avatar for JOSheaIV
0
292
Member Avatar for MasterHacker110

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
Member Avatar for pbj.codez
0
380
Member Avatar for Start4me

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. …

Software Development gaming java
Member Avatar for Start4me
0
356
Member Avatar for LeNenne

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
Member Avatar for LeNenne
0
127
Member Avatar for schroaus

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
Member Avatar for tinstaafl
0
231
Member Avatar for jrosh

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
Member Avatar for gusano79
0
164
Member Avatar for KatJ9

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
Member Avatar for KatJ9
0
481
Member Avatar for Mr.M

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
0
100
Member Avatar for karan.rks

hey everybody im new to java i have a book and im learning the language from it but i want to know a compiler where i can run the programs i have "IDEA" but it is really confusing can anybidy help me please???

Software Development java
Member Avatar for stultuske
0
198
Member Avatar for new_developer

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++
Member Avatar for new_developer
0
184
Member Avatar for abra_ka_dabra

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
Member Avatar for stultuske
0
176
Member Avatar for cumadhu

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
Member Avatar for perezvarm
0
658
Member Avatar for P.manidas

How to return multiple value from a function in VB 6.0 Any suggestion sir/madam?

Software Development visual-basic
Member Avatar for P.manidas
0
3K
Member Avatar for general2012

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
Member Avatar for general2012
0
249
Member Avatar for nitin1

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
Member Avatar for Banfa
0
120
Member Avatar for vishalonne

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
Member Avatar for ddanbe
0
4K
Member Avatar for oosinoots

How can i draw concentric cirles in c++ with a user inputed radii?

Software Development c++
Member Avatar for adam tolstoy
0
157
Member Avatar for trisha mehta

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
Member Avatar for trisha mehta
0
5K
Member Avatar for Cameronsmith63

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
Member Avatar for tinstaafl
0
178
Member Avatar for laguardian

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
Member Avatar for stultuske
0
526
Member Avatar for TheOneTopCat

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
Member Avatar for GeekPlease
0
563
Member Avatar for DavidB

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++
Member Avatar for DavidB
0
337
Member Avatar for sanyam.mishra

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.

Software Development assembly c++
Member Avatar for sanyam.mishra
0
727
Member Avatar for pwolf

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
Member Avatar for pwolf
0
241
Member Avatar for mridul.ahuja

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
Member Avatar for Reverend Jim
0
154
Member Avatar for dilbert_here00

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 …

Software Development perl python
Member Avatar for dilbert_here00
0
541
Member Avatar for harinath_2007

Hi folks.. Here comes the same old question ..."How to get the source code for an exe file??" Firstly , i am bored of asking this question as i dont think it is possible.. But what made me to re-ask this question is the excitement of some file that i …

Software Development c
Member Avatar for deceptikon
0
140
Member Avatar for CoilFyzx

Hello Good day. Here is the problem I am trying to solve. I have a table as seen below. ![232465554203149acd8363d3a4a127ae](/attachments/large/3/232465554203149acd8363d3a4a127ae.jpg "232465554203149acd8363d3a4a127ae") 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
Member Avatar for CoilFyzx
0
452
Member Avatar for motlatsisehole

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.

Software Development c c# c++
Member Avatar for Ancient Dragon
0
141
Member Avatar for poopuh

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
Member Avatar for JamesCherrill
0
645
Member Avatar for njoguj

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
Member Avatar for new_developer
0
116
Member Avatar for Ancient Dragon

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, …

Member Avatar for Ancient Dragon
0
240
Member Avatar for zachattack05

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
Member Avatar for zachattack05
0
192

The End.