132,726 Archived Topics
Remove Filter ![]() | |
For example, [CODE]MyClass *stable; if(..){ MyClass temp; stable=&temp; } stable.myVariable;[/CODE] Code snippet above does not work, because destructor of temp object is called. How Can I Increase Scope of "temp" object? Thanks. Software Development c++ | |
How can a Visual Basic 6 program fit the screen. Is there a command for this and will it work for XP, Vista, and Windows 7 Software Development visual-basic windows-vista | |
Hi I've been give a task to create a text based game (multi user dungeon) in python but am unsure where to start. All I know is I have to use tcp and udp or something like that. I am very unfamiliar with this so I hope someone can help … | |
Hi everybody, I'm new at Python and this forum has been a great help so far, so I hope someone is willing to help me on the following problem. It can count the number of sentences and words in a text, but after I have split up a text into … Software Development python | |
Hi, I want to move a file, when it is created. I have filewatcher and I know filemove function, but I dont know how I can create condition, that the file will be moved, when it is create. Can you help me please? This is my source code: [CODE] #include … Software Development file-system vb.net | |
Hey guys, i been looking through at questions regarding roman numerals and i have a question. i ran some of the coding which i found and i dont quite understand this part.. [CODE] int number = 3000; int number2 , i ; number2 = number / 1000; for(i = 1; … Software Development c++ | |
I'm trying to open a file (ifstream object), read from the file, then pass the ifstream object to a function where it will continue reading from the file. Along the way, I want to store the path of the file, and would like to know if there is a way … Software Development c++ file-system | |
Hello, I have to use an array, but its length is unknown at the beginning of the program. Is it possible to create such array and after that give it the desired length? Thank you! Software Development c++ | |
hi all, I am working a carbon application using c++ in Mac machine. I want to find the ip address of my machine using code. How can i get this ip address? Thanks in advance and urgent plz... Software Development c++ | |
I can't get past this error in my loop through the data reader specifically dr(12). I tried adding .To String but that doesn't seem to work either. Can someone help me with what need to do so it can read even if there is a Null value. My code is … | |
Hii I am desigining one VB project like dis.. VB application to change the font of the textbox... use the controls list box for the fontname, check box for Effects , combo box for sixe, combo box for color, and option button for font style.... I have written the code … Software Development visual-basic | |
hi i want to call some functions from a DLL(which is provided by a hardware manufacturer without the .lib and .def). I've used these following code HINSTANCE hinstLib; MYPROC ProcAdd=NULL; BOOL fFreeResult, fRunTimeLinkSuccess = FALSE; // Get a handle to the DLL module. hinstLib = LoadLibrary(TEXT("C:\My.dll")); // If the handle … Software Development c++ | |
Hello, I am trying to compile this program, however it is giving error Error 2086. Infile Redefinition. Am I allowed to redefine Infile, or I am supposed to use it only once? It might be silly error, Kindly help... Thnaks in advance...[code]#include<fstream.h> #include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #define pi 3.141593 struct … Software Development c++ | |
I've got this game almost working. When I run it in my complier is "blows" up at this line: [CODE]if (facesInHand[numberInHand2][1] != 0 && facesInHand[numberInHand2][2] != 0 && facesInhand[numberInHand2][3] != 0 && facesInhand[numberInHand2][4] != 0 && facesInhand[numberInHand2][13] != 0) straight = 1; else straight = 0;[/CODE] and continues through the … Software Development c | |
please check the attach file. here I don't understand the .mhf file. how it make or any alternative way to do this project. please any body help me. Software Development visual-basic | |
hi Guy's i got error Object reference not set to an instance of an object and it show me the Highlighted area private void time_in_Click(object sender, EventArgs e) { employee_InformationDataGridView.SelectedCells[0].Style.ForeColor = Color.Green; time_in.Enabled = false; time_out.Enabled = true; DateTime today = DateTime.Today; int i; i = employee_InformationDataGridView.SelectedCells[0].RowIndex; SqlConnection conn = … Software Development open-source | |
hi all community people iam an IT student .i have a 2 months free time.i want to do a miny project in java,i have knowledge in java(j2se),swings,jscript. if any one have mini java project ideas then send to me.iam waiting for good suggestions.pls reply me as soon as possible. Software Development java | |
I have a wx app that I would like to actively debug (even after it is compiled via py2exe). Is there a way to hook all methods(without having to manually add code to each one) and have it print their names' as they execute. I've looked into both the "inspect" … Software Development python | |
hello! is there any body to help me. i want to know the codes of converting number to words... pls help me to do it. Software Development visual-basic | |
Hello all, I'm really struggling to find a way or method to convert my TimeSpan data type into an Int so I can put the value into an Array. Now I know you can't actually convert the TimeSpan variable into Int, but is there some sort of work around? This … Software Development | |
Hello, I am try to make a textbox so, when I click the inside the textbox the text disappears, then when I click outside of the the textbox I want the text to reappear. Software Development | |
Is there anyway to carry one combo box from one form to another without the use of loops? I'm trying to figure out if it would be easier to represent a comb box in a new form, or if it would be easier to show it in a print preview … Software Development vb.net | |
Hi, I've spent a lot of time on this program and I'm stuck. My assignment is to prompt for two input strings. Print out each string Concatenate string1 and string2 and store the concatenated string into string3 without changing what's stored in string1 or string2. print out the concatenated string. … | |
hi,i need some help on vs 2005 form,i have 1button,1textbox,1datagridview.i want to make a search button with it to search for student id..any help pls...i use ms access..example i type 12-200705-0005 on the textbox,then i click search button,then the data with student id will show at datagridview...thanks.. :S Software Development vb.net | |
Hello, everyone! I have a program (a tcp server for text messages exchange), and i want it to do the following thing: if a port is already in use - choose automatically a new one (via rand() function) and inform me about that. I'm testing it on Solaras 5.9 if … Software Development c | |
can anyone tell me how to convert this code to vb.net it's vb6.0 code and gives error in vb.net [CODE] Dim a As Integer Dim b As Boolean Do While Not b And a < cmbcust.ListCount If UCase(Left(cmbcust.List(a), Len(txtname.Text))) = UCase(txtname.Text) Then cmbcust.ListIndex = a b = True End If … Software Development vb.net | |
I wanted to use a window style that was border-less or had a 1 pixel wide border, but was re-sizable. It was not actually possible so I tried changing the window style with SetWindowLong() then using SetWindowPos() with SWP_FRAMECHANGED and AdjustWindowRect() It allowed me to resize the window but it … Software Development c++ | |
I am using VC++ 2008. I want to rotate the Bitmap in my MFC application. I tried the GetPixel and SetPixel functions, but the performance is too slow. There seems no Bitmap rotation example using MFC class on the internet Can anyone give me some idea? Sample code will be … Software Development c++ | |
Hey guys, ive been working on this code for the past couple of hours and I am trying to do the following problem. Write a program that reads the le generated by randGen.cpp (in Problem 1) and stores the numbers in an array of type int. You can assume that … Software Development c c# c++ display file-stream file-system | |
I am getting the following error while building the code in VC: error C2143: syntax error : missing ')' before '&' on building the below code: [CODE]typedef unsigned int uint4; void Find(uint4& a, uint4 b, uint4 c); void Find(uint4& a, uint4 b, uint4 c) { . . . . }[/CODE] … Software Development c++ | |
Hello, currently I'm working on an SMS server project. I've managed to get access to the SMSs stored on the device with AT commands, but I receive them in the following format, in a string: 07916303898800F0180B916303470054F60000808012415064402FD4321B14D6BFDDEF799AFED68168B45C4C1683C9400A2A34E9D4816E31594D4185269DB21D0887CBD100 This is actually an SMS, but I can't get it to human readable format. … Software Development | |
Hi All I have been stuck on this for a number of hours now, really cant workout how I should go about making this work, I am not looking for the correct code, More looking for what I should be looking up and what I have done wrong. What the … Software Development java | |
How to make Database of Super market in vb and connect to access Software Development visual-basic | |
Hello everyone, Ok, well I am faced with the challenge of creating a scouting program for my robotics team so we could keep a track of how other teams do at competitions to compare and contrast their designs. I have 95% of the program done, it reads and adds info … | |
Im having trouble opening the .txt file in dev-c++, I've entered the correct name for the .txt file which is saved under the same folder, but whenever I compile and run, it will just show : " Begin reading file. End reading file. --------Welcome------- Please choose: etc. " The .txt … Software Development c++ file-system | |
Hi Everyone. I am taking a class on java, and have made it to chapter 7 without many problems. I am having really bad problems with this, getting an illegal start of expression where it says public void sort....I have tried so many things, I probably even have things out … Software Development java java-swing | |
In visual C#, there was this thing where you can add a settings file and refer to a setting in that settings file in your code. With that, I was able to save user settings easily. But I can't find it in C++. Is there no settings file option? If … Software Development c++ visual-basic | |
hi can anyone give me a suggestion as to how i could replace data in dat file. the problem is that if i put the data into a string buffer and call replace it will not change the data in the file but i need that to hapen and the … Software Development java | |
hi i tried to search from a dataset but when i try to add from a dataset to a datagridview it is not adding to the datagridview. here is my code. moreover if i try a messagebox the result found is being displayed. [CODE]con.Open(); cmd = new SqlCommand("sp_getUsersDetails", con); cmd.CommandType … Software Development dataset | |
Hi all I am enrolled in abeginners class and am having problems with methods. I keep getting a .class expected and do not know how to fix this. It is at this line that the message appears `total = Circle.area(int radius);`. import javax.swing.JOptionPane; public class Circle { public static void … Software Development java java-swing | |
I write a C program that reads a text file and copies it to standard output, adding to the start of each line the line number and the number of characters in the line. For example, if file contained the following: Hello Daniweb forum How are you today? Good day … Software Development c | |
13. What is the output of the following code? int x; int *p; p = new int; *p = 14; x = *p; *p = 65; cout << x << ", " << *p << endl; a. 65, 65 c.14, 14 b.65, 14 d.14, 65 Software Development c++ | |
Ok, using Jgrasp I was given a problem that asked me to design a GUI program to find the weighted average of four test scores. The four test scores and their respective weights are give in the following format....testscore1 weight1 This is what I have so far, the code will … Software Development gui java java-swing | |
Hi friends, can any one let me know what hash algorithm is used by linux system for its shadow passwords. I'm totally confused some say MD5 and some SHA-512 which one is true and can give the source for answer if got them. Thanks linux learner | |
Can you please give me sample code of a Win32 console application that will hook to Windows through the API and listen for mouse clicks (all mouse clicks in the OS; not just the clicks on the app's window)? I looked high and low for this, but couldn't find it … Software Development api c++ windows-api | |
This is a school project. I need to read jokes from multiple files and show them in separate threads. It complies but I keep getting IndexOutOfBoundsExceptions. Any tips or help you can give would be greatly appreciated. [code] import javax.swing.*; import java.awt.*; import java.io.File; import java.io.*; import java.io.FileNotFoundException; import java.awt.event.*; … Software Development java java-swing | |
so my assignment is: For this assignment, your job is to create a program that reads in multiple lines of text, and then produces the translation of that text into the English language variant known as "pig latin". Pig latin works this way: if a word begins with a vowel … Software Development java | |
hey guys, i need help with understandind this code-actually just some parts of it. can you explain to me what the purpose of this is: *(float*) variable = 34; i can understand the variable = 34 part just not the *(float*) part. what does it do? also what is the … Software Development c++ | |
[CODE=python ]while 1: tracking.update() for obj in tracking.objects(): allobjs=[] allobjs.append(obj.xpos) allobjs.append(obj.ypos) allobjs.append(obj.xmot) allobjs.append(obj.ymot) allobjs.append(obj.sessionid) aobjlist.append(allobjs) [/CODE] In the above snippet of code tracking.objects() returns a list of objects with above mentioned properties. tracking.update() continuously updates obj attributes and adds new objects. Our requirement was to have an Multi dimensional list … Software Development python | |
i want to connect an vb6 form with oracle9i so that i can insert update n delete ,what are all the ways i can connect to db , anyone help me with code , form one has four fields student name , id dept, year n college, if i click … Software Development oracle visual-basic |
The End.