132,726 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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++ | |
hello everyone I still need code snippet help with authentication of username and password on both java and web application.. Software Development java | |
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 … Software Development image microsoft-access open-source visual-basic | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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++ | |
hye, anybody know how to convert 8bit grayscale image to halftone or dither? Would you share the source code for that? :) Software Development c++ | |
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 … | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 … | |
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 … | |
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++ | |
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 | |
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 | |
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 | |
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"); … | |
:$ 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 … | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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 … Software Development file-system microsoft-windows visual-basic |
The End.