132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nu2cpp

Hi Guys, I am trying to reverse engineer some of the openGl function into pure c++ and need some help. I can't use openGL but need to do some of the stuff it does. I am trying to figure out how to code glViewPort(...) in c++. Any help in this …

Software Development c++ opengl
Member Avatar for play_c
0
162
Member Avatar for milhero

Hi professionals, I am a student who is working on a project for a company on mass emailing system. How do i add a Bcc attribute in my program? I found a few codes in the internet but all the codes are for pre-defined email address. What i am planning …

Software Development email vb.net
Member Avatar for milhero
0
1K
Member Avatar for Jaydenn

Do you guys know a better way to write this? [CODE] bool a = Directory.Exists("C:\\Program Files\\Java\\jdk1.6.0_1"); bool b = Directory.Exists("C:\\Program Files\\Java\\jdk1.6.0_2"); bool c = Directory.Exists("C:\\Program Files\\Java\\jdk1.6.0_3"); bool d = Directory.Exists("C:\\Program Files\\Java\\jdk1.6.0_4"); bool ee = Directory.Exists("C:\\Program Files\\Java\\jdk1.6.0_5"); bool f = Directory.Exists("C:\\Program Files\\Java\\jdk1.6.0_6"); bool g = Directory.Exists("C:\\Program Files\\Java\\jdk1.6.0_7"); bool h = Directory.Exists("C:\\Program …

Software Development
Member Avatar for sanch01r
0
155
Member Avatar for naziatarannum

Hi, Please help in this regard. Can the modification time of a file be updated to any date of our choice? Please advise. Thanks in advance!

Software Development shell-scripting
Member Avatar for naziatarannum
0
113
Member Avatar for idlackage

I'm supposed to get a 4-digit number from the user, convert it to binary (and hex), then print it out. I have absolutely no idea where to start. I know the algorithm; taking the number, diving it by 2, repeat until the number reaches 0 and the remainders of everything …

Software Development algorithm assembly
Member Avatar for dan63043
0
175
Member Avatar for sanch01r

Does anyone know how to get the adspath attribute value to a better looking string. Active Directory returns the following: "LDAP://contoso.com/CN=Sanch01R,OU=Managers,OU=Users,OU=InfoTech,DC=contoso,DC=com"; I would like it to read: contoso.com/infotech/users/managers/sanch01r The IndexOf and Substring methods do not work consistently as we never know how many OU's would be returned, any ideas would …

Software Development
0
95
Member Avatar for botaxsmaniz

Hi all, I'm newbe need your help. I have code: [code] public void Material_Load(object sender, EventArgs e) { SqlConnection con; SqlDataAdapter da; DataSet ds; con = new SqlConnection(); con.ConnectionString = "Data Source=GOD_LOVE_ME;Initial Catalog=ProjetDB;Integrated Security=True"; con.Open(); da = new SqlDataAdapter("select * from Material", con); ds = new DataSet(); da.Fill(ds); DG1.DataSource = …

Software Development dataset open-source
Member Avatar for DdoubleD
0
934
Member Avatar for coollife

1) I want to Close all mozilla firefox windows running , for that to happen as i know there is two ways a) to use link label b) findwindow Link Label finds the mozilla browser but with the found browser i can get the url of the browser but i …

Software Development visual-basic
Member Avatar for coollife
0
223
Member Avatar for Ryujin89

With assistance from others, I have an program that allows a user to input their employee name and number and then their hourly wage and their total number of regular hours and overtime hours. The program I need assistance with reads in that file, adds a new field at the …

Software Development api gui java java-swing
Member Avatar for Ryujin89
0
308
Member Avatar for valter

Hi, I have been trying to solve this problem without any luck. Can someone please have a look at this code as it doesn't work Thank you After clicking a button I refresh the picture box the code below is in the picbox.Paint event. Basically what I am trying to …

Software Development
Member Avatar for valter
0
121
Member Avatar for jigglymig1

I have to call in two files, both have 20 letters in them. my program needs to be able to handle up to 50 chars and stop at the blank space. i need help getting the chars into the array and stopping at blank space [code] #include <iostream> #include <fstream> …

