132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for CSharpUser

Hi, I'm hoping someone can make sense of this... I'm trying to use WMI to get file information from a specific directory on a remote machine using CIM_DataFile. I can get all of the files on the on the remote machine using: System.Management.ObjectQuery oq1 = new System.Management.ObjectQuery("SELECT * FROM CIM_DataFile"); …

Software Development c c# c++ visual-studio
Member Avatar for CSharpUser
0
1K
Member Avatar for JdTSC

The msgbox widget is really useful. However the font limitations of the default msgbox can be brutal if your trying to deliver a message with considerable information. Has anyone coded an improved msgbox class that would take the same arguements + font?

Software Development visual-basic
Member Avatar for JdTSC
0
112
Member Avatar for nsxdude

Today is my first day on this site. I am vey new to VB.NET, i have a good amount of experience in VB6. I have a application I wrote for my Aikido club to track hours and I am converting it to .NET. The code below is very basic and …

Software Development open-source sql vb.net
Member Avatar for nsxdude
0
153
Member Avatar for mattjbond

I am curious about how to post or have published tutorials. I have searched the forum but the latest information I cna find is years out of date. Any help here?

Software Development c++
Member Avatar for mattjbond
0
94
Member Avatar for tom23

hello i woud like to have an C# code witch will run a file at monday, one at tuesday, one at wedensday, one at thursday, one at friday, one at saturday and one at sunday, can somone provide me this please ?

Software Development
Member Avatar for ddanbe
0
88
Member Avatar for richman0829

