132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Craig_V

Hi there. Using VB5 I am a real novice to VB but slowly getting the grasp of thing but at the moment writing things out long hand (thinking there must be short cuts) Like filling a VB form with MSACCESS data I am detailing every field e.g. [CODE]txtCompGST.Text = tldt.Rows(rowpos)("CompGST").ToString() …

Software Development visual-basic
Member Avatar for Craig_V
0
129
Member Avatar for bimoweemo

If i had to write a program with 10 different functions are you aloud to just make some functions templates and other functions initialized with data types like normal???

Software Development c++
Member Avatar for bimoweemo
0
117
Member Avatar for Benderbrau

Hello, I've got a problem that I can't seem to figure out. I'm writing a program to simulate a process manager, and I'm doing four different algorithms: First come first serve, shortest job next, shortest remaining time, and round robin. I've got the first two down perfect, but I'm having …

Software Development algorithm python
Member Avatar for majid_shqeer
0
3K
Member Avatar for massivefermion

I think its more than a year that I ask my questions about programming in this forum.Looks like its the time that I help a little too. So I wanna put my best here.I hope it'll help some one. Still I'll appreciate any suggestion. Another point,It was my first time …

Software Development c++
Member Avatar for massivefermion
0
476
Member Avatar for dibakarmishra

I need help on DataGridView CheckBox. How can make a button enable or visible while only one checkBox of a datagrideview is checked? I tryed this , and it works but it only works when the datagrideview checkbox column is selected but i need when only one checkbox is checked …

Software Development vb.net
Member Avatar for adam_k
0
1K
Member Avatar for MareoRaft

I want two function names that do the same thing, allowing the user to use whichever they prefer. For Vec a, i use "const" because a is never changed. Correct me if this is the wrong usage. For int n in operator|, i do NOT use "const" because n is …

Software Development c++
Member Avatar for mike_2000_17
0
301
Member Avatar for meetarun007

Hi to all, I'm creating an application in which the form contains one datagridview and 20 pictureboxes. When the DGV is populated, the user will drag a row from DGV and drop in any one of the pictureboxes. The picturebox should able evaluate a column value(say column 1) from the …

Software Development vb.net
Member Avatar for adam_k
0
2K
Member Avatar for vijaybrar

Hi i am just new to VB.NET and our teacher told us to experiment on for loop in a ODD SUM Program you need to add all odd numbers from Input One to Input Two like that but i can't stop it from adding continuously for example i input the …

Member Avatar for adam_k
0
236
Member Avatar for madriceg

I am trying to use CString's LoadString function but it never retrieves the text from the string table. I ported the application from Visual Studio 6 to visual studio 2003. I looked all over the web but nothing is working. Somebody help me! And if you could be very specific. …

Software Development c++ visual-studio
Member Avatar for madriceg
0
2K
Member Avatar for complete

DateTime Data Problems in Silverlight and C# Hello Forum. I am using VISI Fire in Silverlight and C# to produce some data charts. One style of chart allows stacked data to be displayed in colums the xaml code I am using looks like this [IMG]http://i67.photobucket.com/albums/h292/Athono/xaml.png[/IMG] The chart i am trying …

Software Development c#
Member Avatar for complete
0
195
Member Avatar for faroukmuhammad

Hi guys, my keyboard has not [B]Break[/B] key, so i cant braek a test run with the conventional [B]Ctrl + Break[/B]. Is there any other way to break a test run? Thanks in advance.

Software Development visual-basic
Member Avatar for faroukmuhammad
0
208
Member Avatar for MareoRaft

I was advised that I should not import the std namespace in a header. Also, I should create my own namespace for my library (a header file I created with function in it). Why is it a bad idea to use the std namespace for my new functions? If all …

Software Development c++
Member Avatar for mrnutty
0
150
Member Avatar for faroukmuhammad

Whenever I command my datareport to show, my computer halts. Their are other four report that work well. Then there is the only one that is pulling on my legs. Can any one tell me what the problem might be?

Software Development visual-basic
Member Avatar for faroukmuhammad
0
84
Member Avatar for bklynman01

I have a piece of code that takes two strings, puts them together, then attempts to save that result into a table in a database. For some reason, the database is only showing the second half of the string ([ICODE]Me.txtRev.text[/ICODE] in this case). When in debug, I can see that …

Software Development open-source sql vb.net
Member Avatar for Mitja Bonca
0
274
Member Avatar for udigold1

