43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ticktock

Hey all I currently am having trouble utilizing the oledbcommand method named parameter because I do not know how to use it properly :( Here is my class: [CODE]namespace CalendarApplicationLibrary { public class MeetingEntryDA { private const string CONNECTION_STRING = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Entry\entry.accdb;Persist Security Info=False;"; public void WriteDataToFile(MeetingEntry currentEntry) { OleDbConnection …

Software Development microsoft-access open-source
Member Avatar for ticktock
0
2K
Member Avatar for Isaaac

How can i print a text file in c#? I've been looking on the internet and found code, but I just need it on paper, don't care what type of letters, just a regular print.. And i want to keep the code short. I've found long code, but I've got …

Software Development
Member Avatar for Isaaac
0
265
Member Avatar for JOSheaIV

Okay so I am writing some C# and the program at one point reads in a file and stores each line in a string array. This part of the code works I have tested it. Well then I have the string displayed in a listBox with this string array using …

Software Development c c# c++
Member Avatar for JOSheaIV
0
3K
Member Avatar for speedy94519

Hey guys. So I basically read in a bunch of data from a file into a data structure. But while I was doing that I included the spaces (which I dont want). So now I want to compare each element to see if it does have a blank space, and …

Software Development c data-structure
Member Avatar for speedy94519
0
294
Member Avatar for Bladtman242

Hi guys :) Well I got an "variable might not have been initialized" error when I tried to compile the following code: [CODE=java]import java.lang.*; public class NewFrame { public static void main(String[] args) { if (args.length != 3) { System.out.println("Usage: java NewFrame <frame-name> <frame-hight> <frame-width>"); System.exit(1); } int firstArg, secondArg; …

Software Development java
Member Avatar for Bladtman242
0
508
Member Avatar for Exaktor

Hi, Does anyone know how to use a datagridview from form1 into another form2.

Software Development c c# c++
Member Avatar for Ramy Mahrous
0
137
Member Avatar for juanjo-argentin

hi I'm new user of PYTHON and I want extract a little part into a string like this example 100|1999|pepito|False|[B]27-10655374-1[/B]|False|||05/09/1952|1|4||3||1|1|8|67||4|False|True|False|oerirabtaa||||Femenino|0|0|0|0|0|0|2| the part to extract (in the example, in black letter), have two parameters 1 is the part with exclusive format ##-########-# 2 ever is locate between 4º and 5º | …

Software Development python
Member Avatar for juanjo-argentin
0
88
Member Avatar for jmark13

In python I have a very large string of 0s and 1s. i.e '010100100101110101001...' etc. I want to convert this to BINARY without first converting it to decimal. Then I want to take the resulting binary number and convert it to it's decimal equivalent. Fastest way possible because it is …

Software Development python
Member Avatar for jmark13
0
877
Member Avatar for Tellalca

I wonder why the following code work. In the debugger i see that every thing works fine but after the "root = createNode(item);" statement I can't see the new node assigned to root? [CODE]Node *insert( Node *root, int item ) { if(root==NULL) root = createNode(item); if(root->data>item) insert(root->left,item); else if(root->data<item) insert(root->right,item); …

Software Development c
Member Avatar for Tellalca
0
92
Member Avatar for drt_t1gg3r

I am trying to learn how to pass pointers to vectors properly, and having a bit of trouble. I am using Dev-C++ IDE here is the GIRLFRIEND class [CODE]#ifndef GIRLFRIEND_H #define GIRLFRIEND_H #include "player.h" // inheriting class's header file /* * No description */ class GIRLFRIEND : public PLAYER { …

Software Development c++ ide
Member Avatar for drt_t1gg3r
0
98
Member Avatar for Exaktor

Hi, Does can anyone tell me how to change the startup form?

Software Development c c# c++
Member Avatar for Ramy Mahrous
0
132
Member Avatar for xleon

i wanna check a zip file in a directory.how can do it? directory="c:\myzipfiles" listfiles="a.zip,b.zip,c.txt,d.xls" #a.zip is badfile import os import zipfile mylist=os.listdir("c:\myzipfiles") for zfile in mylist if zipfile.ZipFile.test(zfile): print"you can extract ",zfile else: print "you cant extract ",zfile and how can i use zipfile.ZipFile.testzip() thanks for answers...

Software Development python
Member Avatar for xleon
0
4K
Member Avatar for trippinz

What i want to do is that when i click buttonX4 i want the text to change from "Copy To Clipboard" to "Your Bio Has Been Copied" Then i want it to wait for 2 seconds then i want it to change back to "Copy To Clipboard". I did this …

Software Development
Member Avatar for trippinz
0
709
Member Avatar for yayaza

I am supposed to create a c# based visual studio application called "TaxCalApp"The purpose of the application is to determine the tax that a person has to pay based on his taxable income. i have done my homework and head cracking.....i cant run the program right.what is wrong with my …

Software Development c# visual-studio
Member Avatar for yayaza
0
490
Member Avatar for aleX_X

Keeping getting into errors in my code...this looks to be the wierdest so far... [CODE]class bug: public living{ protected: bool ate; int energy; public: virtual void moveToFood(point hunter, point food); bool eatIt(point hunter, point food){ int hx, hy, fx, fy; hx=hunter.getx(); hy=hunter.gety(); fx=food.getx(); fy=food.gety(); if((hy==fy)&&(hx==fx)) ate=true; else ate=false; return ate; …

Software Development c++
Member Avatar for daviddoria
0
431
Member Avatar for Funsize

I am making a simple unit converter, and wanted the user to specify the number of decimal places to be displayed for the results. The user selects which conversion they want to perform from another combo box, and I have a select case to decide the calculation needed. Eg. [code]Select …

Software Development vb.net
Member Avatar for Funsize
0
282
Member Avatar for timb89

i am trying to read the following information: [CODE]Carlingford,Epping,3 Epping,Marsfield,6.5 Marsfield,North Ryde,2.4 North Ryde,Epping,5 Carlingford,North Ryde, 3.5 Carlingford,Marsfield, 4.7 North Rocks,Epping,4.8 Carlingford,North Rocks,2.4 North Ryde,Ryde,2.1 [/CODE] so i will be able to store the information into a 2 strings and a float (obviously excluding the comma. eg: string station1 = …

Software Development c++
Member Avatar for timb89
0
122
Member Avatar for kesh1000

hi everyone i had been working on a project using random files (.dat) and now i want to change it to use a database instead. the thing is my project is quite long and it would be a hassle to go and change code. i had used hash tables to …

Software Development java mysql
Member Avatar for kesh1000
0
943
Member Avatar for Cap'nKirk

Hi, I have a little issue that I need some light shed on please. I have 2 forms; StartUp and MainForm. When the application starts with the StartUp form the forms load section check to see if a file exists, if it does, it closes and opens the MainForm using …

Software Development
Member Avatar for Cap'nKirk
0
3K
Member Avatar for ellenski

My program is a very simple address book program. The program works but i don't know how to make it display the same names. Like for example, the name "Mark Lee", if there are more than one Mark Lee, i would like to display all of those Mark Lee w/ …

Software Development c
Member Avatar for kvprajapati
-4
298
Member Avatar for maryam ahmad

this is a program to change the case of all letters input by the user to small. im getting the right output with this coding. the problem is that its giving some staircase type structure as the output as well. HOW DO I GET RID OF THIS EXTRA STUFF? [code] …

Software Development c++
Member Avatar for maryam ahmad
-1
143
Member Avatar for lotrsimp12345

how would you do that? Language similar to LISP I don't think you can use cons twice. really stuck. maybe (define a '('()))

Software Development
Member Avatar for davibq
0
61
Member Avatar for JOSheaIV

Okay so this one should seem easy enough but I can't get past 1 issue I am having. Pretty much what ever is in the the listBox is stored in an array, but also in a text file (for loading and saving). The only issue is that I can't seem …

Software Development
Member Avatar for JOSheaIV
0
178
Member Avatar for Anigmalee

Is there a event detect change of Listview item count? Like it will be trigger whenever i add an item or delete an item form listview. I search on MSDN Listview Event member, but cant c any usefull. Any help would be please:) Thanks

Software Development listview vb.net
Member Avatar for Anigmalee
0
208
Member Avatar for myth_terry

hello frns.. :icon_smile: i am in need of a code that does the following very very urgently.. please please help me !!! [CODE]read strings from a text file "text1.txt" (which are stored 1 per line without spaces) and store these strings in a string array A[]. then read strings from …

Software Development c file-system gui
Member Avatar for myth_terry
-3
218
Member Avatar for dflatt

hi i'm trying to write a program that compares and manipulates certain characters from a string. heres the bit i'm having trouble with. [CODE] char c; if(c <= a && c >= x)//obvious error //do something [/CODE] is there anyway i can get this to check if 'char c' lies …

Software Development c++
Member Avatar for dflatt
0
129
Member Avatar for redyugi

Lets say I have a class. It holds other classes in it. ex [CODE]class Test: def__init__(self, name): self.name = name def getname(self): print(self.name) class Holder: def __init__(self, tests): self.tests = tests def getnames(self): for i in self.tests: print( i.getname())[/CODE] so lets say I pickle an instance of Holder with 3 …

Software Development python
Member Avatar for redyugi
0
118
Member Avatar for macca21

how do I save a dictionary, (below), to a txt file thats is in a tabular format? i also need to be able to rload the txt file back into its dictionary form... catalog = { 1:["Bread", 1.50, 10 ], 2:["Cheese", 5.00, 5], 3:["Apples", 2.50,12] } eg. 1 Bread 1.50 …

Software Development python
Member Avatar for vegaseat
0
139
Member Avatar for macca21

Can someone please show me how to implement the pickle module in this pogram!? PLS? I've tried for hours but I think programs are immune to my trying! Thnx [CODE]'''maintain a catalog''' def main(): global catalog loadCatalog() while True: pick = showMenu() if pick == 0: break elif pick == …

Software Development python
Member Avatar for vegaseat
0
60
Member Avatar for Isaaac

I'm using an access database to save plain textboxes. I've made a connection with the database. Now i need to find the code to add the textboxes to my database. I've tried to add with the bindingnavigator but it won't work... please help...

Software Development microsoft-access
Member Avatar for Isaaac
0
138
Member Avatar for Stefano Mtangoo

Hi there, Is there anyone here using NB platform to develop applications? Anyone using former Matisse GUI builder in NB 6.8? I can't see it in my IDE!

Software Development gui ide java
Member Avatar for Stefano Mtangoo
0
71
Member Avatar for Adhoc82

Hello, I'm having problems passing an ArrayList from a method in one class into a method of another class and accessing it. Here's my code. [CODE]private static void createData() throws IOException{ ArrayList<movie> moviesList = new ArrayList<movie>(); moviesList.add(new movie(1, "Schindler's List", 18, 19.99)); moviesList.add(new movie(2, "Red Cliff Blu-Ray", 4, 43.50)); moviesList.add(new …

Software Development java
Member Avatar for Adhoc82
0
9K
Member Avatar for dgr231

Hey everyone, I've been working on learning the Win32 API for C++ so that I can start programming windows programs. I haven't run into any issues until last night when I tried to include a menu in my basic window through resources. I'm using Visual C++ Express 2010 which doesn't …

Software Development api c++ visual-basic windows-api
Member Avatar for mitrmkar
0
252
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 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 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 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 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 PierlucSS

I know that technically, an Interface is used for reading and not writting or editing however, I want to add an add and addrange function to the following class, here is what I currently have which is not working [code] public class HrefCollection : IEnumerable<Href> { private IEnumerable<Href> hrefs; public …

Software Development
Member Avatar for PierlucSS
1
239
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 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

The End.