43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for eskimo456

Hi there I am having a frustrating and strange problem. I am building a particle system. As a result I need particles to reset there variables to be reintroduced into the system. I have had it working in the past. I run through the system once, when the particles pass …

Software Development c++
Member Avatar for eskimo456
0
152
Member Avatar for JordanHam

I have a basic questions. I have written a program in C++ and I would like to create a GUI for it. I have a book Microsoft Visual Basic C++.net that has a great tutorial, but its in clr/c++. Is it possible to program a GUI in this language in …

Software Development c++ gui visual-basic
Member Avatar for drkybelk
0
197
Member Avatar for thetwig

I wrote a small program to demonstrate a problem im having with a bigger one so you dont have to look thru so much code. I'm having problems when I convert a double to an integer. [CODE]#include <stdio.h> #include <stdlib.h> int main(void) { double dNum; int iNum; char sNum[15] = …

Software Development c
Member Avatar for thetwig
0
209
Member Avatar for ayoba01

hello i want to know how to change the text alignment example text from left to middle in listbox also i would like to know how to make the text appear automatically when i run the program example in listbox "Welcome To Atm Machine" that's the problem thanks everyone

Software Development vb.net
Member Avatar for dxider
0
115
Member Avatar for C:\>

I have URL like this: [code]http://www.site.com/app/index.html#secret_code=gagh362%%23atg._f46&other=5449[/code] I need to pass gagh362%%23atg._f46 part to a string. All the examples i find are for simple PHP parameter parsing and i'm having difficulties to adapt them to this case. Can someone help?

Software Development java
Member Avatar for C:\>
0
135
Member Avatar for shena

Hi all, I would like to format a column in datagrid with 2 conditions. The column must be entered with only "N/A" or date (DD-MMM-YYYY) format value. [CODE] If Me.grdDataGrid.DataFormats(10).Format <> "N/A" Then MsgBox "Invalid Data Entry!", vbInformation Exit Sub End If[/CODE] The code above still produce "Invalid Data Entry" …

Software Development visual-basic
Member Avatar for shena
0
2K
Member Avatar for ChrisHunter

Hi, i'm tryin to use windows authentication to log into an application i have made. I have already worked out how to get the username but i can't figure out how to get the password too. Is this possible ? if so can anyone suggest any ways to do this …

Software Development c#
Member Avatar for ChrisHunter
0
124
Member Avatar for cppgangster

Hi dudes, I currently learning mfc and I wrote a modeless dialog canculator app for my job. As soon as I tried to launch the app I get error msgbox saying "inoretly installed app.."(the exe file was copied to another conputer). My target OS is xp 32, while I am …

Software Development c++
Member Avatar for cppgangster
0
164
Member Avatar for Swiftle

Hi! I'm trying to use a base class derivative in another derivative class constructor but it's not working. Here's what I have: [CODE] class A { ... }; class B : public class A { ... }; class C : public class A { C(A objA); } [/CODE] However when …

Software Development c++
Member Avatar for Mouche
0
197
Member Avatar for Thropian

I'm working on a script in python,tkinter that draws a triangle and moves it around the screen. unfortunately I can't get the arrow to move. I've tried using canvas.move() but that wants an x and a y not the set of 3 coordinates I have to make it a triangle. …

Software Development python tkinter
Member Avatar for Thropian
0
2K
Member Avatar for Sevyt

Was wondering, is it possible to create a class which has the majority of your keypress controls? Like allowing just letters or numbers in a textbox etc.... To make things clearer what i exactly want. I have a textbox on my form. This is a textbox for the postcode. The …

Software Development vb.net
Member Avatar for Sevyt
0
234
Member Avatar for kutuup

I have no idea what is going on here, first, the code: [CODE] #pragma once #include <stdio.h> //#include <stdafx.h> #include <allegro5/allegro.h> //#include <allegro_image.h> class DisplayController { public: int bitmapx; int bitmapy; // ALLEGRO_DISPLAY display; ALLEGRO_BITMAP *crosshairs; ALLEGRO_EVENT ev; ALLEGRO_EVENT_QUEUE *event_queue; void display() { this->event_queue = al_create_event_queue(); al_register_event_source(event_queue, al_get_mouse_event_source()); al_wait_for_event(event_queue, &ev); …

Software Development c++ microsoft-access
Member Avatar for kutuup
0
1K
Member Avatar for ndowens

