132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cardician

Hello all, I'm hoping someone here might be able to provide some assistance. Let me see if I can describe the general problem I have and perhaps someone can offer some ideas on the best way to approach solving it. I've got a text file that is basically a dump …

Software Development perl regex
Member Avatar for KevinADC
0
97
Member Avatar for perun_x

Hi, I need to check keys pressed in another process. How can I it reach? I'm writing simple utility for linux/debian, which runs video player in process no.1. On background is another process, which will read pressed keys and will interact with the 1st process. Problem is, that it cant …

Software Development c++ debian video
Member Avatar for vijayan121
0
111
Member Avatar for kristian_CMS

Can somebody show me how to delete .dbf record/s in VB? i have this code [ICODE]conn.execute "Delete from records"[/ICODE] but its just marking the records for deletion, it wont delete the actual records until i issue the PACK command from foxpro. Please Help.. THanks

Software Development visual-basic
Member Avatar for aktharshaik
0
2K
Member Avatar for neknek

We were asked to create an applet in which it will get the current date, then the user will input a number (n), when the user presses 'ok', the date+n after will display. Here is my code so far [CODE]import java.applet.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.util.Calendar; import …

Software Development java
Member Avatar for neknek
0
96
Member Avatar for Tekito

As I learn class modules, one issue that seems to come up repeatedly involves class modules inside class modules - how the "child" class module can never see anything inside the "parent". Say, for example, I'm writing a program involving a card game, and so I have a class module …

Software Development visual-basic
Member Avatar for Tekito
0
115
Member Avatar for texantrail

HI I need some help on how to go about in java program to design a Strict two phase locking schema. where the input file is given as notepad and input as follows through a notepad as follows b1; r1(Y); w1(Y); r1(Z); b2; r2(Y); b3; r3(Z); w1(Z); e1; w3(Z); e3; …

Software Development java
Member Avatar for texantrail
0
823
Member Avatar for bhoot_jb

i am currently working with VC++ 6.0. i have just begun with it and wrote my first non-MFC code in it..however i have faced a problem in which my program terminates immediately on executing it..and i mean immediately..it doesnt even show the window that i create through that program.. however..later …

Software Development c++
Member Avatar for William Hemsworth
0
191
Member Avatar for tactfulsaint

hello everyone I still need code snippet help with authentication of username and password on both java and web application..

Software Development java
Member Avatar for ~s.o.s~
0
569
Member Avatar for hell_tej

Hi, Frends Now I m Telling You How to insert Image Dynemically in Crystal Report 8.5 for the use in VB 6:-/ I Create an Job placement Software Crystal Report Which has some Fields and Photo of Candidate so First I Create an Crystal Report in 8.5 then Save it …

0
728
Member Avatar for mdew_47

i have been given a 2-phase compiler containig the lexical phase and the syntax phase as my final year project. for that i need to know how to call a C program from a Java applet using a button called "compile". A little help will make me thankful.

Software Development java
Member Avatar for mdew_47
0
205
Member Avatar for genesis_react

Can anybody help me with this.. we are to make a diamond pattern of asterisk..I had the codes below..My problem is.. we are only allowed to use one asterisk and one space to make the program and inside the diamond pattern we are to put the letters A,B, and C.. …

Software Development c++
Member Avatar for VernonDozier
0
126
Member Avatar for Linz-30

