132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for amras123

for (int i = 0; i < 3; i++) for (int j = 0; j < 3; j++) if (j = i) table [i] [j] = 1; else table [i] [j] = 0;

Software Development java
Member Avatar for Dhruv Gairola
0
90
Member Avatar for Raja Paul

Hi, I want to create a project in vc++ which is having an explorer by which I can explorer the entire file system. I am using visual c++ 6.0. Anyone can help me?

Software Development c++ file-system
Member Avatar for WASDted
0
93
Member Avatar for kur3k

Hello, how can i block widget wx.TextCtrl ?

Software Development python
Member Avatar for cghtkh
0
85
Member Avatar for zacory

Hello, In s project I'm about to start I'm going to need the ability to search for files, so I figured I would use the _findfirst() function. I've used it in previous projects with no problems, but when I tested the function like so: [CODE] _finddata_t information; long reference = …

Software Development c++
Member Avatar for zacory
0
148
Member Avatar for richieking

[B][COLOR="Red"]IS ANYONE INTERESTED IN THIS APP???[/COLOR][/B] I am looking for guys 1 or 2 to write some open source application in python. We will decide what app. we want to write. 1.App in GUI (wx) 2.The app will have its dedicated website. 3. The app in multi platform And other …

Software Development gui open-source python
0
103
Member Avatar for Bold Eagle

I have a listview that is filled with an sql query from temp Sql DB that is created from a program that run from textbox inputs, which writes this db. When the select button is pushed it query loads the listview. Sometimes their may be "0" or null values in …

Software Development listview vb.net
Member Avatar for Bold Eagle
0
89
Member Avatar for Son of a gun

Evening I am writing a small program to present a UI that when selecting 1 item from a drop down list then gives the user a selection of data relating to their selection. For instance if Ford cortina was selected from a list of Ford cars on screen in the …

Software Development gui java
Member Avatar for quuba
0
128
Member Avatar for hiddenman91

**I make servlet and in servlet we make dropdown menu for display names against id but when we run the servlet drop down menu created but no values displayed form database in dropdown menu so pls help me. sorry for bad english** import java.io.IOException; import java.io.PrintWriter; import java.sql.Connection; import java.sql.PreparedStatement; …

Software Development java
Member Avatar for hiddenman91
0
287
Member Avatar for rincethomas33

i want to create a menu. if i press the menuitem,then a certain action will occure.. and so on... give the details please...

Software Development java
Member Avatar for Dhruv Gairola
0
128
Member Avatar for Tankadin

Hi folks....I have two separate copies of this program to show how my thought process worked in initial creation and how it has changed since I was helped by you folks in my airline reservation program. It does not work but I DID try to apply what I have learned …

Software Development java
Member Avatar for Tankadin
0
733
Member Avatar for tcon

hi im sorry if this isnt in the right forum but i cant seem to find any threads in this. i cant seem to create a datetime object in vb.net with datetime string that's in this format "hh:mm:ss tt MM/dd/yy". The error im getting says its not a recognisable string …

Software Development vb.net
Member Avatar for Luc001
0
2K
Member Avatar for harunosakura

I have a project where I need to add binary numbers using C language. I don't know where to start. Help?

Software Development c
Member Avatar for Lerilaine
0
199
Member Avatar for halopower67

Ok guys so i have a project to do for my c++ class and its supposed to be about two ships (one the player, the other one the computer) and they are on a 10x10 plane created by an array. I did the plane, now how do i get the …

Software Development c++
Member Avatar for invisal
0
122
Member Avatar for Kakashi Hatake

I am not able to get GDB to start in -tui mode. My OS is Win XP, here is what i do START->RUN->cmd([B]gdb -tui[/B]) gdb:TUI mode is not supported [B]gdb[/B] GNU gdb [U]6.8[/U] .... .... ....... This GDB was configured as "i686-pc-mingw32." I know that GDB supports tui mode from …

Software Development c++
Member Avatar for Kakashi Hatake
0
2K
Member Avatar for zhuimeng

Event in application log suggest to use sxstrace.exe utility to diagnosis, result of sxstrace.exe is: -------------------------------------------------- ================= 开始生成激活上下文。 输入参数: Flags = 0 ProcessorArchitecture = x86 CultureFallBacks = zh-CN;zh-Hans;zh;en-US;en ManifestPath = E:\3D-TEST\program\1.0.0edition.exe AssemblyDirectory = E:\3D-TEST\program\ Application Config File = ----------------- 信息: 正在解析清单文件 E:\3D-TEST\program\1.0.0edition.exe。 信息: 指令清单定义标识是 (null)。 信息: 参考: Microsoft.VC80.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50608.0" 信息: 参考: …

