132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for arun0107

[code=c] typedef struct _node{ char *name; char *desc; struct _node *next; }node; #define HASHSIZE 101 static node* hashtab[HASHSIZE]; char* m_strdup(char *o){ // the m_strdup function....... int l=strlen(o)+1; char *ns=(char*)malloc(l*sizeof(char)); strcpy(ns,o); if(ns==NULL) return NULL; else return ns; } int install(char* name,char* desc){ unsigned int hi; node* np; if((np=lookup(name))==NULL){ hi=hash(name); np=(node*)malloc(sizeof(node)); if(np==NULL) …

Software Development c
Member Avatar for Prabakar
0
163
Member Avatar for angelsherin

Hi friends, I am working with vc++.Net...In my project, the first module is that i have to spawn an exe application(Say Ex:Notepad)...I used create process to spawn the Notepad application...Also i have one ini file which is used in my Project and an external dll created using C# code...In my …

Software Development c++ ide
Member Avatar for Ancient Dragon
0
117
Member Avatar for champnim

Hi I have to make a C program which has to perform a specified event at a specified time. Something like this... [code] Print Hello at 13:15 Print Bye at 14:20 Print working at 13:57 [/code] Assume that these instructions are already available. I am thinking of creating a doubly …

Software Development c linked-list
Member Avatar for Narue
0
91
Member Avatar for 010Nick

Hi I have been writing VB.Net for a few weeks, it has been going well but I am now stuck. I have multiple user controls on a form and I need a way to remove a selected one. I was hoping that something like this would do it [code] Private …

Software Development vb.net
Member Avatar for 010Nick
0
204
Member Avatar for hell_tej

