132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for moone009

Hello! Basically I need this program to go line by line down my text file and tell me if it sees "000-00-0000"......we use this as a dummy number otherwise the file wont process. Right now the program will tell me it sees "000-00-0000" in the file but a few lines …

Software Development c c# c++ regex
Member Avatar for Mitja Bonca
0
5K
Member Avatar for emcyroyale

Hello, I am making a program that tries to identify if an inputted word is a palindrome( word or number that reads backwards and forwards the same) but with the Pali() method of my program I have found out that when I compare the substring of letters it always ends …

Software Development java
Member Avatar for JDCyrus
0
194
Member Avatar for Duki

Does anyone know what this is? It's in a piece of code I'm trying to debug, and I've never seen it: [code=c++] typedef void FAR * socktag; [/code] Also, could someone explain the difference between these two lines (after the typedef executes): [code=c++] socktag SMTPSock; int SMTPSock; [/code]

Software Development c++
Member Avatar for Ancient Dragon
0
2K
Member Avatar for rhuffman8

I am relatively new to Python and just have a couple quick questions about using file paths in Python code. 1) As I was recently playing around with the command line, I could not get a file path to work correctly unless I used forward slashes in the path...for example: …

Software Development file-system hard-drive python
Member Avatar for richieking
0
403
Member Avatar for sohel807

Why I have not seen any underline with the menu items although I have put "&" within the menu names. My code is as follows: [CODE]import wx import os class MainWindow(wx.Frame): def __init__(self, parent): self.dirname='' # A "-1" in the size parameter instructs wxWidgets to use the default size. # …

Software Development python
Member Avatar for richieking
0
281
Member Avatar for DoctorGiraffe

Hello! Yes, This is my first post. And it might seem a little selfish that i just joined to ask a question, so don't worry, i'm not gonna ask and run, i'll stick around. So my problem, what im trying to do is using regex i'm pulling information from a …

Member Avatar for codeorder
0
991
Member Avatar for eiven_05

how to transfer data from datagrid to textbox using vb6.0????

Software Development visual-basic
Member Avatar for AndreRet
0
595
Member Avatar for abelingaw

How do i populate a combobox with values from a certain field on my database when i click the control? My combobox control name :cbodept Dbase table: Offices and Dbase Table field is: Office Preferably code. Thanks

Software Development visual-basic
Member Avatar for AndreRet
0
107
Member Avatar for vbx_wx

[code] a = 10 def foo(x = a): print x a = 5 foo() [/code] Can someone explain why it prints 10 ?

Software Development python
Member Avatar for vbx_wx
0
102
Member Avatar for arthurav

I am creating a template class for working with matrices and get an error when I try to use the overloaded << operator. This is the code: [CODE]#include<iostream> #include<string> #include<conio.h> using namespace std; template <class T> class matrice { T **a; int m,n; public: matrice(); matrice(int,int); matrice(FILE *); matrice(int,int,T **); …

Software Development c++ os-x visual-studio
Member Avatar for vijayan121
0
2K
Member Avatar for james6754

[CODE] TextReader myreader = new StreamReader; [/CODE] Is this inheritance...?? Thanks

Software Development
Member Avatar for kvprajapati
0
80
Member Avatar for paulablanca

Hello! Anyone could tell me how to set the limit of a certain column to accept 10 the same inputs only. I have a table named Date and I want to limit its content for the same inputs to 10 only cause 10 person only can have the same date. …

Software Development vb.net
Member Avatar for paulablanca
0
173
Member Avatar for sanjon

