132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kobi

Hello there, How can i add a node in a certian place in a treeView control? Thanks ahead

Software Development
Member Avatar for JirkaJirka
0
213
Member Avatar for vincezed

Hi all, I'm struggling to create a treeview. I want the nodes to be added dynamically. For example consider there are two froms Form1 and Form2. Form1 is the main , on clicking on a New node button Form2 open. In Form2 i will give the new node name and …

Software Development c#
Member Avatar for JirkaJirka
0
440
Member Avatar for shankarz

Look into this code: #include <stdio.h> main() { int p,n,r; float si; scanf("%d %d %d", &p, &n, &r); si=p*n*r/100; printf("SI = %f", si); } Output of this program is 100 100 100 SI = 169.00000 **and also this:** #include <stdio.h> main( ) { int p, n ; float r, si …

Software Development c
Member Avatar for I_m_rude
0
153
Member Avatar for techy23

well, i want to learn some very basic game programming starting from C ,then C++.. How to include that header file <graphics.h> in my IDE like Turbo C or andy other IDE. please help! regards, Techy23.

Software Development c ide
Member Avatar for I_m_rude
0
1K
Member Avatar for HibaPro

i get this msg from sql server when i restore the back up file TITLE: Microsoft SQL Server Management Studio ------------------------------ An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) ------------------------------ ADDITIONAL INFORMATION: The media family on device 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\TenderingSys' is incorrectly formed. SQL Server cannot …

Software Development mssql sql vb.net
Member Avatar for HibaPro
0
300
Member Avatar for np complete

Can some one list all the functions in windows.h and there uses? Can't find it in Msdn.

Software Development c++
Member Avatar for np complete
0
267
Member Avatar for CasperG

Help!!! I cannot get my combo box to populate using a select statement from mysql database. Please see below for coding [code] CN = New ADODB.Connection 'Connecion to database CN.Open("driver={mysql odbc 5.1 driver};server=localhost;database=v_control;user=root;password=;option=3") RS = New ADODB.Recordset RS.Open(SQLdata, CN, ADODB.CursorTypeEnum.adOpenUnspecified, ADODB.LockTypeEnum.adLockPessimistic) If DBconnect() = True Then SQLSearch("select * from engineer …

Software Development sql vb.net
Member Avatar for andhie.dhie.1
0
543
Member Avatar for newbie14

Dear All, We are capturing each network packet which is in this format. The problem is that we would like to get the url if it exist in the packet in the form of http://...... ? What is the best whaay to interpret it to capture the url? 000000 cf …

Software Development c
Member Avatar for newbie14
0
180
Member Avatar for Nikhar

I am writing a c++ code (or any sort of code for that matter) after one complete year. And yet I don't think I could have become so bad that I can't make a Hello World program. Still, here I am with so many errors. Here's the code:- [CODE]#include <iostream> …

Software Development c++
Member Avatar for pc75
0
3K
Member Avatar for triumphost

I'm trying to generate Unique ID's for a buffer unless they contain the same content. Inother words if the buffer has the same content as another, the ID should be the same; otherwise different. I've found someone using this algorithm for the same kind of buffer: DWORD CalcChecksum(DWORD *pData, int …

Software Development algorithm c++
Member Avatar for triumphost
0
137
Member Avatar for VernonDozier

I'm trying to createa function that takes command line arguments, parses them, and returns a stream to be used for output. If a filename is specified, the program will write to that file. If no filename is specified, the default output will be to cout. I haven't gotten to the …

Software Development c++ file-stream
Member Avatar for VernonDozier
0
8K
Member Avatar for Mitja Bonca

I have a small problem with printing reports (made by crystal reports). In Form1 I have a list of customers in a ListView (with checkboxes). If the users selects one customer (checkes ONE checkBox) the report is shown - and the report it self has on option to print. If …

Software Development dataset listview
Member Avatar for waqassilat
0
855
Member Avatar for learner_new

> this is my udp server code #include<iostream> #include<arpa/inet.h> #include<unistd.h> #include<sys/socket.h> #include<sys/types.h> #include<stdio.h> #include<string.h> #include<stdlib.h> using namespace std; void error( char *msg) { perror(msg); exit(EXIT_FAILURE); } int main() { int sockfd; sockfd = socket(AF_INET,SOCK_DGRAM,0); struct sockaddr_in serv,client; serv.sin_family = AF_INET; serv.sin_port = htons(53000); serv.sin_addr.s_addr = INADDR_ANY; char buffer[256]; socklen_t l …

