132,726 Archived Topics
Remove Filter ![]() | |
Hello, I have a problem, I needed a change from C++ to C#. help anyone? I made it from this: ( This is script in C++ [CODE]using namespace System; using namespace System::Text; using namespace System::Net; using namespace System::Net::Sockets; String^ chr(String^ str) { Char^ c = Convert::ToChar(Convert::ToInt32(str)); return Convert::ToString(c); } Int64^ … Software Development c c# c++ client-server | |
hello guys, i have a simple question which is how can i declare a variable to accept character and number at one time for example, i ask the user to input 'a1' to do something waiting for you Software Development c++ | |
Hi guys,I was interesting,how to write a function,to determine the nearest square number that is equal or greater to the length of the string( for example 16 is the next square number after 13) I don't even know what is the mechanism of this function:-/ Software Development c++ | |
I use: Visual Studio 8.0 Label design For MySAP I have created a barcode label and stored as [COLOR="Red"]barcode.lbl[/COLOR] This barcode.lbl has [COLOR="Green"]two fields[/COLOR]: 1. name = &Barcode& {variable barcode field EAN field 12} 2. name = &text1& {variable text field length character field (10)} I want to link textbox1.text … Software Development printer vb.net visual-studio | |
i work with C#.net and mysql. i will fill a combo box with data from stored procedure. but i get only 1 value. how can i fill the combobox? Software Development | |
Hi. I'm new to C++, and I'm having problems understanding a certain type of function argument. I wrote this code to try and understand it, and it didn't help much. :) [code=cpp] #include <iostream> using namespace std; class TestClass { public: int a ( TestClass arg ); int b ( … Software Development c++ | |
Hello everyone I'm currently following a course "Game Development" where we learn everything from design to 3d drawing to programming. The language we use is C++, however I'd like to learn Java as well and have there for decided to create a large project (together with a number of other … Software Development java web-design | |
Hello I try to send DHCP RENEW packets to the network and receive the responses. I broadcast the packet and I can see that it's successfully sent using Wireshark. But I have difficulties receiving the responses.I use packet sockets to catch the packets. I can see that there are responses … Software Development c | |
hi, In my Dataset I have 3 columns "EducationLevel","Skill" and "PreferenceType".In the report I have a field called marks.I give marks adding above 3 column values.i.e If "EducationLevel" is (High,15 marks),(Medium,10marks),(Low,5 marks). If "PreferenceType" is ("First" 15 marks),("Second" 10 marks),("Third"5 marks) If "Skill" is (High,15 marks),(Medium,10marks),(Low,5 marks). The Marks field … | |
Hi Guys, Im having issue with the following code. I am getting the following error? could someone please assist? [code]#include <iostream> #include <iomanip> #include <string> #include <vector> #include <fstream> #include <stdlib.h> using namespace std; class employee { /* Employee class to contain employee data */ private: string surname; double hourlyRate; … | |
I fear from loop statements that's why I cannot figure this thing out. I understand the concept put I do not have bigger picture. Here I would like to close the application after the person try 3 times putting the wrong password. [CODE]Public Class MainForm Private Sub exitButton_Click(ByVal sender As … Software Development programming-construct vb.net | |
do you know where to find GL/glut.h code? i only found gl.h, glaux.h and glut.h in some links. can you help me? Software Development c | |
Visual Studio 2005 Professional Edition: My app runs fine on my development computer, but, bombs out on the 3 other computers that I installed it on (all 3 were running Windows XP Pro). It installs OK, but, upon execution, it immediately aborts with a System.InvalidOperationException. I inserted a MsgBox(" " … Software Development image vb.net visual-studio | |
I've got some troubles with ListBox. I want to allow user edit selected item in ListBox, when he double click it in his application, but I wasn't able to find how to do this. Please, can someone help me with it? Software Development | |
hello all friends i need your help in java.library.path setting.i use a TPM/j API to develop an application using Trusted Platform Module (TPM) specification and to use TPM/j API i need to set java.library.path and load TBSProxy.dll. I try to set java.library.path using DOS and it not works. C:\Users\lfgs\tpm\tpmj>java -Djava.library.path=C:\Users\lfgs\tpm\tpmj\lib\ … Software Development api java java-netbeans | |
Hello, I want know how to find some of words in a file. For example : find one word [CODE]if "word" in open(file).read(): print file[/CODE] I wand do that but with 5 words [ word1 , word2 , word3 , word4 , word5 ] If find word1 or word2 or … Software Development file-system python | |
Hi all, i,m trying to use A* algorithm to do my task; this is the code [code] //////////////////////////////////////////////////////////////////////////////////////////////////////////////// // STL A* Search implementation // (C)2001 Justin Heyes-Jones // // Finding a path on a simple grid maze // This shows how to do shortest path finding using A* //////////////////////////////////////////////////////////////////////////////////////////////////////////////// #include … | |
hi guys i have written a small program to control a camera through rs485 now the program works ok for one camera but i dont seem to be able to change the byte that changes the camera number at run time through a drop down menu ie cam 1 cam … Software Development vb.net | |
How integrate .dll files in Qt4 c++. Any sample codes ?? Thanks Advance. Software Development c++ | |
Hi, I'm doing a program to capture from USB camera. And to do the program, I need directshow which can be found in directX sdk. I read that the new versions of directx are not compatable with VC++ 6.0. Does anybody know where I can get an old version which … Software Development c++ | |
Hi, I am trying to learn creating my exceptions in java. My classes are : [CODE] public class Test { public static void main(String args[]) { Test et = new Test(); int x1=5; int x2=0; try { et.printResults(x1, x2); } catch (DivideByZeroException dbz) { System.out.println(dbz.toString()); dbz.printStackTrace(); } finally { System.out.println("The … Software Development java | |
Country Gold Silver Bronze Total US 9 15 13 37 GE 10 13 7 30 CA 14 7 5 26 NO 9 8 6 23 AU 4 6 6 16 RF 3 5 7 15 KO 6 6 2 14 CH 5 2 4 11 SW 5 2 4 11 … Software Development file-system python | |
Hi everyone, I get a string in XML format from front end. I write that into a file, and later I parse that file to get tokens/values. is there any way..that I can parse the string Instead?? which is in XMl format and fetch the tokens there. Coz writing on … Software Development xml | |
hi, have a slight problem here. this is my open file dialog code. [CODE] private void browseToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); ofd.Title = "Browse And Upload A Template."; ofd.Filter = "All files (*.*)|*.*|All files (*.*)|*.*"; DialogResult dr = ofd.ShowDialog(); if (dr == DialogResult.OK) { //bitmap … Software Development file-system | |
I can insert into my table by the bindingnavigator and dragging textboxes straight from the DataSet entering them and saving. But I want to insert into the DataBase via code and in order to do this I have used the below code to connect. I use this code to test … Software Development dataset microsoft open-source sql vb.net visual-studio | |
Hello folks, I am a noob with XML but from what I read it is not a problem, in fact it is much easier that HTML. I have a flash/XML website template but unfortunately the designer did not provide the fla files. From the xml files you could change all … | |
Is there a data structure that lets me push and pop things onto/off of a queue, but also doesn't allow duplicates? E.g. I want [code] queue a; a.push(1); a.push(2); a.push(2); a.push(3); [/code] to only have 3 elements, because 2 was added twice so the second time it is just ignored. … Software Development c++ data-structure queue | |
i found this code [URL="http://www.daniweb.com/forums/thread233959.html"]here[/URL] and i tested the code and it isn't working for me this is what my code looks like: [CODE] # PURPOSE: to count the number of words, lines, and characters in a file # # INPUT(S): a file name to be used # # OUTPUT(S): … Software Development file-system python | |
Hi all, I am new to C, and till now have only done python (a years worth at university), and am finding myself running into walls whenever i try to do seemingly simply stuff. One of the main issues in comparison is the lack of a interpreter and Ch is … Software Development c | |
i need to find all the files in the directory and sub directory that have a text file..within this text file there is a string called average with some value.. the code below works fine for a single directory...but i need to find the same text files in the sub … Software Development file-stream java | |
Hi everyone. This is my first post . I develop this program in C-Free 4.0 with <iostream> header... And it working [CODE] #include <iostream> #include <cstdlib> #include <iomanip> #include <ctime> using namespace std; int main () { int random_num; srand((unsigned)time(0)); bool assigned_players[32]; for (int i=0;i<32;i++) assigned_players[i] = false; int n=32; … Software Development c++ | |
I'm doing a code in which a user inputs a word and then I have to output the word backwards, but for some reason, the black screen disappears when I enter the word...here's my code: [CODE] #include <iostream> #include <string> using namespace std; int main() { string word,backwards; int numchars=0; … Software Development c++ | |
Anyone know of a way to tell the difference between an inherited class method and a individually defined one? ie: [CODE=python]class test(str): def unique(self): pass x = test() # how to test for difference between x.unique # and x.lower[/CODE] Software Development python | |
hi forum, i am using an arraylist for storing a list of objects.i dont want the objects in the list to be ordered but the list should be duplicate free.how can i achieve this.plz help quickly.provide source code if possible.thanks in advance. Software Development java | |
We've just started I/O streams and i need some help with my prjct. Here is the lab: "Write a program that gives and takes advice on program writing. The program starts by writing a piece of advice to the screen and asking the user to type a different piece of … Software Development c++ | |
Hi, My code reads a string from a file. But it misses the lastone. can you help me? 1..Text File [CODE]102.15.12.10 15.14.106.6 1591 1592 bit_torrent[/CODE] 2.. Code [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> struct list_node{ char src_ip[15]; char dst_ip[15]; char src_port[4]; char dst_port[4]; char protocol[15]; }; typedef struct list_node node; … Software Development c file-system | |
my code is supposed to read in a binary file and then save the input to a text file. when i cout << coach[i] i get the output and jibberish [CODE]#include <iostream> #include <string> #include <cctype> #include <fstream> #include <cstdlib> using namespace std; int main() { char coach[500]; int i=0; … | |
I built a program that is supposed to read in a data file that looks like this for example: 1 2 3 4 5 6 2 3 4 9 8 7 1 6 5 7 4 2 1 3 4 5 6 7 2 5 7 8 3 1 3 … Software Development c++ data-structure | |
So I'm somewhat new to programming and I have a assignment in which I have to verify if the numerator entered by the user is a decimal, instead of a integer. If it is, then I throw an exception...the thing is I don't really know how to do it because … Software Development c++ | |
This is seg faulting whenever I try to remove anything. I've been trying to fix it for hours, to no avail. Any ideas? [CODE]#ifndef BST_H_ #define BST_H_ #include <stdexcept> #include <iostream> #include "btnode.h" using namespace std; /* A class to represent a templated binary search tree. */ template <typename T> … Software Development c++ | |
Please bare with me. I am still a newb at programming and this may seem a bit confusing, but I have many comments and debug lines. This is an extremely long code, but could the advanced programmers out there please help me out? The goal of my program is to … Software Development c | |
Hey, I'm in the process of writing an email header analyzer in C# and i'm stuck on something. Before i go into the problem i think i should write an intro on what i'm looking to achieve. I basically want a program that can read through headers and copy some … | |
hi. I have a method that searches a database using the contents of a textbox. I don't want people to be able to type "%" and retrieve all of the info... If UsernameTextBox.Text = [COLOR="Red"][B]""%""[/B][/COLOR] Then badlogin() End If Software Development vb.net | |
I am creating a program that calculates the average for a bunch of numbers. The first input is the number of values, and the second output is/are the numbers. For example, with the inputs of the following, I would get the outputs afterward. 5 10 20 30 40 50 Average … Software Development c | |
I have a project written in vb.net and I am trying to convert it to c#. I have managed to convert it except from one file. Here is the old code of the file : MyWebExtension.vb [CODE] #If _MyType <> "Empty" Then Namespace My ''' <summary> ''' Module used to … Software Development assembly caching web-design xml | |
so i need some help, have random int that decide which values in my Boolean array are true. All th [CODE] System.out.println ("pick a number 1-9"); int guess; for ( int i = 0; i < 9; ++i ){ guess = console.nextInt(); if (x[i] = true) { System.out.println("CORRECT!!"); }else if … Software Development java | |
I'm basically trying to either mimic the BindingNavigatorAddNewItem button or utilize it. Ideally I'd like to make my original code work. The code for my on "Add New Ticket Button" click simply clears the fields on my form and determines the next number to use for a TicketNum, and Places … Software Development vb.net | |
Hi I would really appreciate if someone could tell me what I am doing wrong. I think I have a major error but I can't seem to find out where it is =( My assignment is due tomorrow so if anyone would be up right now and could tell me … Software Development java | |
As a prerequisite, here is the code for my two classes, Station and SubwaySystem: [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Assignment7 { class Station { //attributes private string stName; private int stID; private Station next; private Station previous; //properties public string StName { get { return this.stName; … Software Development |
The End.