132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Gobble45

Hello VB.net'ers. I've got a problem. I have a feeling it is an easy one, but for the life of me i cant figure it out. My project at the moment is to grab content from a website and use it in some way (havent worked out this part yet, …

Software Development file-system vb.net
Member Avatar for thines01
0
1K
Member Avatar for mayzebra

I'm in the process of converting a complex system from VB6 and C to C#. However now I'm in a position where I need to call a C# dll from VB6 and I need it yesterday. The only solution I found was using Interop, which didnt work, and seemed to …

Software Development c# visual-basic
Member Avatar for nirdeshdabas
0
3K
Member Avatar for MCLASS80

Im trying to call another perl file from within a perl program. I have been told it's system("file.pl"); but this doesnt seem to work

Software Development perl
Member Avatar for MCLASS80
0
200
Member Avatar for roe1and

Hi. I am a beginner with Python. I've done some PHP work in the past but I suspect this is not helping with my progress in Python. I have a text file that basically looks like this: [CODE]a=1 b=2 c=3 a=4 b=5 c=6 a=7 c=8 a=9 b=0 c=11[/CODE] At the …

Software Development python
Member Avatar for roe1and
0
308
Member Avatar for ateeq90

hi , i want to ask if some one know how can i calculate number of variables or used variables in a java file? is there any way to do it?

Software Development java
Member Avatar for NormR1
0
97
Member Avatar for tendaimare

i am inserting a row in an acces table but I also want to get the id of the last inserted row so that I can use that value. Any ideas on how I can go about it? [ICODE] Dim iSql As String = "Insert into CompanyDetails (code,description) 02 Connections.MyDataAdapter(iSql) …

Software Development vb.net
Member Avatar for M.Waqas Aslam
0
243
Member Avatar for Ketsuekiame

Hi all! Quick summary: I'm attempting to shutdown a socket, but the framework that I'm inheriting an Interface from already contains an implementation of a "shutdown" method. Therefore, I am unable to call "shutdown" for the socket. Longer Explanation: How can I fix this? I originally tried looking for a …

Software Development c++
Member Avatar for Ketsuekiame
0
169
Member Avatar for codex89

Hi Guys.I am developing a transport management system in wpf using mvvm pattern.Its a distributed software and i have heard that i would have to use Wcf.Are there any alternatives or is there any need of using Wcf?

Software Development
Member Avatar for Ketsuekiame
0
96
Member Avatar for vmehta91

Trying to teach myself Java, for better or for worse. The program I intend to create should pick a random playing card from a deck of cards, determine the suit and face value, then return all variables as shown: "You picked 14, the 2 of Hearts." The problem is I …

Software Development java
Member Avatar for JamesCherrill
0
942
Member Avatar for neeraj080

My Table looks like Table Name: Categories CategoryID : int CategoryName: text Description: text Picture: Image Now I want to display all these fields in a DataGrid. I have done this, [CODE] DataGrid1.DataSource = DataTable or DataView; DataGrid1.DataBind(); [/CODE] [CODE] <asp:DataGrid ID="DataGrid1" runat="server" AutoGenerateColumns="False" Width="100%"> <Columns> <asp:BoundColumn DataField="CategoryID" HeaderText="Category ID" …

Software Development display image
Member Avatar for seslie
0
117
Member Avatar for Jetster3220

I am really struggling with a Python classes project. Here are the directions Design and implement a class called Dog that contains attributes (data) representing the dog’s name and age. Define the Dog constructor to accept and initialize that data. Include one method that will reset the dog’s age, one …

Software Development oop python
Member Avatar for Gribouillis
0
232
Member Avatar for yuvaece

pls give me program for finding rgb to hsl converter in java

Software Development java
Member Avatar for stultuske
0
110
Member Avatar for jaai

could any one help me on SDL_GetMouseState(0,0)........ my coding is as below [CODE] if(SDL_GetMouseState(0,0)&SDL_BUTTON(SDL_BUTTON_LEFT)) { //function calls } [/CODE] this coding works button when i click on the window the contents remain only till the button is in pressed state........

Software Development c++
Member Avatar for jaai
0
210
Member Avatar for manhthaodn

How to open excel file with the program when the user selected program to open excel? I have a software to process data in excel file (*.xls, *.xlsx). My software loaded excel file to process by selecting the path to excel file. For convenience than I intend to add choices …

Software Development
Member Avatar for manhthaodn
0
179
Member Avatar for saneeha.nust

i need to ask about the "SharpPcap" function startCapture()... Does it capture both inward and outward traffic...???

Software Development
Member Avatar for saneeha.nust
0
75
Member Avatar for shywolf91

I need help finishing this assignment. I am really confused! [CODE] //Game of Life //Dylan Metz #include <iostream> #include <string> #include <fstream> #include <cstring> using namespace std; //function(s) void GetFile(); //Get filename char MakeArray(); //Make 2d array char ChgArray(); //change the array char GameBoard(); //Game Board //Global Variables const int …

Software Development c c# c++ user-interface
Member Avatar for shywolf91
0
2K
Member Avatar for straylight

So I have been working on Pascal's triangle and going about it a different way then most. I am attempting do to a series of if and elif statements to check for the values in rows and columns of those rows. However my novice skills in python are stopping me …

Software Development pascal python
Member Avatar for straylight
0
240
Member Avatar for sharathg.satya

hi all can i know how to find greatest of two numbers? the condition is we should not use any comparision operators.. thanks in advance

Software Development c
Member Avatar for sharathg.satya
0
125
Member Avatar for moe0

Hello I need to write Age Category Calculator program but I'm not sure how! I've to reed to inputs years and months This is the instruction : Write a subroutine for the button COMPUTE. The application will compute the user’s number of years as follows: if the number of months …

Software Development visual-basic
0
69
Member Avatar for uva1102

Whenever update the values in the text box.. its not submitted and update in database. Thanks and regards Here is my code : namespace sys.System { public partial class spareedit : System.Web.UI.Page { SqlConnection dbCon = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["sqlServer2"].ConnectionString); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { dbCon.Open(); SqlCommand …

Software Development session
Member Avatar for uva1102
0
533
Member Avatar for gerard4143

Is it possible to pass a map container to the copy algorithm and display it to the std::cout? If so how? What I tried below doesn't work but it looks like it should. Any comments or pointers will be appreciated. [code] #include <iostream> #include <string> #include <map> #include <algorithm> #include …

Software Development algorithm c++
Member Avatar for gerard4143
0
368
Member Avatar for KickAssElmo

Please tell me what I'm doing wrong. I have a list, and I want python to make a file out of it. [CODE]def changename(filename, modifier): return filename[:4]+modifier+filename[-4:][/CODE] [CODE]def fileWrite(filename, ext, sortedList): openthis =open(okfilename(changename(filename,'_'+ext)),'wb') for item in sortedList: openthis.write(item) openthis.write('\n') return[/CODE] [CODE]lastnames.append(newNames) lastnames.sort() print '\n'.join(lastnames) names.close() fileWrite(filename, "Last-sorted", lastnames)[/CODE]

Software Development python
Member Avatar for KickAssElmo
0
234
Member Avatar for AbdullahJava

guys please i need help what method do i need to use for the alphabetical order Is it indexOf if yes how can i use it Problem 2: Alphabetize Three Words Program Name: Alphabetize.java Write a program to take three words as input then output those three words in alphabetical …

Software Development java
Member Avatar for NormR1
0
2K
Member Avatar for Afropuff01

I am trying to make a static scanner outside of the main method that can be accessed by every method in a class. However, every time I run it, I get a "error: unreported exception FileNotFoundException; must be caught or declared to be thrown" error. Here is my code: [CODE] …

Software Development file-system java
Member Avatar for NormR1
0
218
Member Avatar for Sohvkhan

[CODE]#include <iostream> using namespace std; int main() { { int count; int innercount; count = 1; while (count <=1) { innercount = 1; while (innercount <= (12 - count) /2) {cout << " "; innercount++; } innercount = 1; while (innercount <= count) { cout << "@"; innercount++; } cout …

Software Development c++
Member Avatar for Sohvkhan
0
173
Member Avatar for Yoink

I have to write a program that will decode a Ceasar cypher with any possible rotation length on a long string that will be imported into the program. I'm trying to figure out some pseudo coding on how I want to tackle this problem but there is one key thing …

Software Development python
Member Avatar for TrustyTony
0
355
Member Avatar for roshu10

Hi guys...... My problem is.... If we write some lines of code in button click event...... How to set the sleeping timer means..... For eg---- Suppose we wrote 10 line of code in button click event.... After the exicution of first 5 lines of code,,, remaining 5 lines of code …

Software Development vb.net
Member Avatar for roshu10
0
101
Member Avatar for Labdabeta

I have a program that dynamically allocates an array and uses it. The thing is that under certain situations this array will get infinitely long. As such I would like to know if/when the array has gotten too long and then start saving it to a file (where length will …

Software Development c++ motherboards-cpu-ram
Member Avatar for Labdabeta
0
173
Member Avatar for MastAvalons

class A { public : list< string> getList (){ list< string> l; l.push_back ("str1"); l.push_back ("str2"); .... …

Software Development c++ motherboards-cpu-ram
Member Avatar for mike_2000_17
0
170
Member Avatar for kahheng93

Hi,im making a console application,i would like certain printf:("") to have different colour than the others,is that possible?

Software Development c
Member Avatar for kahheng93
0
70
Member Avatar for daydie

Yo guys heres my code: Im trying to extract one line each time the sub is called and if no more lines re-set to 0 and start again Problem is that it does not increase even tho i have set it as an array, still brings up he first line …

Software Development regex vb.net
Member Avatar for daydie
0
177
Member Avatar for dhaval.2cool

please help me with code that stores the images in a local folder n not in database.......also i want to rename the image with autonumber.....please help

Software Development vb.net
Member Avatar for scarcella
0
72
Member Avatar for tom12

#include <iostream> #include <string.h> using namespace std; int main() { char clear[200]; char cipher[200]; int x,i; int opt; cout<<"Encrypt (1) or Decrypt (2):"; cin>>opt; if(opt==1) //my problem is its not giving me option to enter string { cout<<" Enter a string:"; cin.getline(clear,sizeof(clear)); x = strlen(clear); for(i=0;i<=x-1;i++) { cipher[i] = clear[i]+3; …

Software Development c++
Member Avatar for tom12
0
139
Member Avatar for kearwood

BELOW IS WHAT I HAVE SO FAR...IT WILL COMPILE, BUT WHEN I DEBUG, IT SAYS THAT "YEAR" HAS NOT BEEN INITIALIZED. i HAVE TRIED EVERYTHING...BEEN THRU THE BOOK, TRIED GOOGLE-ING THE ANSWER...HARDEST CLASS I HAVE TAKEN WITH A PROFESSOR WHO DOES NOT EXPLAIN OR TEACH. DONT EVEN REALLY KNOW WHAT …

Software Development c++
Member Avatar for Labdabeta
0
481
Member Avatar for jxj123

hi, my code involves something like this: [I]IP = "123.123.123.123" string = "Your IP is %s and it's 100% correct" % IP[/I] The IDLE thinks the second % is a operator and I don't know how to make it as a regular text. please help.

Software Development python
Member Avatar for jxj123
0
98
Member Avatar for shywolf91

Okay I need help getting started. Here is the assignment: [CODE]Conway's Game of Life For this assignment your are to write a program, that plays Conway's game of Life. See the Wikipedia definition, if you have never played the game: http://en.wikipedia.org/wiki/Conway's_Game_of_Life. Here is how our implementation will work: (1) The …

Software Development c++
Member Avatar for Lerner
0
267
Member Avatar for koricha

can some body expaly me this command [CODE]sed -e 's/<[^>]*>//g' test > test.t [/CODE] thank you

Software Development shell-scripting unix
Member Avatar for koricha
0
176
Member Avatar for niall_heavey

Hi all, I'm sure this is a simple problem, but hopefully someone will be able to help. I'm trying to connect to mysql through perl, however when I use the command [CODE]use Mysql;[/CODE] it is giving me an error. I am assuming it is probably something to do with the …

Software Development mysql perl ubuntu
Member Avatar for d5e5
0
288
Member Avatar for Labdabeta

Hello, I have been working with opengl and other graphics libraries and they all require the bits per pixel of the screen on initialization of a window. My question is, is there any way to get the system's preffered bits per pixel? or that of the monitor?

Software Development api c++ microsoft opengl
Member Avatar for Labdabeta
0
910
Member Avatar for Prisms

Hello everyone I'm currently working on a program that takes a student name and number of classes. Then asks the user to enter the his classes. I have most of the program done but I'm having trouble with my dynamic array for some reason it wont let me type in …

Software Development c++
Member Avatar for deceptikon
0
237
Member Avatar for logicmonster

I am having a problem displaying random numbers, I'm trying to make a dice game where you play against the computer and the first one to 100 wins. However, my random number is never random, it always comes out as the same number. From what I understand to simply display …

Software Development c c# c++ display
Member Avatar for MrEARTHSHAcKER
0
866
Member Avatar for sonicx2218

There's definitely a way to make a for loop out of variables. So if this button I made is clicked, the program will parse the ints in the textfields and send them to variables num1-num5 [CODE] if (e.getSource() == calc) { num1 = Integer.parseInt(num1field.getText()); num2 = Integer.parseInt(num2field.getText()); num3 = Integer.parseInt(num3field.getText()); …

Software Development java
Member Avatar for sonicx2218
0
77
Member Avatar for rithish

[CODE]#include <stdio.h> #include <stdlib.h> int main () { int i,n,big; int * pData; printf ("Amount of numbers to be entered: "); scanf ("%d",&i); pData = (int*) calloc (i,sizeof(int)); if (pData==NULL) exit (1); for (n=0;n<i;n++) { printf ("Enter number #%d: ",n); scanf ("%d",&pData[n]); } big=pdata[0]; for(n=0;n<i;n++) { if(big>pdata[n]) { big=pdata[n]; } …

Software Development c
Member Avatar for deceptikon
0
127
Member Avatar for LFCDay123

I have made a currency converter and have converted a made up currency to UK Sterling. I have made it so the amount of UK Sterling appears like '2.32' but I want to have the £ sign before the amount of money to show it is now in UK Sterling. …

Software Development visual-basic
Member Avatar for LFCDay123
0
87
Member Avatar for marcmanlin2

Hello Guys! I am using listview. i want to search using textbox records from the database and display the searched records in listview. i read some post here with same/like mine but they're using datagrid. :|

Software Development display listview vb.net
Member Avatar for marcmanlin2
0
223
Member Avatar for thedonedeal

When I add a NEW row to the datagridview, it for some reason freezes the datagridview. That is, it adds the rows pulled from the database to the grid. But you can't add rows to the datagrid by some a click button event. Nor can you select a row in …

Software Development dataset microsoft-access vb.net
0
138
Member Avatar for MichaelCJ10

Im trying to make an array that just lists out some values, its the number of items sold in a day in a shop. and then, total those items in a seperate printf. Heres my code so far, i also seem to have an issue where it just ignore my …

Software Development java
Member Avatar for MichaelCJ10
0
123
Member Avatar for gozo12

i use this code under the CurrentMediaItemAvailable for windows media player but it will not show the title or the name , but it will show some media name , but some media file will not ! [CODE] Private Sub AxWindowsMediaPlayer1_CurrentMediaItemAvailable(ByVal sender As Object, ByVal e As AxWMPLib._WMPOCXEvents_CurrentMediaItemAvailableEvent) Handles AxWindowsMediaPlayer1.CurrentMediaItemAvailable …

Software Development vb.net
Member Avatar for gozo12
0
206
Member Avatar for krejar

This is the code: [CODE]public void testPopulate (int num) { ArrayList<String> great = new ArrayList<String>(); for (int i = 0; i < num; i++) { Random gen = new Random(); int b = 0; b = gen.nextInt(100) + 1; great.add("Account: " + (BASE_ACC_NUM + i)); great.add("Balance: " + b); System.out.println(great); …

Software Development java
Member Avatar for FALL3N
0
100
Member Avatar for FALL3N

hey... I wat to change the... well, the cursor (the little blinking thing in a text area where subsequent typing appears) in a JTextArea. [U]Not[/U] the pointer (the mouse icon showing where on the screen the mouse is cuz some ppl thought that was wat I meant) but the cursor …

Software Development java
Member Avatar for FALL3N
0
1K

The End.