Software Development c++ client-server tcp-udp unix
Member Avatar for BobS0327
0
3K
Member Avatar for LuckyBec

Hey guys, First post here but i've been a lurker for the past few days. I'm just fiddling with some C# exercises since I decided to try my hand at programming the other day. Please excuse me for being a complete rookie! So...Pseudocode. As far as I understand its a …

Software Development
Member Avatar for mvxg
0
218
Member Avatar for peterbob

Hey guys, I am new to assembly and I am having a problem compling the code. section .text global _start _start: xor eax,eax push eax push dword 0x71242776 push dword 0x76747977 push esp pop esi mov edi,esi mov edx,edi cld mov ecx,0x80 mov ebx,0x41 xor eax,eax push eax lodsb xor …

Software Development assembly
Member Avatar for peterbob
0
296
Member Avatar for Labdabeta

Whenever I tell anybody under the age of 20 that I am a programmer, they always ask the same question sooner or later: "Can you hack my computer." I tell them that even if I could I wouldn't. They follow up by telling me to just make a pop-up or …

Software Development c++ cybersecurity
Member Avatar for VernonDozier
0
253
Member Avatar for zxc123

I have a form with a textbox and I want that textbox to read from text file ,manipulate information in text file and write it to another text file. read each line and when see -- into line break and continue next line until to file end.this code have problem …

Software Development file-system
Member Avatar for k1robert
0
439
Member Avatar for M.Waqas Aslam

hello ! i am working on a simple application that can block the sites ,after searching i found that if i add name of the site in c:\windows\system32\drivers\etc\hosts then i can block those sites , for this i want to open this hosts file in my textbox with administrator rights …

Software Development vb.net
Member Avatar for M.Waqas Aslam
0
190
Member Avatar for trishtren

hey, Iv been looking around for an easy way to check if a string matches exactly and not just in a few characters I.E B != "ABC" B == B Frederick != F So only if the entire string matches will my condition be met. currently im using : String[] …

Software Development java
Member Avatar for stultuske
0
232
Member Avatar for k1robert

Hi all please help as I am so stuck. My aim in to retrieve the information out of the xml soap file and store it in a database. However I havent got the slightes idea what i'm doing wrong. Please help I just want to write the values out in …

Software Development app-store asp.net xml
0
121
Member Avatar for rithish

we are using printf and scanf from #include<stdio.h> libraray functions.is it possible to write our own display statement and input statement

Software Development c
Member Avatar for rithish
0
380
Member Avatar for rithish

#include <stdio.h> #include <stdlib.h> #include<ctype.h> void main() { char str[50]; int i=0; printf("enter the string: "); fgets(str,sizeof(str),stdin); printf("the abbrevation of string is"); printf("%c",toupper(str[i])); for(i=0;str[i]!='\0';i++) { if(str[i]== '') { i++; printf("%c",toupper(str[i])); } } } error at line 14

Software Development c
Member Avatar for rithish
0
134
Member Avatar for rithish

#include <stdio.h> #include <stdlib.h> void main() { char str[30],str1[30],str2[50]; int i,n,j,k; printf("enter the string: "); fgets(str,sizeof(str),stdin); printf("enter the inserting string: "); fgets(str1,sizeof(str1),stdin); printf("enter the position: "); scanf("%d",n); for(i=0,k=0;i<n;i++,k++) str2[k]=str[i]; for(j=0;str1[j]!='\0';j++,k++) str2[k]=str[j]; for(i=n;str[i]!='\0';i++,k++) str[k]=str[i]; printf("%s",str); } no errors for example output will be like this enter the string:rohinnj enter the inserting …

Software Development c
Member Avatar for deceptikon
0
231
Member Avatar for amelia.rox

I am writing a program where you type in the highs and lows for the week and it averages them and tells you the highest and lowest temperature. I would like it to ask the high for Sunday then the low for Sunday, then the high for Monday and so …

Software Development
Member Avatar for zeroliken
0
101
Member Avatar for MasterHacker110

I have setup my own server(just a windows XP service pack 2 installed) now i want my friend to connect to it. I understand that there are 2 ways to do this. You can type in your CMD: telnet [IP Address] [PORT] Or you could type: telnet and then the …