I'm trying to format a DataGridView, with style color, etc. The DGV loads (via buildGrid method) at the startup of the form, as you can see in the constructor's code: [CODE]public Report1(DataSet dsReport1, string sDateRep) { InitializeComponent(); sDate = sDateRep; dsReportGrid = dsReport1; orgDataset(); buildGrid(); } [/CODE] Here's the code …

Software Development dataset vb.net
Member Avatar for ddanbe
0
562
Member Avatar for Rickay

I have started dabbling in Objective-C for iOS developing. Is using the C forum of this website appropriate for questions regarding Objective-C? If not, what would the correct forum be? Thanks!

Software Development apple ios objective-c
Member Avatar for Rickay
0
223
Member Avatar for zack_falcon

I've got a program, a board game, that plays over LAN. I used Asynchronous sockets to connect the server and the client, so that the server won't hang until the client responds. The game flow would be like this: Player A starts server by typing in a Port number Player …

Software Development client-server socket-programming
Member Avatar for zack_falcon
0
324
Member Avatar for flebber

Say I have a basic list. [CODE]x = [2,3,1,3,5,4,5] [/CODE] And I want to find the sum result applied against the list without duplicates. So with duplicates the code could be. [CODE][elem * 2 for elem in x if elem >= 1 ] > [2, 4, 6, 6, 8, 10] …

Software Development python
Member Avatar for TrustyTony
0
301
Member Avatar for emanfman

Well, well. I was looking for a program online. And so, it appeared as a [ICODE].bat[/ICODE] file. However, It looked suspiciously small at 53 kB. So, before I ran it, I opened it up in notepad and voila, a virus. So, I shredded the file with the windows 7 shredder, …

Software Development shell-scripting windows-virus
Member Avatar for sknake
0
144
Member Avatar for Donnovan

hi guys, i'm trying to write a program in C# to read a SRF04, through a USB I2C connnector. this is my first time working wiht I2C and usb and i need some help. [URL="http://www.robot-electronics.co.uk/htm/usb_i2c_tech.htm"]http://http://www.robot-electronics.co.uk/htm/usb_i2c_tech.htm[/URL] im using the I/O settings to write to the Sonar. Can someone provide me wiht …

Software Development
0
95
Member Avatar for Leodumbi

Hi everyone I've been having a small problem. on learning process of vb.net and sql server 2005 I hit a wall I want to know how can I filter the items on my datagrid which is displaying the data from my SQL server database, through a textebox text. sorry the …

Software Development sql vb.net
Member Avatar for jgat2011
0
138
Member Avatar for MareoRaft

There is an error concerning lines 10-14. I had been using this code previously without errors. I'm not sure what I may have changed. The error is "invertMatrix.cpp:14: error: invalid use of incomplete type ‘struct std::stringstream’ /usr/include/c++/4.2.1/iosfwd:83: error: declaration of ‘struct std::stringstream’ " [CODE]#include <iostream> #include <vector> #include <cmath> using …

Software Development c++
Member Avatar for mrnutty
0
2K
Member Avatar for bigdan182

I am writing some code to simulate a football tournament by comparing several teams on several parameters. I need to be able to knock out teams, edit some stats mid simulation, and be able to easily access individual teams data, what structure would I be best using? I had thought …

Software Development c++ data-structure
Member Avatar for mike_2000_17
0
221
Member Avatar for dark_sider_1

Hi there, I'm trying to teach a few students how to create a text adventure game. In the past, I've generally gone about the route of using nested if-statements because it seems a bit easier to visualize. Here's what one has done in the past, and ignore the crazy code-formatting …

Software Development c++
Member Avatar for dark_sider_1
0
219
Member Avatar for arsalanghouri

please tell me c# code i want to determine largest number in a column of sql server 2000 table and store it in a variable.

Software Development c# sql
Member Avatar for Momerath
0
153
Member Avatar for flebber

Can I ask for a little help with virtualenv. I am looking at the docs here [URL="http://guide.python-distribute.org/pip.html"]http://guide.python-distribute.org/pip.html[/URL] and here [URL="http://www.jython.org/jythonbook/en/1.0/appendixA.html#virtualenv"]http://www.jython.org/jythonbook/en/1.0/appendixA.html#virtualenv[/URL] There are a few things I can't quite understand about it. First just to clarify I am on ubuntu and my default python is 2.7.1 1. I use virtualenv to …

Software Development python ubuntu virtualization
Member Avatar for flebber
0
196
Member Avatar for arsalanghouri
Member Avatar for zachattack05
0
153
Member Avatar for romilnagrani

