132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for katli

Hi all i'm trying to populate a datagrid with a data from a sql database and i keep getting this error [I][B][COLOR=red]The ConnectionString property has not been initialized.[/COLOR][/B][/I] [B][I][COLOR=black]my code looks something like this:[/COLOR][/I][/B] [B][I][COLOR=#000000][COLOR=#0000ff]<Private[/COLOR] [COLOR=#0000ff]Sub[/COLOR] GetAssetDetails()[/COLOR][/I][/B][COLOR=#000000] [I][B][COLOR=#0000ff]Dim[/COLOR] cnn [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]New[/COLOR] SqlClient.SqlConnection[/B][/I] [I][B][COLOR=#0000ff]Dim[/COLOR] sql1 [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]String[/COLOR] = "SELECT DETAIL.[OFFICE LOCATION],USERS._RESOURCEGUID,OS.[OS …

Software Development sql vb.net
Member Avatar for khanayub_chand
0
191
Member Avatar for niall

Hi, Just looking for a bit of help with MIPS. I've written the following program but can't get it to run on PCSpim. Think I've done something wrong with the nextCh command as it keeps iterating again & again but can't figure it out. It's to convert uppercase to lowercase …

Software Development assembly
Member Avatar for andor
0
6K
Member Avatar for deineMutti

Hello All, I've been trying to modify an app to be able to resize nicely and I've finally gotten that working. However, while the controls in my main dialog get bigger, the font stays the same size, which is a problem. I wanted the font to get proportionally bigger as …

Software Development c
Member Avatar for dubeyprateek
0
1K
Member Avatar for jazzz

Hi, Iam new to programming. Can anyone explain the following program? [CODE]#include "stdafx.h" FILE *fp_dump; /*----- Layer -----*/ /* layer Record*/ typedef struct { USHORT usCode; /*LayerCode*/ USHORT usSubCode; /*SubCode*/ USHORT usBrandCode; /*BrandCode*/ USHORT usStartY; /*Latitude*/ USHORT usStartX; /*Longitude*/ UINT uiAR_DA; /*Offset*/ USHORT usCellSize; /*Cell Size*/ USHORT usDS; /*Relative offset*/ …

Software Development c open-source
Member Avatar for WaltP
0
191
Member Avatar for nanodano

Hey everyone, I'm trying to write a simple program that can do more than one thing at once. I'm not an expert on the iostreams, so I don't know if I need to create threads to accomplish what I want. What I'm trying to do is run a loop while …

Software Development c++ first-post
Member Avatar for dubeyprateek
0
115
Member Avatar for yuzhang

Hi all: Got a formatting question here: Trying to send data string over to a server via send(); The problem is that I want to enclose the data string with double-quotes, "data string" should be displayed on the server side. The method I used is using two double_quotes on each …

Software Development c
Member Avatar for yuzhang
0
275
Member Avatar for achala

hello, am doing a project for school . it involves a lot of file and string operations and i keep compiling the code over and over again to see if it is working properly ... all of a sudden the code simple stopped executing .. the code ran a number …

Software Development c++
Member Avatar for Ancient Dragon
0
226
Member Avatar for CStallion

