132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for elliot81

Hi there, I have a problem with the search function I designed for my code. [CODE]using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication { public class Person { public string PerName, PerSal, PerPhone, PerPcode, perState, PerAddress, PerStrenum; public Person(string rec_name, string Srec_sal, string Srec_phone, string Srec_pcode, string rec_state, string rec_address, …

Software Development assembly seo
Member Avatar for finito
0
127
Member Avatar for leo1937ca

Name: George Ingram Using: vb6 OS: Windows 2000 I have created a Splash Screen for my program with a "Dont show this screen again" checkbox. I am using the checkbox value and the Savesetting/Getsetting parms to bypass the Splash Screen if checkbox is checked. It seems to be working correctly, …

Software Development os-x visual-basic
Member Avatar for vb5prgrmr
0
103
Member Avatar for psdao1102

So im in a collage c++ class, and i missed my last class, so my teacher told me to try lab 5, i think i have templates down but im getting a compiler error saying that my function is ambigious.. the exact error is Error 1 error C2782: 'T searchArray(T,T,int)' …

Software Development c++ visual-studio
Member Avatar for thelamb
0
83
Member Avatar for FrogBoy

Hello, I'm wondering if I should take this personally. I haven't quote grasped this whole "class" concept yet, but I'm working on it. When following the instructions below, the "test" portion of this code: "test.variable" has an underlined error that says that "test" is not declared. If i remove the …

Software Development display vb.net
Member Avatar for steveneaster
0
214
Member Avatar for nu2cpp

Hi Guys, I am using visual studio 2009 using vc++. I am reading from a text file using a streamReader one line at a time. The data is tab delimited. I am trying to split the data and then stuff all the strings into struct. Here's what I am doing …

Software Development c++ visual-studio
Member Avatar for jonsca
0
211
Member Avatar for blovatt

Hello - I need to create a utility using C/C++ to parse information from a XML audit log file that is continuously being appended by a separate process I need to read the information in and process it, then when I reach the EOF I need to wait/monitor for more …

Software Development c++ xml
Member Avatar for blovatt
0
97
Member Avatar for Smith5646

I have a main form that has IsMdiContainer = true. I have a second form (FamilyForm) that is to be the MDI child. Using the code below, when the line TempForm.MdiParent = Me is executed, the FamilyForm window size, font, and all controls are larger than shown in Visual Studio, …

Software Development vb.net visual-studio
Member Avatar for Smith5646
0
118
Member Avatar for maryam ahmad

im a beginner and using C++ 2008 edition and this pow function isnt working on it although its working perfectly ob C++6. please help. THIS IS PART OF THE CODE: [CODE]#include<iostream> #include<cmath> using namespace std; int det (int **oldray,int order) { int deter=0,i,k; int **newray; newray=new int*[order-1]; for( i=0;i<order;i++) newray[i]=new …

Software Development c++ visual-studio
Member Avatar for Fbody
0
155
Member Avatar for phummon

Hi everyone, I'm a moderately experienced C++ programmer working on code which must do the following: (a) Import data from a lot of little CSV files (b) Load that data into various objects (c) Do stuff with that data The code I've written does (a), (b), and (c) pretty well, …

Software Development c++
Member Avatar for phummon
0
194
Member Avatar for prashanth s j

Hi all, I need to initialize an array iteratively. For example array my_arryay needs to initialized with 512 characters and next with 1024 characters and next with 2048 characters etc etc, which can only be iteratively. Something as in C: for( i = 0; i<100:i++) { my_array[i] = 'a'; } …

Software Development python
Member Avatar for prashanth s j
0
238
Member Avatar for prashanth s j

Hi all, I have got several python scripts and I need to run them in one shot. So I assume that in a .py file I can give statements ./file1.py ./file2.py ./file3.py etc to run multiple scripts. I am defining global variables in a config.py file and these will be …

Software Development python
Member Avatar for prashanth s j
0
2K
Member Avatar for prashanth s j

Hi all, I have got several python scripts and I need to run them in one shot. So I assume that in a .py file I can give statements ./file1.py ./file2.py ./file3.py etc to run multiple scripts. I am defining global variables in a config.py file and these will be …

Software Development python
Member Avatar for prashanth s j
0
124
Member Avatar for niehaoma

So, I am learning Python. To help my understanding, I was wondering how someone might make this code more efficient. Purpose: Take a 32-bit value (tempCode) and output each nibble. My way was to use a string, basically shifting out the binary value from bit 0 to bit 31 into …

Software Development python
Member Avatar for niehaoma
0
274
Member Avatar for didi00

Hi everyone! So I have a XML code [code] <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="pizza.xsl"?> <pizza_list> <food> <name>Margarita</name> <description>tomato sauce</description> <price>3.60 </price> <diameter>30 cm</diameter> </food> <food> <name>Green</name> <description>tomato, oregano</description> <price>5.40 </price> <diameter>30 cm</diameter> </food> <food> <name>Primaverra</name> <description>tomato, mozzarella, cucumber</description> <price>5.30 </price> <diameter>30 cm</diameter> </food> <food> <name>Sandokan</name> <description>tomato, crab meat</description> <price>6.40 …

Software Development html-css xml
Member Avatar for didi00
0
152
Member Avatar for unity

hi i want some good question c/c++ for practice can anyone suggest me some website or any good book

Software Development c++
Member Avatar for suze_eq
0
156
Member Avatar for MADHAN RISHE

can anyone help me for a simple polynomial addition using list.. no matter how long it is .. but it must be simple ...

Software Development c
Member Avatar for jephthah
0
194
Member Avatar for kavourdoukos

I would like to read a text file and store to strings some data that are important for me.I tried to do with strtok but wasnt successful?Can u help pls? [QUOTE]txtExample @Greece ASAS (FFF) - BLALAL BALLA BLALALAL - JAJAJAJAJ, XAKALXKAL ZMAH (AVK) – Arvaikheer Airport – Arvaikheer, Ovorkhangai ZMBH …

Software Development c
Member Avatar for abhimanipal
0
116
Member Avatar for Lygris

Alright... So I created a strange little query that takes an abbreviated currency amount and converts it into raw numbers. It you were to enter $2.5k, it would give you "2500" in return. Unfortunately, I'm having an issue passing values into the function. Previously, I was just having an InputBox …

Software Development visual-basic
Member Avatar for Lygris
0
119
Member Avatar for dfetter88

Is there a systematic method to analyze the time complexity of a program strictly from output data such as run-time, the number of data swaps, data comparisons, etc? For example... [icode] Data Size | Run Time | Comparisons | Moves --------------------------------------------- 1000 | 0.00 | 15448 | 23965 10000 | …

Software Development algorithm c
Member Avatar for Banfa
0
123
Member Avatar for Learner7

Hi, How to add an [B]existing form [/B]of old project to a new project? Which extension type files to be added to work that existing form correctly? I actually need [B]frmContacts.vb[/B](because a lot of textboxes and other controls are there) which I have added now to my New Project. Since …

Software Development vb.net
Member Avatar for Learner7
0
188
Member Avatar for sdhawan

Hi I am getting error Error 1 Cannot implicitly convert type 'object' to 'string'. An explicit conversion exists (are you missing a cast?).Error is at the line string def = hash[elem.Word];.Can anyone help me with this . Thanks [Code] public Hashtable AllWords() { Hashtable hash = new Hashtable(); SimpleFrenchEnglishDictionary arr …

Software Development
Member Avatar for apegram
0
1K
Member Avatar for daviddoria

I have some white text I am putting over a very light background. Is there anyway to outline the text in black? After some googling it looks like there are some pretty complicated solutions, but I am looking for something like a check box that says "outline". Is there such …

Software Development vb.net
Member Avatar for daviddoria
0
1K
Member Avatar for lich

im my java SE application i have a messagebox prompting asking the user to press OK. i want to make the user wait a certain time and the messagebox will automatically close in a certain time. i read on swing.timer about this. but im bit confused with the implementation. how …

Software Development java java-swing
Member Avatar for JamesCherrill
0
163
Member Avatar for gorbulas

Hello I made a program that submits a paragraph to a webpage, using mechanize. Its all working great, except when I view the paragraph, all the newlines have disappeared and it makes all the paragraphs all block up together into one long sentence. But when I open up the page …

Software Development python
Member Avatar for gorbulas
0
97
Member Avatar for elexender

Hi all, I want to make a string like this: [QUOTE]SELECT * FROM "Alexander de Groot"[/QUOTE]. So i can later execute that sql statment. Im only having a problem creating the string. Let me show you: [CODE]string sTableName; char *SqlTableName; sTableName = DBLookupComboBox1->Text.c_str(); SqlTableName = new char[sTableName.size()+ 20]; strcpy(SqlTableName,"SELECT * …

Software Development c++
Member Avatar for elexender
0
106
Member Avatar for daviddoria

I set the .Interval of a timer to "10", which I believe means 10 milliseconds. Since there are 1000 ms in 1 second, if I count to 100, I should have 1 second, right? The problem is, if I use a physical stop watch and compare it to my program, …

Software Development vb.net
Member Avatar for kvprajapati
0
271
Member Avatar for xsach

can anyone pls tell me how can i read the contents of a file in reverse order....ie i'm storing the num from 1 to 100 in a file but i wen i read thre content it shouls start from 100 99 to 1..i tried to sort /r but it does …

Software Development shell-scripting
Member Avatar for utpalendu
0
99
Member Avatar for cswenson1

How, in C++, can i convert a video from 1 format to another? Currently the only way i know how is by using an external exe called FFmpeg and using the function [code=c++]system("ffmpeg -i file.avi file.mp4");[/code]

Software Development c c# c++ video
Member Avatar for Narue
0
1K
Member Avatar for mani_singh

hello to all, i am learning c++ and while looking at some code, i came upon this: *(float*) and *(DWORD*). for example [ICODE]#define adress_1 0x00AA8B20 *(float*) adress_1 = 5000000; [/ICODE] so can you explain what the *(float*) and *(DWORD*) do. and i did try and search on google but didnt …

Software Development c++
Member Avatar for strmstn
0
108
Member Avatar for priyarao

hi i am doing code on single linked list in that i hav to save elements of my list to a file and then load it. The file is not loading pls check this code [CODE]#include<stdio.h> #include<stdlib.h> struct llist { int info; struct llist *next; }; typedef struct llist linked_list; …

Software Development c linked-list
Member Avatar for technology
0
122
Member Avatar for carrythe1

Hi, I am new to this website (and C++) so pls forgive any newb errors / convention mistakes. I have a project that contains both a normal source file (PB.cpp), associated header (PB.h) and a windows form (GUI.h). I'm trying to pass a variable from the form to a function …

Software Development c c++ gui visual-studio
Member Avatar for finito
0
168
Member Avatar for kesh1000

hi everyone. i get this error in my porject at runtime.actualy it was working fine. i added the jdbc jar to my project and here what i get at runtime [QUOTE]java.lang.NoClassDefFoundError: de/vogella/mysql/first/test/Main Caused by: java.lang.ClassNotFoundException: de.vogella.mysql.first.test.Main at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown …

Software Development java
Member Avatar for kesh1000
0
191
Member Avatar for vbpro

I've created a second form for my project.How can I show it? I find it's different from the VB6.The form.show , visible = true ... are not working now. How can I do this?

Software Development vb.net
Member Avatar for kvprajapati
0
794
Member Avatar for Mr. Blank

Hi, I have a button with an image in it. When I reduced the width of the button, the image was centered in the button which I do not want to happen. I want it to be left-aligned in the button but have no idea how and searching hasn't yielded …

Software Development java
Member Avatar for Mr. Blank
0
95
Member Avatar for sfrider0

I found an application that gets the source from a webpage. That worked fine. I tried converting it to an applet, and it works great in netbeans. The problem is when I try to run it in a browser, it does nothing. As you can see from the code, I …

Software Development java java-netbeans java-swing open-source
Member Avatar for sfrider0
0
131
Member Avatar for Mitja Bonca

I would like to know how to pass object array (object[]) between classes with the code bellow, which now sends string only: [CODE]public delegate void MessageDelegate(Object sender, MessageEventArgs e); public class MessageEventArgs : EventArgs { public string Message; public MessageEventArgs(string msg) { this.Message = msg; } } public interface IController …

Software Development
Member Avatar for nick.crane
0
107
Member Avatar for elliot81

Hi there, so im trying to get something done for my class. Im supposed to implement something where you can enter details of a person, validate them, then store them as a array, and allow you to add more later. What I dont understand is how to store a group …

Software Development
Member Avatar for kvprajapati
0
132
Member Avatar for vho123

My task is to create a translation.xslt file that will use the wordlist.xml as input to transform into another XML file(translation.xml). I have attempted some coding but stuck how to do the rest. I am not sure how to create a <total>, he value of <total> is the total number …

Software Development xml
Member Avatar for Intekhab_Sheikh
0
128
Member Avatar for love_dude1984

hi.. im having a problem with a MDI forms..Im building an app where i need to call an MDI form in a MDI form.for ex., if MDI1 is my first MDI form, then i want to call the second MDI form, say MDI2, in the MDI1..that is MDI1 should work …

Software Development display
Member Avatar for love_dude1984
0
91
Member Avatar for HaveFun

Hi, I have difficulties to get variable from other class. See class Mod01 and Mod02 below, in class Mod02 I will get ct1=0, but I want ct1=250. Any help will be gratefully. Thank you. --------------------------------------- [code] final class Mod01 extends FullScreen { int ct,coba; String hits; [B][COLOR="Red"]public int test() { …

Software Development java
Member Avatar for Abdel_eid
0
129
Member Avatar for jimJohnson

I am going some exercises and just want to make sure I am doing it right. It says for the following...Assume StackType is sent to int and STACK_CAPACITY is set to 5. Give the values of myTop and the contents of the array referred to by myArray in the stack …

Software Development c++
Member Avatar for chiwawa10
0
134
Member Avatar for ceyesuma

I am having a proplem checking the stu_uid for a specified stu_password. I am not really sure what error is. When I build the db for the first time and login as a student it says that unknown user name but it is all in the table and passed to …

Software Development apache java xml
Member Avatar for ~s.o.s~
0
159
Member Avatar for lotrsimp12345

I have added a reference to dll file in VS 2008. Yet I still get an error. Not sure why, do I have to do some other changes to get it to work?

Software Development
Member Avatar for lotrsimp12345
0
99
Member Avatar for anuragcoder

Hey guys, recently i've tried to compile this command line email program I get the error: cannot find -lobjc ld returned 1 exit status Here's my code. Any Help Appreciated. [CODE] #include <stdio.h> #include <stdlib.h> #include <string.h> #include <winsock.h> #define NETWORK_ERROR -1 #define NETWORK_OK 0 FILE *fp; char buffer[200000]; char …

Software Development c
Member Avatar for Aia
0
127
Member Avatar for dwel

i've backup data in text file and it needs to be restore on previous database using vb, is it possible?

Software Development sql visual-basic
Member Avatar for vb5prgrmr
0
88
Member Avatar for gunnarflax

Hi! I'm a java rookie and I'm trying to learn how to read and write to xml documents. I have a xml-file called tasklist which lies directly in the src directory, at the same level as the executing program but I get the following error: java.io.FileNotFoundException: tasklist.xml (Det går inte …

Software Development java xml
Member Avatar for gunnarflax
0
219
Member Avatar for Dewey1040

I'm trying to create a menu using ncurses, I found some useful code and help online, but the code has errors in it. And I can't figure out why I'm generating this error. On top of all this, theres no way I'll be able to use the information I've found …

Software Development c++
Member Avatar for Dewey1040
0
116
Member Avatar for zenith_96

heya guys - new to posting here, but i have browsed the forums for help over this year so far. obvisoulsy im also new to python, only trying it since march. Im trying to write some code for a 'knock knock' program. It uses a txt file for the jokes, …

Software Development python
Member Avatar for zenith_96
0
202
Member Avatar for persianprez

Not really sure what a command line argument is, but here is an example question that I don't understand: "Write a program that gets 4 integers as command-line arguments, prints the values and their total." Can somebody show me how to do this? I have like 10 of these to …

Software Development python
Member Avatar for ultimatebuster
0
157
Member Avatar for codecx

I'm almost done making a 2D game (and yes I'm sorta a newb) and I still haven't figured out how to delete an entity. Instead, as a place holder, I set the texture path to "" and all the variables to 0. I am using a class and here is …

Software Development c++ gaming
Member Avatar for codecx
0
155

The End.