Hello, I have just started using databases, but I am totally stuck. I made a database and table using MS Access. The table has three columns. ID, Code, and Letter. Basically, the Code column stores a number for each letter (eg. 1 = A, 2 = B, 3 = C, …

Software Development microsoft microsoft-access vb.net
Member Avatar for kvprajapati
0
101
Member Avatar for MrCapuchino

Hello, I have a CHM file created that opens through a button of my Windows Form Application. I don't know if it has to do with c# or the file itself, but when I open the file it opens succesfully but it shows first the "This program cannot display the …

Software Development
Member Avatar for MrCapuchino
0
108
Member Avatar for MrCapuchino

Hi, I have a form which has the property StartPosition set to Center Screen It works, but if I change the property FormBorderStyle to something, the Center Screen property stops working? Why is this happening? Thanks in advance

Software Development
Member Avatar for darkagn
0
188
Member Avatar for LianaN

Hi! I am working on scaling the image that is placed in JLabel. The scaling method itself works more or less fine, however a black border appears around the image after scaling. I tried to make the transparent/white JLabel background, but my attempts failed. Please explain me how could I …

Software Development image java
Member Avatar for LianaN
0
450
Member Avatar for Mr.BunyRabit

Hey there I have a part in my program where it should calculate the total in one column of my datagridview. All goes well and good while there are no Null values between them in my column. So i thought ill use exception handling seeing that my If statement throws …

Software Development c++
Member Avatar for Mr.BunyRabit
0
99
Member Avatar for rusl07cl08

Write a program that computes XN where X is a floating point number and N is a positive integer. The program informs the user that N must be positive if the user enters a negative value. Of course, XN = X * X * X * ... * X -------------------- …

Software Development java
Member Avatar for Akill10
0
670
Member Avatar for mette-mari

Hi all, I have been reading up on creating a C# application that can take plugin and understand the principals of that. However all the examples read have it so that when the DLL is called it creates its own form with controls on it. What I would like to …

Software Development
Member Avatar for mette-mari
0
132
Member Avatar for DragonL

I have a problem whit load of xml file into Oracle using StringBuffer. I get a java.sql.SQLException error “setString can only process strings of less than 32766 characters”. My problem a cure when I try to bind the CLOB with the prepared Statement in the StringBuffer. There are no problem …

Software Development java oracle xml
Member Avatar for masijade
0
420
Member Avatar for privs

Hi I am new to C++ and am using borland studio 2006 C++. I recently have been forced to take over the support for the C++ and have been given a number of complax C++ programs and these programs read and write to the registry. Now the problem comes in …

Software Development c++
Member Avatar for jonsca
0
210
Member Avatar for efronefron

I have been racking my brains to find what's wrong with my code... been playing with it for an hour or so but it seems to still be wrong.. Please anyone can point out the mistake? Im so frustated right now.:yawn: the answer to the question is 21124, but this …

Software Development c
Member Avatar for efronefron
0
602
Member Avatar for simply_viks

please send me n example for string concatination using ACE ACE_CString.. thanks.

Software Development c++
Member Avatar for hvalola
0
89
Member Avatar for Janu Sam

Hi, In my application, I am creating a string array in a method. Each time I call that method this array will get created and also a null pointer exception is showing when I use the Arrays.sort() method. My method is like this... [code] int count = getTotalXMLCount(); envArray = …

Software Development java
Member Avatar for Janu Sam
0
386
Member Avatar for game4tress

Hi I need to migrate an application from MS Access to SQL Server (2005), and i'm using the code bellow, but i'm getting an error when the compiler reaches the AddNew instruction. It gives me "Run-time error '3027': Can't update. Database or object is read-only". [code] Dim DBTesteSQL As Database …

Software Development client-server sql visual-basic
Member Avatar for AndreRet
0
377
Member Avatar for deanus

Hi all, Is it possible to define a preprocessor constant using another constant and a string in the declaration, like this: [CODE] #define MAIN_PATH = "C:\\My Documents\\" #define SUB_DIR = MAIN_PATH + "MyFolder\\" [/CODE] I'm using VC++ 2010 Express... Thanks, Dean

Software Development c++
Member Avatar for Banfa
0
207
Member Avatar for srinivasan12345

hi, i want to receive a ascii value from rs232 port and then it should be displayed in terms of decimal.. i am using VB for programing... the ascii value comes from a micro controller.. can anyone help me...

Software Development visual-basic
Member Avatar for AndreRet
0
126
Member Avatar for jamojo

Hello Everyone, I created a java code that runs batch files. Then, I deployed the java classes in apache-tomcat-5.5.26. The code worked when I ran the tomcat manually but when I ran the tomcat as a windows service, it did not work. I checked the tomcat log files but apparently …

Software Development apache java
Member Avatar for ~s.o.s~
0
151
Member Avatar for eiven_05

when you type a last name on the textbox then on the datagrid,for example i ype letter "S" then the datagrid will show all the las names that starts with letter "S" how it is???

Software Development visual-basic
Member Avatar for AndreRet
0
102
Member Avatar for coco24

Hello I am new to Java and I have no idea where to start with this program. Can somebody please start me off or display how you would execute the code. Thank you. This is what I have so far, but it is just the basics: [code] /* * For …

Software Development java
Member Avatar for JKP()
0
122
Member Avatar for anirudhruia

[CODE]#include<stdio.h> void string_copy(char str1[],char str2[]); int main() { int i; char str1[10],str2[10]; printf("please enter a name(string 1):"); gets(str1); printf("please enter a name(string 2):"); gets(str2); string_copy(str1,str2); printf("string 2 copied to string 1"); for(i=0;i<10;i++) { printf("%c",str1[i]); } return 0; } void string_copy(char *p1,char *p2) { int i; while((*p2)!='\0') { for(i=0;i<10;i++) { *(p1)=*(p2); …

Software Development c
Member Avatar for WaltP
0
165
Member Avatar for vineeshvs

[CODE] #include<stdio.h> #include<stdlib.h> int **transpose(int **x,int m,int n); main() { int nrows=2,ncolumns=2,i,j,k=0; //memory allocation for array x int **array; array = malloc(nrows * sizeof(int *)); if(array == NULL) { printf("out of memory\n"); return 0; } for(i = 0; i < nrows; i++) { array[i] = malloc(ncolumns * sizeof(int)); if(array[i] == …

Software Development c motherboards-cpu-ram
Member Avatar for vineeshvs
0
353
Member Avatar for dejanc

Hello members of CodeProject, I have a project, a database with employee information (name, town, birthday, HireDate, etc). I have add custom TextBox (on fly), and on that TextBox a code: [CODE]TexBox1.text = DateDiff("d", HireDateDateTimePicker.value, Now) [/CODE] which is calculating how many days worker is working in company from HireDate, …

Software Development vb.net
Member Avatar for dejanc
0
246
Member Avatar for geetajlo

hi friends... i want to link a buuton to an html page. i knx there is its control in the toolbox bt i don't know how to use it.. need help plzz

Software Development html-css vb.net
Member Avatar for leokuz
0
2K
Member Avatar for mikecolistro

Hi i'm in a university class, and i'm working on a little assignment that is supposed to have an int array and have assorted functions to do things to the array currently i have two of the four functions working and i'm having trouble with the function that is supposed …

Software Development c perl
Member Avatar for ravenous
0
169
Member Avatar for codedude

Hi friends, I have a application where i want to show updates from my friends in facebook.For that i am trying to use Activity feeds plug-in.But when i run the application(from local host),even after authentication,the plug-in doesn't show my friends activity in it.Any help regarding this will be appreciated..thank you.

Software Development social-media
Member Avatar for ranacseruet
0
86
Member Avatar for ChiboSempai

I wanted to make a program that deals with the editing of hex files, but I'm not sure how I would go about doing this. Normally I can just input a file into a Java program, read it into a String, then do what I please with it. If any …

Software Development java
Member Avatar for JamesCherrill
0
234
Member Avatar for Bhaumik Vyas

I have created one application which have one mdi parent foem and after that i have designed 3 more forms. now from solution wxplorer whenever i click in mdi parent form i doesont show its design pane.. how can i see the design view of mdi parent form.

Software Development vb.net
Member Avatar for Bhaumik Vyas
0
113
Member Avatar for rcmango

Okay, so i was trying to make this work. Two queues need to be created using input from the user for 2 file names. For some reason I get 1 queue, the first one filled. Then the second queue never has anything in it. Please help me with better code, …

Software Development c++ queue
Member Avatar for rcmango
0
97
Member Avatar for Neversleepin

Hello, Could someone advice me for the best ide for GUI building in java? Thank you

Software Development gui ide java
Member Avatar for peter_budo
0
467
Member Avatar for iwanttolearnc

im trying my hand at calling c functions from python. im reading up the tutorial [URL="http://csl.sublevel3.org/C-functions-from-Python/"]http://csl.sublevel3.org/C-functions-from-Python/[/URL]. however part of the tutorial says that i should [QUOTE]Compiling dynamic libraries on Mac OS X is different from the usual gcc -shared you might be used to: gcc -dynamiclib -I/usr/include/python2.3/ -lpython2.3 -o myModule.dylib …

Software Development c c++ os-x
Member Avatar for iwanttolearnc
0
234
Member Avatar for o0sample0o

Hello, i'm a new member here in this forum.. and i think lot of programmers may help me here.. i'm a newbie also in java programming.. my teacher wants us to make a program that accepts 5 integers and then arrange it from highest to lowest.. i have an idea …

Software Development java java-swing
Member Avatar for Eric Cute
0
1K
Member Avatar for zeke188

[code]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Drawing.Imaging; using System.Drawing.Printing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; namespace Dnd { public partial class Form4 : Form { private PrintDocument printDocument1 = new PrintDocument(); public Form4() { InitializeComponent(); btnPrint.Text = "Print Form"; btnPrint.Click += new EventHandler(btnPrint_Click); …

Software Development
Member Avatar for kvprajapati
0
116
Member Avatar for DJSAN10

Why is float called single precision floating point and double as double precision floating point?

Software Development c
Member Avatar for Ancient Dragon
0
137
Member Avatar for MrCapuchino

Hello, I have a question, I have a program where I use a stream writer and I write from a list object into a textfile, the only code I put in a while cycle is: streamwriter1.WriteLine(string); The application works. Then I have another program, I have the same situation and …

Software Development
Member Avatar for kvprajapati
0
218
Member Avatar for MARKAND911

How to Maintain the location of form control acording to screen resolution How to develop resolution independent application. in C#.net

Software Development
Member Avatar for kvprajapati
0
429
Member Avatar for ovidiu_b13

Can someone please help me make a simple java program for my class. I am a beginner, and don't know how to make one. I know a fiew stuff, but not enough. The teachers requests are: Write a program in netbeans that contains 4 of the following: 1. Classes - …

Software Development java java-netbeans user-interface
Member Avatar for JDCyrus
0
168
Member Avatar for deepak.marur

Hi, friends. I am wondering if it is possible to post messages to facebook through SMS. I have to write an application that connects to the facebook to post messages sent through a Short Code from a mobile subscriber. I am confused about the various APIs from facebook if they …

Software Development first-post java social-media
Member Avatar for JDCyrus
0
93
Member Avatar for katara

please single link list to made song list.. i dont know anything about that..please

Software Development java linked-list
Member Avatar for JDCyrus
0
115
Member Avatar for jayvee0890

what wrong with this? [code] import java.util.Scanner; public class mid2 { public static void main(String[] args) { int a; int m; boolean jv=true; Scanner sc=new Scanner (System.in); System.out.println("Programmed by: Jesus Vinson J. Dominguez:"); System.out.println("Pls type number:"); a=sc.nextInt(); System.out.println("Pls type another number:"); m=sc.nextInt(); int gcf=1; int k=2; while (k=<a && k<=m){ …

Software Development java
Member Avatar for JDCyrus
0
86

The End.