[code]def cDownload(): print("Enter package name ") sName=input print("Enter download location ") sLocation=input command = "wget http://aur.archlinux.org/packages/" + sName + "/" + sName + ".tar.gz -O" + sLocation + "/" + sName + ".tar.gz" os.system(command) [/code] I get TypeError: Can't convert 'builtin_function_or_method' object to str implicitly

Software Development python
Member Avatar for ndowens
0
311
Member Avatar for ret801

ok someone please explain popen to me it runs subproccesses does this mean it can run programs from within my program? any help would be appreciated , there is not an easily spottable place that explains this. Thanks

Software Development python
Member Avatar for hondros
0
230
Member Avatar for SakuraPink

Hi everyone, Here is my problem: I have different data files each with several columns and row of data. datafile1 , datafile2, ... Now I need to do some simple math procedure of this data files, Lets say I need to add the 3rd column of datafile1 to the 2nd …

Software Development shell-scripting
Member Avatar for Fest3er
0
136
Member Avatar for montjoile

Why I can't compile without the [B]using namespace std[/B] line? I need to add .h in some libraries in order to being recognized by G++, but some others works without the .h extension. Why is that??

Software Development c++
Member Avatar for Duoas
0
280
Member Avatar for nonshatter

I have added a png image to a table in the database as a BLOB. Adding the image into the database is trivial. However, being able to display the BLOB back to the .png image format is bewildering me. Examples are hard to come by... How to display the BLOB …

Software Development display image perl
Member Avatar for roswell1329
0
610
Member Avatar for tawboiid

I am trying to read a long integer value from an Access database, do some math to the number, and save the result back to the database. I've never had a problem doing this with VB6, but with C# it is throwing an error when it tries to Update the …

Software Development c c# c++ cms microsoft-access open-source
Member Avatar for tawboiid
0
2K
Member Avatar for WolfShield

Hello guys, I am pretty new at (good) programming, so I had some pretty bad code I was using until I ran across some code and decided to model my code after it. I have the code so it has no errors, but when I run it (NetBeans) it doesn't …

Software Development file-system java java-netbeans java-swing
Member Avatar for WolfShield
0
148
Member Avatar for vanalex

Hello everybody! I have two questions about pointers and would be grateful if someone gave me some help. 1. When we use a table's name as a parameter the table is used as an address (the address of its first element). I mean, when i call a function that has …

Software Development c++
Member Avatar for vanalex
0
112
Member Avatar for WolfShield

Hello all, I have a window with a JList inside it. I would like each line in the JList to show up in a certain font. But when I try the 'setFont(font)' method where 'font' has already been defined it say that it cannot find the symbol 'setFont(java.awt.Font)'. Here is …

Software Development java java-swing
Member Avatar for WolfShield
0
137
Member Avatar for IMJS

Hello, please can I have some clarification to check I am not doing something very stupid? It seems sensible with all that I have read, but I'm not confident. I suspect I have memory leaks and want to make sure some fundamentals are correct before I start looking deeper. My …

Software Development c++
Member Avatar for mrnutty
0
187
Member Avatar for bibiki

I have this file that contains an instance of some Machine object. When I compile the file I have, it says that the class uses a deprecated API, meaning the Machine object. I tried looking for it in [URL="http://download.oracle.com/javase/6/docs/api/"]this[/URL] link, but I find nothing. I was wondering if anyone who …

Software Development api google-api java oracle
Member Avatar for bibiki
0
151
Member Avatar for DarkPyros

hey, i'm supposed to prompt a user to enter 6 sets of numbers, find the difference of each set based on which number is greater(so that no negative number will be seen, enter the difference into the array, rearrange the array in ascending order and then print the array. the …

Software Development c++
Member Avatar for DarkPyros
0
184
Member Avatar for yashsaxena

Hello All I have little confusion between Abstraction and encapsulation. Abstraction means Giving only essential things and hiding unnecessary details. Encapsulation means binding the data members and methods together in a capsule form to avoid accidental changes to data from external users. Now both uses hiding of data. What is …

Software Development c++
Member Avatar for yashsaxena
0
4K
Member Avatar for Ertzel

I'm trying to get a players name from a file on their computer and then display that name onto a Label on my chat program. This Label is also used when sending messages to the server in order to display the persons name with their message. The problem I'm having …

Software Development c++
Member Avatar for Ertzel
0
207
Member Avatar for ayagi

Unable to cast object of type 'System.String' to type 'System.Windows.Forms.TextBox'.

