43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Aneesh_Argent

Hi experts, I am writing a window application in C# which requires to format user selected hard drive programatically. Any help or suggestions please?

Software Development c# hard-drive
Member Avatar for jbennet
0
179
Member Avatar for llemes4011

Hi, I'm on Christmas Break and am bored out of my mind so i decided that i wanted to write a program that generates a SOLVED Sudoku board, i.e., it has all the numbers filled in. I'm going to write a program later to turn it into an unsolved puzzle. …

Software Development java puzzle
Member Avatar for llemes4011
0
183
Member Avatar for jt_murphree

I am attempting to write assembly code for linux using nasm. I have an include file containing io functions that was originally written for windows using masm and I am trying to convert it. I have on procedure that I am having problems with. The procedure is supposed to recieve …

Software Development assembly
Member Avatar for jt_murphree
0
1K
Member Avatar for Dinomike1000

I'm writing an application with Directx 9. Where I start the application in full screen mode, the image fills to fullscreen and then immediately reverts into a regular window. There aren't any problems when I run the application in windowed mode from the start. I was wondering if anyone has …

Software Development c++
Member Avatar for Freaky_Chris
0
176
Member Avatar for peg110

Ok, Here is my issue. I have written a script that takes Weblog files that have been GZipped. Parses them outputs the required data to another file. GZipps that file and leaves the original in tact (Actually it unzips it, then rezips it). Anyway, it runs just fine on my …

Software Development open-source perl ubuntu
Member Avatar for KevinADC
0
207
Member Avatar for RabbitruN

Hi, I need some enlightenment with copying arrays in JAVA from some of ya seasoned lots. I have this 2d array , twoDarray[10][6] and another 1d array oneDarray[1,2,3,4,5,6]. I'd like to copy the 1d array into the 4th row of the 2d array.Suggestion please. Thnx in advance.

Software Development java
Member Avatar for RabbitruN
0
322
Member Avatar for ddanbe

I like to write a screen capture utility. Plan : have a master control form, let it make a second transparant form on wich a selection rect can be drawn, copy the screen under the rectangle to a Bitmap with Grapics.CopyFromScreen. Here is the essential code I have so far: …

Software Development
Member Avatar for ddanbe
0
94
Member Avatar for k2k

