132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Ramy Mahrous

Here's I wrote some code to validate user input without using if\else statements. I believe in scalability is the most important aspect in our problems solution. Let's say we are required to permit only numerics in some text boxes; we shouldn't develop something like that [iCODE]if(((e.KeyChar < '0' || e.KeyChar …

Software Development open-source regex
Member Avatar for ADias-Jayasinha
0
369
Member Avatar for helpme87

so i am designing some software to prompt the user to enter their account number which in turn leads them to have to input their usage of ln. this then is to be displayed in a database file. i have all the code done for this. it reads in the …

Software Development app-store c++ file-system ios user-interface
Member Avatar for helpme87
0
151
Member Avatar for new_divine

i am trying compelete my project for college i am assigned to develop a businfo map in java and being a beginner in java i am completely lost in it. i am trying to use map images to show the paths and locations as start and destination. we should be …

Software Development java
Member Avatar for jon.kiparsky
0
337
Member Avatar for java..

i know the difference between interface and abstract. how it will differ in real-time application scenario. can you please explain with example?

Software Development java
Member Avatar for jon.kiparsky
0
217
Member Avatar for GrexD

The XML file has a series of source and ID code pairs which I want to display in a single cell in a table. For instance, it would look like this.. SourceA - 4598H67 SourceB - 98565 SourceC - 98ASD5 The code below adds them to a single cell but …

Software Development xml
Member Avatar for GrexD
0
93
Member Avatar for nocookies92