Software Development programming-construct vb.net
Member Avatar for ayagi
0
320
Member Avatar for pxndx

Hey everyone, i have a project i'm doing for school and i need some help, i'm not a big VB fan (i'm more into java) and i have to make a calender with combo box, numericUpDown a clock and 3 numericUpDowns for hour min and seconds, i would appreciate any …

Software Development vb.net
Member Avatar for pxndx
0
155
Member Avatar for ninjatalon

I have to make a lot of retangular boxes to make my program neat but i'm having a problem of adding boxes. I tried using the draw event in the tab page but everytime i scroll it will draw the lines again and messes up everything. Also when making a …

Software Development vb.net
Member Avatar for ninjatalon
0
166
Member Avatar for virendra_sharma

Hi i have c# code for to sort text file using quicksort algo, but the problem is that i can sort only upto 300MB , after that system get hang . i want to sort 1GB to 5GB text file. can anyone plz help me . here is the code …

Software Development
Member Avatar for pseudorandom21
0
1K
Member Avatar for cannadawoot

Got some problem... This code populates an 2d array and then adds it to an arraylist (all) It runs 3 times and each time the array place gets different values. But if you look in arraylist all, the arrays got same value because they point to each other. If I …

Software Development java
Member Avatar for cannadawoot
0
192
Member Avatar for majorawsome

I am just begining XNA and I am trying to do a 2D game but one of my pictures(Textures, Sprites, what-ever-you-call-it) won't load. I tried renaming it but still it doesn't recognize it. at first i thought it was hiding so I made the picture white (Because the background was …

Software Development audio
Member Avatar for majorawsome
0
152
Member Avatar for Behseini

Hi, Gribouillis, helped me to understand how to invoke a function by btn click event handler, at my last post.Now I am trying to understand how I can handle an selected item event from a list box? lets say I have a list box like below and I want to …

Software Development python tkinter
Member Avatar for Lardmeister
0
9K
Member Avatar for Purlox

Is there any way of getting input directly from keyboard without it getting written onto screen? I tried the standard O/I functions, but they don't help. I also looked into C libraries, but there wasn't and useful function (unless I missed some). I need only one one key from keyboard, …

Software Development c
Member Avatar for WaltP
0
139
Member Avatar for Naveed_786

Hi to all, How can i connect VB.NET with oracle i am using following connecting string for connecting VB.NET with SQL Server [CODE]Public ConnectionString As String = "Data Source=%server%; Initial Catalog=Inventory; Integrated Security=SSPI; Trusted_Connection=True;"[/CODE] And Class for sql server [CODE]Imports System.Data.SqlClient[/CODE] What class should i use for oracle.

Software Development oracle vb.net
Member Avatar for Naveed_786
0
86
Member Avatar for sadsdw

Hello everyone, I'm trying to declare a 2-dimension (A[][]) dynamic matrix but I'm having problems ... The A's elements need to be FLOAT. The size of lines and columns are both vectorX.size(). Could you help me please? One of error's message is: "cannot convert `double' to `float**' in initialization" [CODE] …

Software Development c++
Member Avatar for sadsdw
0
109
Member Avatar for winecoding

My current work needs to do the development based on open soure software. There is a class defined as DirLocator.java The code is as follows [CODE]public final class DirLocator implements IResourceLocator { /** The folder relative to which resources are resolved. */ private File dir; /** * Initializes the locator …

Software Development java
Member Avatar for winecoding
0
8K
Member Avatar for nethero

Hi there, I'm kind of new to python and I'm trying to extract a protein sequence from this webpage... [url]http://www.ncbi.nlm.nih.gov/protein/BAH23558.1[/url] When I use urllib.urlopen the html it gets does not contain the sequence data. When I open this page in firefox and use firebug to look at the page I …

Member Avatar for nethero
0
245
Member Avatar for leo88

hi, now I wants to insert some records into table in Microsoft Access and C#, below is my codes : [CODE] SQLStr = "Insert Into RegisterEmployee(EmployeeName,Password,Gender,ContactNumber,Position) " + "Values ('" + SQLStrCmd.ReplaceStr(nameReg.Text) + "', '" + SQLStrCmd.ReplaceStr(passReg.Text) + "', '" + SQLStrCmd.ReplaceStr(genReg.Text) + "', '" + SQLStrCmd.ReplaceStr(Hptxt.Text) + "', '" …

Software Development microsoft-access sql
Member Avatar for leo88
0
218
Member Avatar for virendra_sharma

Hi frnz , i want to indert , update , delete and search data in .csv file . data like record first name, last name, phone no , email-id .

Software Development
Member Avatar for abelLazm
0
158
Member Avatar for [V]

I have a string that looks like: IiiiiiiiiiiHHHHHHHHHHHHHHHHHHHHHHHHHooooooooooooooooHHHHHHHHHHHHHHHHHHHHiiiiiiiiiiiiiiiiiiHHHHHHHHHHHHHHHHHHHHHHHHHooooooooooooooooHHHHHHHHHHHHHHHHHHHHHHHHHiiiiiiiiiiiiHHHHHHHHHHHHHHHHHHHHoooooooooooooooOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOooooHHHHHHHHHHHHHHHHHHHHHHHHHiiiiiiiiiiiiiiiiiiHHHHHHHHHHHHHHHHHHHHooooooooooooooooooooooHHHHHHHHHHHHHHHHHHHHHHHHHiiiiiiiiiiiiHHHHHHHHHHHHHHHHHHHHHHHHHooooooooooooooooooooooHHHHHHHHHHHHHHHHHHHHi I want to to capture all the segments that have H's in them and return their respective start & stop string positions. [CODE] tms = re.compile("H+") print tms.findall(string) [/CODE] This will find all the Hs but I cant get the string positions …

Software Development python regex
Member Avatar for Lardmeister
0
209
Member Avatar for virusisfound

I want to pass multiple select queary to datareader. how to do it. I know how to pass queary for one condition : [CODE] SqlConnection cn = new SqlConnection(); cn.ConnectionString = ""; cn.Open(); SqlCommand cmd = new SqlCommand(); SqlDataReader rdr; string s = "select * from abc where id like@find"; …

Software Development
Member Avatar for virusisfound
0
199
Member Avatar for Labdabeta

How can I send an email through C++. I need to make the following: [CODE]bool SendMail(char* from, char* to, char* title, char* msg) { //What now? //Return true on success, false otherwise }[/CODE]

Software Development c++ email
Member Avatar for Labdabeta
0
130
Member Avatar for nonshatter

All, I have been trying to debug this problem all weekend but I haven't been able to get any closer to the solution... I have just upgraded Mysql to 5.1 from 4.1 on a Red Hat 4 box. Everything is fine. I can connect to the database using the shell, …

Software Development apache perl
Member Avatar for nonshatter
1
732
Member Avatar for galhajaj

Hello! i am new in C# and i am trying to make a simple chess game but i need to clearify some things i guess... i understand how to add components to the Form1 with code - in my example i manage to add 8X8 squares class that inherit from …

Software Development
Member Avatar for ddanbe
0
177
Member Avatar for Smartflight

Ok, I received an assignment today, and we have our weekly test tomorrow. I was going through the 25 questions, and this is my first problem... The question is as follows: Write a program to keep count of created objects for a class. Make suitable assumptions. For example, in the …

Software Development c++
Member Avatar for mike_2000_17
0
118
Member Avatar for egmik3

I am a noob at shell scripting and have been reading up on this topic in random google searches. The only way that I saw that worked was creating a tmpfile. IE: [CODE] crontab -l > $tmpfile edit $tmpfile crontab $tmpfile rm $tmpfile [/CODE] I need a script that will …

Software Development shell-scripting
Member Avatar for gunasek12
0
7K
Member Avatar for noormoon

Hi every one, in fact need helps very quicly, I have project system have to use c++ program but i dont know how to include file in program to read and write. I will put my soluation to help me some one and the question, to know the person who …

Software Development c++
Member Avatar for noormoon
0
98
Member Avatar for jmurph333

I use a Form to gather Input from the user, and my program needs to format the info and show it in a Text Box. Everything works except 2 of my variables need to look like this in the output: "variable". The problem is that I can't find a way …

Software Development
Member Avatar for jmurph333
0
131
Member Avatar for weblover

Hello all, i have a text file that contain data like this: [CODE] 1 0.3232 0.361 0.5214 0.233 -0.7678 2 0.3451 0.321 0.134 0.224 -0.706268 3 0.3123 0.351 0.155 0.523 -0.70626 4 0.36 0.312 0.216 0.233 -0.6453351 5 0.269 0.3331 0.162 0.224 -0.584962 [/CODE] i did this using [CODE]string[] data …

Software Development
Member Avatar for ddanbe
0
1K

The End.