Hi everyone, I am a complete novice and need to write a pseudo-code for a query (photo.xql): xquery version "1.0"; (: Generate a photo page :) declare namespace request="http://exist-db.org/xquery/request"; declare namespace transform = "http://exist-db.org/xquery/transform"; import module namespace history = "http:// localhost/history" at "history.xqm"; let $id := request : request-parameter ('id', …

Software Development c++
Member Avatar for VernonDozier
0
78
Member Avatar for gouki2005

I have a class named Account so I have a question. In the declarations of a new instance Dim Newaccount as Account -----but I can declare this like.. Dim Newaccount As Account = New Account which are the differences between both declarations?? are the same or not? excuse me english... …

Software Development vb.net
Member Avatar for manal
0
121
Member Avatar for astrogirl77

Hi, I'm new to C++ and am hoping to find help with coding a simple C program, am wanting to obtain code and functioning exe's. I code in an old version of Visual Basic 4.0, I have a simple app that is about 3 and a half pages of code …

Software Development c++ python visual-basic
Member Avatar for William Hemsworth
0
133
Member Avatar for Opsive

How do you convert a UTC tm structure to a UTC time_t structure? mktime would work except it converts the time back to local time. Here is what I have so far: [code] time_t t = time(NULL); tm *ptm = gmtime(&t); [/code] Thanks, Justin

Software Development c++
Member Avatar for Radical Edward
0
2K
Member Avatar for BradenMurphy

I've got 3 classes 2 subclasses that link to a main class. (electric tools, fuel tools connect to Core tools). What i've done is made a handler class(Hardware) from these classes which has a void display in it. [CODE] vector<Hardware> hardware_stock; Hardware record; record.read(cin); hardware_stock.push_back(record); for(vector<Hardware>::size_type i = 0; i!= …

Software Development c++
Member Avatar for BradenMurphy
0
102
Member Avatar for symas

Suppose I have structure like: typedef struct { int a; int b; } my_struct; Is there any way to get/print the name of the fields of that structure (i.e. "a" and "b") programmatically?

Software Development c
Member Avatar for Radical Edward
0
300
Member Avatar for Dancealot

Hi all. I have a problem when I am trying to run an application on my mobile. The app compiles on netbeans, but when I copies it to my mobile telephone, it sais: java.lang.NoClassDefFoundError. I have been told that I should have references to everything and that i might need …

Software Development java java-netbeans
Member Avatar for Dancealot
0
178
Member Avatar for IT_Techno

Hello I have aproblem i wish some one to helpe me to solve it. i have some C# windows applicalions every time i have to make setup package for my Application then install it on my PC before that i should install (Dot Net Frame Worke + Crystal Report + …

Software Development
Member Avatar for IT_Techno
0
117
Member Avatar for yazooney

When compiling a program i get this: Cannot open include file: 'afxwin.h': No such file or directory This is because I dont have an MFC library. This is because microsoft visual studio C++ 2008 express edition does not have an MFC library (need to buy the proffessional edition). Anyone know …

Software Development c++ visual-studio
Member Avatar for ArkM
0
137
Member Avatar for dmlandrum

I'm trying to create a exception handling class for a large-ish project I'm working on which inherits from std::exception. I found this [url=http://www.cplusplus.com/doc/tutorial/exceptions.html]tutorial[/url] at cplusplus.com and followed its basic instructions and used its derived class as a template. Here is my Exception class as it stands right now: [code=C++]#include <exception> …

Software Development c++
Member Avatar for dmlandrum
0
835
Member Avatar for micheal_lobster

hye, anybody know how to convert 8bit grayscale image to halftone or dither? Would you share the source code for that? :)

Software Development c++
Member Avatar for micheal_lobster
0
619
Member Avatar for bomtk

Hi every one, i got a trouble with opening and reading multi files (200 files) in. These files include 4 columns and 1010 rows. event i have tried many times but it still can not work. if possible, could you please give me some suggestion on my code as the …

Software Development c++ ios
Member Avatar for bomtk
0
133
Member Avatar for twgood

So far it looks pretty good, except in the GUI I can not get the Modify, Save, Delete, Add and Search buttons to work. They produce error codes : Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at javaapplication54.ModifyButtonHandler.actionPerformed(Inventory6.java:488) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6041) at javax.swing.JComponent.processMouseEvent(JComponent.java:3265) …

Software Development gui java java-swing storage
Member Avatar for darkagn
0
100
Member Avatar for death_oclock

I have the following globals defined (the relevant ones, anyway): [CODE] DWORD dwNumMaterials; LPD3DXBUFFER lpMaterials; LPD3DXMESH lpMeshBody; [/CODE] And the call to D3DLoadMeshFromX is here: [CODE] D3DXLoadMeshFromX(L"body.x", D3DXMESH_SYSTEMMEM, lpD3DDevice, NULL, &lpMaterials, NULL, &dwNumMaterials, &lpMeshBody); [/CODE] When this is called, it returns a generic error (0x80004005). Also, if it is needed …

Software Development c++
Member Avatar for death_oclock
0
129
Member Avatar for vinodcprm

Hi good morning! I have developed XSLT for transforming xml into xml. Ex : input xml <item> <name>sample1<name> <desc></desc> </item> output xml <item> <name>sample1<name> [B][COLOR="Red"]<desc/>[/COLOR][/B] </item> In the transformed xml file I am getting self closing tag for the empty data element. But for us our parser does not support …

Software Development xml
Member Avatar for MattEvans
0
415
Member Avatar for shyamli

hi friends. . One again plea for help in project idea. . Doing my final yr. . Need some good project idea. . nothing hi-fi something innovative. . Thanks pls do help

Software Development vb.net
Member Avatar for srvishnukumar
0
87
Member Avatar for mancode1007

Hey guyz.. I want to know how to print certain line from the text file and certain part of the record for example data.txt... [CODE] 123 John Smith 80 222 chris brown 50 325 christine 60 [/CODE] I only want to print out the name from the record in the …

Software Development c
Member Avatar for Salem
0
128
Member Avatar for mahlerfive

My goal here is to write a small class to keep track of memory I allocate/deallocate so that I can more easily find memory leaks. To do this I overloaded the operators new, new[], delete, and delete[]. In those methods, I allocate/free memory as usual, but also make a call …

Software Development c++
Member Avatar for Duoas
0
136
Member Avatar for pure_evil020

Hi there, I have recently put together a net send messenger in a .bat file for a program of mine. I would like to make it so, if the "net start messenger" line fails/has an error, It echo's " messenger service is currently disabled on your computer. press F1 for …

Software Development shell-scripting
Member Avatar for pure_evil020
0
96
Member Avatar for htmlforums

Hi, I having problem with c# combo box control with multiple columns. I have one combox with 2 columns: code(char 5) desc(char10) d1 day1 d10 day10 I using Add items to add in those code and desc, but the column position is out. I was thinking of taking the 5 …

Software Development
Member Avatar for htmlforums
0
100
Member Avatar for plike922

can you check the code... it doesn't work for some reason i tryied everything [CODE]#include <stdio.h> #include "genlib.h" #include "simpio.h" int Fibonacci(int fnum); int main() { int fnum; printf("Please enter in the Fibonacci number: "); fnum = GetInteger(); printf("The number for f(%d) is %d\n", fnum, Fibonacci(fnum)); system("pause"); } int Fibonacci(int …

Software Development c
Member Avatar for Aia
0
113
Member Avatar for sreesai

Hi, I want to know how to program to find memory leak. my idea is to find whether there is a free() for every malloc before exiting the function. x() { malloc() .... if() { abc return; // thr is a memory leak as thr is no free n we …

Software Development c
Member Avatar for dwks
0
129
Member Avatar for huyfamily

Dear All, I'm writing a code which could read the following file: (input.raw) contained: 11 12 13 21 22 23 31 32 33 While reading this file I want to do the following: -Move cursor to the beginning of that file which is before "11", then start reading -After reading …

Software Development c++
Member Avatar for Duoas
0
93
Member Avatar for ohyeah

Hi I just started out with python.. I'm trying to write some code that will request a file with HTTP GET, be able to send custom headers to the remote host, download this file and save it locally, and show some kind of percentage downloaded which updates WHILE its downloading. …

Software Development file-system python xml
Member Avatar for EAnder
0
488
Member Avatar for cellus205

Can anyone help me translate this regex match in Perl to a VB.Net Regex match? Heres the perl regex: if ($line =~ /\\([\w\d\s\-]+?\.\w{3})\"\t\"/) { print "LINE: $1\n" } # regex match And heres what I have for the VB regex, but its currently not working: [code=VB] Dim fs As New …

Software Development perl regex vb.net
0
74
Member Avatar for Clockowl

Hey guys, I've written quite a large piece of code the past few days, and today I've cleaned it up a bit, divided it into functions (I know, bad, should've done it the other way around) etc. etc. The project is a simple 3D thingamadingy, the program is able to …

Software Development algorithm c++ opengl
Member Avatar for Clockowl
0
210
Member Avatar for Nemoticchigga

Does anyone know if vs2005 has the borland equivilent of a "scrollbox"? Thanks.

Software Development c++
Member Avatar for Nemoticchigga
0
169
Member Avatar for thatoneguyx

I'm new to C++ and trying to find a compiler I tried using visual 2008 but it didn't work... then I re-installed it and can't even open it so I need to find something else I need something thats noob-friendly and is updated thanks

Software Development c++
Member Avatar for ArkM
0
122
Member Avatar for dmpop

Hello, I need to fetch and display message subjects containing a specific word. Here is what I've got so far: [CODE]import imaplib imap = IMAP4("imap.mail.com") imap.login("username", "password") r, data = imap.select('INBOX') r, data = imap.search(None, '(SUBJECT "Reminder")')[/CODE] What I need now is to print a list of subjects of the …

Software Development python
Member Avatar for dmpop
0
7K
Member Avatar for teh noobshow

ok heres what im currently doing... [/code/] (autocast)) == (15348) { cast manual with spell 1155; spell cast starts at position X Y; } } } } } itemID)) == 15348 { } return 406; { Case 1505: UsingMage) = true; else if (ItemID == 15348) [13] > 70 caster …

