132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for shers

I have done a vb script to map the network drives. It works fine for me. But when I checked with a couple of other PCs, it doesn't work. Could anybody tell me why this is happening? Here is the code: [CODE]Dim WSHNetwork Set WSHNetwork = WScript.CreateObject("WScript.Network") On Error Resume …

Software Development visual-basic
Member Avatar for sandeep_chalke
0
128
Member Avatar for aclogics

I have this routine in VB that takes one pipe delimited text file and splits it into multiple text files according to one key field. The records in the text file look something like this: WTX_2.0|O|F|1234|andre.couturier@rrs4.ca |5678|NBSID09876|O_20071121.TXT||1511:AE00001R||11152007||SAMPLE COMMENTS WILL GO HERE ||599|12 |401 WTX_2.0|O|F|1234|andre.couturier@rrs4.ca |5678|NBSID09876|O_20071121.TXT||1511:AE00002R||11152007||SAMPLE COMMENTS WILL GO HERE ||599|12 …

Software Development file-system open-source visual-basic
0
55
Member Avatar for mannantes

Hi, plz can u help me i want to sort my file (sort the second column) and i don't find any solution do u have some idea for me plz!! my file : [CODE] 1176890540542339 1 102 2005 4 1176890540575285 0 103 2005 4 1176890540575285 1 103 2005 4 1176890540608694 …

Software Development c++
Member Avatar for mannantes
0
82
Member Avatar for mjmythili

plz give some examples on threads in C++/VC++

Software Development c++
Member Avatar for Nick Evan
0
79
Member Avatar for agrawalashishku

Hi I am coding in x86 DOS. When I write a code and assemble it and run it in debug, it works perfectly fine but if I run i as a standalone application, it works for small 3-4 line code but not for 8-9 and larger code. PLease Plesae help. …

Software Development assembly
Member Avatar for mytime19
0
84
Member Avatar for dallaseve

Can anybody help me with getting managed code to talk to unmanaged code? I'm okay coding via clr, but I don't have a clue what I'm doing when I try using the GUI interface. I'm using MS Visual C++ 2005 and I'm totally lost VB is much easier. I could …

Software Development c++ gui
Member Avatar for dallaseve
0
129
Member Avatar for vhinchies

can i ask for a program in tasm that can solve arithmetic, example 1+1=2 the program is written in tasm compiler.. or code for addition in tasm.. thx..

Software Development assembly
Member Avatar for mytime19
0
406
Member Avatar for johny112

i have written this program. it excecutes without any errors and even gives me the correct answer. the program is to tell whether the integer is odd or even. the problem is that i want a series of integers and passes them one at a time to function even. Sample …

Software Development c++
Member Avatar for johny112
0
223
Member Avatar for tanalam

