132,726 Archived Topics
Remove Filter ![]() | |
Hi guys ! I am willing to ask you if you could think of a py script that loads a text file and just joins the data contained in there following this example This could be an input: ssms smsmsms sksksskkks ppppplkl ndndndnd kdkdkdkdkppp And this an ouput: ssmssmsmsms sksksskkksppppplkl … Software Development python | |
hello frnd this a c program that removes c c++ style comments | |
Alright, I am in college started last year for programming in C++. Not even a year ago, I took fundamentals which was basically pseudocode and flow charts. 3 months ago, I finished my programming 1 class and this 11 week quarter is my Programming 2 class. Well the final project, … Software Development c++ | |
I have a vector full of decimal values and I want to convert each element of the vector to ASCII represented strings (or char arrays). How do I do this? Each element of the array is 8 hex bits long and has been converted to it's decimal representation. So... HEX(41424344) … Software Development c++ | |
![]() | Hey guys :) I'm making a code and testing it in drjava but at this stage there is just one function I am having trouble with. Here is my code so far [code=java] import java.util.ArrayList; class Player { //instance fields, a name, a place, and an inventory String name; LocationID … Software Development java |
How do you make Python distinguish from files and folders if they are dragged and dropped into the program's window? [CODE] import os import string newDrag = raw_input("Drag and drop the file or folder you want to add.\n") newStrip = newDrag.strip('"') #Removes the quotes Windows randomly adds for some reason … Software Development python | |
Is there a way in VB6 where I could get the file's "Size on disk" (not the size). I cannot achieve this by using the FileSystemObject's size property which only returns the file's size. If this cannot be done, maybe a help on how to achieve these other options will … Software Development visual-basic | |
In c#.net, I had form 1,.. (contains Server and Database name) in form 1 i had a button,..While clicking that button,.. the exe of form1 is called,.. so it will call twice,.. another instance is opened while opening this instance,.. i can't do the debug,.. it directly executes (being an … Software Development | |
Dear Freinds Kindly help me about these problems that what a coding for lock the form in runtime and user no adjsut form witdth or length 2)my 2nd question is that what the query if i want that the price of any other table come into current forms and match … Software Development vb.net | |
I'm pretty new with VB.net and I'm working on a project modelling the traditional FlashCard to learn words. What I want to do is to replace existing buttons and forms in Visual Studio with my own photoshop version. FYI, I'm not familiar with WPF yet but I'm willing to learn. … Software Development gui vb.net visual-studio | |
hi,i want to know how to export sql server 2005 database to access through vb.net coding..no need to select n insert table one by one,just save package... | |
I need to read in a csv file created by MSExcel into an array. The file contains 750 rows of 5 sets of numbers some int. some float. the format looks like this: 301,36,0.285,2.88,15.000 302,88,0.247,2.88,75.500 How do I read this data in a 'C' program without the commas, and then … Software Development c | |
Hi, I have the following code that I would like to get working, but for some reason, it keeps giving me the wrong output, and I wonder if anyone on the list might be able to help me fix it. Here is the code, [CODE] Sub submit(ByVal sender As Object, … | |
Hi, New to this forum. Will be happy for explanation for the next phenomenon: [CODE] class Base { protected: void add(void *); }; class Derived : public Base { public: void add(int); } void Derived::add(int num) { add(new int(num)); } [/CODE] This fails with the message: Invalid conversion from 'int*' … Software Development c++ | |
hi evrybdy.... how can i generate a unique code against the user input in c++... Software Development c++ | |
![]() | Hi, i was wondering if someone could help me out here. from the below code i get the following error "TclError: couldn't open "H:\SDD12\Images oses.gif": no such file or directory" but i dont understand why the r is vanishing from the filename... [CODE] root = tk.Tk() root.title('background image') # pick … |
I am trying to set up some common dialogs but some how forgot how to do it. I have a menustrip set up just need to know how to apply a fontdialog and colordialog. Can anyone assit me with this, I need some help as soon as possible. I am … Software Development vb.net | |
Respected Sir/Madam, Hii Guys?I am harish here and i am just a starter in vb.net.I am interested to develop some applications in vb.net. So, I have to start things right from scratch i.e designing and coding etc... I need a sincere suggestion on what type of applications can i try … Software Development vb.net | |
Peace be upon you:::::: I want to convert HTML lists to the TreeView [CODE]<body> <DIV id=content> <UL> <LI><a href="aaa">aaa</a> <LI><a href="ccc">ccc</a> <LI><a href="ddd">ddd</a> <LI><a href="ooo">ooo</a> <UL> <LI><a href="vvv"> vvv</a> <LI><a href="bbb"> bbb</a> <LI><a href="ttt"> tttt</a> </LI> <LI>www<ul> <li> <a href="zzzz"> zzzz</a> </li> </ul> </LI></UL> <LI><a href="yyyy">yyyy</a> <LI><a href="uuuu">uuuu</a> <UL> <LI> … Software Development html-css | |
Hi, Any one tell me how i can find that which files is changing it's behavior or or want to run. Thanks on your Comments Software Development | |
Hey Guys, Here's my code - for some reason, the message boxes aren't showing when I run the application. However, it shows up fine when I click the button on the form. Any idea why this would happen? Thanks. [CODE=c#]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using … Software Development | |
Hi all , I got two questions : How to convert the time of a message from "127558161.23" to 03/06/2010 12:42pm ? When I receive a message and I want to know the number of the sender so I can resend him a message it returns me his name - … Software Development python | |
:confused: how to create a payroll processing using VB and MSacccess.i want guidelines for that would anybody plz help me.In VB with all the deatails of an employee,facility to add new member,to edit,hv option to display all the parcticular abt certain employee in detail.plz help me Software Development display visual-basic | |
Hi all i just wanna ask if any one can give me the related function with colordialog(vb.net) and if i can change backcolor of form with it?how? Thanks:confused: Software Development vb.net | |
its a wrapper class. it combines stl stack class with a custom user class. i made it so that i could rename push and pop if i wanted or size and top :) best of all it combines stack and classes :) something i made to see if i could … Software Development c++ | |
Hello! My service ([U]not windowed application[/U]) for winXP (32) creates a list of processes (like task manager) and setts every process to run in just one CPU in multiproccessor system. 1) when I try to get the [B]handle[/B] of the process I get error: "The handle is invalid". If I … | |
Hi guys, I need to sort an array by date created. Please take a look at this code thus far [CODE] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; namespace listboxarraysortexample { public partial class Form1 : Form { string[] … | |
Hi, I have an XML snippet as in the following: [CODE]<music_songs> <song> <title>(I Just) Died In Your Arms</title> <category>Rock</category> <album>80 Popular Hits</album> <artist>Cutting Crew</artist> <date added="03-24-2009"/> </song> </music_songs>[/CODE] Thiis is one of the songs out of 5 categories I have, and currently I use XPath expression as in the following: … Software Development xml | |
I have a working cpp file, lets just say it performs a+b, the filename is abc.cpp. I want to call up that file, function, in another file without having to rewrite the code and simply call up the function in another cpp file, xyz.cpp and simply map my variables over … Software Development c++ file-system | |
hi there, i have an excel sheet and i need to get values from the excel sheet to the mdf file in the visual studio 2008 database. the value i want to get from the excel file is a accounting value witch is displayed like this $ 67,300.34. how can … Software Development c# microsoft-office visual-studio | |
I have been working on a tic tac toe game for a couple of days. And I just realize that I needed to do a GUI for it. With the following code, would it be fairly easy to add a GUI to this? and if so, what would be the … | |
I am creating a winsocket app & want to know that if there's a method available to fetch the Dynamic IP of the local machine & not it's local address. For eg: my local address may state 192.168.1.3 but my dynamic IP is depedent on my ISP location like 59.114.25.10 … Software Development c++ | |
hi I have a problem with the following code ... [B][COLOR="Blue"]>>> j = win32pipe.popen('c:\\disk\\plink jnitin@10.94.101.178 -pw mat123 df -g','r') >>> for i in j: print i >>>[/COLOR][/B] As you can see the file object 'j' does not have anything in it... But if I type [COLOR="Purple"]'c:\disk\plink jnitin@10.94.101.178 -pw ibm123 df … Software Development python | |
So I am in the process of writing simple client type program that send files over ssh. My goal is to have a shell script that interacts. for an example if i wanted to send a file to the server it wound be something like 'foo send FILENAME'. My question … Software Development c++ client-server | |
i want to use input validation so that the user can only input decimal numbers. can someone help [CODE] while int_x != : #this is where im having the problem print "the number entered must be a decimal number" int_x = input("Enter a decimal number:") [/CODE] Software Development python | |
Hi, I am a beginner, and trying to call an image inside a form. So basically, I have done a simple WPF application in which if I press a button, I will managed to show an image in my main form. So, the code is below : [CODE]private void btnAddMore_Click(object … Software Development asp.net client-server image | |
Hi Guys , I have a line which is like this :- "C:\\Users\\saurabh\\Desktop\\Projects\\Texts\\A Sign of the Times.txt" how can i jus extract the last part of it which is A Sign of the Times. Thanks Software Development c# | |
#include "stdafx.h" #include <iostream> #include <ilsolver/ilosolverint.h> ILOSTLBEGIN using namespace std; const char* Suppliers[] = {"Bonn", "Bordeaux", "London", "Paris", "Rome"}; int main(int argc, char** argv){ IloEnv env; try { IloModel model(env); IloInt i, j; const char* fileName; if ( argc != 2 ) { env.warning() << "usage: " << argv[0] << … Software Development c++ | |
I'm having difficulty using reinterpret_cast. Before I show you my code I'll let you know what I'm trying to do. I'm trying to get a filename from a vector full of data being used by a MIPS I processor I designed. Basically what I do is compile a binary from … Software Development c++ operating-system | |
How can you play a sound file that resides in the solutions resources file? Heres what I have..... [CODE] private void whiteKey1_Click(object sender, EventArgs e) { //If clicked System.Media.SoundPlayer player = new System.Media.SoundPlayer("WindowsPiano.Windows_XP_Ding.wav"); player.Play(); } [/CODE] I'm making a virtual piano and when the key is pressed it plays a … Software Development | |
Hello! I am trying to display a FITS image, if your not familiar with the extension its fine (gtk.Image.new_from_file() isn't either). I can get my image data to a numpy array (2D (256x256 to be exact)) I am having the most difficult time getting this into a grayscale image. I've … | |
i am using database with table RESUME and column PageIndex in it which type is number in database but when i want to store this PageIndex value to an integer i get exception error **Specified cast is not valid.** here is the code [CODE] string sql; string conString = "Provider=Microsoft.ACE.OLEDB.12.0; … | |
Here is solution number one for one word anagrams, I gave in discussion thread, response time in my humble Athlon PC under 70 ms. List of words is from original posting of the discussion thread. [url]http://www.daniweb.com/forums/post1206616.html#post1206616[/url] This version does not give we'd for input dew. Next time I give final … Software Development python | |
Hello, I am making a program, where cycles of a process are running and i have to save a report every 10th cycle. The report should get saved automatically, without human interference and should be saved in a non-editable format (say PDF, JPG etc). I have tried a couple of … Software Development pdf visual-basic | |
i've sudoku to make and for that, i need to generate it too. so for the generation, i've decided out that filling each successive column is a task of filling each column cell in the same row with a random no but seeing that it isn't already there in that … Software Development c++ | |
Hi is java suitable language for robot programming ( like line follower robots) ??? thanks Software Development java | |
Hi All, I have created a CON, PRN folder([url]http://www.hoax-slayer.com/con-folder-name.shtml[/url]) using "md\\.\\c:\con " through DOS prompt, i was trying to create same CON and PRN folder through Java code using "Runtime.getRuntime().exec("md\\\\.\\d:\\con");" But it is giving following Exception : Cannot run program "md\\.\d:\con": CreateProcess error=2, The system cannot find the file specified … Software Development java | |
I have a USB device and a C# application communicating with it. Presently I am using a connect button to connect with the device from my application. This is a HID device and on Connect I will register for change notifications and from then onwards my application can display 'DEVICE … Software Development | |
Hey Guys, I'm creating an application that will require specific privileges. Users will eventually be add/removed from this group; I was wondering if there's a way I can tie in an Active Directory group to the software? Something that would let me say "if you're part of this group you … Software Development |
The End.