Software Development assembly c++
Member Avatar for Ancient Dragon
0
239
Member Avatar for Dean_Grobler

Hi there, I'm getting an error saying: non-static variable MainList cannot be referenced from a static context. My snippet of code where the error is occuring: [CODE] //this method is in a class called ViewContact public void printInfo(){ int index = MainScreen.MainList.getSelectedIndex(); } [/CODE] Now the List "MainList" is in …

Software Development java
Member Avatar for JamesCherrill
0
128
Member Avatar for XxPKMNxX

Been asked to write a program using Cream library. We have to used Constraints, but i have no idea what they are Could someone give an explanation of one and possibly some examples?

Software Development java
Member Avatar for XxPKMNxX
0
84
Member Avatar for lochnessmonster

[CODE]std::wstring isAdmin() { SID_IDENTIFIER_AUTHORITY pIdentStruct = SECURITY_NT_AUTHORITY; PSID ptrSidStruct; BOOL isMember = false; if (!AllocateAndInitializeSid(&pIdentStruct, 2,SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_ADMINS, 0, 0, 0, 0, 0, 0, &ptrSidStruct)) { return L"Unable to allocate & initialize SID struct"; } if (!CheckTokenMembership( 0, ptrSidStruct, &isMember)) { FreeSid(ptrSidStruct); return L"You do not have administrator priveledges."; } else …

Software Development c++
Member Avatar for mitrmkar
0
1K
Member Avatar for aabi

hi,.,.. i knwo its sound too fasicinating (about title)... and u might b thinking i would be a some kind of rocket programmer or hve gr8 skill over various programming languages ,,.... :icon_question: but unfortunately i dont fall in any these category ,.. actually i'm a student of computer science …

Software Development c++ operating-system
Member Avatar for Elihu5991
0
218
Member Avatar for gahhon

[CODE]do { ++temp_week; system("cls"); printf("\n"); printf("\t\t ***************************************\n"); printf("\t\t ***************************************\n"); printf("\t\t *** ***\n"); printf("\t\t *** WELCOME TO ***\n"); printf("\t\t *** CLASS ATTENDANCE SYSTEM ***\n"); printf("\t\t *** ***\n"); printf("\t\t ***************************************\n"); printf("\t\t ***************************************\n"); printf("\n\n"); printf("\t\t ******** MARKING OF ATTENDANCE ********\n"); printf("\t\t PRESENT = 1 ABSENT = 0\n\n"); for(i=0; fscanf(ReadFile,"%d|", &Student[i].studNo) != EOF; i++) …

Software Development c
Member Avatar for vinitmittal2008
0
146
Member Avatar for kuchick32

I'm working on a project and I have to extract each word of a line that the operator just entered in the program. I'm not sure how to do that. Any help with be super appreciated. Here is my code... [code] #include<iostream> #include<string> using namespace std;!! class StringModify! {! public:! …

Software Development c++
Member Avatar for jonsca
0
119
Member Avatar for charlie81

My assignment is to write a C# program that computes weekly pay for an employee. Input the number of hours worked. The employee receives 7.50 per hour for the first 40 hours worked and 11.25 per hour for each additional hour. Create Test data before coding and running the program. …

Software Development
Member Avatar for derea.tadea
0
1K
Member Avatar for plasticfood

i wrote a program that calculates how many coins that a vending machine splits out and such, and it does work but i can't figure how it works. at the time, i was sure of the logic, but now i can't understand how this is possible. [CODE] change = (amountPaid …

Software Development java
Member Avatar for masijade
0
158
Member Avatar for chris evans

Hey guys! Im looking for a class or code in VB.NET that can convert a black and white image in JPEG format to a grayscale TIFF format. Any1 with some idea or source i can get?

Software Development image vb.net
Member Avatar for chris evans
0
87
Member Avatar for dre-logics

I use: Visual studio 8.0 MySql database Two table's: table :Groups, two fields : groupnb,groupdef table Article,three fields : articlenb,group,articledef I want to show with the DataGridViewComboBoxColumn two fields from [COLOR="Red"]groups[/COLOR] table . But i want only link field "articlenb" to column, but a want o show filed "Articlenb" and …

Software Development display vb.net visual-studio
Member Avatar for vigorniensis
0
452
Member Avatar for getnit

Hi, My front end has a Tshape(Cirle) Over a Panel and I am trying to move the circle on the panel and get the X and Y values and send these values through comport for serial communication. However I am able to retrieve the values but the shape is flickering …

Software Development delphi pascal
Member Avatar for getnit
0
959
Member Avatar for shena

Hi guys, I have a very simple form with 2 textboxes only and a listview to display added record. Upon form load i wanted to sest focus to textbox1, but it shows this error: Run-time error 5:Invalid Procedure call or argument My form load code [CODE]Private Sub Form_Load() bModelMaster = …

Software Development listview visual-basic
Member Avatar for AndreRet
0
3K
Member Avatar for Martje

I am trying to set a value in string for dateTimePicker1 but when i try dateTimePicker1->Value=System::Convert::ToDateTime("18/11/2010"); it doesn't change anything, the old value stays thesame. How do i change the dateTimePicker to a string value?(for example : "18/11/2010") Thanks in advanced.

Software Development c++
Member Avatar for Martje
0
80
Member Avatar for plasticfood

[CODE]public static String strCap(String str){ //capitalizes the first letter of the string String newStr1 = str.replace(str.charAt(0), Character.toUpperCase(str.charAt(0))); int position = str.indexOf(". "); // looks for a period followed by a space while(position != -1){ newStr1 = newStr1.replace(newStr1.charAt(position + 2), Character.toUpperCase(newStr1.charAt(position + 2))); position = str.indexOf(". ", position+1); } return newStr1; …

Software Development java
Member Avatar for kola.naresh
0
93
Member Avatar for Vorwerkj

I have this struct for an item in a to-do list [code=c] struct Task { char description[TASK_DESC_SIZE]; /* description of the task */ int priority; /* task priority */ }; [/code] i'm just not sure how to alter the description while making a task using this [code=c] TYPE createTask (int …

Software Development c
Member Avatar for Vorwerkj
0
121
Member Avatar for it2051229

I am new in java swing and I created a frame... i checked the documentation API and it has this "setSize()" method.. so yeah i did set the size of my frame but everytime i run the program, it is not on the size that i have specified [CODE] public …

Software Development api java java-swing
Member Avatar for rincethomas33
0
160
Member Avatar for CharlieHolt

I am trying to pull coordinates for a form location out of a database and insert them into the Location property: [code] childForm.Location = new Point(/* coordinates go here */); [/code] I have tried doing a direct replacement with the DataSet (which didn't work): [code] childForm.Location = new Point((string)row["location"]); [/code] …

Software Development dataset
Member Avatar for CharlieHolt
0
194
Member Avatar for tvand7093

Hi, I am relatively new to c++ and DW so this may sound a little stiff. I recently learned about classes and I was wondering if there is a way to take user input and set that input to a private variable. I know it would require accessors methods, but …

Software Development c++
Member Avatar for tvand7093
0
77
Member Avatar for jbalaji87

i have a Jframe.in order to paint it i not using paintComponent but ordinary function containing g.drawstring("sd",0,0). when ever i click the mouse the string should appear at that point and it should move with the cursor until another click appears. my problem after clicking the string is not appearing …

Software Development java java-swing
Member Avatar for jbalaji87
0
103
Member Avatar for pgr_DW808

I am new to C++ programming and I'm having a little trouble. I have to create a program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 8%, with …

Software Development c++
Member Avatar for pgr_DW808
0
117
Member Avatar for mcodesmart

[B]Simple Question: Please read[/B] I have the following code snippet from my program that i am working on [CODE] bit running = 0; float var1, average_value; void is_something_running(void) { if (fabs(var1 - average_value) <= 0.001){ return *(&running) = 0; } else return *(&running) = 1; }[/CODE] var1 and average value …

Software Development c
Member Avatar for Ancient Dragon
0
124
Member Avatar for yongj

Hello, forum :) Does anyone know a c++ code that performs the same actions as a "tee" command does in linux? Basically what the tee command does is read an input from an input stream and directs it to two places: 1) Displays the input stream on the screen 2) …

Software Development c++ file-stream unix
Member Avatar for yongj
0
1K
Member Avatar for Phil++

Hey, I'm trying to download a file from the internet and save it to my desktop.. The code compiles but at runtime it does not download the file: [CODE] try { WebClient fileDownloader = new WebClient(); fileDownloader.DownloadFile("http://www.google.com/logos/2010/lebanonind10-hp.jpg", "/Users/p/Desktop"); } catch(Exception ex) { Console.WriteLine ("The file cannot be downloaded!"); } [/CODE] …

Software Development
Member Avatar for Momerath
0
71
Member Avatar for agons

Hey everyone, Im working on a few java programs for a class and this one i can't seem to find an answer anywhere for. I need to write a program that roll's a dice, which is simple, then i have to have it roll the dice 20 times. Also simple. …

Software Development java
Member Avatar for polk230
0
2K
Member Avatar for singlem1905

[I][CODE]execfile('comp1.py') def exefi(name, locals=None, globals=None): exec compile(open(name).read(), name, 'exec') in locals, globals exefi('comp1.py')[/CODE][/I] it can execute successfully. but [I][CODE]#execfile('comp1.py') def exefi(name, locals=None, globals=None): exec compile(open(name).read(), name, 'exec') in locals, globals exefi('comp1.py')[/CODE][/I] it come with "File "comp1.py", line 39, in <module> ex=c.end() File "comp1.py", line 17, in end return compile(string.join(self.code, "\n"),"<code>","exec") …

Software Development python
Member Avatar for singlem1905
0
119
Member Avatar for Nandomo

Okay. I have a program I am writing similar to the lottery, my input file provides 10 combinations and my rand() produces 5 random numbers which I want to compare them against using binary and linear search. I know how to compare them 1 number at a time, but don't …

Software Development c++ open-source
Member Avatar for Nandomo
0
796
Member Avatar for Safia Abdalla

I have been working on this simple text editor using Python 3 and Tkinter. This is my first time creating a program with an actual GUI and I have relied only on Tkinter documentation. I managed to create a text editor. However, we I started working on the commands of …

Software Development gui python tkinter
Member Avatar for TrustyTony
0
465
Member Avatar for glenc70

OK im not sure if this is a programming or pc problem but please read on ok i made a program to display playing cards in random locations using cards.dll just for a bit of fun but on my main PC which has 2.19 GHZ processor and 1 GB ram …

Software Development c c# c++
Member Avatar for glenc70
0
172
Member Avatar for steve_Student

Hi i am a total beginner and studying for a FD degree in C++. My assignment states Assignment Details a telephone company requires a program to calculate call charges for their customers. The regular charge rate for long distance phone calls is £1.50 for the first 3 minutes (or part …

Software Development c++ ios
Member Avatar for steve_Student
0
190
Member Avatar for lochnessmonster

Ok....so here is my problem. I want to release a library where with my dllInjection class, whenever the user instantiates an object, it will automatically perform the injection for the user. The only arguments they need to provide will be the processName, and dllName. Anyways my question is, i understand …

Software Development c++
Member Avatar for mike_2000_17
0
287
Member Avatar for coco24

Hey guys I need help with part 2 of my space invaders game. So far I have the missile shooting from the base but the missile is only fired once and that's it. I need to finish the code so that once the missile hits the top of the window …

Software Development java
Member Avatar for trogador
0
239
Member Avatar for bklynman01

Recently, I have been assigned the task of tracking training records used by multiple departments within my company. Before, they would fill out ISO Standard Forms that are built in MS Excel and save them in one folder. This folder held ALL of the documents used by multiple departments, training …

Software Development vb.net
Member Avatar for bklynman01
0
132
Member Avatar for victordq

Hi guys, Can anyone help me to fix my code so I don't get the unexpected unindent error? The code is very big, so I'll only post a small part so you can help me. I'm using the PyScripter IDE. [CODE]def pegar_dados_serial(): ser = serial.Serial(port='COM4', baudrate=115200, timeout=2) #Rotina para leitura …

Software Development ide python
Member Avatar for richieking
0
3K
Member Avatar for eagles39

I cant display a board for some reason I added a catch statemnt but there is something wrong with the if statment inside the for loop but i dont what is wrong thugh with the if else statement. [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; const int size …

Software Development c++
Member Avatar for eagles39
0
132
Member Avatar for aznlitomik3

[B]Problem:[/B] Write a program which reads a stream of integers from a file and stores them in an array. The array is then analyzed to compute the average of all the values in the array and all of the values that are above the average should be printed out to …

Software Development c++ file-stream file-system
Member Avatar for aznlitomik3
0
288

The End.