Hello, I have a textbox, a previous button (<<), a plus button (+) and a next button (>>). When a user clicks a plus button, he can enter the date in textbox. He could enter unlimited number of dates this way. Now user, if he clicks previous button (<<), the …

Software Development asp.net session visual-studio
Member Avatar for zachattack05
0
107
Member Avatar for Jsplinter

I want to iterate through a list of objects, then erase all objects from the list which meet a certain criteria. Here is an example using int type as my object: [CODE] list<int> m_list; // Fill list with int values... // Find ints == 4 and erase them auto it …

Software Development c++
Member Avatar for Narue
0
233
Member Avatar for tikoti

Hi all! I have a little problem here, I would like the width function in cout applied to all the sucesive outputs. However, it is only applied to the next output only, I mean, with this code I get 0:00:10:20:30:4 1:01:11:21:31:4 2:02:12:22:32:4 3:03:13:23:33:4 4:04:14:24:34:4 5:05:15:25:35:4 6:06:16:26:36:4 7:07:17:27:37:4 8:08:18:28:38:4 9:09:19:29:39:4 and …

Software Development c++ ios
Member Avatar for tikoti
0
2K
Member Avatar for Jessurider

WHY WHEN I EXECUTE THE BELOW CODE I GETS AN EXCEPTION [B]java.sql.SQLException: No ResultSet was produced[/B].........BUT EVEN THOUGH INSERTION OPERATION WORKS FINE........CAN ANYONE TELL ME WHY THIS EXCEPTION COMES [CODE=java] Connection co; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); co = DriverManager.getConnection("jdbc:odbc:hh"); Statement st1; ResultSet result; st1 = co.createStatement(); result=st1.executeQuery("select count(*) from rooms"); result.next(); …

Software Development java sql
Member Avatar for Jessurider
0
2K
Member Avatar for Mona Ali

its my code pleas tell me y error occur in it. impex.h file [CODE]#ifndef IMPEX1_H #define IMPEX1_H enum shapetype {Point=1,Polyline=3,Polygon=5}; struct pointD { double x; double y; }; struct item { int id; list<pointD>coordinates; shapetype type; }; class impex { public: impex(); void savekml(list<item>); private: }; #endif .cpp file #include<iostream.h> …

Software Development c++
Member Avatar for Mona Ali
0
210
Member Avatar for shadowscape

Hello, i was wondering how you would create a file association in c++ with the registry, in lua it would be something like this... [CODE] function File.SetAssociation(Ext, Exe, Icon, Long) local cKey = Long; Registry.SetValue(HKEY_CLASSES_ROOT, Ext, "", Key); Registry.SetValue(HKEY_CLASSES_ROOT, Key, "", Long); Registry.SetValue(HKEY_CLASSES_ROOT, Key.."\\DefaultIcon","",Icon..",0"); Registry.SetValue(HKEY_CLASSES_ROOT, Key.."\\shell\\open\\command", "", "\""..Exe.."\" \"%1\""); end …

Software Development c++
Member Avatar for shadowscape
0
166
Member Avatar for SoSlow

.the program should use singly linked list of records.It should print he original directory then make some insertion and deletions then print the final directory. it should follow the steps 1. input initial listings such as name, address, and phone number. 2. input update records such as 'I' for insert, …

Software Development c++ linked-list
Member Avatar for Salem
0
353
Member Avatar for Fa3hed