Software Development java
Member Avatar for Ezzaral
0
146
Member Avatar for sciwizeh

i want to make a code template in netbeans with the abbreviation of cn that will expand into the name of the current class being worked on, is there a way to do this? i cannot find anything about it. google won't turn up any good info

Software Development java
Member Avatar for sciwizeh
0
96
Member Avatar for asma_ab

hi ... i have a query i have created an application in c# i have put this code in button [code] string strXmlPath = ""; XmlDocument doc = new XmlDocument(); strXmlPath = ("C:/App_Data/Document.xml"); DataSet ds = new DataSet(); XmlTextWriter writer = new XmlTextWriter(strXmlPath,System.Text.Encoding.UTF8); writer.WriteStartElement("folder"); writer.WriteElementString("FolderName", "App_Data"); writer.WriteElementString("FolderPath", "C:/App_Data/Document.xml"); writer.WriteEndElement(); writer.WriteStartElement("folder2"); …

Software Development c# dataset display xml
Member Avatar for nnobakht
0
1K
Member Avatar for witza

:$ Ok people, bare with me for a second (or 60...) I'm developing a part of a larger application, and to cut to the chase, i now need to access an Hashtable that I've made global. This aplication is multithreaded, but I'm trying to access this hashtable from the same …

Software Development gui java
Member Avatar for nnobakht
0
182
Member Avatar for nimloman