Software Development shell-scripting
Member Avatar for rch1231
0
238
Member Avatar for anallan

my professor gave this machine problem as a part of our finals.can you help me out/ here are the instructions: 2 player tictactoe -program a 2player tictactoe game wherein two players alternately key-in the coordinates to which they want to place a 'o' or an 'x' -the game board is …

Software Development c
Member Avatar for saurai3h
0
1K
Member Avatar for marky101

dim x as integer = 0 str = "SELECT uname, full_name FROM EMPLOYEE" cmd = New MySqlCommand(str, cn) ds = New DataSet da = New MySqlDataAdapter(str, cn) da.Fill(ds, "employee") Dim uname As String = ds.Tables(0).Rows(0)("uname").ToString Dim emp_name As String = ds.Tables(0).Rows(0)("full_name").ToString While x <= ds.Tables(0).Rows.Count If ds.Tables(0).Rows.Count <> 0 Then …

Software Development dataset mysql vb.net
Member Avatar for marky101
0
169
Member Avatar for tux4life

This is how mine [B]strcmp[/B] function would look like if I'd to implement it from scratch :)

Software Development c
Member Avatar for ibykow
0
699
Member Avatar for userIT

I have this code that supposed to display the values from an array to a text file #include <iostream> #include <cstdlib> #include <fstream> #include <vector> using namespace std; int array[7][4]; fstream file2; template< typename T > void display( const vector< vector<T> >& matrix ) { for(int i = 0; i …

Software Development c++ file-system ios
Member Avatar for userIT
0
239
Member Avatar for Lostelf

Hello I'm trying read data from a file and display it into 3 arrays coloums. however I keep on getting an error on line 33 stating [expected primary-expression before "int,double,int,int"] [ISO C++ forbids declaration of `readHousehold' with no type] I cant figure it out but I know it has to …

Software Development c++
Member Avatar for Lostelf
0
469
Member Avatar for Suzie999

I'm trying to split an array which is that of unsigned char where NULL marks the split point I have written this code, but it just looks clunky, and I would like to ask advice on any other more efficient methods of doing such a thing there might be. #include …

Software Development c++
Member Avatar for Suzie999
0
1K
Member Avatar for njbst18

I'm new to creating jar files. I'm using JCreator and have set up the jar creation and the manifest using winrar and txt to get it to run. However if I run the .jar from anywhere other than the programs root directory all the images vanish. I have been looking …

Software Development image java
Member Avatar for NormR1
0
753
Member Avatar for kytro360

Hello, I am trying to multithread a listBox which has URL's in it. Basically what I am trying to do is to make it so each thread I make, will visit one of the URL's in the listBox and do a GET request. I was wondering how do I make …

Software Development multithreading
Member Avatar for kytro360
0
235
Member Avatar for Aghtar

Hello, first time here in the forum, though Ive used it before for help. Okay so I have to create a constant to define the size of two float arrays and Create two one dimensional float arrays in the function main() called highs and lows. const int MAX = 7 …

Software Development c++
Member Avatar for NathanOliver
0
134
Member Avatar for 3e0jUn

How do you make Python accept multiple strings and break them down in an input? For example, main = input ('> ') if main == ('ECHO',some_words): print (some_words) But everytime I do that, the some_words string wouldn't be defined. Error Message: Traceback (most recent call last): File "<pyshell#7>", line 1, …

Software Development python
Member Avatar for TrustyTony
0
187
Member Avatar for triumphost

I hooked a game's OpenGL.dll with my own glwrapper but this game uses two dll's.. It uses a wrapper of OpenGL32 and my hook is also a wrapper. So what I need: I want to know if these symbols point to the same functions.. http://i.imgur.com/eMZC5.png @28, @28, @28.. That means …

Software Development c++ opengl
Member Avatar for gusano79
0
136
Member Avatar for jigar23

I am trying to create a basic program with a user defined header file.I created the project in visual studio. #test1.cpp # #include <stdio.h> #include "multiply.h" int main() { int y; y=multiply(5,10); printf("%d\n",y); printf("%s","jigar"); getch(); return 0; } # multiply.h # int multiply(int a,int b); # multiply.c # #include "multiply.h" …

