132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Petrock6

Hello. I'm a bit confused, and I don't know QUITE how to explain it, however I'll try my best! Anyway, say I wanted to code a API, that would grab a list from ANOTHER program. For example, if I had a small chatting program, and there was a list of …

Software Development api visual-basic
Member Avatar for vb5prgrmr
0
96
Member Avatar for brieghz23
Member Avatar for siu17

I have been trying the following code for a code to search for a record and display it in a textbox Option Explicit Dim conn As ADODB.Connection, rec1 As ADODB.Recordset Dim esql1 As String Private Sub Form_Load() Set conn = New ADODB.Connection Set rec1 = New ADODB.Recordset conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data …

Software Development open-source visual-basic
Member Avatar for vb5prgrmr
0
144
Member Avatar for gingank

Hi guys can you all help me with this. I need to sure will the this idea can be make in vb6. I have a update command button. When click then type the badge id , it will automatic get the data and show the employee name then the rest …

Software Development sql visual-basic
Member Avatar for 9884616532
0
304
Member Avatar for siu17

hi i have been able to update a database using the following code Option Explicit Dim conn As ADODB.Connection, rec1 As ADODB.Recordset Dim esql1 As String Private Sub Command1_Click() On Error GoTo 2 If Text1 = "" Then Command1.Visible = False Command2.Visible = True Exit Sub End If rec1.AddNew rec1.Fields(1) …

Software Development display open-source visual-basic
Member Avatar for vb5prgrmr
0
97
Member Avatar for new_divine

i'm a bachelor student doinmg b.e in computer and as my project i've decided to make an banking application using wx widget and i'm really frustrated tring to figure it out .Being new to it i need some help

Software Development c++
Member Avatar for Stefano Mtangoo
0
334
Member Avatar for amarucla

Hi All, I'm working on a GUI project that involves continuously reading data (which is a waveform - like a simple sinusoid) from a file (which gets periodically updated), and displaying it as a pixel-based image. I was able to follow some tutorials online and install Allegro and successfully plot …

Software Development c c# c++ gui opengl
Member Avatar for Stefano Mtangoo
0
926
Member Avatar for Shaitan00

Currently I have an application (A.exe) which determines when things need to be done, when such a time arises it launches another application (B.exe) with the appropriate parameters to do the actual work required, some of which could be administrative work (installing MSI, editing registry, etc...). This all works perfectly …

Software Development c++
Member Avatar for Ancient Dragon
0
265
Member Avatar for Stefano Mtangoo

I have two classes, one inheriting wx.Frame and othe is wx.Dialog. I use the dialog to collect some info and I call its object in the wx.Frame class. The problem is, the dialog should return the value of its TextCtrl values and I have no Idea how to do it …

Software Development python
Member Avatar for Stefano Mtangoo
0
69
Member Avatar for wingers1290

Hi, Does anybody know how I can create a bunch of textboxes and buttons without having to write each one individually e.g [code] Button button1 = new Button; button1.Location = new Point(1,20); this.Controls.Add(button1); [/code] And then having to go onto the next one e.g button2. Please help

Software Development c c# c++
Member Avatar for wingers1290
0
86
Member Avatar for wingers1290

Hi, I am creating a program on behalf of my business and have become stuck in one particular matter. I am fairly new to C#. The application consists of the user entering data into a mixture of comboBoxes and textboxes, after the user has entered the data he clicks the …

Software Development c c# c++
Member Avatar for wingers1290
0
2K
Member Avatar for agent154

OK, so I'm somewhat experienced in Java, and am learning C#. I'm currently on the topic of Inheritance and Polymorphism. What I read is that if a base class has a method that is marked as virtual, then the inheriting class has the choice to override that method if it …

Software Development visual-studio
Member Avatar for agent154
0
359
Member Avatar for Arrorn

How do I run a .py file from another python file.... I want a program depending upon the option you choose to run a different python program... Ho do i do this... I have tried: [CODE=python] import os if os.path.isfile('file.py'): exec(open('file.py').read) [/CODE] and it requires everything to be global.... only …

Software Development python
Member Avatar for Arrorn
0
109
Member Avatar for NickMalone85