Software Development c++
Member Avatar for jonsca
0
89
Member Avatar for Alinthea

Hey guys. I am currently trying to get to grips with C++ and I am trying to create this little program. What I am trying to do is create a 'square' program, that prints out the entered number from the user, then prints the *'s to create a square. However, …

Software Development c c# c++
Member Avatar for mrnutty
0
89
Member Avatar for MooAndStuff

Hey guys, im having some trouble in finding what I should return with the [] operator overloading. Here is my implementation code: [CODE] template <typename L> L& List<L>::operator[](int index) throw (ListException) { if (index >= length || index < 0) { throw ("In function: operator[]: index >= length or < …

Software Development c++ linked-list
Member Avatar for jonsca
0
106
Member Avatar for meowbits

The code not listed has an arraylist named unsorted size 1000, and another array named keys_Array, size 100. Every element from the keys_Array was picked from the unsorted, so they should always be found. Problem I'm having is that it doesn't print anything. It just reports a msg from the …

Software Development ide java
Member Avatar for meowbits
0
126
Member Avatar for alexa868

hey guys, I want to write a program to transform numbers to letters if I write 652 I want the program to print six hundred fifty two I have written this but I have a problem. For the 652... I get six hundred 5 2. The numbers are in spanish …

Software Development c++
Member Avatar for alexa868
0
106
Member Avatar for play_c

Hi all, Can any one tell me why this following code is not working. [CODE]#include <Windows.h> #include <iostream> #include <string.h> using namespace std; //Just a function DWORD WINAPI StartThread1(LPVOID iValue) { int iStart = 0; for(int i=iStart;i<=10000;i++) cout<<"i = "<<i<<endl; return 0; } //My Class class ThreadTest { public: ThreadTest(); …

Software Development c++
Member Avatar for play_c
0
3K
Member Avatar for wild_angel

I have 2 buttons in my form. The first button to fill the JTable from .xls file and the second button to save the content of the table to database (MySql). I haven't figure out yet the way to save data from JTable to MySql. :confused: So, can anybody help …

Software Development java mysql
Member Avatar for wild_angel
0
110
Member Avatar for scriptkiddy

Hi guys, I have to do the following, but I am not sure how to go about doing it. For example, I am trying to make my edit box change font color. So if the user inputs: Hello Everybody! I would need to change the color of the '!' to …

Software Development c++
Member Avatar for scriptkiddy
0
251
Member Avatar for tlj333

I'm having the hardest time figuring out how my latest homework assignment is supposed to work. Basically we have to write a program that creates a list containing names. The list will then be sorted, written to an output file, and searched. We get the names from a text file …

Software Development python
Member Avatar for vegaseat
0
130
Member Avatar for amer_milo

[code] //Student Name: Mohamad Amiruddin & Frank Douglas //Course: Diploma in Information Technology //Group: IT3 //Student ID: 0165-DDC-08 & 0684-DDC-08 //Program Name: Student Grade Report //Assignment Number: 1 //Assignment Name: Assignment 1 (Mini Project) #include <iostream> #include <fstream> #include <iomanip> #include <string> using namespace std; //Content Declaration void reportHeader_weigtage (string …

Software Development c++ ios
0
282
Member Avatar for CRD

I was told once that If I wanted to know what functions were available in a given header that I needed to open a header file and look. code /* * stdio.h * This file has no copyright assigned and is placed in the Public Domain. * This file is …

Member Avatar for Ancient Dragon
0
266
Member Avatar for Aiban

Hi Everyone. I want to use this thread for some help as i'm sure this will not be the only question as i have just over 300 lines of code from my old python 3.1 script. I'm now using 2.6.4 and it is obvious some code isn't backwards compatible. Soooo …

Software Development python tkinter
Member Avatar for Aiban
0
141
Member Avatar for meowbits

I'm trying to randomly select 100 values from an array of 1000. How do I do this? Also, after selection, how can I add these 100 values into a new array. Do I need to do something like this with a loop? [CODE]for (x = 0; x < 100; x++){ …

Software Development java
Member Avatar for meowbits
0
2K
Member Avatar for Bluesilver

So basically my assignment is to write a few Java methods that contain arrays in the parameters, and then test each one using a main method within the same class. However, I can't figure out how to invoke the methods... I keep getting a compiler error that states "join(char[]) in …

Software Development java
Member Avatar for darkagn
0
194
Member Avatar for jk8204

Having problems succuessfully populating the listBox via arrays. Array size is input by user. Also, cant quite get the SaveFileDialog working with the option for the user to create own filename & location. [CODE] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; …

Software Development
Member Avatar for DdoubleD
0
154
Member Avatar for kingsboro2008

This is the first time I've posted a question so forgive me if I become vague. I will try my best to be as detailed as possible. I am creating a card game in Java that compares card hit points. The hit points are accessed from an input file. The …

Software Development java
Member Avatar for kingsboro2008
0
97
Member Avatar for ifezuec

how do i use netbeans to compile and run java. it seems complicated or rather direct me to a site

Software Development java java-netbeans
Member Avatar for Ezzaral
0
115
Member Avatar for miclo

Hey, I have a slight problem. I have managed to figure out how to copy and move files to XP's start up folder, and in some accounts Vista's startup folder. Now with Vista I can successfully copy and move the file to my own user account, but how do I …

Software Development c++ microsoft-windows windows-vista
Member Avatar for mikiurban
0
119
Member Avatar for shellthor

I am having a problem updating an access database with new information from an updated dataset. the database consists of 4 columns: User_ID, Login_Name, Password, Access. The following code makes a connection to the database, fills a dataset with the data from the database, reads a txt file with user …

Member Avatar for mikiurban
0
191
Member Avatar for Stefano Mtangoo

I have tried to do some Major C++ project with big failure as result. This produced great heart ache that made me recoil from doing further C++ projects. Here is the partial list of my failure: simple encoder with lame_enc.dll, simple CD Ripper with akrip32.dll, simple database manager with wxSqlite3.....et …

Software Development c++
Member Avatar for Stefano Mtangoo
0
141
Member Avatar for june_me

for novices: what is' freopen()' function in C language and how it works?...thanks

Software Development c++
Member Avatar for Nick Evan
0
98
Member Avatar for Stefano Mtangoo

Hi All, is there a trick in wxPython to skin application to look like this one? What are pros and cons if any? Take a look [URL="http://www.fileguru.com/images/b/audio_recording_studio_multimedia_sound_tools-5778.gif"]Here[/URL] Cheers :)

Software Development python
0
142
Member Avatar for mhangman

Hi all, Im trying to add tags to my blog post. i did it its done but i wanted more so when users click the link of tag, they will see other post tagged same. anyway here my view_tag function [CODE]def view_tag(request, tag_id): tag = Tag.objects.get(pk=tag_id) news = tag.pnews_set.all() return …

Software Development python
Member Avatar for mhangman
0
106
Member Avatar for buffonomics

Java has matured in terms of UI presentation. search project Aerith for examples on some of the neat things that can be done when mixing JOGL, Swing and Java2d. However, it seems these only work on windows. Mac is still strangely alienated from the Java revolution, cuz Steve still strangely …

Software Development java java-swing
Member Avatar for buffonomics
0
168
Member Avatar for babylonlion

Hello, I need to re size the square whenever I move the slider; how can I accomplish that? Your time and effort are appreciated. [CODE] import java.awt.*; import java.awt.geom.*; import javax.swing.*; import javax.swing.event.*; public class SquareSliderTest{ public static void main(String[] args){ EventQueue.invokeLater(new Runnable(){ public void run(){ SliderFrame frame = new …

Software Development java java-swing
Member Avatar for babylonlion
0
122
Member Avatar for gangster88

The function below is supposed to ask the user to enter a choice of rock paper or sciessors and output an error mesage if the user enters an invalid choice and then ouput a message if they won, drew or lost against the computer. [code] def rockPaperScissors(): import random choice=raw_input("please …

Software Development python
Member Avatar for sentinel123
0
239
Member Avatar for elomanias

Hi Folks the game runs. jippie, but i have a small problem i cant get the board to get drawn from left to right, its drawn from upwards to downwards hope anyone can help me Sincerly elomanias

Software Development python
0
411
Member Avatar for juice_0032

I am attempting to use VB2008 Express to Display, Edit, and Append an Access database. I can display information fine, but for some reason updating the database is posing an issue. The code below runs fine and doesn't throw any exceptions. However the Access database itself does not update. When …

Software Development microsoft-access vb.net
Member Avatar for TomW
0
232
Member Avatar for sciwizeh

Hello All, it's been a while since I've had a question for you all. I'm trying to write a paint app, I've done so before, but this time I decided to add Layers, and I wanted a JList of the layers, I wrote a cell renderer, that not only renders …

Software Development java
Member Avatar for Ezzaral
0
148
Member Avatar for fishsqzr

I am trying to use form inheritance in C#/NET 2.0 and find that some things (which were possible in other systems) do not seem to work here. Actually, even inheriting a form seems do be a bit of a chore (and the C# Help does not mention it at all). …

Software Development c#
Member Avatar for dhar_sudipta
0
177
Member Avatar for StarZ

hi, I've recently downloaded Java on my computer I think I downloaded the "windows app" one. When I try to launch drjava, this errors pops up and it says: An error occurred in Dr Java: java.lang.ArrayIndexOutOfBoundsExceptions:-1 You may wish to save all your work and restart Dr Java. I've downloaded …

Software Development java
Member Avatar for masijade
0
259
Member Avatar for jeffrey4u

My project is connected to odbe driver with access database. i have another database with the same table and fields on my hard disk. i now want to use common dialog box to locate the access database on my hard disk and append the records in it to the running …

Software Development visual-basic
Member Avatar for jeffrey4u
0
94
Member Avatar for lewashby

I'M reading the book "Python Programing second edition for the absolute beginner". While explaining the object paramater whithin a class, this how it reads. Base your class on [I]object[/I] , a fundamental, built-in type. Can someone please tell me what that means? Thanks.

Software Development python
Member Avatar for mn_kthompson
0
131
Member Avatar for dgr231

Hey all, I am currently working on building a small text-based RPG to practice C++. I am working on a function to load a saved game from information saved in a text file. Below is the code for the function: [code=cplusplus]void getSavedGame(playableCharacter& player1) { int stamina, health, mana, level, strength, …

Software Development c++
Member Avatar for dgr231
0
244
Member Avatar for 00musdan

Hello everyone i know very little of Java and need help with a project. If anyone could send some code or even help explain where i should start i would very much appreciate it. This is what the teacher gave us for the project outline on what the code should …

Software Development java
Member Avatar for 00musdan
0
163
Member Avatar for memory100

question: 4. A program is required for a grocer that will add two weights together (in pounds and ounces). The program should also convert the total weight to a value in kilograms. Use three functions. Function 1: allows the user to enter the name of the produce, and the weights …

Software Development
Member Avatar for Geekitygeek
0
106
Member Avatar for sidd.

hi, i drew a line which fit in the output form when it is in minimized state. but when the it is maximized line remain the same height but the window expand. i want that the line and window expand and shrink in same ratio. i hope i made u …

Software Development
Member Avatar for Geekitygeek
0
105
Member Avatar for cstrachan

I am trying to write some test code to simulated a blue screen application event log entry. I have the generic function [CODE] private void AddEventLogEntry(string source, string errorText, int eventId, short category) { string log = "Application"; if (!EventLog.SourceExists(source)) EventLog.CreateEventSource(source, log); EventLog.WriteEntry(source, errorText, EventLogEntryType.Information, eventId, category); } [/CODE] This …

Software Development
Member Avatar for DdoubleD
0
110
Member Avatar for StaticX

<thread split from [URL="http://www.daniweb.com/forums/thread172315.html"]here[/URL]> Could i have an elaboration on this explanation please? My poblem being that i have wrote 2 objects to a binary file called "data.dat" No problem there. But then i have a function that needs to find the number of objects in the file.I can do …

Software Development c++
Member Avatar for Ancient Dragon
0
90
Member Avatar for lewashby

Does anyone know where I can find a goo pdf python reference for the following? pre built constructors, functions/methods for the follwoing tuples, lists, dicts...etc I hate reading a book with nothing but quick explanation, I want to see them for myself. And I already know how to find them …

Software Development pdf python
Member Avatar for python user
0
187

The End.