this is code which opens new window link in same programe [CODE] Private Sub WebBrowser1_NewWindow(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles WebBrowser1.NewWindow ' This will be triggered only when link tries to open in new window. ' That means active element in web document will always be a …

Software Development vb.net web-browser
Member Avatar for pocohontus
0
1K
Member Avatar for hatebin

Hello, I'm trying to write a simple program to finde words betwen statments like <int></int>. I converted String stream to a charArray, to get indexes of chars in the string. [CODE] public void foo(){ bucket=str.toCharArray(); System.out.println(str.substring(548,563)); System.out.println(str.substring(644,656)); System.out.println(str.substring(844,857)); System.out.println(str.substring(942,954)); System.out.println(str.length()); for(int i=0;i<str.length();i++){ if(bucket[i+0]==':' && bucket[i+1]=='i' && bucket[i+2]=='n' && bucket[i+3]=='t' && …

Software Development java
Member Avatar for JamesCherrill
0
139
Member Avatar for bibiki

Hey there, seems like this part of DaniWeb is not as active as other parts, but in hope I get an answer, I'm asking. I have this xml file: [CODE] <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="site.xsl"?> <navigation> <link> <name>About</name> <content></content> <target>www.google.com</target> </link> <link> <name>Friends</name> <content></content> <target>www.google.com</target> </link> <link> <name>Archive</name> <content></content> …

Software Development xml
Member Avatar for bibiki
0
145
Member Avatar for DotNetUser

I launch 2 programs within my application with PROGRAMNAME->Show. Let's call them Prog1 and Prog2. I have a dummy form that I use Application::Run to keep the software running. When 1 of the program closes, I call Application::Exit to shut down the application. This doesn't allow the other program to …

Software Development c++
Member Avatar for pixma
0
224
Member Avatar for seby_o

I'm having a problem with Cosmos in VC# 2008 Express. I'm trying to get input as int and not string or find a way to convert from string to int. The 'Convert.Towhatever(string)' gives an error at build process in Cosmos. Thanks for any help! :icon_wink:

Software Development
Member Avatar for ionutica
0
131
Member Avatar for Joemeister

I'm new to C++ and here's a simple assignment. I'm not sure how to pull this off... ANY help will be appreciated . Here's the code for the assignment... You have to implement a function called approachPi that takes no parameters, and has the return type double. This function returns …

Software Development c++
Member Avatar for Tellalca
0
185
Member Avatar for Dani

Can someone please explain to me the difference between ++i and i++ when written as part of an expression (i.e. within loops and if statements) ? Thanks :)

Software Development c
Member Avatar for WaltP
0
662
Member Avatar for newbee234

Which of the following are valid function prototypes? x one(int a, int b); int thisone(char x); char another(int a, b); double yetanother; void thelastone(); void (function1) void; void function2(void) void function3(n, x, a, b); x void finction4(int n, float, char c); x void function5(int, a, int n); Which of the …

Software Development c++
Member Avatar for NathanOliver
0
219
Member Avatar for complete

How do I handle a requirement to put a magnifying glass feature onto my Silverlight app? It is not as easy as one might think. The previous programmer did it and thought it looked cool. It works by manipulating the scaling operation. It is a lot like the zoom feature …

Software Development
Member Avatar for complete
0
137
Member Avatar for Majestics

I am writing a prg which take a value from user and check weather its present in table or not.... [code] table.getValueAt(i,j).toString().toLowerCase() == searchfield.getText().toLowerCase(); [/code] Well if yes then make that cell red... What to write to make cell red?

Software Development java
Member Avatar for mKorbel
0
109
Member Avatar for daviddoria

I typically make a Types.h to define all of my types in and then include that in all of my project files. I haven't ever seen this anywhere though, so I assume it is "bad/wrong". The situation is often like this: Consider a class Gardener that needs to know type …

Software Development c++
Member Avatar for mike_2000_17
0
134
Member Avatar for dilake

How to create Linear and Data Matrix barcodes in C# and how can i decode a linear ,Data matrix from image?

Software Development
Member Avatar for sknake
0
114
Member Avatar for dyingatmidnight

Hello, I have been tasked with writing a test application to convert between geographic coordinate systems. Now math is not my strong suit but I was assured I wouldn't actually have to do any of the calculations since the formulas are provided. The trouble is trying to get the lengthy …

Software Development c++
Member Avatar for dyingatmidnight
0
2K
Member Avatar for dilequeno

I have a large data base that looks like the following: Energy position 5.639792 1.36 4.844813 1.89 4.809105 2.33 3.954150 2.69 2.924234 3.42 1.532669 4.50 0.000000 5.63 The actual data contains thousands of rows. The first column of the data is the particle energy and second column is the particle …

Software Development c++
Member Avatar for TrustyTony
0
326
Member Avatar for OnIIcE

hi, im creating a simple image editor/drawer and im having problems with flicker when the canvas is refreshd on draw. ive got [CODE]frmPMain->DoubleBuffered = true;[/CODE] on my form, but im still getting bad flicker when i run my draw shape code such as [CODE]void Pixie_Draw::DragSquare( int X, int Y, int …

Software Development c++
Member Avatar for luthor112
0
197
Member Avatar for Purrenhage

I am needing help in understanding how to declare variables properly. I am needing to write as program that calculates the commission for a sales person. I keep getting a error listed below. I thought I declared the salestextbox, costtextbox as integers correctly to use them in the calculation. I …

Software Development vb.net
Member Avatar for adam_k
0
150

The End.