43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for doublebond

Hi Guys, I want to read a huge file which contains address bits, data bits and instruction bits. Please let me know how to do this. Cheers, Bond

Software Development c++
Member Avatar for doublebond
0
459
Member Avatar for come_again

Hello everyone, I am a student working on interfacing a firewire camera with a linux machine. I am able to successfully compile my files (timer.cpp and test_timer.cpp) (they are called timers because i am testing the latency of the camera). Anyways, my problem is that I first type in: g++ …

Software Development c++
Member Avatar for come_again
0
2K
Member Avatar for dospy

i have GHostOne advanced remote host bot last version but i have some problems edditting it. when i try to compile game.cpp (edited by me) gives me a lot of errors that i cannot solv (compile.txt file) anyway...i cannot even compile the originat cpp file cuz he gives me a …

Software Development c++
Member Avatar for dospy
0
249
Member Avatar for johndoe444

Hi, I have this code: list = ['12 angry men', 'Rash &# xf4;mon'] [CODE]def func(list): ... for e in list: ... e = re.sub(' ?&# x([0-9a-f]*);',r'\x\1',e) ... print type(e) ... e = unicode(e,'iso-8859-1') ... print type(e) ... print e[/CODE] I get this output: [CODE] 12 angry men Rash\xf4mon[/CODE] whereas I …

Software Development python
Member Avatar for The_Kernel
0
168
Member Avatar for serkan sendur

i know how to get property values : [CODE]Context.Parameters["nameOfProperty"][/CODE] but i dont know how to set them from custom installer class. any ideas?

Software Development
Member Avatar for serkan sendur
0
112
Member Avatar for DoEds

