64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Nitin Daphale

I use following code to get all existing sql servers. [CODE] using Microsoft.SqlServer.Management.Smo; DataTable dt = SmoApplication.EnumAvailableSqlServers(false); if (dt.Rows.Count > 0) { cmb_servers.Items.Clear(); foreach (DataRow dr in dt.Rows) { cmb_servers.Items.Add(dr["Name"]); } }[/CODE] In first attempt it's not loading any servers at all but in second it is. I know it's …

Member Avatar for Nitin Daphale
0
133
Member Avatar for shack99

Hi everyone, I'm new to c# ( I've done java before) and I'm having a problem with one of our tutorials. We have to read some data from an XML file. When doing it with a console application it turned out fine, but when doing it with a Windows forms …

Member Avatar for shack99
0
125
Member Avatar for TheWhite

"ps aux" outputs the following as the first line: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND how can I preserve this line if I do a "ps aux | grep <someuser>" so that I can still see the header for each column? In essence, I want …

Member Avatar for thekashyap
0
119
Member Avatar for rajeevpareek

Hi, I am trying to pass a string to a MACRO using -D option in gcc. I am not getting desired output, below is snippet, please let me know what I am missing. $ gcc -o finame -D CORE="op1_log.txt" finame.c [CODE] #define STR(x) x int main() { FILE *fp; char …

Member Avatar for thekashyap
0
7K
Member Avatar for veledrom

Hi, I've created a script to understand the logic of caching. Do you think my example below makes sense? I am asking because I've never used caching before. 1. Check if HTML version of current testfile.php exist in cache folder as testfile.html a. If YES then compare content of testpage.php …

Member Avatar for veledrom
0
168
Member Avatar for wayz1229

i'm realy confused on how to do this.. deperately need help. i have two tables as below: table1- qid(primarykey), qtitle table2- aid(primarykey), atitle, qid example, table1- (qid=1; qtitle=fruits), (qid=2; qtitle=vehicle) table2- (aid=1; atitle=apple; qid=1), (aid=2; atitle=banana; qid=1), (aid=3; atitle=car; qid=2), (aid=4; atitle=bike; qid=2), (aid=5; atitle=bus; qid=2); when i retrieve the …

Member Avatar for kitschkath
0
116
Member Avatar for Kapilxcb

I have to add 2 polynomial equations. Each are stored in linked lists. eq_1 and eq_2 linklists are added and the total is stored in eq_1 linklist. But the problem is when im trying to add both equations, the 2nd for loop(eq_2) is looping once only. I mean when eq_1 …

Member Avatar for jonsca
0
147
Member Avatar for bunnyali2011

Well I have a combobox with 3 items namely: Product Size and Cost. I have also a maskedtextbox. If I select "Product" and "Size" on the combobox, I want to disable the maskedtextbox from filling, how must I do it?

Member Avatar for AndreRet
0
183
Member Avatar for alexia_net

Hi. I would like to know if it would be possible, using PHP to ping a port of a switch, knowing the ip address of that switch. How can this be achieved? Thank you.

Member Avatar for alexia_net
0
84
Member Avatar for anita_86

Hi!! I am trying to find out solution for this since long. I tried js but as I am not good with it, I just want to do this through PHP. I am adding dynamic rows when user clicks the Add Row button.I want to show the calculated amount like: …

Member Avatar for anita_86
0
208
Member Avatar for anita_86