Software Development c visual-basic visual-studio
Member Avatar for jigar23
0
315
Member Avatar for techy23

Hi! i have to *create a game , purely in C Language*. How to start and how to end? what kind of game can i try to make? which IDE to use ? i cant run <graphics.> header file for graphics in any IDE. How to configure init() = (&gm, …

Software Development c ide
Member Avatar for WaltP
0
420
Member Avatar for Majestics

I am working on a project which require to add panel over another panel and repaint it. I can easily do in java. I am getting some problems in c# I have a form name : Registeration.Form I have a panel name : mainPanel I want mainPanel to display Registeration.Form …

Software Development
0
93
Member Avatar for dwhite12

I need to write a code that imports a list of files then goes through each file and rewrites only half the file. Cutting off the file at a key word. If I can make my code print the half I need I can make it write new files with …

Software Development python
Member Avatar for dwhite12
0
232
Member Avatar for AlBars

Hi I am using the following code to retrieve all the members of a specific active directory group. The code works but the problem is that the code returns all users in "distinguishedName" form which has a lot of extra info I don't need. I need the users to be …

Software Development dataset windows-server
Member Avatar for paulreg
0
2K
Member Avatar for osiron

Hey guys, I'm trying to create a iterative heapsort program and for some reason when I input 10 random numbers into the array, only 9 numbers are sorted. Here is an example of my input/output: Input: 45 15 2 44 30 83 30 86 66 49 // 10 random numbers …

Software Development java programming-construct
Member Avatar for Taywin
0
145
Member Avatar for kovidd

i have recently started learning java .... i completed "head first java" recently ....it is just an intro to java . now i am looking to learn other aspects of java so could you tell me which book to read next . Or should i jump straight into a example …

Software Development android android-development java php
Member Avatar for JamesCherrill
0
245
Member Avatar for Tinnin

Hi Daniweb community. This is my first post. I'm new to this programming lark and I've hit a snag with an exercise I'm attempting. EXERCISE Write a program that asks the user to type an integer N and compute u(N) defined with : u(0)=3 u(n+1)=3*u(n)+4 My Attempt: // Iteration #include …

Software Development c++
Member Avatar for Tinnin
0
117
Member Avatar for Ararat

I'm trying to compare the element pointed by an iterator to an integer, but so far i haven't had any luck in doing so. please correct whatever i'm doing wrong. Thank you. vector<int>::iterator y; for (int i = 0;i<n2;i++) { cin>>temp; cnt = 0; y = lower_bound(a.begin(),a.end(),temp); if (*y == …

Software Development c++ programming-construct
Member Avatar for Ararat
0
1K
Member Avatar for Ashenvale

hi, I originally made a 1 dimensional array but then modified it into 2 dim. Problem is, I used percentage to determine who has the most number of votes but variable newPresident only output Estrada J. which belong to array candidate[0]. When I tried printing the elements in percentage[], only …

Software Development java
Member Avatar for Ashenvale
0
370
Member Avatar for asthaaa

hey..m a student of last year of BCA...i m making my project on crime management system...i had made my database in ACCESS 2003 n using the C# language...in database i hd taken the auto number as datatype in my serial number column. bt when m accessing my code in C# …

Software Development
Member Avatar for hericles
0
116
Member Avatar for TarkiB

Hi there, I'm having trouble with floats in Java. My program accepts a number in the form of a float. The number typically has two decimals (but not always). It seems to work fine in most cases. For example, I could put in 54.67, and that number would be passed …

Software Development java
Member Avatar for JamesCherrill
0
443
Member Avatar for anand01

Hi all, How could we validate that given string should only contains alphabetic characters, pls share some ideas, thanks in advance

Software Development java
Member Avatar for anand01
0
108
Member Avatar for 3e0jUn

Can someone give a code snippet on how to 'chat' using the XMLRPC library in Python? Here's my server code: from xmlrpc.server import SimpleXMLRPCServer from xmlrpc.server import SimpleXMLRPCRequestHandler import os from os import access, path PATH = 'chatlog.$' class RequestHandler(SimpleXMLRPCRequestHandler): rpc_paths = ('/RPC2',) server = SimpleXMLRPCServer(("localhost", 8000), requestHandler=RequestHandler) server.register_introspection_functions() server.register_function(pow) …

Software Development python xml
Member Avatar for Gribouillis
0
526

The End.