[i][color=#33CCFF]/*Help me finished this code.I trying to make a program that will ask 2 choices. 1 is for converting dollars to peso and 2 is for converiting peso to dollars. Im trying my best but i dont seem to get the right code for it. Im just a beginner in …

Software Development c
Member Avatar for Tom Gunn
0
359
Member Avatar for karamjeet2004

[code=java]import javax.swing.*; import java.awt.*; import java.awt.geom.*; import java.sql.*; public class panel extends JFrame implements ActionListener { ResultSet res; Connection conn; Statement stat; String lang; JFrame frame = new JFrame("Graphics Button"); lang="abc"; JButton b1; JLabel l1,l2,l3; JPanel p,p1,p2,p3,p4; p.setSize(100,100); p.setLayout(new GridLayout(3,0)); p1=new JPanel(); p2=new JPanel(); p3=new JPanel(); p4=new JPanel(); l1=new JLabel(lang); …

Software Development java java-swing
Member Avatar for karamjeet2004
0
187
Member Avatar for walter clark

For a CLR type program in Visual C++, I need to record the file date of the version of the program being run. That seems like a very normal thing to do but I can't find a solution (that works) on the web. I'm able to read the date of …

Software Development c++
Member Avatar for walter clark
0
135
Member Avatar for warp

Hi Please look at this small piece of code: [code] char* pArray = new someArray[128]; delete pArray; deleta[] pArray; [/code] Will this generate a mem leak? "delete pArray" wil deallocate only the first char of someArray but will "delete[] pArray" deallocate the rest of someArray or will the compiler see …

Software Development c
Member Avatar for warp
0
122
Member Avatar for akulkarni

i was trying to explain a friend about interface i have followed the abstract concept but dont know to how to demonstrate [code] inteface a { void meth(int i){ }; } class dani implements a { public static void main(String args[]) {int i; public void meth(5); System.out.print(i); } }[/code] if …

Software Development java
Member Avatar for JamesCherrill
0
91
Member Avatar for redburn

I'm writing a function that creates an html file, loads it into a invisible browser, prints, then deletes that html file. However I'm getting an error in the print and delete portion. [B]Here are the two errors[/B] [B](Output from the debugger)[/B] A first chance exception of type 'System.IO.IOException' occurred in …

Software Development file-system
Member Avatar for redburn
0
280
Member Avatar for lolwtf

I have a datagridview that tracks when employees clock in and out. I used the datetime data type in sql but I dont want the year to display. How would i go about doing this? Do i have to modify my select statement, or can I do it with vb …

Software Development sql vb.net
Member Avatar for lolwtf
0
134
Member Avatar for johnray31

Hi guys!! I am wondering how below given program is working. in function func1 how return (void *)y working. [CODE] #include<stdio.h> void * func1() { int y; y = 10; return (void *)y; } int main() { void *x = 0x00; x = func1(); if(x == NULL) { printf("error\n"); } …

Software Development c
Member Avatar for johnray31
0
140
Member Avatar for DeadJustice

I need to get a MIPS program to print out the first 30 prime numbers and to compute the first 200 (strange, but its the assignment). I can figure out what's wrong with this program. All it does is print 2's out in an infinite loop and I cannot figure …

Software Development assembly
Member Avatar for DeadJustice
0
4K
Member Avatar for johndoe444

Dear friends, I have this code which attempts to get the last modified date of an http resource: [CODE]request = urllib2.Request('http://www.imdb.com') >>> opener = urllib2.build_opener() >>> request.headers {} >>> first = opener.open(request) >>> first.headers.dict {'transfer-encoding': 'chunked', 'set-cookie': 'session-id=209.251.138.146.1246519635845007; path=/; domain=.imdb.com, uu=bN4RO5T1YWqLBgRAupwcdgCRSyzj0j26pvJ+qYPCXqmT117Zs9L+/LfGO4zGx50bwJFtjNPSXuqj8g4pgDJ+meCRbaoGcS2aoNZb7PiBbbqjkm66I/I+qSAyfpnj8l7qA/I+qTAyfpngkW2KBnEtmqDXe20AkW26oLFtuqC3KyrjwW26o5IOuZOyLtnAgc0ZsLFtuqCRbergwR2Ko=;expires=Thu, 30 Dec 2037 00:00:00 GMT;path=/;domain=.imdb.com, cs=xOA2Pyx3xsSbt7wMU8ZOhAbGfbqgkW2NmIHl2qPyXuoj8j6pMDJ+meCRbYoGES2aoJFb/feFHbqjsg7/p9HNySCRWyxAGW26oKdbraCRbbqgsW26oJFt+uDBHYqg==;expires=Fri, 03 Jul 2009 …

Software Development python session xml
Member Avatar for siddhant3s
0
219
Member Avatar for kes_ee

How to acheive this in Python? [QUOTE]Converting the string "HelloPythonWorld" to "HELLO_PYTHON_WORLD"[/QUOTE]

Software Development python
Member Avatar for shadwickman
0
178
Member Avatar for makymakaru

hi.. i'm very new in this programming thing but i need to make this hello world program work in windows and linux environment. thing is i encoded the program below and i used cygwin and andlinux to compile and i still get i think some errors. I'm lost.. really i …

Member Avatar for makymakaru
0
182
Member Avatar for kerek2

Hi Alls, I'm really need your's help... I develop console application as a engine to pull data from oracle to SQL...the connection to both database is ok..but when to insert got problem....somebody help me plz.... [CODE] 'Connection To Sql Dim sqlcn As SqlConnection Dim sqldr As SqlDataReader Dim sqlda As …

Software Development oracle sql vb.net
Member Avatar for kvprajapati
0
166
Member Avatar for caquake

I am trying to create a program that uses nested loops to create a box. Only one of the overloaded functions need the details of nested loops.. the other 3 should call the one that has the details.. my problem is the last function and the for nested loops. Here …

Software Development c++
Member Avatar for shadwickman
0
406
Member Avatar for goody11

I was working on a program for spanish where I want to input the spanish and english and then the programputs the words in 2 listboxes when "ADD" is clicked. Here is my code and it does compile so you can kind of get an idea of what I want …

Software Development api c++
Member Avatar for goody11
0
211
Member Avatar for Debby0424

How do I find a Java application on the Web?

Software Development java
Member Avatar for kvprajapati
0
99
Member Avatar for dchaosblade

Hey, I'm hoping someone can give me a hand here...I'm currently writing a JApplet which uses several buttons on several different JPanels. Two of these buttons use an image and label (e.g. I did [icode]contestant.setIcon(cc); contestant.setText("C.C.");[/icode] where contestant is the button, and all formatting occurs just after and the Image …

Software Development ide image java java-swing
Member Avatar for dchaosblade
0
159
Member Avatar for Debby0424

[code=JAVA] import java.util.Arrays; // Class that hold a collection of CD objects class Inventory { // maximum number of CDs that will be held static public final int MAX_NUM_OF_PRODUCTS = 10; private CD products[] = new CD[MAX_NUM_OF_PRODUCTS]; // number of CDs currently in the inventory private int numOfProducts; // default …

Software Development gui java java-swing
Member Avatar for Debby0424
0
233
Member Avatar for jen140

Hello all. I would like to add a small handler. Imagine that i have a listbox, and when i right click i want to appear a menu with two options . How can i do it ? Thanks in advance.

Software Development
Member Avatar for sknake
0
63
Member Avatar for Hockeyfreak889

how would i display a yes/no dialog that would return one value if the user clicks yes and another value if they click no. I know you can do it using some part of JOptionPane but im not sure what

Software Development java
Member Avatar for BestJewSinceJC
0
73
Member Avatar for Democles

I am attempting to take names and weights from strings and just simply output them. For some reason it can't get out of the while loop, it just sets there waiting for the users to input names and weights. Here's my code [code=C++] #include <iostream> #include <string> #include <vector> using …

Software Development c++
Member Avatar for VernonDozier
0
11K
Member Avatar for pmyk

How to use the name of one Userform which is received in another Userform as a variable? P. Michael

Software Development visual-basic
Member Avatar for vb5prgrmr
0
89
Member Avatar for serkan sendur

in the custom installer i want to differentiate between if the windows installer run by command prompt or by GUI. i can check for custom parameter but my command line is already long, i want to use something built-in(parameter). Thanks

Software Development gui
Member Avatar for sknake
0
150
Member Avatar for serkan sendur
Member Avatar for Hiroshe

Hey guy's. Can't get this seemingly simple function to work. It is suppost to get a string and return the first 10 characters, than the next time you call it, it returns the second 10 cheracters and so on. I did this in basic a while ago without problems, C …

Software Development c
Member Avatar for Hiroshe
0
142
Member Avatar for goody11

I was going through a tutorial and had some trouble with an example program. Here's the coding I have and I can't fix it. Here is the main cpp file. [code] #include <windows.h> #include "resource.h" BOOL CALLBACK DlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) { switch(Message) { case WM_INITDIALOG: …

Software Development api c++
Member Avatar for goody11
0
208
Member Avatar for fatalbert55

Hello All, I am trying to learn C++ on my own, but I think I am having some problems with Code::Blocks. I am familiar with Java (I did some CS as an undergrad) and I feel that the C++ basics are pretty easy to translate from Java; however, I am …

Software Development c++ oop
Member Avatar for fatalbert55
0
287
Member Avatar for mypicturefaded

I need to pull out the information in the Document\Property(label = Individual Information)\value. The code I am using does not work, or I am not using it correctly. What would be the correct syntax? [ICODE] <?xml version="1.0"?> <fnApiResponse status="ok" xml:space="preserve"> <document idmId="12214" name="214214" label="me" class="Signature" version="1" mime="image/x-win-metafile" library="mylib" user="me" group="blah" …

Software Development xml
Member Avatar for mypicturefaded
0
122
Member Avatar for johndoe444

Hi, This is the existing code: [CODE]for c in chartNames: chartUrl = baseChartUrl+c hd = extractChart(chartUrl) writeChart(hd,c) for key in hd: if key in chart: chart[key].append(c) else: chart[key] = [c] [/CODE] when i wanted to insert a line before [CODE]chartUrl = baseChartUrl+c[/CODE] by putting the cursor to the end of …

Software Development python
Member Avatar for jlm699
0
162
Member Avatar for serkan sendur

in windows installer user interface i want to have check box dialog and according to what checkboxes are checked, i want to display textbox dialog. how is that possible? thanks.

Software Development user-interface
0
70
Member Avatar for MrNoob

Hello people i got a h.w to do Using nested loops to produce the following pattern: F FE FED FEDC FEDCB FEDCBA I had idea to do it but that will require array and strlen(char first int of the outer loop) and the thing says that I must do it …

Software Development c
Member Avatar for MrNoob
0
230
Member Avatar for Zetlin

Hi everyone it's been almost a year since I gave up programing in python so I have forgotten a lot of things, so just bare with me. Ok so I was playing around with python and ended up with this little program. [code=python] def test(): number = input("Number: ") scale …

Software Development python
Member Avatar for jlm699
0
114
Member Avatar for painless

plz help me out ... i m using the following code to display an image which resides on my pc (C:\Users\vivek\Pictures\firefox,JPG)... but when i run the code ....there is no compile time error..n also not any run time error..n the output is a empty frame :'( [code=java]import java.awt.*; import javax.swing.*; …

Software Development display image java java-swing
Member Avatar for painless
0
133
Member Avatar for u8sand

Hey guys, I've been programming in consoles/visual C++. But i've been wanting to learn WindowsAPI programming WITHOUT the stupid visual interface for a while now. Could someone provide me some pointers on a good place i can learn this? Right now I'm using [url]http://www.winprog.org/tutorial/start.html[/url]

Software Development api c++ windows-api
Member Avatar for u8sand
0
105
Member Avatar for kes_ee

I am having a text file contaning the following: "int Function1 (int arg1, "0|1", char * arg2); int Function2 (int arg1, " ", char * prt1); ..." I need to open this file, split the each word and store it as global variable. I did this in Perl but now …

Software Development perl python
Member Avatar for Lardmeister
0
808
Member Avatar for llemes4011

I'm writing an Email Client, and I need a JSplitPane that splits 4 or 5 JPanels instead of 2. I looked around and didn't really see anything that looked like what I need. I need it so I can adjust the size that is allotted to the subject, sender, date, …

Software Development java
Member Avatar for llemes4011
0
834
Member Avatar for stevnlon

I wonder if i could pick anyones brains on somthing? [CODE]public void show(String add) { try { statement.execute("select * from Staff_Details WHERE Address2 =" + add); [/CODE] This is a section of code im working on. The string variable add at the end of the SQL statement is not working …

Software Development java sql
Member Avatar for masijade
0
137
Member Avatar for r0n

hi everyone how should i move the data of the multiple text file to another text file... (for instance you have two text files readFile1.txt and readFile2.txt and you have to move the data of the two text files in another file which is writeFile.txt ) how should i read …

Software Development java
Member Avatar for r0n
0
4K
Member Avatar for Ardvarks

I have been coding a GUI program as a MySQL database manager/utility... The idea of the section I am focusing on is, your enter a guild's name, and it queries the database and displays the guild's info in a textbox. As a test I have used this query: [code]SELECT * …

Software Development c++ gui
Member Avatar for Ardvarks
1
139
Member Avatar for lotrsimp12345

here's my code, don't see why it doesn't print out [code] #include <iostream> using namespace std; int main() { cout<<"enter a passage into input to find out how difficult it is to read\n"; string passage; cin>>passage; char letter; int space=0; while(letter!='\n') { if(isspace(cin.peek())&&letter=='\n') { cout<<"from space"; space=space++; } } cout<< …

Software Development c++
Member Avatar for Nick Evan
0
243
Member Avatar for scholar

Hi friends, I am trying to add multiple LABEL controls in my program using a GROUP.I am using the folllowing code [CODE]Label newlabel = new Label(); void functionname(..... , ....) { int i = 0; foreach (string s1 in s2) { newlabel = new Label(); newlabel.AutoSize = true; newlabel.Text = …

Software Development c#
Member Avatar for ddanbe
0
313
Member Avatar for babbu

i want to enable or diable some controls on another form depending on the action in the current form. how can i write the code for this in the current form

Software Development vb.net
Member Avatar for kvprajapati
0
101
Member Avatar for teked

Hi i want to display the version number of my application in VB6, I know the solution is going to be really simple.. please help!

Software Development display visual-basic
Member Avatar for teked
0
4K
Member Avatar for TrintiyNoe

Hey,can u ppl tell me a simple way of converting a string into a integer? I have something like [ICODE] string str1 ("1000"); string str2 ("2000"); [/ICODE] i wanna convert them into integers and add them,any idea how?

Software Development c++
Member Avatar for TrintiyNoe
0
128
Member Avatar for ermithun

please refer the code below, /** * Constructs an empty std::list */ LDAPControlSet(); only this much is there in its respective class,LDAPControlSet. i want to understand that how does it create an empty list from std when nothing's there in its below constructors?? Moreover, the below constructors are the copy-constructors.. …

Software Development c++
Member Avatar for ermithun
0
122

The End.