Hi all, I am writing a script which parses /* to find out the commented portion of the code. I am using grep "/\*" file.c Following is the code snippet for i in `grep "/\*" file.c`; do . . . done but this is not giving the lines greped from …

Software Development shell-scripting
Member Avatar for masijade
0
126
Member Avatar for matt nagel

Hi there, I am fairly new to programming and trying create a program to parse csv data into an array. I have been following an example I found on this site but I am running into a segmentation fault (even if I copy code directly). I am fairly sure the …

Software Development c
Member Avatar for Duoas
0
7K
Member Avatar for saravanarajan

Hi everyone! Please help me, I am beginner of the vb.net , I want know how to create dataset coding and binding a textboxes,combobox and masked textbox pelase help me

Software Development dataset vb.net
Member Avatar for saravanarajan
0
105
Member Avatar for picklesandmayo

So I started on the final section of my C++ project and got almost done until I re-read the requirements and saw this: [B]Do not use arrays.[/B] *crap* Is there any other way to store multiple inputs than arrays? Basically the idea is to use a recursive function get a …

Software Development c++
Member Avatar for Salem
0
191
Member Avatar for nuch1311

[code] import java.util.*; public class Prj3 { static int data[] = new int[20]; static Scanner kb = new Scanner(System.in); static Random rnd = new Random( 1234 ); static void Create_array(int arr[], int max) { int i; for (i=0; i<100; i++) arr[i] = rnd.nextInt(max); } static void Draw_array(int arr[], int col) …

Software Development java
Member Avatar for eranga262154
0
86
Member Avatar for ferhatkuskaya

Ok Now I will send you my code procedure TAnaform.TrnsferButton1Click(Sender: TObject); var i:integer; begin for i:=1 to 82 do TLabel(DisplayForm.FindComponent('Label'+inttostr(i))).caption:= TMemo(Anaform.FindComponent(('Memo'+inttostr(i)))).Lines[0]; DisplayForm.Show; end; But when I entered the '0' inside "lines" property of memo components in object inspector instead of "Memo1","Memo2" and others... the code is working truely. If I …

Software Development pascal
Member Avatar for Duoas
0
162
Member Avatar for dsuh06

what does the following do? int array[6] = { 5, 3, 4, 17, 22, 19 }; int* ptr = array[0] *ptr = -1; thank you!

Software Development c c# c++
Member Avatar for Ancient Dragon
0
116
Member Avatar for brlukosk

Hi there, I am currently working on a program that reads an inventory list from a file, sorts the list, and then determines the value of the inventory based on the price and the quantity on hand. After these calculations I need the program to write the output to a …

Software Development c++
Member Avatar for Lerner
0
1K
Member Avatar for d0ugg

Hi all, I have a little question, my compiler is giving me the following error: error C2784: 'std::basic_ostream<_Elem,_Traits> &std::operator <<(std::basic_ostream<_Elem,_Traits> &,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'std::basic_ostream<_Elem,_Traits> &' from 'std::istream' see declaration of 'std::operator <<' Here is the main part of my project. [CODE] #include <iostream> …

Software Development c++ user-interface
Member Avatar for Ancient Dragon
0
126
Member Avatar for camberos

ok i hope someone can helpme i need display a menu like a presentation page Name Adress Phone using assambly code, but when i put asm{ name db 'homer simpson','$' adress db 'everygreen','$' phone db '555-555', ..... mark unknow assambly code name db ...... I using TC but i need …

Software Development c display
Member Avatar for camberos
0
95
Member Avatar for squidd

All the help I have received in here has been wonderful and I am very glad that there are good people in here to help us newbies. I know I sure need it! So these last few things would be nice to get some help with and then I will …

Software Development listview pascal
Member Avatar for squidd
0
176
Member Avatar for DREAMER546

hey .. please i need help with this code when i write it and i start in case 3 .. i've error massage .. illegal case .. why is that ? [CODE][LIST=1] [*]#include <iostream> [*]#include <string> [*]using namespace std ; [*]class employee [*]{ [*]private: [*] string name; [*] int salary; …

Software Development c++
Member Avatar for DREAMER546
0
82
Member Avatar for johnnyjohn20

Hi, I have an array with elements filled with values such as 36.0119. I am trying to find a way of rounding each value to the nearest whole number E.G. 36. To show i have attempted this i have used cout with the array and set precision which is ok …

Software Development c++
Member Avatar for WaltP
0
970
Member Avatar for Nemes

Hello, I am running a heuristic search algorithm (running on Windows XP), and at each iteration, I want to write results in an output file. The issue that I have is that after a number of iteration, my program crashes at the line where I have the "fputs(str, f);" (See …

Software Development algorithm c
Member Avatar for Ancient Dragon
0
482
Member Avatar for sweety0

does anybody has a debuger code.means how to make debugger in assembly language...

Software Development assembly
Member Avatar for Evenbit
0
79
Member Avatar for johny112

Im getting 2 of these warning message upon compiling the programme below. Cant figure out why. can someone help please? warning C4700: local variable 'rate_of_pay' used without having been initialized warning C4700: local variable 'hours' used without having been initialized Question Develop a C++ program that uses a while structure …

Software Development c++
Member Avatar for Ancient Dragon
0
87
Member Avatar for controlsi

[Code=C] #include <stdio.h> #include <stdlib.h> #define SIZE 5 #define MAX 10 void fillArray(char arr[][MAX]); void printArray(char arr[][MAX]); int fileOpen(void); int main(void) { char arr[SIZE][MAX]; int success; fileOpen(); if (success == 1) { fillArray(arr); printArray(arr); } else printf("File access failed"); return 0; } int fileOpen(void) // ** this were i am …

Software Development c file-system
Member Avatar for WaltP
0
132
Member Avatar for tones1986

Hey folks. I am working on a program (really its 2, but they go hand in hand). The first one takes a text file which contains the following: last name first name SSN Salary Years employed There are 7 entries in the text file to be read in... The program …

Software Development c++ data-structure ios
Member Avatar for vmanes
0
161
Member Avatar for guitarrick

How many bools can I connect?? e.g. if((x>j) || (y<t) || (m=c) && (x != 0)) Please pardon any improper syntax, and any guidance is greatly appreciated (My text doesn't go into great detail with bools, but we're working with classes right now, and in one example there are three …

Software Development c++ legal
Member Avatar for guitarrick
0
359
Member Avatar for capri19

I have built a web server in python for a local intranet. I would like to get the user's userid when they click on a link on my web page. Is this possible??

Software Development python web-server
Member Avatar for jbennet
0
364
Member Avatar for monkhead

hi i am working on a challenging assignment where i have a list of different animals in an ecosystem and i have to show the relation ships the outpu requires to" # List of all species (in alphabetical order) # List of species at the top of the food chain. …

Software Development python
Member Avatar for vegaseat
0
92
Member Avatar for ricnyx

#include <iostream> #include <fstream> using namespace std; int main( ) { ifstream fin; ofstream fout; fin.open("income.dat"); if (fin.fail( )) { cout << "Input file opening failed.\n"; exit(1); } fout.open("total.dat"); if (fout.fail( )) { cout << "Output file opening failed.\n"; exit(1); } double next, sum = 0; int count = 0; …

Software Development c++
Member Avatar for ricnyx
0
133
Member Avatar for asilter

i have 2 executable files. From one of them i'm calling the other one. it is also executed correctly, but does not return 0. why? backup.c file : [CODE] #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/time.h> #include <unistd.h> #include <mysql/mysql.h> int main(int argc, char * argv[]) { if(!execl("/home/user1/exec_work/binary","/home/user1/exec_work/binary","serdar","ilter",NULL)) { …

Software Development c
Member Avatar for Duoas
0
118
Member Avatar for johny112

Im trying to write the programme for the following question, and im really struggliing. I will be reaaly thankful if someone can give me some tips or a programme for this. I would also like to point that im new to programming and this website so please give me some …

Software Development c c# c++
Member Avatar for johny112
0
103
Member Avatar for java.cream

Hi all, [CODE]1: #include <iostream.h> 2: 3: int main() 4: { 5: cout << "Hello World!" << endl; 6: return 0; 7: }[/CODE] In the above code does the line 6 (return 0), required by the operating system,that means tells the operating system a program finish? If true, what the …

Software Development c++ operating-system
Member Avatar for Ancient Dragon
0
108
Member Avatar for mgorecki

Hi, I have a small program that displays a number of pictures by using a timer. I don't know if this is the best way to do this, but it works. What I would like to do is add a cmdButton so that every time I hit the cmdSwing button …

Software Development visual-basic
Member Avatar for mgorecki
0
87
Member Avatar for khalifah

I believe the disp_sum (last) call is incorrect because the program will execute but the sum will not be displayed. Project is due tomorrow (11/27) so prompt assistance will be greatly appreciated Thanks in advance! ; A Simple Calculator that performs basic arithmetic (+ - * /) .model small .stack …

Software Development assembly display
Member Avatar for khalifah
0
101
Member Avatar for mank

I want to parse a tree the tree is like (((1,2)3,4)5,6) see the attached parse tree the program would produce an array from root to each leaf [URL=http://allyoucanupload.webshots.com/v/2002642992068581724][IMG]http://aycu25.webshots.com/image/35944/2002642992068581724_th.jpg[/IMG][/URL] So I would like to have 4 arrays [CODE] a[]={5,3,1} b[]={5,3,2} c[]={5,4} d[]={6} [/CODE] I would like to have a general format …

Software Development c
Member Avatar for Narue
0
108
Member Avatar for yelpy

i just got the latest version of python today and im finding it very difficult to understand. im only 15 and would greatly appreciate it if someone would help me understand the basics?

Software Development python
Member Avatar for vegaseat
0
172
Member Avatar for nicz888

[code=c++] #include <cstdlib> #include <ctime> #include <iostream> using namespace std; // prototype and name space declaration bool testAnswer(int, int, int); void correctOutput(); void incorrectOutput(); bool mathTest(); //------------------------------------------------------------------ //------------------------------------------------------------------ //------------------------------------------------------------------ int main() { if (mathTest()) { !(mathTest()); mathTest(); } } bool mathTest() //main function { srand((unsigned)time(0)); // random number generator int …

Software Development c++
Member Avatar for Ancient Dragon
0
130
Member Avatar for Roadphantom13

Hello. Beginner here so bear with me. I'm creating a game as a final project for my university but at the moment I'm stuck. I'm just wondering how you go about making buttons. In the code, I have created four rectangles which will eventually be able to be clicked on. …

Software Development python
Member Avatar for vegaseat
0
167
Member Avatar for VeHdad

Hi everyone! I have been working with VB5 for a quite while now and couple of days ago I encountered bizzare problem wiht custom toolbar. Here it is: My form has a custom toolbar with approx 10 buttons aligned in one row, with a couple of placeholders to separate groups …

Software Development visual-basic
Member Avatar for VeHdad
0
89
Member Avatar for rajsharma_85

hi guys, I am making a program in which I have to enter start date and time and stop date and time in format like 01:05:07 15:26:57 I know that i need to use <time.h> function for that but i don't know how can i calculate the difference between time. …

Software Development c++
Member Avatar for Salem
0
145
Member Avatar for culebrin

Hi everybody, I want to make an app with command line parameters like: "dir *.jpg", when "dir" is the app and "*.jpg" is the parameter. Can anyone can help me.

Software Development visual-basic
Member Avatar for kshrini
0
158
Member Avatar for funkyjohny

Can anybody do this; The algorithm of Chang and Roberts achieve the 0(NlogN) (N the number of nodes) complexity of messages in the medium case, but at worst however it achieves 0(n^2). The algorithm of Peterson of/Dolev-Klawe-Rodeh achieves complexity of messages the O(NlogN) at worst situation improving the algorithm of …

Software Development algorithm c
Member Avatar for Salem
0
156
Member Avatar for edek

Hi all! I need to create regex that matches everything before some specified (whole) word. Lets say I need everything before 'have' in such text: What ^7^*#/> I @@3->;: have to do with this *~~@}}], hmm...? ...so I would like to have "What ^7^*#/> I @@3->;: " as a result …

Software Development c++ regex
Member Avatar for edek
0
90
Member Avatar for locsin

greetings! I designed simple program with combobox and i want to lock this combobox. I dont want to allow the user to type in this combobox. Only the list item data can be selected and not allowed to type any value.. for example: Displaying "Gender" using combobox . The item …

Software Development visual-basic
Member Avatar for kshrini
0
524
Member Avatar for jason.bean

Hello I am new to Unix. Please help me out. My Scenario: I am first collecting all the file names present in the directory with structure myinfo/yourinfo/supplierinfo I have four files with the names myCollector.java, yourCollector.java, someCollector.java, everyCollector.java. in the directory. I am reading the file name and i am …

Software Development shell-scripting unix
Member Avatar for radoulov
0
175
Member Avatar for scholzee

Hey i have been on many fourms and stuff asking people to help me slove me this problem but no one seems to know how to do it including my self,if anyone here knows how to change this into flowchart it would help a lot ty :) INPUT VARITEM 1 …

Software Development visual-basic
Member Avatar for locsin
0
117
Member Avatar for ferhatkuskaya

Again hi. I want to learn about how I will write these two components :Label and Memo using one loop such as "for" loop in delphi. For example: I have 50 memo and I m transferring the strings in line 1 to labels. Can you help me about how I …

Software Development delphi pascal
Member Avatar for ferhatkuskaya
0
94
Member Avatar for summersa

[CODE]\** * InventoryProgramPart3.java * @ author Amy Summers * Inventory Program which uses an array to store items and creates * a subclass of the CD class * */ import java.util.Arrays;//program uses Arrays class InventoryPart3 { //main method begins execution of Java program public static void main (String[] args) { …

Software Development java
Member Avatar for arumugam4all
0
163
Member Avatar for rodce

I'm a beginning C++ student/programmer, and I'm having a difficult time coming up with an algorithm to solve a programming problem. If someone could give me a recipe on how to go about solving the following problem using c++, I would appreciate it. Problem: A school has 100 lockers and …

Software Development algorithm c++ puzzle
Member Avatar for WaltP
0
682

The End.