132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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" … | |
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 … | |
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++ | |
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 | |
i need to ask about the "SharpPcap" function startCapture()... Does it capture both inward and outward traffic...??? Software Development | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 | |
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 | |
[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++ | |
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 | |
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 | |
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 | |
class A { public : list< string> getList (){ list< string> l; l.push_back ("str1"); l.push_back ("str2"); .... … Software Development c++ motherboards-cpu-ram | |
Hi,im making a console application,i would like certain printf:("") to have different colour than the others,is that possible? Software Development c | |
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 … | |
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 | |
#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++ | |
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++ | |
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 | |
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++ | |
can some body expaly me this command [CODE]sed -e 's/<[^>]*>//g' test > test.t [/CODE] thank you Software Development shell-scripting unix | |
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 … | |
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? | |
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++ | |
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 … | |
![]() | 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 ![]() |
[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 | |
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 | |
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. :| | |
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 | |
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 | |
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 | |
![]() | 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 |
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 |
The End.