132,726 Archived Topics
Remove Filter ![]() | |
I know how to pass a single text from one form to another form 1- declare a public variable in the general part of the form like this [B]public varaiableName as String[/B] 2- in the [B]form_load()[/B] write [B]variableName=text1.text[/B] 3- you can access this variable from any other form using the … Software Development visual-basic | |
hi i'm trying to write program to create a mirror print of a binary tree the code is : [CODE]typedef struct Node { int info ; struct Node *left , *right ; } Node ; void swapNode ( Node *n1 , Node *n2 ) { Node *tmp = NULL ; … Software Development c | |
program to print all special numbers less than a given number (a number is special if it is equal to the sum of factorials of digit) | |
I'm working with winmm.lib (in C++) and am having a hard time with waveInOpen(). When I call waveInOpen() in my dll, it blows up. I think it's becasue its not getting a device context. I take the same code and put it in a regular exe... it works fine with … Software Development c++ | |
Hi all, I've create a window as follows, [CODE=cplusplus] void CRtf::Initialize(void) { HWND m_hwnd_RTFBox = CreateWindowEx( WS_EX_APPWINDOW, RICHEDIT_CLASS, "RichTextWindow", WS_BORDER|ES_MULTILINE, 0, 0, 100, 100, ::GetConsoleWindow(), NULL, 0, NULL); } [/CODE] After doing all the process, I've destroyed the window as well. My question is this. I use the above handler … Software Development c++ | |
Ale Hallan people.. I have something like this: [CODE]void main(){ int flag=1,exit=1; cla_N *head=NULL; char class_name[NAME_LENGTH],choice[1]; double diversity; while (exit) { printf("Please choose one of the options below:\n" "1- Create/update class. \n" "2- Delete class. \n" "3- Insert new species. \n" "4- Delete species. \n" "5- Update species. \n" "6- … Software Development c | |
Aight, so I know I just posted a few hours ago but I promise that after this bug I'll not posted for a couple of days... or weeks. Aight, so I have two classes -> Connection, and SocketServer (which is inside of "socket.h" and "socket.cpp"). Inside of Connection.cpp, the code … Software Development c++ opengl visual-studio | |
i have tried to do the pascals law in the following method .....bt i m not getting a triangle shape.could someone help me out in this tight Spot?? here is the code what i have typed... [code=c] #include<iostream.h> #include<conio.h> #include<iomanip.h> long TRIANGLE(int x,int y); int main() { clrscr(); int lines=0,n; … | |
hi all.... In c++ how to convert integer value to hexadecimal (in ANSI-C ). wijitha... Software Development c++ | |
Hi All, Can any one help me.When I converting String to long ,It shwoing Exponent value and throwing numberformat exception. I want out put like this 99998900001.00. String stotal=request.getParameter("amt"); sop( stotal); long damount=Long.parseLong(stotal); sop( damount); I have given input at amt 99998900001.00 stotal= 99998900001.00 throw numberformateexception damount = 9.9998900001E10 Software Development java | |
could anyone tell me any good books on multithreading in c++ thanks Software Development c++ multithreading | |
Hello, I am trying to have a sub repeat an action every so often (happens to be a random timing) and my program freezes when I try to sleep the thread. Below is a general structure of the sub the thread is executing. Any possible solutions? I do NOT want … Software Development vb.net | |
Hello everyone, I am making a Fortune Teller program for a University project, and I am a little confused as to why I keep getting this error when i try to compile. Here is my code: public class Fortune { private int insertNumber; private int showFortune; /** * Constructor for … Software Development java | |
Basically I'm having difficulty figuring out what to return to a function. Here is my problem: I have a class called Zoo that contains Animal objects in an array of pointers called cages e.g.. [CODE]class Animal{ double weight; double height; double speed; double power; Animal(){} }; class Zoo{ Animal ** … Software Development c++ | |
I am a new to linux and the gcc system I was just wondering if someone could answer a couple of questions about the including hearder files like the math.h file. I was making a simple program and using some math trig functions. I keep getting the error cosf undefined … Software Development c++ | |
Hi , i am very new to C++ , OOP concept. I am making a bookstore using classes and have made it till books details ( tat is for ex. 10 books aval and when the user searches fo particular book he gets the detail with price and aval copies) … | |
Please help me in self documenting the program below. All you have to do is, take a quick glance at the following code to see if you can understand what each part is doing. If you have any difficulty in understanding(at a quick glance that is!), please tell me, so … | |
hi, i am basically a newbie to C++ and tried to make this simple math program but came acroos this error and don't know how to resolve it: [code=c++] #include <iostream> #include <cmath> #include <string> using namespace std; int main(void) { string input = Add; int a, b; cout << … | |
I'm making a Windows Application in C#. How to [B]navigate from one form to another[/B] and [B]not losing data(s)[/B] from the previous form? For an example, I created [B]Form1[/B]. In Form1, there's [B]textBox1[/B] and [B]button1[/B]. By clicking [B]button1[/B] links you to [B]Form2[/B], and after [B]Form2[/B] is shown, text from [B]textBox1[/B] … Software Development | |
I started using the tutorial "Teach Yourself C++ in 21 days" yesterday, and I absolutely love it's clarity. However, there is one thing that perturbs me about it. All of the code written in the code is numbered. This is a great feature until I want to try running the … Software Development c++ | |
[COLOR="Green"]i want to take data from serial port and want to redirect it to the ps/2(keyboard) port. is it possible to do so if yes please help. [/COLOR] Software Development c | |
like i have a string ch[100] how can i convert each character of it to integer that is ascii value which can be later converted in to binary so that ascii value of each character in a string has a corresponding binary value Software Development c | |
how to get value from datatable from text box.actually i want to fetch values of textbox from datatable. Software Development | |
Hi all, I need to develop a application in vb 6.0 for to split one file which one have 20GB . Any body can u help me on this?. If any body have any sample project on this please send to me. Thanks Software Development visual-basic | |
How would I replace the text in a file with c#. I can write to the file, but if I write to the file a second time it appends the new data to the old rather than replace it. Here is a copy of what I'm using [code] fsFile = … Software Development | |
Can any body please tell me code of Simplified Data Encryption Standards in C language Software Development c encryption | |
I am writing a Queue class implementation, and my Queue holds a object called Flight. I tried to create this object by struct. Some part of my code is here: [code=c] #include <stdio.h> #include <stdlib.h> typedef struct { int C_TIME; int D_TIME; char FL_NUM; char D_CITY; }Flight; #define MAXSIZE 5 … | |
I posted a question last week: "Detect Data change in datagrid". I may be so green at VB.net that I may not have even asked my question correctly and plain enough that someone could propose a solution, so here goes again: I am creating a Windows Form and I need … Software Development vb.net | |
i want this window to be like this CYP BANKING SYSTEM username [_________] password [_________] LOGIN can anyone help me with the layout?, the flowlayout is just a single row! [code] Container logincontainer=getContentPane(); logincontainer.setLayout( new FlowLayout()); JLabel Title=new JLabel("CYP BANKING SYSTEM"); Title.setFont( new Font( "", Font.BOLD, 40 ) ); JLabel … Software Development java | |
Please help me... after the execution of the program. It write the new information to it. However, the .txt file do not display the new information properly. (The index number stick with the name...). It is a half work program. Please help me solve this problem or else i cannot … Software Development c display file-system perl | |
Hi guys hope you fine I have a request and question, for my request I would like from you to recommend me which books and tutorials that I may follow help me to understand how to read and write files in java I really need to know that. and for … Software Development java ![]() | |
i am attempting to retrieve a registry setting and set this in a global variable. I have tried to research this problem but havent found much. this is the code: [code] Module Info Friend m_Server As String Public Sub getserver() Dim sRegKey As RegistryKey = Registry.LocalMachine sRegKey = sRegKey.OpenSubKey("software\\Normans Professor … Software Development vb.net | |
i need help with a project. Is it possible to display an 1 dimension array in GUI without using a loop? If it is can you send me the codes? i was ask to enter the numbers like thise Example: Enter numbers: 3, 4, 1, 5, 6 then it should … | |
hello ,Im a new member and Im not very good in english , so please excuse me , I have question : write a C++ program that declares an array alpha of 50 component of type double . Initialize the array so that the first 25 components are equal to … Software Development c++ | |
hello i have wrote a program that converts a statement to sth like the example below please help me: (9*(1+(3*8)))+(1+(4*5)) into: 9 1 3 8 * + * 1 4 5 * + + [code=c] while((c=getch())!='\0'){ /*i dont know whether it is true or not*/ if(c=='('){ co[k]=1; k++; break; } … Software Development c | |
I am a new learner of C and I tried to write a program about searching a keywrod from a .txt file and counting the number of time that the keyword repeats My program is below...it can't work...and I can't understand why.... can someone please help me...T_T Thank you [CODE]#include<stdio.h> … Software Development c | |
Hi everyone, Found a code listing from [url]www.yamaza.com/java/Calc.java[/url] that helps me understand a better way of programming a calculator. Trying to understand this code. Can anyone tell me what does the boolean isFixReg() below mean? Thanks in advance. [code=java] //******************************* // Java script of Calculator // << Calc.java >> //=============================== … Software Development java | |
Hi guys, I need some help here to generate a list of multiple choice questions (MCQ) from SQL server 2005 on to a smartphone running on WM 5.0. I've manged to connect to the SQL server wireless in a LAN environment and done some simple login. The next thing I … Software Development smartphone | |
I have written my first "Hello World" program in ASP. I thought I would post here how it is done and ask if anyone can suggest how to incorporate C#. The first step was to download the free "Microsoft Visual Web Developer 2005 Express Edition" from microsoft.com The next step … Software Development asp asp.net c# web-server | |
| |
[code=c++] #include <iostream> #include <string> #include <algorithm> #include <vector> #include <set> #include <map> using namespace std; class transition // an entry in 'alpha' transition_table { public: transition(string from_state, char input_symbol, string to_state) {from=from_state; input=input_symbol; to=to_state;} static bool smaller(transition a, transition b) { if(a.from<b.from) return true; else if(a.from>b.from) return false; else … Software Development algorithm c c++ file-stream legal | |
I want to make a small Molecular Weight calculator. If the user for instance enters the molecular formula for dichloro-benzoic acid as "C6H3Cl2COOH", I would like to split it into a list like ['C6', 'H3', 'Cl2', 'C', 'O', 'O', 'H'] so I can then combine all the carbons, chlorines, oxygens … Software Development python | |
Hi, basically i was wondering if there was anyway of directly accessing and writing to a harddrive? for example i have a specific sector on my harddrive which i would like to directly insert some code? does anyone know of any C++ functions or commands to do this? thanks Software Development c++ | |
Hello, I am trying to create a form in C# that will get its buttons configured from a xml file. Here is a sample of my xml file: <?xml version="1.0" ?> - <LauncherConfig> - <GeneralOptions> <Name>FORM_NAME</Name> <BackgrounColor>Gray</BackgrounColor> <PercentOpaque>50</PercentOpaque> <StayOnTop>True</StayOnTop> <Orientation>Horizontal</Orientation> </GeneralOptions> - <Group1> <GroupName_Lable>GPS/Mapping</GroupName_Lable> <Horizontal_Number_Rows>1</Horizontal_Number_Rows> <Verticle_Number_Columns>1</Verticle_Number_Columns> - <Button1> <ButtonLabel>OZI</ButtonLabel> <UnselectedButtonTextColor>FFFFFF</UnselectedButtonTextColor> … Software Development xml | |
Hi Guys i'am trying to learn text file manipulation and i've got a problem with one particuler subject and unsure of how to acchive what i need the text file contains lines in this format Name0 1 2 3456 7 8 9 10 "discription" Name1 1 2 3458 7 8 … Software Development c++ | |
Hello, I am having an issue trying to add a checkbox field to my DataGrid. I have the following Code but it does not display my checkbox. Any help is greatly appreciated. [CODE=VB.NET] Dim myconnection1 As New SqlConnection(myconn) Dim dtcCheck As New DataColumn("Select") dtcCheck.DataType = System.Type.GetType("System.Boolean") dtcCheck.DefaultValue = False Dim … Software Development vb.net | |
hi i want to populate country's name in 1st dropdownlist and their states should be placed in the 2nd dropdownlist, if we select any state it should place the name of the capital in the textbox besides that and so on..... If possible send me code thank you in advance … Software Development |
The End.