43,549 Solved Topics
Remove Filter ![]() | |
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++ | |
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] | |
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++ | |
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++ | |
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 | |
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'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 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! 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 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 | |
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 | |
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++ | |
Hello all, I have what at first glance seems like a very simple problem but I have been getting bogged down with it for the last few days now and would appreciate some help. I have a series of text files to read in, and wish to convert them to … Software Development c++ file-system | |
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++ | |
how can i connect SQL(local server) to VB6?? Please give me the STEP BY STEP PROCEDURE.. i dont really have idea on how to connect SQl to Vb6 Software Development sql visual-basic | |
I'm probably going about this in the wrong way, but I have a stack of Objects, and some of these can be ArrayLists. I want to be able to pop an object that is actually an ArrayList off the stack, unbox it, add something, and then pop it back on. … Software Development | |
I can't figure out how to make my save function append to the txt file it always overwrites. Also, I'm trying to figure out how to make each set of words on a newline in the text file. Here is the function: [code] BOOL SaveTextFileFromEdit(HWND hEdit, HWND hEdit2, HWND hEdit3, … Software Development api c++ windows-api | |
Hello! I am trying to open this CSV file separated by semicolons. I know how to open a text file and I tried searching the way to open a CSV, but most methods seemed extremly complicated. Does any one have a simple suggestion that would work with what I already … Software Development c++ | |
Im using [code]For Each foundFile As String In My.Computer.FileSystem.GetFiles( _ My.Computer.FileSystem.SpecialDirectories.MyDocuments, _ FileIO.SearchOption.SearchAllSubDirectories, "*element.txt") ListBox1.Items.Add(foundFile) [/code] to get file paths. There are 3 elements for example. And i need them to become variables. (a,b,c) And show in labels [code] Label1.text= a Label2.Text =b Label3.Text =c [/code] Label1 will show the … Software Development vb.net | |
i have a datagrid view. i am using data table to display data [code] oledbcon.Open() m_daDataAdapter = New OleDb.OleDbDataAdapter("Select * from Customer", oledbcon) m_daDataAdapter.Fill(m_dtCustomer) m_cbCommandBuilder = New OleDb.OleDbCommandBuilder(m_daDataAdapter) m_rowPosition = m_dtCustomer.Rows.Count dataGridView1.DataSource = m_dtCustomer oledbcon.Close() [/code] this works great. later i want to display only those records tht the user … Software Development vb.net | |
Hi All, I have recently installed Visual Studio 2005 after system recovery... and now when I start debugging any program, it shows me the following error : [b]"Error while trying to run project : Unable to start debugging. The Binding handle is invalid."[/b] Please Help. Software Development vb.net visual-studio | |
Hi people. I have a time and attendance module in VB6 which saves transactions (ADO) in MS-SQL if there is a LAN connection, and save it locally (MS Access) when offline. The trigger is when someone logged in. This is what I did: [Code] Set cn = New ADODB.Connection cn.Open … Software Development sql visual-basic | |
simple want when user click on close form button.all the form should close except Mdi form.but MDI Form also get close.Kindly let me know. any help would be Highly appreciated.here is the code what i have written. [code=vb] Private Sub FrmClose_Click() Dim frm As Form For Each frm In Forms … Software Development visual-basic | |
I am writing a program that reads paragraphs from a word document and puts them between XML tags. I have a class which handles the loading and reading of the word document. The document loads fine, and the program can read all the words into the program, but not on … Software Development microsoft-office vb.net xml | |
Hello. Im new to Java. I don't know much about Java's codes but I have a good background in C. Im using NetBeans 6.7. I have this code: [code=java] package javaapplication1; public class Main { public int x = 3; public int test(){ x += 4; return x; } public … Software Development java java-netbeans | |
hello , here is my code below to unzip a file and list only the file names contend in that folder in the listbox below , the code is working properly however am unable to get only the file name in the list box. In the listbox i get entire … Software Development | |
at 1st: class name entry in a text box (by add new button). access file is store it. then in a another form (when a student admitt) enter all data of this student (in few text box) without class name. when I want to entry the class name then I … Software Development visual-basic | |
hello, Below is the C# code. When i run it i get an error saying cannot convert char to string in the foreach statement. Please help me out...am unable to figure out whts the problem! awating replies..... [CODE] private void DisplayFiles(string DirPath) { string Root = null; Root = txtdestination.Text; … Software Development | |
its supposed to zip folder content recursively, which it does until it encounters a folder with both an empty folder and a non-empty. or so i think. i used the following structure to zip: [URL="http://img291.imageshack.us/img291/6120/84976017.jpg"]http://img291.imageshack.us/img291/6120/84976017.jpg[/URL] if untitled folder is removed it works. any tips would be much appreciated. [code=java] import … Software Development java | |
I'm currently using the old SetWindowRgn method to create a form with rounded corners but the edges of the corners produced are horribly pixelated. Is there any way to have a form with rounded corners that are smooth? Software Development pascal | |
I was wondering. Is there any function like strtok to split into tokens a string, which is c++ standard? Also is there a way to store those tokens into separate char arrays? Thank You Software Development c++ | |
![]() | I'm trying to allow a user to find a specific string within a DataGridView column and replace it with another string.....not necessarily requiring them to replace the whole string but to change a word within the string. for example: Find What: GLAND it searchs the column and finds GLAND STEAM … Software Development vb.net |
I am planning on making a biometrics attendance system. I have the hardware and planning on creating a software. My question is Whis VB to use. VB.Net or VB 6.0? Or other language to suggest? I am a Intermediate user when it comes to VB 6.0 and C++. Thanks in … Software Development vb.net | |
Hi, I'm a newbie to python and I need to extract numbers from a path name. A path name such as: /grups.google.com/grup/cmp.lng.pythn/browse_thread/thread/8_ee63e_[B]17[/B]del_0c12d And I'm trying to get it to take out the 17. I thought I could just do: [ICODE]det file = /grups.google.com/grup/cmp.lng.pythn/browse_thread/thread/8_ee63e_[B]17del[/B]_0c12d index = det_file.find('del') dent = det_file[index[-2]][/ICODE] This … Software Development python | |
Hi all, I has to develop a utility GUI using java, as it is very tedious doing programmitically. Anyone knows of a good free tool or plug-in for eclips for building java-based GUI, which can be editable programmatically. i know of Netbeans Desktop application but it generates horrible code. plz … Software Development gui java java-netbeans | |
Hi, This is a very simple question, but I just couldn't figure out any set of keywords that would point to an obvious answer. So here we go. Code example: int array [size] ; Size is, for example, given as an argument. Is this array initialization static or dynamic? It … Software Development c++ | |
Hi.I'm trying to make a program that blocks speed programs like speedgear. I'm currently blocking it with this code block [code] ProcessMemoryReader pReader = new ProcessMemoryReader(); pReader.ReadProcess = p; pReader.OpenProcess(); byte[] NewVal = x; int store = 0; IntPtr BaseAddress; BaseAddress = new IntPtr(0x0043B382); x = pReader.ReadProcessMemory(BaseAddress, 6, out store); … Software Development | |
hello. here i go again... were learning Arrays this week, and after a lot of trial/error, ive finally created a program that actually runs and compiles. my issue of the matter now is being able to put the user's 4 numerical inputs in order from low to high. if anyone … Software Development c++ | |
Hi all., I want to make a small and simple game for kids, where they need to compare between different shapes of polygons. So in this game, there will be a button, loading different Polygons, with transparent background. i REALLY preffer it will be with the Animated GIF of RxLib, … Software Development pascal | |
Hello, I have a question. How can i determine if an email address is in the correct format. I use the System.Net.Mail.MailMessage to send my messages. I am getting my To email addresses from the database but when the address is not in the correct email format the program stops … | |
Hi, I have been doing c++ for about a month and a half and have done 26 tutorials on Youtube and I feel rather proud of learning something I have wanted to do since I was 13 (I'm 20 now) and that is to program. Back to the point. I … Software Development c++ | |
I saw this small code of a program to print HI without a semicolon in the program. I don understand how it works. [code] int main() { while(printf("HI")-2) {} } [/code] Any help would be appreciated. Software Development c | |
Hey, so I'm trying to make a program that sorts user inputted "pancake sizes" and then outputs the result after a selection sort. My problem is that with an input of 12.3, 14.2, 15.2 etc(doubles) the program won't work, and I have no idea what to do for the parameters … Software Development c++ | |
hi can anyone help me out in detecting broken/corrupt images (jpeg, gif, png) using c# code. - rahul Software Development image |
The End.