132,726 Archived Topics
Remove Filter ![]() | |
Hi All Can some body tell me how to compare two strings that has spaces, I have inputed one string using scanf() and the other using gets(), both of the strings are array of characters. Software Development c | |
Hi Developers....... Can anybody help me......I have an array and i want to enrypt that array and save that encrypted data into a file .......how can i do this...... i don't know ....how to do Encrytion in C# Every Comment will be welcome.... Thanks...... Software Development encryption | |
I've been trying to build a java program to display the date in a MM/DD/YYYY format with constructors to link the return data, this is the initial sequence and was wondering about my get and set statement; and their format. // Date class with a constructor to // to initialize … | |
How can I check if CPoint (or any other) variable has been initialized? I'm getting error for this: if(m_pointVar != NULL) saying binary '!=' : no operator defined which takes a left-hand operand of type 'class CPoint' Software Development c++ | |
how to create set up file in vb.net , after setup has made ,if there are any modifications how to made another set up file Software Development vb.net | |
I always get an error with Line 39. It always have NullPointerException error. Could you check what is the error? Here's my code Imports System.Runtime.InteropServices Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim filen As String filen = TextBox1.Text test(filen) End Sub … Software Development microsoft-office vb.net | |
Hi, Is it at all possible to detect if a user has inputed text into a text box for example. [code] if (textbox1.Text == ("detect if text is in textbox") { // do something } [/code] | |
help! i have a gridview with checkbox item template. On confirm button click, it will insert the selected rows into the database. But, when i close and run the application again, i want those rows which was previously inserted to the database to remain checked. Means that on page load, … Software Development sql | |
I want to add my header file as #include <vcinpl.h> instead of #include "vcinpl.h" how can I manage this? Thanks. Software Development c++ | |
[code=C] #include<stdio.h> int array[]={1,2,3,4,5,6,7,8}; #define SIZE (sizeof(array)/sizeof(int)) int main() { printf("%d",SIZE); if(-1<=SIZE) printf("1"); else printf("2"); return 0; } [/code] how is SIZE casted in this example? Because the compiler believes -1 > SIZE (which is 8). Is this because it was treated as unsigned char and -1 looped around to … Software Development c | |
I have tried different things to modify the following code and have been unsuccessful. The following code is to get the julian date number. I need to alter it to make it return the day number (between 1 - 366) within a given year. Can anybody help? (fyi - this … Software Development c++ | |
This program should accept array of integers and integers that indicate the number of elements in the array. the function should then determine the median of the array. Using pointer notation. I did research to see if someone had similar problem like me, but their was only other one, it … Software Development c++ | |
Hello friends, Below is the code to unzip a zip file . However , problem occurs when there is a zip file within that zip file...please tell me how to do that? ie..unzip a file withing a zip file too...?? [CODE] private void btnok_Click(object sender, EventArgs e) { FastZip zp … Software Development file-system | |
i need help. i need to write a code that can extract word from string. i had use cin.getline(string,size) to get th string and strtok(string," ") to extarct token. now i want to know how can i insert the token in array because i want to use the token for … Software Development c++ | |
i m writing a program using C# with sentisight sdk for detecting the camera and capturing the image from the webcam. Now i can only capture the still image in the picturebox. I want to make a stream of image(like a video) before i stop the capturing. so i need … Software Development webcam | |
My program has two threads one for reading the data of the client (RXTHREAD) and putting that data of client in a structure called qstr(which contains client Ip address,message,etc), the object of this queue(put_inq) should be placed in a Structure called (que), the SXTHREAD should then pop the object put_inq … Software Development c++ client-server data-structure queue | |
Hi, anyways after few hours of searching why I was having adding a database to my application I found out i was having some permissions issues!! DAMN YOU VISTA! Anyway, now my question is how start using like Inserts, or just to be able to look at my table in … | |
Hi, Could someone tell me if there's a better way of doing this? I was asked this question in an interview and I wrote a piece of code of O(n2). // This function returns a new string of the common alphabets found in a and b char* intersection(char*a, char* b) … Software Development c | |
My question as below: 1. How to save result text to HTML in Python? 2. If i want continue append more result text in the same HTML file, how? | |
I have this program that I found on the internet somewhere. I am trying to add to it and need a little help. I am a vb.net man and I am trying to do this in C#. What this little program does it hide the taskbar, star menu, ctrl+esc and … Software Development vb.net | |
Hey guys, Say I had the following list: [1, 2, 2, 2, 3, 4,4] Let's assume that the list will always be integers. Does python have a built in feature which would take a sorted list, and then return the frequency that each element occurred. For example: 1 -> 1 … Software Development python | |
hi; I am trying to create a program that will return information stored as long as the word stop is not entered for the employee name, I cant get the program to work can some one help me with this. this what I have so far. // payroll program upgrade … Software Development java | |
I have this code working to great now. but I am trying to pretty it up and now I cant see my cout ... Maybe a new set of eyes on it will help me. I am missing something .. I may have deleted a cout but I dont see … Software Development c++ | |
Hi all, Does anyone have a good example of using Cursor.Clip? I need to be able to restrict movement to a form only when the left mouse button is pressed, so using: [CODE]if(e.Button == MouseButtons.Left){}[/CODE] Any help would be appreciated. Thanks Software Development | |
I've made an extremely basic program on my WinXP (x86) SP3 comp. All the program does is convert feet to meters, etc... I put it on my buddies computer that has vista (x86) installed on it, and it says 'the program has stopped working, windows is checking for a solution.' … Software Development windows-vista | |
Hey everybody :) So im new to programming and im using the jDateChooser from the com.toedter.calendar package the problem that I am having is that I am not able to get the current date to display ... you have to just select the date yourself ... can anyone give me … Software Development java | |
![]() | Hey guys... I was recently working on a program, which opens a music file using Windows Media Player...so I tried: [CODE]subprocess.call("C:\Program Files\Windows Media Player\mplayer2.exe",loc) # Where 'loc' is the location of the file[/CODE] But then I got to know that it won't work and that I have to use: [CODE] … Software Development python |
hi all... ok so i have a file and what i wish to do is read all the lines usilng readline() then for everyline i need to read and match lines and form groups. how i need to do this is that say for example... line[0] match move to line[3] … Software Development python | |
ListBoxObject.Itemdata (RowIndex) Software Development visual-basic | |
[code]void my_Func(char source_file[1024] , char dest_file[1024] , unsigned int Exp , unsigned long Mod) { FILE *in, *out; int counter; int Ret; in = fopen(source_file ,"rb"); if(in == NULL ) { cout << "OOps! Source file "<<source_file<<" non-existing or corrupt file\n"; return; } out = fopen(dest_file ,"wb"); if( out == … Software Development c++ file-system | |
So I was going through the course archives for our CS program and looked at some notes and quizzes from a class that was last taught in Spring of 2008 that I will be taking Fall of 2009. It's called Survey of Programming Languages and I found the section on … Software Development java ![]() | |
This is my first try with an API and HttpWebRequest Class in Visual Studio 2008 c++. I try to POST some variables to a link and want an link value from the API back, but I get an Response (not from API) : this->t_bbcode->Text = dataStream->ToString(); // [B][COLOR="Red"]System.Net.ConnectStream[/COLOR][/B] I think … Software Development api c++ visual-studio | |
Hi! I'm trying to search a html site for a spefic word and print the result thats x rows after that word. If the html page looks like: "Hello welcome to daniweb" I want to search for welcome and look for what the next word is ("to" should be the … Software Development python | |
I have a very old program in IBM BASIC for a specialized analysis called probit analysis developed by D Finney, the probit analysis guru and would like to convert it to a windows based BASIC program, like VISUAL BASIC. Suggestions will be most welcomed. Thanks Software Development visual-basic | |
I have a lot of directories that start with "td." for example i have: td.10000 td.11102 td.00384 td.35454 td.32356 Is there a way in which i can tell python to remove all directories that start with "td." ? If so, how? Software Development python | |
how do you sort dictionary in c#? the key will be string, the value will be listviewitem. i want to sort by the key. i cant use sorted dictionary. give a complete working example please, preferably attach full project for me :) Thanks in advance. Software Development | |
So I feel rather foolish for this, but I haven't used command line often. I'm using sys.argv to gather arguments from the command line. I'm saving one in particular to a variable called test. It is suppose to be a boolean; however, passing in True or False still renders if(test): … Software Development python | |
Hi, i am facing a problem on my java assignment recently which require me to read customer records from a text file and pass it into array. After that i need to change the first letter of the name to uppercase and sort it according to the name. However i … Software Development java | |
I drag Tabcontrol.& add two tab pages. I have contextmenu Strip, dat i bound to tabcontrol.I select the ContextMenuStrip & set it to ContextMenuStrip1 Now i right click on tab headers.Suppose i right click on tabpage1,contextmenu is displayed.I want that when i right click on tabpage..I want to get the … Software Development vb.net | |
Hello everyone, I'm fairly new at programmig in VB 2008 and I seem to have an issue in a program I'm developing. Basically I need to draw a bar graph with data that changes dynamically (in a real application it may change every 500 ms). The code I wrote works … Software Development vb.net | |
Hi All, I am trying to call third party dll from C program. This third party dll is written in C. I am using microsoft visual studio 2005. Could anyone please give me steps to add dll tot he project and to call from C program? I am new to … Software Development c visual-studio | |
We use Windows Form1.h to interface an existing C++ program. The existing program is changed by other people and I have to update the interface. To do that I copy all folders of the older project to a different place and then introduce the changes there. The problem is, that … Software Development c++ ide visual-studio | |
Hello, I have a problem when I try to double the length of the array if it is already full. For example, array arr has length 5, and I want to insert 7 elements in it. This is what should I get: arr = [1, 2, 3, 4, 5, 6, … Software Development c++ | |
I have a function under Base class and at the definition tine of this base class function I need to call another function which is define under the Derived class. how to do this?? My class declaration is below [code]class Base{ public: void showdata(double); }; class Derived : public Base{ … Software Development c++ | |
<< split from [url]http://www.daniweb.com/forums/thread67837.html[/url] >> I need to print post #15. How do I do that? I can't seem to find the button. I need it just as it was written here. Also, do I need to know C++ classes in order to be able to implement the in-game classes? … Software Development c++ | |
Hello, i'm a newbie to Linus so there are many commands that keep me questioning. My task is to write a program that will execute a list of commands from a text file. Everything go smooth except for the command execve, its prototype is something like [iCODE]int execve ( char … Software Development c | |
Hi, I'm a student in Computer Science and we have a machine project due on August 20. The problem is, the professor only taught us the basics of C programming, the functions, switch statements and whatnot, and now they're giving us a project about making a game. The game is … Software Development c machine-learning | |
I've copied an entire project/solution to another folder so I could create a different version. I made some changes in the source code that is unrelated to the Windows user I/O stuff. I've done that before, but this time, it found errors in a... form1.h instead of Form1.h Where did … Software Development c++ | |
Hello Friends, I know how to connect to MS Access Database using DAO, in Visual Basic 6.0. I am new to Winsock Control. I completed some basic tutorials of Winsock, so I know how to send messages from Client to Server & vice versa. But now, I want to to … Software Development client-server visual-basic | |
Private Sub Form_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then SendKeys "{Tab}" End Sub Software Development visual-basic |
The End.