disclaimer I'm a programming n00b so I may not know what I'm talking about. /disclaimer My question boils down to scopes. Let say I have code [code] { string mystring1; string mystring2; string mystring3; //code dealing with mystring1 //code dealing with mystring2 //code dealing with mystring3 } [/code] versus [code] …

Software Development c
Member Avatar for CStallion
0
151
Member Avatar for yuzhang

:sad: Codes: if (sock!=INVALID_SOCKET) { if(send(sock,s,(int)strlen(s),0)==SOCKET_ERROR) { WSAGetLastError(); } } s is a char pointer pointing to the very first memory location of the data string. While in debugging mode, there was no error from `WSAGetLastError()`, but the data string was not displayed in the server. Why? Thanks

Software Development c
Member Avatar for yuzhang
0
148
Member Avatar for CStallion

[code] int r = rand()%2; switch(r) { case 0: string x[] = "Hi."; break; case 1: string x[] = "Bye."; break; } [/code] Will this code produce a conflict on the string "x"?

Software Development c++
Member Avatar for CStallion
0
96
Member Avatar for drock9975

I've never seen this before and am perplexed beyond belief... by the way I'm using Visual Studio I have a rather large program/game i'm working on right now, and it reads in via ifstream file i/o from binary files in several locations to initialize variables. For some reason for one …

Software Development c file-system visual-studio
Member Avatar for drock9975
0
190
Member Avatar for MrLew

I am trying to write a program to convert a roman numeral to decimal. If I define a variable with: [inlinecode]char roman_num[15];[/inlinecode] can I then select individual characters in that roman numeral with: [inlinecode]roman=roman_num[i];[/inlinecode] where "i" is a number value of the character I want to retrieve from 0-14? Also, …

Software Development c c# c++
Member Avatar for Dave Sinkula
0
262
Member Avatar for CStallion

I know how to change the console text color using this code [code]HANDLE hConsole; hConsole = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleTextAttribute(hConsole, ###)[/code] But suppose I need to change colors frequently and on different output lines. Is there a shorter way to do it, like [code] cout[color=red] << "text"; [/code] ??? Rant: Google searching …

Software Development c++ google
Member Avatar for CStallion
0
307
Member Avatar for Phaelax

This is a question from a mid-term I had awhile ago. I just want to hear what you guys think the answer is, because I just can't agree with the teacher on this. A(n) ____ is a listener interface that listens for any events that occur during the execution of …

Software Development java
Member Avatar for jwenting
0
189
Member Avatar for Sailor_Jerry

I have 10 large .txt files with over 13,000 rows of data. Each “column

Software Development java
Member Avatar for iamthwee
0
255
Member Avatar for aeinstein

Hi all, I'm transistioning from the networking end of things and moving to the programming side, so, even though I've been around here for quite awhile, I have a pretty basic queston: since the char data type has a minimum range values between -127 to 128, how is a letter …

Software Development c++
Member Avatar for aeinstein
0
173
Member Avatar for sania kohli

THe foll is a part of a prg i have to append one dummy list to a original list at destination in the original list .So plz help me i am a new user so sorry for any mistalke Here is the code :[code] #include<stdio.h> #include<conio.h> struct node { struct …

Software Development c
Member Avatar for SpS
0
142
Member Avatar for yuzhang

Hi all: Say, my program is about to receive a string "ABC", and I want to test if the string really contains "ABC". What is the best way to test it? I am thinking of read all the characters from the incoming string one by one, but not sure which …

Software Development c
Member Avatar for SpS
0
258
Member Avatar for nyqvist

Hi I got diffrent date formats from a database and I would like to convert the to a date. I don't have the option to work with the sql, since that query is fixed (long story) "20051231","2005-12-31","2005-12-31 09:29:52" ==> "2005/12/31". My first tought was to trim the string and remove …

Software Development sql
Member Avatar for campkev
0
160
Member Avatar for purplegerbil

Hi, Is it possible to open a M$ Word doc in a RTF box? I thought of opening the doc in word and saving it as temp.rtf then opening that file in my rtf box, this would be a poor way of doing this. Any other ideas? pG

Software Development visual-basic
Member Avatar for sosco
0
196
Member Avatar for badchick

Hello there, Okay well i have tried to do this program but i'm just not sure if i'm going in the right direction. Well i have to create a text file (Did that) which is inputed into the program, and the program has to count the instances of the following …

Software Development c
Member Avatar for Dave Sinkula
0
479
Member Avatar for zack

I need to write a function that will take a string and an int and return the string from index int onward. for ex [CODE]Line = "Enter a line: "; WriteString(RetStr(Line,4 )); //Should return er a line: AnsiString RetStr(AnsiString Str, int Start) { int ill; ill=1; char temp; while (Start!=Length(Str)) …

Software Development c
Member Avatar for ivanCeras
0
91
Member Avatar for achala

hello, i have a few questions pls help me out with them coz am really confused .. 1. can lists or vectors passed as parameters in a function? 2. can the lists or vectors be returned ? i want to use lists or vectors in classes i need to knw …

Software Development c
Member Avatar for Lerner
0
149
Member Avatar for yuzhang

Hi all: According to the library, recv() will return a zero if the socket is closed, and a SOCKET_ERROR if the socket meets an error. But when I closed my socket (at least I think I closed it properly), recv() returned a SOCKET_ERROR other than zero. Wondering why? Thank you …

Software Development c
Member Avatar for yuzhang
0
101
Member Avatar for bkelly

How do I display then hide a progress box. I don't want any input or check boxes, just show the user that the computer is alive and working. A counter will be nice. When the task is done, the codewill remove the box. Thank you, Bkelly Oops, I forgot to …

Software Development display visual-basic
Member Avatar for jbennet
0
144
Member Avatar for moonny

i'm trying on the tutorial at http://tools.osmosis.gr/blog/archives/2005/03/birt_rcp_viewer_1.html i have a openReportEditor method as shown below: private void openReportEditor() { serverUrlText.setText("[URL="http://127.0.0.1/"][COLOR=#0000ff]http://127.0.0.1[/COLOR][/URL]:8181/birt/"); String uri = serverUrlText.getText(); ReportEditorInput input = new ReportEditorInput(); input.setUri(uri); OpenNewBrowserAction action = new OpenNewBrowserAction(input); action.run();} when i have created a button and i would like to call the openReportEditor. …

Software Development java
Member Avatar for moonny
0
103
Member Avatar for Kiba Ookami

I was on Cplusplus tonight, learning a bit about data structures (which I like). Well, I copied and pasted one example, ran it, learned a bit. Then I tried the same for the second. Here's the code for the second... [code]// array of structures #include <iostream> #include <string> #include <sstream> …

Software Development c++
Member Avatar for WolfPack
0
239
Member Avatar for yuzhang

Hi all: I have successfully opened a socket to a server and trying to send some data vai the send() function. But what surprised me is: [URL="http://www.daniweb.com/techtalkforums/wsagetlasterror_2.htm"][B]WSAGetLastError[/B][/URL]() returns nothing, which means the data has been sent to the server, however all the data (a string) will only be displayed at …

Software Development c
Member Avatar for yuzhang
0
169
Member Avatar for Pacer

Hi,all.I want to know why this program can not run faultlessly? Thanks to all. [code] #include <stdio.h> #include <stdlib.h> typedef struct link{ char data; struct link * next; struct link * pre; }list; main() { list * head=NULL; /* Define the head node */ list * linklist; /* Define the …

Software Development c
Member Avatar for Pacer
0
207
Member Avatar for Phaelax

Title says it all. I've tried getting different system properties with no luck. Not sure if "java.compiler" is the right one or not, but it always returns null for me. The others I've tried are: "java.home" "java.library.path" "java.class.path" java.home gives me: c:\java\j2sdk1.4.2_05\jre But javac is in c:\java\j2sdk1.4.2_05\bin I don't want …

Software Development java
Member Avatar for jwenting
0
282
Member Avatar for HackWizz

Hi.. I have nearly learnt c++ ..and I want to learn java as i suppose softwares solutions are usually provided in java..:?: ...I know nothing about java.I saw the tutorials ..but the were not introductory..can someone help....??? Thanks in advance.

Software Development java
Member Avatar for Kiba Ookami
0
202
Member Avatar for yuzhang

Hi all: I wrote a simple program to open a socket to localhost port 8201. Codes: ...... [CODE]if (WSAStartup(VERSION, &wsadata) != NO_ERROR) { WSACleanup(); return EXIT_FAILURE; } open_socket(serverName, port); SOCKET open_socket (const char *serverName, const int port) { struct hostent *server = NULL; SOCKADDR_IN serverAddress; sock = socket(AF_INET, SOCK_STREAM, 0); …

Software Development c
Member Avatar for yuzhang
0
215
Member Avatar for gbs

Hi, I am having the problem of running ps2pdf from a python script. From the command line, ps2pdf works just fine. However, when I tried the following code: os.chdir("/tmp/test") # file.ps resides in this dir os.system("ps2pdf file.ps file.pdf") The script generated an empty file.pdf with no pages. Does anyone know …

Software Development pdf python
Member Avatar for G-Do
0
2K
Member Avatar for Malcolm87

Why cant we use virtual constructors in C++? :-|

Software Development c c# c++
Member Avatar for ifti
0
119
Member Avatar for bkelly

I have "discovered" a need to do some development for an embedded system. We have a PC-104 computer that boots MS-DOS 6. It does have VGA display and regular keyboard input. I need to develop some code to drive a digital I/O board. I can do this is C or …

Software Development c++ flash storage
Member Avatar for bkelly
0
133
Member Avatar for madloch

Hi All I'm new to Python and have created the below little program but would like to be able to print the loop final count (eg. 8 years) rather than every loop. Any hints on how to do this? def main(): print "This program calculates how long it takes for …

Software Development python
Member Avatar for madloch
0
3K
Member Avatar for SYEDHANIF

HI [CODE]class Astro { var $jd; var $dec; var $ra; var $sid; var $dra; var $rsum; function Astro() { $this->jd = 0.0; $this->dec = array(0.0, 0.0, 0.0); $this->ra = array(0.0, 0.0, 0.0); $this->sid = array(0.0, 0.0, 0.0); $this->dra = array(0.0, 0.0, 0.0); $this->rsum = array(0.0, 0.0, 0.0); } function copyFrom(&$source) …

Software Development php visual-basic
Member Avatar for Comatose
0
197
Member Avatar for itsukumar

hi can any one give me a code for chatserver in java which have bi-directional comminication.lik server listen more no.of clients n give reply and client mak request to server. ther should be a frame where a textarea and a textfield.all messages are printed on textarea and after hit of …

Software Development client-server java
Member Avatar for jwenting
0
201
Member Avatar for NumNut

Hello, I am using fedora 5 and installed wxpython in an effort to program in python/wxpython (installed wxPython-2.6.3.2-1.fc5.i386.rpm, wxGTK-2.6.3-2.6.3.2.1.fc5.i386.rpm and wxGTK-gl-2.6.3-2.6.3.2.1.fc5.i386.rpm). When I run my test script to create a frame, a notebook and an image on one of the pages of the notebook, I get a GDK error when …

Software Development image python
Member Avatar for NumNut
0
223
Member Avatar for musicmancanora4

Hey guys just wondering how i can sort the linked list by categoryName for the drink type list. Iv done the linked list in my code but its not sorted? Could someone help me write an algorithm or sum pseudocode [code] #ifndef GJC_H #define GJC_H /* System-wide header files. */ …

Software Development algorithm c linked-list
Member Avatar for SpS
0
185
Member Avatar for robertlees

VB6 recognises beep. Are there any other sounds ?

Software Development visual-basic
Member Avatar for robertlees
0
123
Member Avatar for Aenima

First of all, hello everyone. My problem is this. In writing a program which accepts multiple user inputs of type [B]int, [/B]during the first run through the program, after the first [B]cout << [/B]statement prints, I have to press enter twice in order for the second [B]cout [/B]statement to display. …

Software Development c++
Member Avatar for Aenima
0
264
Member Avatar for sufi

<<split from: [thread]42172[/thread]>> [QUOTE=weehoong]Hi there guys! Just want to say these communities are great! i've really benefited alot from the forum and its tutorials. Special thanks to [B]FireNet [/B] and his file handling tutorials. It really helped me alot! Not forgetting, thanks alot to all of the members here too. …

Software Development app-store c++ ios video
Member Avatar for Ancient Dragon
0
2K
Member Avatar for watkins6878

Hi I am trying to fill a combobox with the files from a FileListBox the code i am using is [CODE]Private Sub Form_Load() File1.Path "C:\Images" File1.Refresh If File1.ListCount > 0 Then For i = File1.ListCount To -1 Combo1.AddItem File1.List(i) Next End If End Sub [/CODE] The FileListBox fills with the …

Software Development visual-basic
Member Avatar for watkins6878
0
168
Member Avatar for yyuuvvaall

hi, can someone understand how the new element is being attached to the list in this code? [CODE] void insertSortedList (Node **head, int value) { /* creating a new node */ Node *ptr = createNode (value); Node **pCurrent = head; /* adding the new node to the correct place in …

Software Development c
Member Avatar for dude543
0
343
Member Avatar for gladiator1919

HI members; This is a memory game with c++ concole application. This is the code: [CODE]#include<iostream.h> //MEMORY GAME. #include <algorithm> //DESIGNED BY GLADIATOR1919. #include<ctype.h> //GLADIATOR1919@GMAIL.COM. #include<time.h> //ALL RIGHTS RESERVED. #include<windows.h> int e,i,j,q,m,n,x=0,row_1,column_1,row_2,column_2,score=0; char rand_1[16]={'a','g','h','j','k','a','s','d','f','g','s','d','f','h','j','k'}; struct mem_char { char ch[5][5]; }; char re_play; mem_char char_1[2]; void end_game(); void input_first_point(); void input_second_point(); …

Software Development algorithm c++
Member Avatar for SpS
0
3K
Member Avatar for biotech2

i need to somehow detect text block (i dont need OCR just area where text is, but i am dealing with pixels) within book page and then cut everything else out. i am dealing with scanned books so i have specs and smudges in the page. the easiest way to …

Software Development c
Member Avatar for Salem
0
138
Member Avatar for Ene Uran

How do you loop through an entire year showing each day's date?

Software Development python
Member Avatar for bumsfeld
0
5K
Member Avatar for nanodano

Hey, I have a problem using Visual Studio 2005. In the MSDN library it says there is a function called SetConsoleDisplayMode. This function though is not in the 2005 library. I'm assuming its an old reference from VS 2003. Does anyone know how to tell a console program to switch …

Software Development c++ visual-studio
Member Avatar for SpS
0
829
Member Avatar for heatherc3

I'm a n00bly n00b when it comes to Perl. I have data that will be set out in comma separated values that needs to have logic applied to it and then replace the value with text. This is to prep the data for a mail merge. We're using this to …

Software Development perl
Member Avatar for Comatose
0
281

The End.