Member is class consisted of member informaiton such as firstname, lastname, phone etc. would anyone please point out what this function gave me NullPointerException runtime error? I think I initialized everything. thanks [code] public static void read(Member box[], int count) { Scanner reader = null; try { reader = new …

Software Development java
Member Avatar for ~s.o.s~
0
71
Member Avatar for elvenstruggle

Hello, I'm new to Python and I'm using Pydev. I'm having a problem: I have several classes and several variables outside the classes. I want to change a variable outside the classes from within a class: e.g. [code]# Class [B]class name_change(object): [COLOR="Green"]"""Change a text variable outside this class"""[/COLOR] def name_change(self): …

Software Development python
Member Avatar for elvenstruggle
0
117
Member Avatar for Icebone1000

Hi, Im trying to write to specific points in a file, but the write() erases everything in the document..heres what im doing: the file: [CODE] mode 0 ; level 0 ; menu 1 ; [/CODE] the code: [CODE=C++] ofstream data_w_fil; data_w_fil.open("data.gsp"); data_w_fil.seekp(7); data_w_fil.write(mode, 1); data_w_fil.seekp(18); data_w_fil.write(level,1); data_w_fil.seekp(28); data_w_fil.write(menu, 1); [/CODE] …

Software Development c++ file-system
Member Avatar for Icebone1000
0
107
Member Avatar for declan12

hey every1! iv never posted on this site before but have view the site and have benifitted from the help given here. hope some1 can help me with this prob! Ok, i have 2 files, 1 which i want 2 contain arrays of words, and the other to contain the …

Software Development c
Member Avatar for Salem
0
769
Member Avatar for Bill Purkins

Hi, Using VB 2008 Express with Compact SQL .sdf database. I have a form that at form load fills the form with a single record as selected by double clicking row header on a datagrid. This works fine. But when I change a field and hit the save data button …

Software Development sql vb.net
Member Avatar for Bill Purkins
0
115
Member Avatar for mocasu

Hi All, I am trying to display a custom icon in my c# application. I have followed microsoft steps to add my icon but it is not being displayed. I am still getting the default icon. Any ideas? With a project selected in Solution Explorer, on the Project menu, click …

Software Development c# display
Member Avatar for ddanbe
0
102
Member Avatar for Stonehambey

Hi :) I have a problem. I have a class, called Sequence, which is a template. One of it's member variables is a vector or elements of type T. I would like to create a constructor which takes as it's argument an array of elements of type T and feeds …

Software Development c++
Member Avatar for Stonehambey
0
144
Member Avatar for TheBeast32

Hi, I'm using WinSock, and am making a function to receive data. How can I know when I have reached the end of the data that I'm receiving. Like, if I send "GET /" to [url]www.google.com[/url] on port 80, I should receive the HTML of the index page. But in …

Software Development c++
Member Avatar for Salem
0
91
Member Avatar for mrnutty

Hello all, I am just practicing on class. From what I have learned thus far (from the internet) I made a simple program that resembles picking a deck of cards. But my problem is that although it works. I cannot get it to generate different cards for each object. To …

Software Development c++
Member Avatar for Salem
0
116
Member Avatar for rad!anc3

hi. im trying to create a program in which the user inputs the character and the level. this would output to a triangle and an inverted triangle. i have already figured out the triangle but i cant seem to get the right output for the inverted triangle [CODE]#include <stdio.h> #include …

Software Development c
Member Avatar for rad!anc3
0
177
Member Avatar for Zetlin

Hi everyone I dont know if this question has already been answer but I really need help so bare with me. So here is my problem I just downloaded python 2.6 for windows however whenever i try to open the IDLE i get this message: IDLE can't bind TCP/IP port …

Software Development python windows-server
Member Avatar for mn_kthompson
0
366
Member Avatar for orwell84

I've been looking for tutorials on x86 assembly language, and most that I've found have been dated. One actually says that the Pentium IV is the newest Intel processor...Anyway, the things I'm wondering are: 1. Has x86 assembly changed much in 10 years due to the huge advances made in …

Software Development assembly operating-system
Member Avatar for Evenbit
0
152
Member Avatar for PhiberOptik

Hey folks, I have a question for you. I have 4 computers that use a particular program that requires a login. But i only have 2 accounts. I have a command that works via batch file that launches the program and logs in but i dont know how to specify …

Software Development
Member Avatar for PhiberOptik
0
140
Member Avatar for hageam

I have an array of doubles that is output to a file and was wondering if there is a way to output white spaces where the value is 0 without replacing the 0's another value contains? example... number1 = 100 would still read number1 = 100, but number2 = 0, …

Software Development c++
Member Avatar for hageam
0
82
Member Avatar for mabshell

Hello, I'm just starting in the world of C# and I'm stuck in a problem. I want to create a form with some textbox in it. It ask you the path of the exe file and some other information. When I run the program it tells me a Win32Exception: file …

Software Development c c# c++
Member Avatar for ddanbe
0
92
Member Avatar for aodpreacher

I have set up a code in a class but i am not sure if this is the class that i would use.I have to put the logic of the game in a Class and then use the methods from the class to run the game.Right now i have some …

Software Development python
Member Avatar for tutti
0
1K
Member Avatar for Boyet728

I am very new to programming and I have an assignment, but I am not asking for the solution. I just want to understand what is being asked. Our instructor presented two codes using a break and continue statement. He stated that both methods are bad programming practices. Which I …

Software Development java
Member Avatar for ~s.o.s~
0
132
Member Avatar for Bhoot

I have been working on a program which requires to retrieve the names of all the current windows on the desktop. I can retrieve the name using the Windows API function GetWindowText(). But i require a function to retrieve the handles to all the windows. I want to know which …

Software Development api c++ windows-api
Member Avatar for Bhoot
0
251
Member Avatar for emilio

hi i'm using oledb to read from an excel file into dataset. my program is showing the dataset using datagridview, when i'm trying to change the cell content and update the dataset i get an error : "Update unalbe to find tablemapping['Table'] or DataTable ['Table'] my code is: [CODE=c#]public static …

Software Development dataset open-source
Member Avatar for emilio
0
118
Member Avatar for manoj_582033

Hi Friends I am using a datagridview, there are four columns in that, & on fourth cell i have a button field, when i click on that i want to get the text of item(0) of selected row. please help me to solve this

Software Development vb.net
Member Avatar for manoj_582033
0
156
Member Avatar for suley04

First of all, let me just say that, this is the 1st time I have ever programmed in C, so please be gentle :S (although it shouldn't be that bad). With regards to the program, I have been set a scenario to create a sales system where the user enters …

Software Development c file-system
Member Avatar for Ancient Dragon
0
470
Member Avatar for Terry McKenna

I am teaching myself pseudo code and I'd like ask for help to clear up my mind so I can understand the syntax and semantics a bit better. Would appreciate any help. (8 people must decide on one F*!) I am trying understand [B]var int F1=0;[/B] in the sample below …

Software Development
Member Avatar for Terry McKenna
0
103
Member Avatar for Lukezzz

I have the ambition to make a List, Global so it can be reached within other Threads. When compiling the code with the declared list like this the compiler says: [I]syntax error : missing ';' before '<'[/I] Should I declare the List in any other way than this ? (The …

Software Development algorithm c++ ios
Member Avatar for Lukezzz
0
133
Member Avatar for MaracKoMarac

I have a simple Tkinter program that has a button and an entry. Now, how do I run code from the entry? For example: Entry -> print 'Hello!' Button -> Run the entry command

Software Development python tkinter
Member Avatar for MaracKoMarac
0
81
Member Avatar for cointosser

Hi i have a python program project its to make an arithmetic program with difficulty levels -essentially a calculator - that throws out addition, subtraction, multiplication, division and combined math problems at random (depending on which function the user chooses) -also has three difficulty levels, which can be chosen by …

Software Development python
Member Avatar for Murtan
0
120
Member Avatar for jbrock31

Hello everyone. I have been studying VB on my own in prep for my class next semester. I am trying to update a label on form1 from form2. Below is just a "test" example i created to figure out what im doing wrong. It is not the actual project i …

Software Development vb.net
Member Avatar for jbrock31
0
152
Member Avatar for ryan311

how can i determine that may text1.text is equal to my product code?? heres my code Set cn = New ADODB.Connection cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Administrator\Desktop\Inventory System\PharmacyInventory.mdb;Jet OLEDB:System Database=system.mdw;", "admin", "" Set rs = New ADODB.Recordset rs.Open "Select * from Product", cn, adOpenKeyset, adLockPessimistic If rs.Fields!pcode = Text1.Text Then MsgBox …

Software Development open-source visual-basic
Member Avatar for ryan311
-1
106
Member Avatar for Manutebecker

What I want to do is make a grading system. There is a vector for schools and classes and students, all of these which have their own class, derived from a class called system. [CODE]class System{ School * p; //School Pointer vector<School>sSort; public: //Splash Screen Function void Splash(); }; /*-School …

Software Development c++
Member Avatar for Manutebecker
0
105
Member Avatar for randr

How do I display multiple questions per day? Also, I am using Visual Studio 2005 and am using a database to retrieve the data. This is the sample code: [code] private string GetCurrentQuestion() { string str = ""; DataAccess da = new DataAccess(); DataSet ds = new DataSet(); da.Connect(); ds …

Software Development dataset visual-studio
Member Avatar for randr
0
190
Member Avatar for wookinhung

Umm, I'm a newbie in VB6, so I am currently facing the procedure being too large during the run of the program. For example: If txt6 > 0 Then lblItem6 = "W6~ Jane Doe" lblItemprice6 = "9.00" lblItemquantity6 = txt6 lblTotal6 = TotW6Price ElseIf txt7 > 0 Then lblItem6 = …

Software Development visual-basic
Member Avatar for QVeen72
0
113
Member Avatar for alan72

Does anyone have any code or links that shows how to interact with Web Pages with VB6? I'm trying to find button/image files (.gif, .jpeg) within the HTML and have VB send a command to press that button with code. I read a lot about Web Browser Control, but can't …

Software Development image java visual-basic web-browser
0
58
Member Avatar for serkan sendur

i have also similar problem with getline : [CODE]int Books::InsertBook() { string authorName; cout << "id_code :" << endl; cin >> bookrec.id_code; cout << "info_title :" << endl; cin >> bookrec.info_title; cout << "author :" << endl; getline(cin,authorName); int authorID = train_Author::s_add_author(authorName); if(authorID==0) { cout<< "Operation cancelled!" << endl; return …

Software Development c++
Member Avatar for serkan sendur
0
2K
Member Avatar for dnmoore

have to creat a geosolid class that has 3 sub class i choose sphere cylinder and cone, i got the first two to work but my cone class works except when it calculates the volume it keep getting 0 no matter what number is use for the hieght and radius …

Software Development java
Member Avatar for quuba
0
186
Member Avatar for Lukezzz

With this code I am setting a backgroundimage to a button. [code] mybutton1->BackgroundImage = Image::FromFile("D:\\pic1.JPG"); [/code] What I need to do is to also be able to remove this image from the button as it was before I did put the image to the button so the button doesn´t have …

Software Development c++
Member Avatar for Lukezzz
0
97
Member Avatar for serkan sendur

when someone include <iostream> how does the compiler know which library to load?

Software Development c++
Member Avatar for Narue
0
109
Member Avatar for aparnesh

I need to automatically and dynamically generate an organization tree. The Data comes from an Oracle Database, where the hierarchy is well defined. But I can't seem to find any good way of generating the Tree Structure. Using a tree-view won't work as there are some designations having 2 or …

Software Development data-structure oracle visual-basic
Member Avatar for aparnesh
0
520
Member Avatar for karang

Hi How to convert CString to char* in C++ Regards Karan

Software Development c++
Member Avatar for cikara21
0
2K
Member Avatar for Agni

This code here is giving segmentation fault. Any clues why? also any general tips for writing good multi-threaded code are welcome. [code=c++] #include <windows.h> #include <process.h> #include <iostream> using namespace std; unsigned __stdcall Display(void* p) { Sleep(500); cout << "Display" << endl; cout << *((int*)p) << endl; return 0; } …

Software Development c++
Member Avatar for Salem
0
192
Member Avatar for suley04

i just want to know, if you are using an argv statement in your code, and you are defining two files (one for input one for output), called inFile and outFile, and you open the first in "r" mode and the second in "w" mode...... can you apply it to …

Software Development c
Member Avatar for suley04
0
109
Member Avatar for lepetitevoddy

I have this wierd kink in this program, it keeps telling me that there is a "missing return statement for public static question. i'm kind of new to JAVA and i've tried everything! please can someone help! import javax.swing.JOptionPane; public class arithmetic { public static void main(String[] args) { JOptionPane.showMessageDialog(null, …

Software Development java java-swing
Member Avatar for ~s.o.s~
0
268
Member Avatar for serkan sendur

how it is logical to get this to work? [CODE]#include <iostream> using namespace std; int main() { int a; if(a = 0) { cout<< "oldu" << endl; } else { cout << "olmadi" << endl; } return 0; }[/CODE] whereas in c# you can not do something like below : …

Software Development c++
Member Avatar for Narue
0
117
Member Avatar for suley04

Yesterday I created a thread called "File Handling Problems!!"..... today within the first half an hour I have moved forward a bit (which is a relief)..... but I still have a problem..... [CODE] 1.#include <stdio.h> 2.#include <string.h> 3. 4.int main() 5.{ 6. int week = 0; 7. int units = …

Software Development c
Member Avatar for suley04
0
102
Member Avatar for leb

Do any of you know a function to play a playlist in PyGame? The music files on the playlist should be played one after the other in the order they occur. Any type of help would be appreciate it.

Software Development python
Member Avatar for hupa_nguyendinh
0
190

The End.