isalpha and ispunct work punctiliously, but isspace spaces out. [CODE] cout << "Please enter an integer: "; cin >> str; int bogus = 0; for (int i = 0; i < str.length(); i++) { char temp = str.at(i); if (isalpha(temp) || isspace(temp) || ispunct(temp)) { cout << "Please try again!" …

Software Development c++
Member Avatar for richman0829
0
300
Member Avatar for elorc

I'm using the VB.NET 2005 RichTextBox control as a base for a user control that I've written, and one of the functions I'm writing into this control is a spelling check. There's a problem I've found though: I can't preserve RTF markup when corrections to the spelling are made. I've …

Software Development vb.net
Member Avatar for elorc
0
867
Member Avatar for windany

This code : ...line 6... [code] #include "FileToVector.h" #include "VectorToIntArray.h" #include <string.h> #include <iostream> using namespace std; int main(int argc, char *argv[]){ char* in = argv[1]; FileToVector ftv = FileToVector(in); vector<char> v = ftv.fileToVector(); VectorToIntArray vt = VectorToIntArray(v); //int* a = vt.letterFrequencies(); cout<< v.size(); return 0; } [/code] produces this …

Software Development c++ ios
Member Avatar for windany
0
103
Member Avatar for neolyte120109
Member Avatar for rfrei
0
158
Member Avatar for dillinger88

HI, I'm relatively new to programming in C++. I'm pretty solid in C and Java though. Anyway, I'm trying to create a class, Mesh, that has a vector full of my other class, Node, however the compiler doesn't seem to like it. I've looked through the console message but I …

Software Development c++ visual-studio
Member Avatar for dillinger88
0
206
Member Avatar for dmane

Hi All, I am trying to learn stl to have some knowledge of how things work. I have just covered some basics and I have come to a block. I will explain what I am trying to do. I have a class that performs some basic operations on its member. …

Software Development algorithm c++
Member Avatar for mattjbond
0
129
Member Avatar for aianne

Hi! I need help for my homework in c++. My professor wants us to write a program that ask a question and there is a multiple choice and the answer. like the gameshow "Who wants to be a millionaire?" Please give me some example.. (^_^) thank you so much!

Software Development c c# c++
Member Avatar for Tigran
0
103
Member Avatar for LJames

This is a distraction task in a Psychologgy experiment. For a period of 5 mins the user moves a pic box from the centre of the panel to a matching triangle. The picbox mouseup detects which region it is and adds a score and then sets it back to the …

Software Development vb.net
Member Avatar for LJames
0
168
Member Avatar for SamTheDevGuru

Hi Experts , I have a datagridview which is bound to a data source,I modify the data source and add one empty row at the beginning,this is to provide a quick search,user can click on a cell and filter the datagridview. But the problem is I am facing an exception …

Software Development assembly
Member Avatar for Geekitygeek
0
498
Member Avatar for Sujit_Patil

Hi, I am create one application using C#.net and SQL Server 2005, In this application uses procedure,plz give me syntax how to create procedure in SQL Server and how to handle error in stored procedure.

Software Development sql
Member Avatar for kvprajapati
0
99
Member Avatar for bustersox

I am having issues getting my code to work properly. The objective of the program is to allow the user to enter 5 scores and then it is supposed to calculate the mean and rearrange the data set from highest to lowest (descending order). I am supposed to run it …

Software Development java
Member Avatar for stevelg
0
2K
Member Avatar for toykwon5

Hello everyone. So, I am trying to come up with an algorithm to do following: I have total 12 cells that I need to fill until program stops. I have 3 rows and each row has 4 columns. As an example, let me illustrate this as in airplane. So you …

Software Development algorithm
Member Avatar for Geekitygeek
0
71
Member Avatar for empror9

hello, how can i call function from another function? i declare 3 functions which are move_mid ,move_left and move_right please see this code (it's just my idea and i know i has many syntacs erorr , but my goal is just how a function call some functions) [CODE]move_left() { cout …

Software Development c++
Member Avatar for empror9
0
89
Member Avatar for Arkapravo

Desperately need help ! ..... I need to install Player/Stage ( [URL="http://playerstage.sourceforge.net/"]http://playerstage.sourceforge.net/[/URL] ) on Ubuntu 9.10. Found this, [URL="http://curtis-thoughts.blogspot.com/2010/01/install-playerstage-in-ubuntu-910.html"]http://curtis-thoughts.blogspot.com/2010/01/install-playerstage-in-ubuntu-910.html[/URL] ..... but could not get it to work ! Any help is greatly appreciated !

Software Development c++ robotics ubuntu
Member Avatar for Arkapravo
0
204
Member Avatar for pysdex

I try to generate 10 random integers and store it in an array(9). Then I split the array into half by converting it into string. My code can compile but it sometimes work and most time cannot work. I don't know what is the problem.... [code] Public Class Form1 Private …

Software Development vb.net
Member Avatar for Renukavani
0
95
Member Avatar for judge6

I have a simple file watcher application which watches the folder C:\. I am watching the folder so that as soon as a new file is created in C:\, it moves the newfile to a specified folder somewhere else. My problem is that if two files are dropped in the …

Software Development vb.net
Member Avatar for kvprajapati
0
113
Member Avatar for shyami

Hello there, I wrote a code for reading xml datas from one url, the code is working fine, but if data contains "-" it throw error message. Here is my code [CODE] h = httplib2.Http('.cache') response, content = h.request(dataurl) data = content.decode('utf-8') elem = etree.fromstring(data) [/CODE] i am getting error …

Software Development python xml
Member Avatar for Stefano Mtangoo
0
83
Member Avatar for Lolalola

Hi, i creates this program: [CODE=python] import wmi c = wmi.WMI() for i in c.Win32_Processor (): cputype = i.Name print cputype for i in c.Win32_ComputerSystem(): mem = int(i.TotalPhysicalMemory) print mem/1000000, "mb" [/CODE] I make exe file with py2exe. When i run program, i see this error: [CODE] D:\py\dist>cpu.exe Traceback (most …

Software Development python
Member Avatar for Lolalola
0
175
Member Avatar for arvin2006

good day everyone! is there any idea on how to set the picture property of the Data Report's Image Control based on the Form's Image Control? this code doesn't work: 'Me.Sections("Section2").Controls("imgEmployee").Picture = frmMain.imgPic.Picture Thank you very much for responses.

Software Development image visual-basic
Member Avatar for shenba.akila
0
178
Member Avatar for scooby36

I have a problem trying to copy 3 fields on a form to a database. The reason I cannot seem to do it is that the last field asks how many copies you want to save in a combo box. So lets say the user selects 3 I need to …

Software Development vb.net
Member Avatar for scooby36
0
117
Member Avatar for shyami

Hi, I am working with pylon framework, just i want to redirect a user to my another php script, if session expired. The below one is redirecting to another controller. i need to redirect to another php script. redirect_to(controller='test', action='index', _code=303) Any idea? Thanks -Shyami

Software Development python session
Member Avatar for shyami
0
124
Member Avatar for Vindhyaauri

Hi there!! Just wanted to know how to match the line containing $$$$ from a file. Is this correct : (my $row =~ /\$\$\$\$/) Thanks in advance!!!

Software Development perl
Member Avatar for rdxblast
0
67
Member Avatar for empror9

Hello guys, i would like to ask you about c++ language. i have an assignment and i want to do a movement for the hero? i have an assignment and i want to do a movement for the hero which will be controled by the keyboard.i apologise because my english …

Software Development c++
Member Avatar for strmstn
0
145
Member Avatar for farvahar_mr

hi my friends1 i want to compile c++'s code in fedora but when i used this code: g++ Filename.cpp -o filename.exe my code compile successfully and when is used this code: ./filename.exe my program run but when encounter by scanf an i give input in give me "segmentation fault" an …

Software Development c++
Member Avatar for strmstn
0
125
Member Avatar for lexeroni

any one have any suggestions why my code won't work? [CODE] #include <iostream> #include <fstream> #include <cmath> using namespace std; int intro(int &num_games); int random(); int main(void) { int seed(0), num_games(0); int point, point2(1); int a(0), b(0), c(0), d(0); cout<<"Lexi Barlow and Alex Puffer craps.cpp"<<endl; intro(num_games); cout<<"\nEnter a random seed …

Software Development c++
Member Avatar for CreativeCoding
0
123
Member Avatar for GregPeters

Hi all, I have a procedure which needs to be used by a wide range of functions. I have a created a very basic program which should highlight my problem : [CODE] program untitled; function addnumbers(num1 : integer) : integer; begin result := num1 + 3; end; procedure sequence(I want …

Software Development delphi pascal
Member Avatar for adraganov
0
1K
Member Avatar for wilko1995

How do i create a console button so i dont have to go into Dev-c++ to open it

Software Development c++
Member Avatar for CreativeCoding
0
110
Member Avatar for wilko1995

Hey, im making a code to ask a user to type in a username and password to continue and for the console to say "thanks" and i need help. Heres my "Unsuccessful" Code: [code]#include <iostream> using namespace std; int main(){ int a, b; a = 159876; b = 43812385; int …

Software Development c++
Member Avatar for wilko1995
0
123
Member Avatar for nats01282

i have been told to use a do while loop instead of a goto statment, here is a code i made to try the do while loop, [CODE] int main() { int A = 0; cout << "Enter a number from 1 - 5 " ; cin >> A; do …

Software Development c++
Member Avatar for photoyid
0
103
Member Avatar for ravenrider

Hello I was always wondering whats the difference between compiling in these different environment Linux and Windows ! and Why can’t we just run the same executable file (compiled in Linux) both on Windows 7 and Ubuntu? also I

Software Development c++ ubuntu
Member Avatar for ravenrider
0
56
Member Avatar for houlahan

OK so im new to XML i want to save lots of serialized objects to XML then read the objects back in from the xml with ease using the get and set methods i have in place, is they any real easy way of doing this? thanks in advanced Houlahan.

Software Development java xml
Member Avatar for ~s.o.s~
0
77
Member Avatar for aceofspades451

I'm trying to design an algorithm that will output data from an array in random order but not repeat until every peace of the data has been output. The size of the array is small (about 10). it picks a random prime number smaller than the size of the array(lets …

Software Development algorithm c++
Member Avatar for aceofspades451
0
152
Member Avatar for Bart_sg

[CODE]#include <iostream> #include <iomanip> #include <string> using namespace std; int main() { double V,I,pf,Ib; unsigned short int choice; int In; cout<<"Please choose power supply type\n"; cin>>choice; switch(choice) { case 1:cout<<"You have chosen a single phase power supply\n"; break; case 2:cout<<"You have chosen a three phase power supply\n"; break; default:cout<<"Invalid Choice …

Software Development c++
Member Avatar for WaltP
0
71
Member Avatar for sikeufoo

The highlighted part below is where the function located...Is there any problem with the input? [CODE]#include <iostream> #include <iomanip> using namespace std; // function declaration for price to pay. [COLOR="Red"]float caldiscountprice(float[],int[],float[]); [/COLOR] // function declaration for discounted price. [COLOR="Red"]float calpriceafterdiscount(float[],int[],float[]); [/COLOR]//function declaration for Price after Discount int main() { int …

Software Development c++ ios
Member Avatar for WaltP
0
127
Member Avatar for rajeevkag

We are developing a C++ project with 10 cpp files and 3 header files.We are declared array structure of 3 integer varibles globaly in header file and using in some files and where arrays are updated ,re-adjusted in some cpp files and use in another files.Project is running fine but …

Software Development c++
Member Avatar for rajeevkag
0
97
Member Avatar for pocix

question: The program should prompt the user to enter data for the width and height of the 2 rectangles and use the setWidth() and setLength() methods to store this data in the instance variables. driver [CODE] import javax.swing.*; public class Room { public static void main(String[ ] args) { double …

Software Development java java-swing
Member Avatar for pocix
0
76
Member Avatar for ineedhelp:(

[code] #include <iostream> #include <cmath> using namespace std; int main() { double L, APR, Payment, N, brac1, brac2; cout << "Please enter the loan amount: "; cin >>L; cout << "Please enter the APR: "; cin >>APR; cout << "Please enter the number of payments required: "; cin>>N; brac1 = …

Software Development c++
Member Avatar for mrnutty
0
124
Member Avatar for donelliewhyte

Thanks for your help so far that i have achieved my goal. My other problem is updating a particular record using fseek() [CODE]void updaterecord(void) { system("color 2"); struct custinfo info; FILE *customer1; customer1=fopen("customer1.txt","r"); if (customer1==NULL) printf("\n\n\t\t\t FILE WAS NOT FOUND "); else { char choice4; char Target[50]; int Found=0; if((customer1=fopen("customer1.txt","r"))==NULL) …

Software Development c
Member Avatar for Ancient Dragon
0
132
Member Avatar for SCass2010

Hi again, This is a problem I've been struggling with for a while... I have an access 2007 Database where I store several different "Jobs" such as repair job, data recovery job etc. At the min I have a form where the user can view a customer's related jobs either …

Software Development dataset vb.net
Member Avatar for kvprajapati
0
499
Member Avatar for wezjusz

Hi everyone. I got tuday an exercise: Write a program to calculate the average of three exam marks. The input and output should be done by subprograms GetMarks and DisplayAverage respectively. the calculation should be done by a function, CalcAverage. This is my code: [code]Private Sub btnCalculate_Click(ByVal sender As System.Object, …

Software Development vb.net
Member Avatar for kvprajapati
0
277
Member Avatar for lionaneesh

[CODE] #include<stdio.h> int main() { FILE *reading; FILE *writing; int condition,condition2; char input[100]; char save[100]; printf("Type a name to open for reading : "); scanf("%s",input); reading = fopen(input,"r"); /* OPENS the file name we typed above for reading */ if(reading != NULL) { do { condition = fgets(save,30,reading); printf("\n%s",save); }while(condition …

Software Development c
Member Avatar for Aia
0
130
Member Avatar for betabasic

I switch from vb6 to vb.net.. and it's not that easy to familiarize .net syntax :) here's what i want.. 1 webbrowser1 1 button1 ( multiline ) 1 textbox1 how can i view the webbrowser1 source code in the textbox1 by click the button? -------------- this can be done in …

Software Development vb.net
Member Avatar for betabasic
0
128
Member Avatar for deerowbear

Hi there, I was curious why I am getting an out of bounds exception in this code. Any pointers would be very helpful. Thanks daniel [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; /* Data Structures Infix2Postfix: Ex. 23.6, pp. 1208 OR Ex. 25.6 Page 1363 OR Ex. …

Software Development regex
Member Avatar for deerowbear
0
259
Member Avatar for cyberguy007

My input file contain: 1 2 3 4 5 6 why is it not reading properly, i tried implementing fget and fread but failed even after reading dani web and other tutorials. [CODE]#include <stdio.h> #include <stdlib.h> #include <conio.h> typedef struct{ char lname[20]; char fname[20]; int salary; }employee; const int max …

Software Development c
Member Avatar for WaltP
0
101
Member Avatar for PhiberOptik

Hey guys I'm trying to export my game from eclipse to an executable jar. When I launch it in eclipse it works perfectly. When I export it nothing happens and when I launch it through console i get this: [url]http://img697.imageshack.us/img697/899/errordc.png[/url] and I have main class [CODE=java]public class main { public …

Software Development java
Member Avatar for Ezzaral
0
123

The End.