I'm trying to create a class that holds a 2D string array to be used by another class. For some reason, my IDE gives me a bunch of errors when I try to compile. Here's my code: [CODE]public class Lists { String[][] ListArrays = {"Why, Hello there!","Welcome.","blah blah blah","more useless …

Software Development ide java
Member Avatar for nocookies92
0
132
Member Avatar for rohith_08

can any one help me to do the project of computerised telephone directory.

Software Development c
Member Avatar for pheininger
0
246
Member Avatar for rogue005

Is there a way to match images and determine which two match? The images are not exactly the same but are similar!

Software Development image java
Member Avatar for NormR1
0
75
Member Avatar for palunix

what is the best C++ IDE that i can consider it as strtting point to use it in developing thank in advanced, IYad,

Software Development c++ ide
Member Avatar for palunix
0
188
Member Avatar for java..

how OOPS concept playing roles in terms of compile time and run time polymorphism. how inheritance and encapsulation and polymorphism applied in real time application. when and where and how to decide this oop concept fit for this like java bean,interface,abstract,etc?

Software Development java oop
Member Avatar for java_programmer
0
199
Member Avatar for killhha

iv seen the line 'halt' in some pascal programs after readkey or readln. what does halt do exactly?

Software Development pascal
Member Avatar for Turtle85
0
307
Member Avatar for NH1

I just need to know how to update a time when someone imputs a short version. such as, if i were to put "3a" in the label, i want it to automatically put in 3:00am. Is there any way to do such a thing.?

Software Development display
Member Avatar for NH1
0
78
Member Avatar for AngelicOne

I tried setting the value type as DATE but it's not being recognize.. I'm using SQL Server 2005.. I though date is a value type but it's not working..

Software Development sql
Member Avatar for nick.crane
0
118
Member Avatar for valter

Hi, I am looking for a way to split a series of sentences to no longer than 100 characters per line, but with the split being on a white space, so that words are not broken. Is there a regex or some way to do this. Thank you valter

Software Development regex
Member Avatar for PierlucSS
0
74
Member Avatar for Kanoisa

Hi all, Im wokring through NEHE's tutorials at the moment and building a cone approximation class to play with the code and learn from the examples but iv reached a snag. I cant get texturing the top curved part of the cone to work (i have called it a pyramid …

Software Development c++ opengl
Member Avatar for mike_2000_17
0
487
Member Avatar for judithSampathwa

Hi there, I have a question regarding file delete, for this I use the File.Delete() commend . as a parameter for this I send the file path. Which is “C:\\Documents and Settings\\awaduge\\My Documents\\Visual Studio 2008\\Projects\\Admin Application\\Admin Application\\Details\\P110082010112121\\Report\\Technical Sheet" And Technical Sheet is the file name. the file can be in …

Software Development c# file-system pdf visual-studio
Member Avatar for nssltd
0
186
Member Avatar for AngelicOne

i have textboxes that needs to have a value before passing it to database. How to do this? I'm new to windows form validation.. I know of something [CODE]if(textBox1.Text=="") { //do something }[/CODE] is this the right valdiation for windows form?

Software Development
Member Avatar for Geekitygeek
0
401
Member Avatar for imso

How do you allow the controls of an application to go back to the cursor of the textbox after checking that the textbox has an empty input? what i want is just the cursor back to the textbox to allow easy user access. thx :) [CODE]txtReminder.?????[/CODE]

Software Development
Member Avatar for nick.crane
0
138
Member Avatar for FPinget
Member Avatar for AndreRet
0
69
Member Avatar for syd919

helloz I am trying to make a program that calculates the distance between several cities and prints out the shortest distance of them all, the input will come from a textfile e.g 3 3 A 2 1 B 1 2 C 2 2 where the first two numbers are row …

Software Development c++
Member Avatar for Ancient Dragon
0
442
Member Avatar for Namibnat

I am new to working with Django, and have found it really fun and interesting to develop with. But I have been trying to upload it to a hosted server and just not getting it to work. I have followed the instructions they give, but just not getting it to …

Software Development apache python python-django
Member Avatar for Namibnat
0
223
Member Avatar for jop-pop

Hi, Need to do a project where the data from a HTML form is sent to Python, and then repackaged and sent back out as HTML. Problem is, I'm having issues with Python. When I run the form information with Python, I get this error: [QUOTE]There was an error with …

Software Development html-css python
Member Avatar for Beat_Slayer
0
453
Member Avatar for progcomputeach

I'm interested to see how many languages most programmers end up learning and what languages are the most useful or popular. I've seen people talk about Javascript, C, PHP, Visual Basic, SQL, Java, and Python a lot. I thought it would be good to write down a list of programming …

Software Development visual-basic
Member Avatar for nicolajoseph1
0
351
Member Avatar for Ketsuekiame

Exact Message: [CODE="plain"]Error 1 error C3861: 'SHOWERROR': identifier not found[/CODE] My Includes: [CODE]#pragma once // Exclude rarely-used stuff from Windows headers #define WIN32_LEAN_AND_MEAN #define SAFE_RELEASE(x) if( x ) { (x)->Release(); (x) = NULL; } #define SAFE_DELETE(x) if( x ) { delete(x); (x) = NULL; } #define SAFE_DELETE_ARRAY(x) if( x ) …

Software Development c++
Member Avatar for Ketsuekiame
0
304
Member Avatar for dadam88

There is a easier way and more efficent way to do this with a for loop I believe...I can't put the nail on it can anyone help me out? I want to move a character around in a array...right or left or up and down with md arrays. [CODE] #include …

Software Development c++
Member Avatar for Kanoisa
0
108
Member Avatar for venkatnams

Hey guys,,here is a code that i got to upload an image,,,,i seriously dont understand wat s going on in this code,,,could some one help me out,,,,pls,, [code=vb] Private Sub mnuRecordAdd_Click() Dim rs As ADODB.Recordset Dim person_name As String Dim file_num As String Dim file_length As String Dim bytes() As …

Software Development image seo visual-basic
Member Avatar for AndreRet
0
207
Member Avatar for Sheina_m

Hello experts! Since I am a newbie in the Vb programming, I'm really eager to ask you about making a search code. In my program, I have a textbox named txtCriteria.text, wherein the user inputs the title of the book they want to search. These are the objects I have …

Software Development visual-basic
Member Avatar for AndreRet
0
110
Member Avatar for NightKev

I've been putting together a player list for a sort of risk-like webgame-type thing me and a friend are working on, and I'm having trouble getting some text to display on a webpage. Here's the code: [CODE=Python]from django.http import HttpResponse class players: def info(self, name, territory, color): self.name = name …

Software Development python python-django
Member Avatar for tls-005
0
166
Member Avatar for hanvyj

I have a curius problem with my bitmap writing function, it takes a char array and writes a 24 bit BGR bitmap. It was working fine using an array captured from a camera, I printed out the content of the first couple of bytes: 132 135 131 132 135 131 …

Software Development c++
Member Avatar for hanvyj
0
214
Member Avatar for Tech B

I'm going to start learning web development useing Django. I'm following the tutorials on their site and when I run "python manage.py runserver" i get a traceback saying: [code] Traceback (most recent call last): File "manage.py", line 11, in <module> execute_manager(settings) File "C:\Python26\lib\site-packages\django\core\management\__init__.py", line 362, in execute_manager utility.execute() File "C:\Python26\lib\site-packages\django\core\management\__init__.py", …

Software Development python python-django
Member Avatar for tls-005
0
219
Member Avatar for Smithy566

Hi all, I'm having a bit of trouble trying to convert a string which represents hex, to a byte. Logic below, something like this: [CODE] String hexString = "0x5C"; Byte myNewByte; myNewByte = Byte.Parse(hexString); [/CODE] [B]Error: "The input string was not in a correct format"[/B] I know I can have …

Software Development
Member Avatar for Smithy566
0
96
Member Avatar for arjunaw

I have a class template (ExclusiveMap) which takes two type parameters C1 and C2 and declares two private members map<C1, C2> and map<C2, C1> (both STL maps). In test code I instantiate this class template providing types int and string for C1 and C2 respectively. The test code compiles cleanly …

Software Development c++
Member Avatar for arjunaw
0
180
Member Avatar for Levo

Hi, I am using the following code to download files from the internet: [code=c]size_t write_data(void *ptr, size_t size, size_t nmemb, FILE *stream) { size_t written; written = fwrite(ptr, size, nmemb, stream); return written; } int main(int argc, char** argv) { FILE *downloaded_file; if ( (downloaded_file = fopen (download_path , "w" …

Software Development c c# c++ file-stream file-system
Member Avatar for 0x69
0
2K
Member Avatar for AngelicOne

This is my current code [CODE] SqlConnection con = new SqlConnection("Data Source = .\\SQLEXPRESS; Initial Catalog = Library; Integrated Security = True"); string query = "select author_name from author"; SqlCommand cmd = new SqlCommand(); cmd.Connection = con; cmd.CommandText = query; SqlDataAdapter da = new SqlDataAdapter(); da.SelectCommand = cmd; DataTable dt …

Software Development
Member Avatar for AngelicOne
0
122
Member Avatar for aladar04

I have attached the files. I think, there's a problem with listarr.cpp. I'm not yet good at c++ terminologies, please take time to download and see the files. I use dev-c.

Software Development c++
Member Avatar for cgcgames
0
325
Member Avatar for trippinz

I have created a string in (e.g. Button1_click) Call that string "textboxtext" now for some basic text to assign to the string I did the following [code] public void button1_Click(object sender, EventArgs e) { string textboxtext; textboxtext = textBox1.Text; textboxtext += textBox2.Text; textboxtext += textBox3.Text; //Some other code later on …

Software Development c c# c++
Member Avatar for saravind84
0
179
Member Avatar for floris

Hi there, I have a script in my intranet to which I have 100% rights to run through browser using exec(); passthru(); system(); etc with php. Now we use this to make automated backups per user database of certain systems connected. Very simple for the end-user after done working and …

Software Development perl shell-scripting sql
Member Avatar for TheOgre
0
254
Member Avatar for nv136

I am having a tough time in vb.net to make the scrollbars to work of the contents of a panel.... here is my code Private Sub HScrollBar1_Scroll(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles HScrollBar1.Scroll Panel122.Left = HScrollBar1.Value now, i want to change .Left to .Right, but it won't …

Software Development vb.net
Member Avatar for Oxiegen
0
181
Member Avatar for zulhimi89

i want to know the code to produce colour in a box of my DB thx

Software Development vb.net
Member Avatar for zulhimi89
0
71
Member Avatar for mrnutty

Its a typical implementation of mergesort algorithm. It runs in a stable time of O(n*log(n) ). Just thought, I would add it to the library. Its been tested, although not very throughly, so if any bugs are found, just post it here, so others can be aware of them. Its …

Software Development algorithm c++
Member Avatar for Rashakil Fol
0
885
Member Avatar for EdAtTheAirport

Hey all. I'm a beginner. Please somebody tell me what's wrong with the simple use of my else statement. The compiler says: "Error. Expected a statement." [code] // IfDemo.cpp : Defines the entry point for the console application. // // demonstration of IF statement #include "stdafx.h" #include <iostream> using namespace …

Software Development c++
Member Avatar for EdAtTheAirport
0
123
Member Avatar for vbx_wx

I have to do this : define a float variable and take its adress,cast that to an unsigned char and assign to it to an unsigned char pointer: Why isnt this good ? [code] float f; unsigned char* c = static_cast<unsigned char>(&f); [/code]

Software Development c c# c++
Member Avatar for Narue
0
77
Member Avatar for gahhon

hey anyone, what is the meaning of while(!correct) ? when correct = 0, what is the meaning of it? i have to trace the output but i dont understand it. please help me (: thanks alot...

Software Development c
Member Avatar for Narue
0
135
Member Avatar for TrueVb.NetNoob

Hi guys! I wanna ask how to code to make a button make a sound out when pressed? Can you add sound files to it, like a mp3 file? Any suggestions? Thank You!

Software Development vb.net
Member Avatar for TrueVb.NetNoob
0
452
Member Avatar for Hardz

Hello, How do i select or set the focus of a particular cell in a datagridview? Actually, this problem is simple but it is hard for me to solve it coz i'm only a beginner in c#. So here is my sample list of students as shown below: [COLOR="Green"]Ann[/COLOR] Antoinette …

Software Development
Member Avatar for Hardz
0
959
Member Avatar for ceyezumma

//////////////////////////////////////////////// moving a .jar to sys dir ////////////////////////////////////////// Hello; I can make a .jar from my program and move it to a folder in my progject The Command to make the -cmf (non runnable) .jar works fine by adding the .jar to a folder in my project. but my question …

Software Development hard-drive java
Member Avatar for NormR1
0
109
Member Avatar for dadam88

I understand that bool means true and false. If I was doing a while loop... [CODE] while(!GAMEOVER) do all this... GAMEOVER = 1 or TRUE (loop exits) [/CODE] IS the above correct? And is there any other ways bools are used to help reduce clutter? Thanks, Derek

Software Development c++
Member Avatar for dadam88
0
93
Member Avatar for Fearx351

I am new to python and am actually using python as a result of taking a computer science class in college. I am writing a program to fit a hypothetical scenario. Well I have ran into a problem..Please help me! the traceback and snippet are below. [code] def high_Priority(): ## …

Software Development python storage
Member Avatar for Fearx351
0
143
Member Avatar for dchunt

I put all the contents of an array a[16] into a file. But when i read them how can i separate those numbers from each other instead of adding a space. what about putting the contents into a new line like 0 14 1 24 How do i do that …

Software Development c++
Member Avatar for cgcgames
0
113
Member Avatar for miturian

So, in advance, I have to admit that this is not quite as "good" a question as what is otherwise found here. It's not about a weird error, or something I can't figure out to do. I just get weird output. I've spent around 2 days simplifying the code, trying …

Software Development c++
Member Avatar for miturian
0
353

The End.