I've developed an Application for work that allows employee's to request vacation time off. I developed the application on a computer that had the .NET 3.5 Framework. I didn't realize until after I published the application that many of the computers do not have .Net 2.0. I fixed that problem …

Software Development
Member Avatar for serkan sendur
0
80
Member Avatar for flipjoebanana

I can't get the menu or status bar to show up when executing the following program: [code=python] import wx ID_ABOUT=101 ID_EXIT=110 class MainWindow(wx.Frame): def __init__(self, parent,id,title): wx.Frame.__init__(self,parent,wx.ID_ANY,title,size=(200,100)) self.control = wx.TextCtrl(self, 1, style=wx.TE_MULTILINE) self.CreateStatusBar() #A Statusbar in the bottom of the window #Setting up the menu. filemenu = wx.Menu() filemenu.Append(ID_ABOUT,"&About"," Information …

Software Development python
Member Avatar for Stefano Mtangoo
0
153
Member Avatar for sravan953

Hey guys, I wanted to make a program which keeps asking you questions, and continues on and on based on your answers... So basically, I wanted to know whether the user has typed 'why' in the first input, so I tried: [CODE]s=raw_input("Are you feeling bored?\n") s1=[s] a=0 for x in …

Software Development python
Member Avatar for zachabesh
0
96
Member Avatar for Dan08

I'm doing a program on Windows Vista, and what I'd like to do is a program that has got a main window, and has got another window that control the main one, like Microsoft Access. Can anyone help me out how to do it if possible. Thanks Dan08.

Software Development microsoft-access python windows-vista
Member Avatar for Stefano Mtangoo
0
109
Member Avatar for Morika

Hi, Again I'm a newbie, going through how to think like a computer scientist online tutorial. I have 2 questions in the next lesson that I can't seem to crack, in relation to sub strings. Here's the questions and my working below: This one I can remove letters but I …

Software Development python
Member Avatar for woooee
0
106
Member Avatar for osmano807

Hello, I would like to know how to create a symlink in Windows, Linux is easy, just use [icode]symlink()[/icode], but Windows is complicated! Someone has managed this before?

Software Development c++
Member Avatar for osmano807
0
81
Member Avatar for Alva1

Hey, i was trying to make a multiplication word problem type thing and when hit debug it always says what my title is. Here's my code. [code] #include <iostream> void main(); { // Declare Variables!!! char name[15]; short quantity; float amount; float totalSale; cout << "Enter Customer's Name: "; cin.getline(name,15); …

Software Development c++
Member Avatar for Alva1
0
178
Member Avatar for wotthe2000

Hi I am wondering how to write a list to an html file from scratch. I am currently writing it to a file using: [icode] def wpubooks(self): for i in booklist: s=str(booklist) f=open('/booklist', 'a') f.write(i + '\n') [/icode] Is there a way I can change that code so that it …

Software Development html-css python
Member Avatar for zachabesh
0
142
Member Avatar for KirkPatrick

Alright I am having my program read two text files (in csv format) and once it reads them, I am wanting it to do a check to see if two columns match, if they do I want it to write it to a new file. I have coded it, but …

Software Development java
Member Avatar for BestJewSinceJC
0
718
Member Avatar for jayrodau

I am looking for a xml creator/editor with treeview using Tkinter. I want to be able to load and save changes. Any help would be greatly appreciated or snippets. Thanks!

Software Development gui python tkinter xml
Member Avatar for vegaseat
0
1K
Member Avatar for group256

Hello everyone, I'm trying to write a recursive function that receives a string and checks whether all characters are capital or not, if not changes them into capital. Here is the code I wrote: [CODE]#include <iostream> 2 using namespace std; 3 4 void toUpperString(char *p); 5 6 int main() 7 …

Software Development c++ ubuntu
Member Avatar for group256
0
137
Member Avatar for thr

Hello please help me [code] class X { protected: int x,y; color cl; X-type type; char a; }; ----------------------------- X* arr[10][10]; int main() { ... } [/code] ------------------------------ i want define a constructor to this class that declare for x, y like: arr[2][1]->x=2; and arr[2][1]->y = 1; that declare any …