Hi all! I have a form as below: [CODE]<script type="text/javascript"> function addRow(tableID) { var table = document.getElementById(tableID); var rowCount = table.rows.length; if(rowCount<3) { var row = table.insertRow(rowCount); var colCount = table.rows[0].cells.length; for(var i=0; i<colCount; i++) { var newcell = row.insertCell(i); newcell.innerHTML = table.rows[0].cells[i].innerHTML; //alert(newcell.childNodes); switch(newcell.childNodes[0].type) { case "text": newcell.childNodes[0].value = …

Member Avatar for anita_86
0
649
Member Avatar for aplee

hi Everyone, My program is doing good when I suddenly bumped into this problem. I dont know how to do the next functionality that I need to accomplish. I am done with inserting values, showing the gridview etc and it works great. Now my problem is the update command. I …

0
104
Member Avatar for veledrom

Hi guys, Is there anyone know any library that sets an image as header and footer? I used [B]TCPDF [/B]but it doesn't for footer image. Also, [B]html2fpdf [/B]doesn't support image as header or footer at all. Any other that may work for me? Thanks in advance

Member Avatar for rpv_sen
0
118
Member Avatar for opawix

heres my code: [CODE]#include<iostream> using namespace std; int main() { int x; for(x=3; x<=47; x++) { cout<<x; } system("pause"); return 0; } [/CODE] i just want a little help with this problem: this code cout counts from 3 to 47 but i want to cout 3 then adding 2 to …

Member Avatar for opawix
0
92
Member Avatar for alexia_net

Hi. I am trying to create a program which would tell me the connection between some equipments in a network. For a example a connection between Switch1 and Switch10. I know that the path from Switch1 to Switch10 goes through some patches and other switches and these switches and patches …

Member Avatar for alexia_net
0
116
Member Avatar for salty11

this code is meant to input words from file, and output to file the amount of letters in them and how many words there are [CODE]#include<iostream> #include<iomanip> #include<fstream> #include<cmath> #include<conio.h> #define in_file "data.txt"//input file name #define out_file "result.txt"//output file name using namespace std; void inputwords(int&, int&); void outputwords(int, int); ifstream …

Member Avatar for WaltP
0
639
Member Avatar for subith86

Hi friends, I was understanding the concept of friend functions. I read in my book that there are two possible ways of "making friendship":cool: 1. Make a class a friend. 2. Make the method in a class a friend. I am able to write a code for the first point. …

Member Avatar for jonsca
0
2K
Member Avatar for kitjo

I have two radio btuttons which link me to another form but they have failed to likk me to the forms i directhem to link me to. i dont know if ther is any problem with my code this is the code. some one to help me [CODE] Dim one …

Member Avatar for kitjo
0
122
Member Avatar for scarlettmoon

Hello, I would really appreciate if someone could tell me what is wrong with this function. When I execute the program it returns the memory address and not the calculated average. I have not included the entire program, there is a sort function and scores are entered by the user …

Member Avatar for mike_2000_17
0
381
Member Avatar for Sturdy

Hi again.. i'm looking for how to running notepad from vb6.. please help me. any help will be appreciated.

Member Avatar for Sturdy
0
723
Member Avatar for subith86

Hi friends, One of my class member function is supposed to return an array of integers. Here's the function. [CODE]int* MyClass::getallVars() { int* a = new int; int b[] = { GetparentVar1(), GetparentVar2(), GetchildVar1(), GetchildVar2(), }; a=b; return a; }[/CODE] Is there anyway I can do this without the use …

Member Avatar for subith86
0
177
Member Avatar for swathys

[QUOTE=swathys]Hi, I have a problem to solve this, when the 1st language button clicked it should carry the language that already specified in xml but it seems my code doesn't work in that way. Can you help me please ! Form1 [CODE] Private Sub FlashObj_FSCommand(ByVal sender As Object, ByVal e …

Member Avatar for swathys
0
145
Member Avatar for newwbee

my assignment is to figure out the output but im bot sure i got it right here is the Q A variable x globally defined in your program is assigned the integer value 3. A variable x defined in a function named f_name is assigned the integer value 5. Answer …

Member Avatar for jonsca
0
195
Member Avatar for swathys

Hi, I have create an application in vb.net and ms sql 2005 as database storage. How do i create an installer that can be included in a CD. What i mean is if i want to install it in the virgin PC the Installer CD would be able to run …

Member Avatar for swathys
0
142
Member Avatar for sciprog1

Hello Members, I have a program with a lot of MouseListeners. The issue I am having is the program is ending even before I click. I tried using sleep and flags to pause the program without much success. Just wondering if there is way to get the program to pause, …

Member Avatar for sciprog1
0
157
Member Avatar for joban.ali

Hi, All I would like my user to click on My Account link, with the help of some PHP magic i would like to determine which access level a user has and direct them accordingly to the right my account page. In total I have 3 types of users outlined …

Member Avatar for kekkaishi
0
208
Member Avatar for efronefron

There is a problem I am having inside the AddToEnd function. At this line: [QUOTE]*ptrL->ptrNext = ptrInput;[/QUOTE] it gives this error: [QUOTE]lab8.c: In function ‘AddToEnd’: lab8.c:105: error: request for member ‘ptrNext’ in something not a structure or union [/QUOTE] Can anybody tell me why? P.S. I realized that I do …

Member Avatar for efronefron
0
189
Member Avatar for Whilliam

I'm a newb at web programming. Ugh, this is making me crazy! I've been programming it all day. I need expert's help. Please help me guys!! I've been trying to make a Sign Up filter and insert to database code. The code first checks if the username inputted in the …

Member Avatar for TechySafi
0
187
Member Avatar for rookanga

I need to make an application that can calculate the items the user chooses from There is 7 different items the user can choose from Small Coffee $4.95 Medium Coffee $6.87 Large Coffee $8.52 Bagel $2.99 Cream $0.71 Sugar $0.50 Lid $0.99 Total the coffee order (subtotal + tax at …

Member Avatar for rookanga
0
160
Member Avatar for jackmaverick1

Hi! I read the clearing input buffer article on the top of the c++ forum but I don't really get it, and it doesn't work. This is my problem, I know that cin is just like a file in that it has a buffer (correct me if I'm wrong, I …

Member Avatar for jackmaverick1
0
206
Member Avatar for G_S

Hello I'm trying to make a verb conjugator for Spanish. The problem is that I need to get the last two characters in the verb to be able to determine the verb group to which it belongs. In Spanish, conjugation depends on the verb ending, among other factors. Verbs end …

Member Avatar for G_S
0
23K
Member Avatar for sdr001

Hello, I am trying to test my binary tree, but I am getting errors: The error occurs when I try to call a template function. For example: tree.insertNode(inp);. I get this error: request for member âinsertNodeâ in âtreeâ, which is of non-class type âmain()::binaryTree ()()â . I have defined my …

Member Avatar for sdr001
0
117
Member Avatar for @Kui

Hi i have a program in which i want the main form to get information either from the login form or from the sign up form depending on which one is used. Here is the code below. The information does not seem to appear although there is no error. Please …

Member Avatar for Unhnd_Exception
0
268
Member Avatar for trume

Hello, How can I do it on a recursive way? (Function ''plus'' needs to call itself) [CODE]#!/bin/bash function plus { let GLOBAL=$GLOBAL+$1 } GLOBAL=0 n=$1 for ((i=1; i<=n; i++)) do plus $i done echo Answer: $GLOBAL[/CODE] Any help is welcome! Regards, trume

Member Avatar for griswolf
0
89
Member Avatar for jkoske

I am having problems accessing the members of the base class in my derived class. Is there anything wrong with the way I defined my base class as in: template <class T> class Stack : private Llist<T> Is there anything wrong with that? I am getting errors from gcc in …

Member Avatar for jkoske
0
214
Member Avatar for pythonbegin

Hi All Hope everyones doing good. I have two \t files with 3 columns, file1 contains 600050 rows and file2 contains 11221133 rows. I am comparing file2 with file1 to match common entries in first two columns, if file1[0:2] in file2[0:2 ,] write file2[0:2]+column 3 else fil1[0:2] + 5. I …

Member Avatar for griswolf
0
1K
Member Avatar for Nevillelajru

I have a datetimepicker which reads a date as dd-mm-yyyy. the sql im using(sql server 2008) is only reading mm-dd-yyyy. i am having a problem with changing the format of how the date is saved. i put a catch to the code and this came up System.Data.OleDb.OleDbException: Conversion failed when …

Member Avatar for Mitja Bonca
0
1K
Member Avatar for Vega_Knight

Hi masters,, how can i count how many words in sentences using pascal? thanks before and best regards.

Member Avatar for Vega_Knight
0
1K
Member Avatar for Kirielson

Thanks for helping me out with my coding last time. Now I have an error with a class not found for my servlet. In the log, the following shows up: [CODE]SEVERE: Error loading WebappClassLoader delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: org.apache.catalina.loader.StandardClassLoader@1c0e45a cart.CartServlet java.lang.ClassNotFoundException: cart.CartServlet[/CODE] I've compiled all of the …

Member Avatar for Kirielson
0
136
Member Avatar for benjybob

hi, i have a small problem with the rand operator. at first i tried using it without srand but gave me the same value each time. i have inserted srand(time(0)); but my compiler throws me up these errors: 1>c:\users\ben\documents\university work\year 2\c++\code\myc++\spritelab\asteroidsgame.cpp(17): error C4430: missing type specifier - int assumed. Note: …

Member Avatar for benjybob
0
425
Member Avatar for a.muqeet khan

hello ppl i am a new member of the programming club it been a week since i begin to program and i am doing it persnaly so i am sorry if what i posted is stupid but i want u u guys to have a look and tell me whats …

Member Avatar for a.muqeet khan
0
115
Member Avatar for supriyabirje

[B]hi friends..[/B] please help me with this little code... i have a html form with a few text boxes and a drop down menu.... On page load I want to blur the drop down menu... I have blurred the text boxes using [CODE]document.getElementById['id-of-text-box'].blur();[/CODE] i tried the same for select element …

Member Avatar for diafol
0
222
Member Avatar for aaraf

hello I just started using headers and I have few problems that I don't know why and how to fix them I'am trying to set authentication for 6 users each one of them can't access his account unless the admin is logged in else they have an error message but …

Member Avatar for aaraf
0
107
Member Avatar for kay21

Hi everyone, Can someone please explain how to determine cardinality ratio for a relationship. For example; In a database for a hospital there is an entity Doctor and Patient. One or more doctors will treat a patient. So, is the cardinality ratio between Doctor and Patient is M:1 (one or …

Member Avatar for kay21
0
1K
Member Avatar for assgar

I am trying to use a single select to get the first and last name for a group of users. Here are the two approaches (Test 1 & Test 2) I tried to get the data. Both approach gave the same error. [CODE] Error: Unknown column 'norma' in 'where clause' …

Member Avatar for assgar
0
1K
Member Avatar for cdn88

Hello, I am having trouble understanding why I'm getting these errors. a4.c:106: error: expected expression before ‘int’ a4.c:106: error: too few arguments to function ‘ass_average’ a4.c:109: error: expected expression before ‘int’ a4.c:109: error: too few arguments to function ‘ass_min’ a4.c:112: error: expected expression before ‘int’ a4.c:112: error: too few arguments …

Member Avatar for Ancient Dragon
0
224
Member Avatar for Wakesta

What free C++ programming tools do people recommend? And just to check I would be able to run my programme from this tool?

Member Avatar for Ancient Dragon
0
247
Member Avatar for rajandass65

hi, how to use different templates in cmsmadesimple i.e index page have template A and other pages will use template B. regards, rajan

Member Avatar for diafol
0
72
Member Avatar for asif49

In my class there are 2 objects, I have to get the one which has the smallest size with a method that begins with [CODE]public String smallest()[/CODE] so what I've been trying to do is roughly the following... [CODE]if (object1.getSize() < object2.getSize) { return object1.getName; } } if (object2.getSize() < …

Member Avatar for sj5536
0
94
Member Avatar for 68thorby68

Having spent the last 6-9 months getting to grips with the basics of PHP, I have inherited a number of Perl scripts. As I'm getting on with PHP and beginning to complete ever "complex" tasks, I would like to convert the inherited Perl into PHP. I am able to translate …

Member Avatar for 68thorby68
0
1K

The End.