Hi Friends, First thing is I want to say Thank youuuuuuuuuuuuuuu. for retriving me answer on my other question you guys are such a greate people. Sory To Disturb you But I have One Big problem That i can't solve it :'( I m creating A project, in this project …

Software Development visual-basic
Member Avatar for debasisdas
0
173
Member Avatar for rovers9live

I am looking for assembler language in lc3 to sort an array string in ascending and descending order off of a string. can anyone help me?

Software Development assembly
Member Avatar for Duoas
0
1K
Member Avatar for Thew

Hello, does the SetLength function in Delphi called with the second argument 0 free the memory used for the array? Example: [CODE=Delphi] var Names: array of String; i: Byte; SetLength(Names,10); for i:=0 to 9 do Names[i] := '...'; SetLength(Names,0); // << does this code free memory used by Names array …

Software Development delphi pascal
Member Avatar for Duoas
0
663
Member Avatar for vsha041

Hi, I want to write a program which can compile a different C++ file. And I want to save the output , which I will get after compilation in a different text file. For Example:- I have got two C++ files called file1.cpp and file2.cpp in the same directory. Now, …

Software Development c++
Member Avatar for Agni
0
335
Member Avatar for vinlam
Member Avatar for mvnk12

hi friends can any one help me in deploying vb.net project with database(SQL SERVER)

Software Development vb.net
Member Avatar for sierrainfo
0
2K
Member Avatar for karthiknv

Hi, I have a problem. I need to read some data from a text file and need to put it into XML file using VB6. I have the follwoing input from the text file: Suite id="ADD" description="Add Validation Suite" TestCase id="ATC_V_Add001" and so on.......... and I want the following format …

Software Development file-system visual-basic xml
Member Avatar for karthiknv
0
235
Member Avatar for jcollins85

Hi all!!! I'm starting to learn C++ on my own and I have a question about accessing a structure through a dynamic array. I've looked into some previous threads that apply to this but they all deal with structure composed of int variables. This concerns char and is driving me …

Software Development c++
Member Avatar for hacker9801
0
115
Member Avatar for QuantNeeds

Hello, The following code works but I am having trouble formatting it with setw() and I am not sure if it possible to format it with a space so that the entire seat header fits on one line and for the rows to also fit on one line with spaces. …

Software Development c++
Member Avatar for Nick Evan
0
111
Member Avatar for risa

String functions like strcpy,strcat,itoa...shows warning as "declared deprecated" in Visual Studio 8.0 instead it suggests to use functions which are enhanced secure versions of the same such as strcpy_s,strcat_s,_itoa_s.....using this in my file removes those warnings but i am using this same file in visual studio 6.0 here it gives …

Software Development c++ visual-studio
Member Avatar for risa
0
3K
Member Avatar for manojthanal

I am started a new with VB6 Access project. I am connected database with ADODB, DSN Method that Code Given below. '======================In module ============== '=================== Connection With Database =============== '====================================================== Public CNN As New ADODB.Connection Public RS As New ADODB.Recordset Public cString As String Public Sub Main() Set CNN = …

Member Avatar for manojthanal
0
393
Member Avatar for delphiman

I have the following code from Mastering Delphi 6 by Marco Cantu [Page 875] as supplied in the CD supplied with the book [more particularly a Project called "Office"] which I have got to work very well in transporting data created by my Delphi 6 Application into an Excel "PivotFile". …

Software Development delphi pascal
Member Avatar for delphiman
0
130
Member Avatar for Ixeman

I was wondering how would you write a new file in vb.net. In vb6 it's pretty easy like some code like this [code] Open App.Path & "\file.exe" For Binary As #1 Put #1 and etc [/code] So i was wondering how could you do that in vb.net. But i also …

Software Development vb.net
Member Avatar for Ixeman
0
89
Member Avatar for novadose

First off i would like to say i am very new to vb, i am using vb 2008 express edition and while making a web browser (which is supposed to be one of the easiest things to do), i decided to some image links to some of my favorite sites, …

Software Development vb.net web-browser
Member Avatar for novadose
0
86
Member Avatar for QuantNeeds

Help I am having the following error: error C2446: '==' : no conversion from 'int' to 'char *' When I tried the following it ignores my counter and I am not sure why. This is a serious problem because it creates and infinite loop that keeps printing. [code] if(char(seating[openSeat + …

Software Development c++
Member Avatar for Duoas
0
3K
Member Avatar for QuantNeeds

Please help – I am having either some logic issues or formatting issues: My code is the following: [code] #include <iostream> using std::cout; using std::cin; using std::endl; #include <iomanip> using std::setw; using std::setprecision; #include <cstdlib> // contains prototypes for functions srand and rand using std::rand; using std::srand; #include <ctime> // …

Software Development c++
Member Avatar for QuantNeeds
0
98
Member Avatar for titaniumdecoy

The default copy constructor should work for the Polynomial class below because it does not contain any dynamic data types. However, when I create a new Polynomial via the copy constructor, it prints 0 for the value of each coefficient. How can I fix this? [CODE]#include <iostream> #include <vector> class …

Software Development c++
Member Avatar for Duoas
0
141
Member Avatar for hacker9801

Hey. What's better, i++ or ++i? Well ++i returns the value after it's incremented, but which is faster? (not necessarily for int, user-defined types with operator++ overloaded too.)

Software Development c++
Member Avatar for hacker9801
0
115
Member Avatar for kasunc

hello pals, I need a help with using re module to search and convert uppercase words in a string to title case Eg: [code] mystr='Hello everybody. Some times THERE ARE upper case words' #Results should be 'Hello everybody. Some times There Are upper case words' [/code] Hope you can give …

Software Development python regex
Member Avatar for kasunc
0
296
Member Avatar for Acidburn

Hey guys, I'm hoping you could explain why this doesnt work: main file [code] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace TemplateApplication { class Program { static void Main(string[] args) { Class1<int> cl = new Class1<int>(); } } } [/code] another template class [code] using System; using System.Collections.Generic; …

Software Development visual-studio
Member Avatar for Acidburn
0
77
Member Avatar for LevelSix

Basically, I need to write a program that takes a user input for multiple text files, and then prints them out into one file. I usually try not to pose questions here back to back, but alas, I need the help this time round. What really has me baffled is …

Software Development java
Member Avatar for LevelSix
0
1K
Member Avatar for Dell XPS

How can i search in a .txt file wod by word... I will have a textbox(and a search button) and I need to search for the word entered in the textbox.... and display all the result in the listbox Sorry if this exists somewhere else.... just post me the link …

Software Development vb.net
Member Avatar for Dell XPS
0
78
Member Avatar for wrappingduke

Hello, i'm attempting to create a splash screen using the code snippet posted on this site(i.e. DaniWeb) - [URL="http://www.daniweb.com/code/snippet697.html"]http://http://www.daniweb.com/code/snippet697.html[/URL] However, I'm having some difficulty. It appears that the splash screen will continue to run w/out disposing itself. That is, the screen hangs and does not go away. Also, the screen …

Software Development java
Member Avatar for wrappingduke
0
145
Member Avatar for harcaype

I'm trying to update/refresh my data grid but it doesn't seem to update whenever there's a new entry. I've search the net about it and they were talking about databind(). I can't seem to have that in my datagrid. My intellisense only shows DataBindings not databind(). here's my code (when …

Software Development
Member Avatar for harcaype
0
116
Member Avatar for Software guy

hi , i have a simple problem here, that is how can i convert an Decimal integer into Hexadecimal integer and not in Hexadecimal string. I have wrote the following code and managed to get the output from the program. But for a certain reason i cant use it again …

Software Development java
Member Avatar for Software guy
0
183
Member Avatar for bhoot_jb

i think it is not possible to print vertical lines along with text data in vb6..so i thot of transferring the whole contents from vb form to a word document. but now i dont know how to do that. i want to transfer the data in a specific tabular format. …

Software Development visual-basic
Member Avatar for bhoot_jb
0
180
Member Avatar for veledrom

Hi, I have a subroutine(callMe) in Module1. I want to call "callMe" in other subroutine in Form1. I cant do it. I cant call subroutine in other subroutine. How do i do it. Thanks

Software Development visual-basic
Member Avatar for QVeen72
0
354
Member Avatar for mykar_88

hi i would like to know the functions of webbrowser1.busy,STATE_COMPLETE and all other properties of web browser. pls also let me know how to make the process sleep until web browser gets loaded. thank u

Software Development visual-basic web-browser
Member Avatar for mykar_88
0
171
Member Avatar for veledrom

Hi, Code below retrieves some of the enum values, not all. Why? Thanks [code] Dim RST As New ADODB.RecordSet Combo1.Clear RST.Open "Select Distinct Title From MyTable",Conn If Not RST.EOF Then RST.MoveFirst Do While Not RST.EOF Combo1.AddItem RST(0) & "" RST.MoveNext Loop End If [/code]

Software Development visual-basic
Member Avatar for veledrom
0
97
Member Avatar for msupstream

Hi, I have done some reading and searching without finding how subclasses relate to friend classes. Here is a little scenario: [code] class Dog; class Cat{ public: int getAge(){return age}; protected: friend class Dog; int age; }; class Dog{ public: Boolean foo(){return True}; protected: friend class Cat; }; class Puppy …

Software Development c++
Member Avatar for Narue
0
156
Member Avatar for Mr.Wobbles

I am getting information from a database and reading it into an xml file - I've tested the SQL and it works just fine on the database I am using - but it won't return anything once I've got it and am trying to use it. Here is my code: …

Software Development vb.net xml
Member Avatar for sierrainfo
0
100
Member Avatar for CoolGamer48

Hey, I'm attempting to write an XML parser in C++, and I have some questions on some XML syntax. First: what is the rule for what goes between the end of the last attribute and the end of a tag? E.g.: is this ok:[ICODE]<tag attribute="value" >[/ICODE]? is this ok:[ICODE]<tag attribute="value">[/ICODE]? …

Software Development xml
Member Avatar for Narue
0
162
Member Avatar for karthik1

Hello, How to copy an item selected in a Listbox present in Form1 into a Combobox present in another form-Form2. Here the combobox contains a list of customers while the listbox contains only the selected few. For eg in the cbox i type "r" the i get a list of …

Software Development visual-basic
Member Avatar for selvaganapathy
0
114
Member Avatar for karthik1

Hello, I have a login form in Access which has a combobox and ac ommand button. The combobox has a list of customernames. On selected the customer in the CBox or specifying a part of the customername, when i click the commbuton i should get another form having a list …

Software Development visual-basic
Member Avatar for Jishnu
0
81
Member Avatar for ratperson

I am programming for the first time...trying to make a game in pygame. I need to know how to design a really good background. All I can do at the moment is draw lines and change the background colour. Please help!! I am making this for my boss and I …

Software Development python
Member Avatar for ratperson
0
80
Member Avatar for Mazille

Hi I'm a python beginner! I'm trying to make a list of 3 numbers per line but I get an error. =( Here's my code: [CODE=python]list2 = [23, 764, 12, 54, 83, 2, 543, 890, 1235, 453, 98] k = 0 while list2[k] != -1: first = str(list2[k]) k = …

Software Development python
Member Avatar for Mazille
0
1K
Member Avatar for aot

Can python programs with GUIs (such as Tkinter) be embedded into web pages? I have looked into CGI programming before, but despite a search, I have found no books relating how to do this with python. Is it possible? Can anyone recommend a good book? If not, what would you …

Software Development flash python tkinter
Member Avatar for Jon Pierce
0
185
Member Avatar for Dan301978

Hi guys, I hope you can help. I want to start work as a trainee developer and to do this I plan to train myself up in C# and .NET. In order to prove to employers that I have done this work, I plan to take the Microsoft exam 70-536: …

Software Development c#
Member Avatar for sierrainfo
0
171
Member Avatar for beatlea

Hello, Could you explain me what this statement means? I am confused with k/=2 as iteration statement. [icode] for (int k = p; k > 0; k /= 2) [/icode] Thanks

Software Development c
Member Avatar for beatlea
0
119
Member Avatar for guerreronoli

The project is completed, the report is working in the JCreator, but not when i run jar file.. I've searched the forum but i couldn't find to my requirements. I want to know to how to make the jar file that the report should also work.. Help needed plz..

Software Development java
Member Avatar for lucky1981_iway
0
86
Member Avatar for QuantNeeds

Is it possible to store * and # in an array? I thought I could do this through the data type char. On top of that I was wondering if I could check the array elements to see if the element equaled that character, but I don't think that's possible. …

Software Development c++
Member Avatar for QuantNeeds
0
76
Member Avatar for chetan1989

I have got a C++ program that accepts a string and gives output as a string now what I need do is take the string input from the textbox on a webpage and then submit the result to a database? Submitting to database is a later case but first tell …

Software Development c++
Member Avatar for chetan1989
0
81
Member Avatar for SwiftDeath

I am creating a new sorting algorithm as a machine problem and i encounter difficulties. The logic of my said the said algorithm is to create an array by inputing the total numbers to be accepted followed by the array variables and sorting it ascending or descending. The array would …

Software Development algorithm c
Member Avatar for SwiftDeath
0
240
Member Avatar for reniies

Hi all, I've developed a vb.net application for a desktop digital clock and deployed it. I made the application start at windows startup and it's working fine. But the taskbar button for the application is there in the taskbar every time the windows login. Please help me to modify the …

Software Development vb.net
Member Avatar for reniies
0
267
Member Avatar for lil_panda

How would I go about deleting all '' characters from a string? [B]I am using the command line to pass parameters with parenthesis, so anyone who uses my program will need to use '\(', '\), '\[', '\]', etc.[/B]

Software Development c++
Member Avatar for titaniumdecoy
0
103
Member Avatar for swingkitty

I have an assignment for my class that asks to modify my previous assignment to include a function for both A and B. The function for A should have the quantity of numbers passed in as a parameter and needs to return the largest number. The function for B should …

Software Development c++
Member Avatar for swingkitty
0
88

The End.