Software Development c++
Member Avatar for thr
0
101
Member Avatar for Egypt Pharaoh

How Can I make a Botton in windows control library

Software Development
Member Avatar for sid78669
0
116
Member Avatar for rciprogrammer

How do I 'restore' my output (stdout) back to the terminal after redirecting it to a file. I want to be able to output to a file for a specific section of code, then close that file and put output back to the screen/terminal. [code=c++] fprintf(stdout, "This will go to …

Software Development c++ file-system
Member Avatar for rciprogrammer
0
6K
Member Avatar for tdeck

As far as I can tell, this method is returning a blank line every other line, but I can't figure out why: [CODE] public static List<string> plain(string path, int num) { List<string> result = new List<string>(); StreamReader reader = File.OpenText(path); string line; int i = 0; while ((line = reader.ReadLine()) …

Software Development file-system
Member Avatar for lighthead
0
160
Member Avatar for cbebop

The program lets the user be the customer, banker, or supervisor, and all of their privileges involve structs. I made an array of 100 structs for 100 potential customers, and I need to do something similar for banking. I'm trying to put customer and banker's info detailed in that struct …

Software Development c++ ios user-interface
Member Avatar for cbebop
0
150
Member Avatar for kspriya01

how to scroll the text in that label windows application.

Software Development c c# c++
Member Avatar for tdeck
0
84
Member Avatar for hughesadam_87

Hey all, I have been reading some older posts on line/list manipulation, but don't quite understand exactly how to implement all of the tools that you guys are using (line.strip() for example) to get what I need. Essentially, I have a working program that iterates through data and outputs it …

Software Development python
Member Avatar for tdeck
0
21K
Member Avatar for veru

[code] #include<iostream.h> void ascending(int,int); int main() { int array_size=10; int numbers[]={3,54,23,0,677,45,77,342,4,10}; cout<<"The numbers are: "<<endl; for(int i=0;i<10;i++) { cout<<numbers[i]; } cout<<"the ascending form is: "<<endl; ascending( numbers[], array_size); return 0; } void ascending(int numbers[], int array_size) { int i, j, index; for (i=1; i < array_size; i++) { index = …

Software Development c++
Member Avatar for chaines51
0
108
Member Avatar for wingers1290

Hi, I am creating a program on behalf of my company and am stuck in one particular matter. I am fairly new to C#. At the moment I am creating a textbox, label and a button at the push of a diffrent button with the following code. [code] TextBox textBox6 …

Software Development c c# c++
Member Avatar for Antenka
0
401
Member Avatar for Rockpile

Hello, I am new here.. I came here looking for help with some ACPP questions and found a couple. So now, hopefully, I can give back a little, but with a question! Here is my solution for ACPP Exercises 4-2 through 4-4 (sort of, I havent switched it to use …

Software Development c++
Member Avatar for Rockpile
0
181
Member Avatar for chaines51

Is there ANY standards compliant way to get unbuffered input from the console without the characters being automatically displayed? because, although I can reset the buffer on cin to 0 with [icode]cin.rdbuf->pubsetbuf(0,0)[/icode], when I do this, it outputs all characters twice (because it outputs them by default once?) The reason …

Software Development c++
Member Avatar for chaines51
0
441
Member Avatar for mimsc

I did a google search and found that PHP uses: $_SERVER['HTTP_USER_AGENT'], which would give the following result, should I visit a page: [code] Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/528.16 (KHTML, like Gecko) Version/4.0 Safari/528.16 [/code] is their any functionality in java that will do the same?? …

Software Development java os-x
Member Avatar for mimsc
0
89
Member Avatar for pltndragon

I'm supposed to dynamically allocate an array of integers. The function should accept an integet argument indicating teh number of elements to allocate. The function should return a pointer to the array. This is what i got so far. [code] #include <iostream> using namespace std; //Function prototype int *arrAllocator(int); int …

Software Development c++
Member Avatar for pltndragon
0
423
Member Avatar for colmcy1

Hey All, I am having a problem with the function "SetForegroundWindow". From googling I am readin that it does not work for MSVC 6 MFC on a vista machine???? I am trying to write code that will check if a window is open, if the window is open bring the …

Software Development c++
Member Avatar for tux4life
0
646
Member Avatar for Lensva

as far as i understand in order to sort a multidimensional array you have to make you own class that implements Comparator. the string which is to be sorted has the following structure: [0][0] filename1 [0][1]filesize1 [0][2]lastmodified1 [1][0] filename2 [1][1]filesize2 [1][2]lastmodified2 ... i want to be able to compare by …

Software Development java
Member Avatar for Lensva
0
543
Member Avatar for buchanan23

OK, so here is my problem. I have created this application that inventory's books & magazines. Everything compiles fine. I prompt the user at the beginning to pick the length of the array (stored in numBooks) then when it comes time to pass the array to the GUI, I get …

Software Development gui java java-swing
Member Avatar for buchanan23
0
174
Member Avatar for JohnPhilipps

Good morning, I have a small VB. app in VS2008 that opens a windows folder in maximized view. I am using the following code: [CODE] Dim startInfo As New ProcessStartInfo("explorer.exe") startInfo.WindowStyle = ProcessWindowStyle.Maximized startInfo.Arguments = "C:\Program Files\123 Systems\ExcelFolders\TechTimeSheet" Process.Start(startInfo)[/CODE] When using my app with windows xp it works well. It …

Software Development vb.net windows-vista windows-xp
Member Avatar for babbu
0
153
Member Avatar for Para2x

[B]Hello to All i want to read txt file that contant some data's such as :[/B] [CODE]1,2,3,4,5,6 7,8,9,10,11,12 13,14,15,16,17,18,19[/CODE] [B]and then write them into a two dimentional Array .[/B] for example : first line of file must be first row of array or another example the first data in first …

Software Development c
Member Avatar for Aia
0
125
Member Avatar for denniskhor

How to move all only one type of file to another directory? For example, i want to move only all .jpg only file to another folder in Python. I know batch is easier to do it, but i prefer in Python. Anyone can help?

Software Development python
Member Avatar for zachabesh
0
134
Member Avatar for pluring

Hi! I'm very new to both python and Tkinter and would be thankful for some help. i want to search a text document for a word and print each line that match the searchword in a text widget. [CODE]def ladda(): fts = 'thefile.txt' file = open(fts,"r") text = file.readlines() file.close() …

Software Development python tkinter
Member Avatar for pluring
0
2K
Member Avatar for Morika

Hi, With this tutorial, I've hit a few questions that I'm not sure what they are asking for. It's in the lesson on lists? Could you please advise what it is they are looking for, because to me it sounds like I'm just filling out the argument as shown when …

Software Development python
Member Avatar for woooee
0
86
Member Avatar for zachabesh

[CODE=python]>>> mylist = ['bunnies', 'apples', 'animals', 'fruit', 'amsterdam'] >>> for x in mylist: print '--------------' print x if x[0] == 'a': print "Removing ",x mylist.remove(x) -------------- bunnies -------------- apples Removing apples -------------- fruit -------------- amsterdam Removing amsterdam >>> print mylist ['bunnies', 'animals', 'fruit'][/CODE] The output should be bunnies and fruit, …

Software Development python
Member Avatar for zachabesh
0
92
Member Avatar for vishalonne

Dear Friend How can I check end of the text in rich text box using C#?

Software Development
Member Avatar for Ramy Mahrous
0
236
Member Avatar for hhprado

Hello Im a java Beginner and I need a program that the output is like this: * ** *** ** * and a Diamond Can s0meone make me a program of this.. Just a simple code. Thank you so much!!

Software Development java
Member Avatar for hhprado
0
164
Member Avatar for Devoney

Hi all, Yesterday I ran into RDTSC, very useful to have knowledge of, especially when you are using performance counters and timers etc. RDTSC will return a value to you (64 bit) which contains the current clock cycle of your processor. I have made a little program which requests the …

Software Development c++
Member Avatar for marco93
0
1K
Member Avatar for meshooo007

hi everybody i have a small problem. i want to create a telnet session to any other server and i want the socket client code that initiate connection with the server then i enter the password of server and last thing close the connection. could anyone please help me to …

Software Development c++ client-server session
Member Avatar for Nick Evan
0
117

The End.