I need my output screeen to looklike this. So far i can do all of it except my traingle comes out in a right angle and i dont know how to make it into an traingle shown below. Ive tried usind 'setw" but it doesnt seem to be working. [B]This …

Software Development c++
Member Avatar for Radical Edward
0
211
Member Avatar for SNN

I have two data sets Hdata.txt and Edata.txt that are tab delimited. Both data sets contain information about two groups of people. The first column in both data sets contains the last name of the individual. I wrote a perl program to make a comparison and print out the individuals …

Software Development perl
Member Avatar for SNN
0
96
Member Avatar for nlblnx

Hi all, I am trying to grab data from the database that this application is connecting to and then show entries in a treeview. [CODE] public void dbcall() { SqlConnection sqlconn = new SqlConnection("user id=USERNAME;" + "password=PASSWORD;server=SERVER;" + "database=DBNAME;" + "connection timeout=30"); SqlCommand select = new SqlCommand("SELECT * from MAIN", …

Software Development dataset
Member Avatar for nlblnx
0
178
Member Avatar for Seagull One

Hello again, everybody. Now that I've just about learned all I can for programming my robot with 'smarts' (I think), I think I'm ready for a bigger challenge: Having my robot program aspects of itself. Right now I'm going to try to implement it into my robot's human socialization program. …

Software Development python
Member Avatar for Seagull One
0
457
Member Avatar for nnhamane

Hello friends..[B]Ugly number is a number whose prime factors are only 1,2,3 or 5.[/B] I had written a program for finding n`th ugly number in the series.Now the series is 1,2,3,4,5,6,8,9,10,12,15...these are first 11 ugly no`s. Now In my program if we put m=11 then output will be 15. It …

Software Development c++
Member Avatar for Salem
0
1K
Member Avatar for chanthung

Hi guys, I have completed one project and have created a setup file also. I have taken help from one of you guys and corrected a setup error, about "[B]DllSelfRegisterEx[/B]" to "DllSelfRegister". But now the problem is after complition of installation, i get the following error message during installation to …

Member Avatar for gsatya
0
373

The End.