132,726 Archived Topics
Remove Filter ![]() | |
[code=vbnet] Imports mshtml Imports SHDocVw Imports Microsoft.Win32 Imports System.Runtime.InteropServices Public Class Form1 Public Const BaseKey As String = "SOFTWARE\Microsoft\Internet Explorer\Extensions" Public Const SubKey As String = "{10954C80-4F0F-11d3-B17C-00C0DFE39736}" Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim reg As RegistryKey = Registry.LocalMachine Dim sk As RegistryKey = … Software Development vb.net | |
Dear All, In VB.net, (1) Place a textbox on the form with bigger size and multiline property TRUE (2) Allow AutoScroll of the form TRUE (3) Run the application (4) Resize the form in such a way that there should be vertical scrollBar along the form (5) Now click on … Software Development vb.net | |
hey, This might be naive, but how come this bit of code isn't working??? [CODE] int lc=0; read.open(filename_user.c_str(), ios::in); while(getline(read, linecount, '\n')) { ++lc; }[/CODE] Have looked through the internet, and this code seems to be fine, so what is it that makes it not work?? the output is always … | |
I've finished writing the program for my class and everything actually does what it's suppose to (well 99% anyway). I'm going to add snippets of the code that should help figure out the small glitch. What's happening is I can add x amount of elements to my stack and display … Software Development c++ | |
Hey guys. Im having some trouble with reading from a text file, into a class with strings and ints. Here is my code for my read file function: [code] ifstream infile; infile.open("books.txt"); if (infile.good()) { for (int i=0; i<=5;i++) { getline(infile, book[i].title); //string getline(infile, book[i].isbn); //string getline(infile, book[i].publisher); //string infile … Software Development c++ | |
Hi, I'm new in Visual Basic. Here's a few questions: 1. What is the difference between VB and VB.net 2. Any good ebook you guys recommend for VB and VB.net?? (I've learned Perl, C++ and Java) 3. If I want to learn VB.net do i need to learn ASP.net first? … Software Development asp.net ide perl vb.net visual-basic | |
Hi I'm using MS Visual Basic 2005 Express Edition and need to open an Excel File. I'm using the following code [code] Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim xlTemp As Excel.Application xlTemp = New Excel.Application xlTemp.Workbooks.Open("C:\Documents and Settings\TAP\Desktop\Post\Test.xls") End Sub … Software Development vb.net visual-basic | |
hey all, i'm a newbie to C++ programming and i'm having some difficulties implementing this singly linked list. what it has to do is accept: nickname email address number of kills and store them in a node of the linked list in order according to number of kills. here's what … Software Development c++ email linked-list | |
I'm fairly new to the C++ world (did some C work in the past years ago) so I'm a little rusty on some things :) I've got a small table in a database and I'm trying to grab some date information out of a UNIX EPOCH time stamp (all seconds). … | |
is it possible to use the Dev-C++ compiler with Netbeans? if so how, i can't find anything that explains it. | |
I am still very new to C++ and I'm a bit :confused: too. I am trying to make a program which takes the ascii string from a text file and converts it into binary. I have been able to come up with this code so far: [ICODE] #include <iostream> #include … | |
O.k i searched the site but didn't find anything related to my problem. all ive done is made a simple calculator using the "else if" command. I'll post my coding and compiler errors below. [code] #include <stdio.h> main() { int valid =0; char operator; float number1,number2,sum; printf("calculator\n"); printf("number\t operator\t number"); … Software Development c | |
I am getting the error message "segment _TEXT exceeds 64 k" when i am linking my program in borland turboc3 3.0 compiler. Can anyone suggest a remedy for this. I have tried reducing some lines of text from my program but to no help and now i can't reduce any … Software Development c++ | |
ok, so i've been working on this project for a long time now, a falling sand game, on and off. it works [I]almost[/I] the way i want it too... 2 problems, one i don't think this community will be able to help me with, the other, the optimization, i have … Software Development java java-swing | |
I'm writing a program for a contest (it's a demo, not the actual thing - so I'm not cheating by asking for help - and my question isn't directly related to the algorithm they want anyway). To submit a program, you send them the .cpp file, and they execute it … | |
A friend of mine recently asked me how one would convert a .bmp font to a .ttf. I said I was unsure, but it got me thinking to how I would code a program to do that. How would someone who wants to create a .bmp to .ttf converter go … Software Development c++ | |
As many of you that have worked with VB.NET know, and have been irritated by, you can't use a nonconstant variable to size an array. A simple workaround, reply if this is a problem, is to take input on the size of the array (Yes, I know you can't do … Software Development vb.net | |
Hello, I have an problem with updating a database after I have deleted or edited a database row in VB.NET. When I insert a new row it works well. When I delete I get the following error message: [I][COLOR="Red"]Update requires a valid DeleteCommand when passed DataRow collection with deleted rows[/COLOR][/I] … Software Development dataset vb.net visual-studio | |
This is the first program that i've written myself, i've been using one of those learn C++ in 21 days books and links from daniweb to learn. Using daniweb is a whole lot less boring than reading that crappy book. I'm just looking for a review, some advice, anything about … Software Development c++ | |
Hi. Im new to programming and to this website and i need help with one of my assignments. The instructions for the assignment are to "write a program that uses an array of student structures to answer inquiries. Using a menu-driven user interface, provide inquiries that report a student's score, … Software Development c user-interface | |
I am making a program to list all files in a listview (currently it lists the file name, file path, last access date, and size) in a specified directory, and I want the user to be able to select files using checkboxes, click a delete button, and see those files … | |
I just need some code that will return a string of the name of the current activated window title/name. I've spent almost hours looking for a simple example though... ================================================================ I've seen other people say to hook windows messages and listen for wm_activate, and others... I already have when to … Software Development python | |
I'm learning C and can someone tell me if I'm doing file input right? I know file and user input can be insecure because of buffer overflows. [code=C] #include<stdio.h> int main(int argc,char *argv[]) { FILE *file; char c; int lines = 1; if(argc == 2) { file = fopen(argv[1],"r"); if(file … Software Development c | |
Attached is the vb project that I came up with last night. I made this program for a game that I am making with requires constant chat between to computers. My problem: It works for the first message but when I try to send the second message it gives me … Software Development vb.net | |
I am writing a payroll program with inheritance for a school assignment that has the following requirments: [B]Expand the Employee Payroll program to include hourly based and salary based employees. This phase uses an array of employee objects, inheritance for different classes of employees, and polymorphism for salary computation. The … | |
here is my code, im still getting an error and had no idea what to do! what im trying to do is to make 4 function to get the total net of a certain employee, wherein I could loop and used the form as many times as the no. I … Software Development c++ | |
I am writing a chess game to familiarize myself with the C++ language. I have a Board class which contains a 2D array of pointers to Piece objects. I want to implement Board::operator[] such that the following is possible: [CODE]Board b; Piece *p = b[0][0];[/CODE] I could just return a … | |
hi, i had a few unix questions that I am not sure about the answers. if anybody can give a try... that would be great. 1. In sed, when you do pattern matching, the largest pattern is always matched first, left to right. True or False 2. The command tr … Software Development file-stream shell-scripting unix | |
Ok so here is the code I've written already, as well as the errors I get when I try to build. Please help me figure out what the problem is! [code=c] #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #define COMPANY "Rocklin Realty" #define TRUE 1 #define TAB 25 void … Software Development c | |
When we click on a combo box, there is a small triangle on the upper right of the combo box. When we click on the triangle, the Combo Box task box appears. How do we change the default name of the Display Member and the Value Member? The names of … Software Development vb.net | |
Ok, im pulling my hair out now...Im new to c++ but this one error is eluding me. Probably due to the fact that I'm still trying to understand pointers. Can anyone point me in the right direction to fix this error: [CODE]request for member ‘outputData’ in ‘*(employee**)(& emp)’, which is … Software Development c++ | |
I found an interesting question on the internet... An interviewer asked a programmer "How would you divide without using division or multiplication?" And the programmer came up with some weird bit shifting operation that did the division. Now, I'd like to make a program that does something similar, since-- int … Software Development c++ | |
In C,how to define an array which is of a length specified by the user? I tried writing a code, but outputs were strange. Sometimes first two elements are correctly displayed, sometimes only first. Other seems some random values (extremely large sometimes). May be the problem is in initializing the … Software Development c | |
hi all i have a program for reading/writing files using windows API this program works properly but i have problem with program speed the time of reading the file is good but it takes very more time for writing the file here is the standard source code that my program … Software Development api c++ file-system ide open-source windows-api | |
Please help me i try to display all instances of SQL Server in a combobox. Any help is greatly appreciated. | |
i found my file in vb 4/5 and i want to convert them into vb.net. How i can convert my vb project in vb version 4 / 5 to vb.net? or i must to use convertion tools? Software Development vb.net | |
Hi there guys! Can someone help me with the part add tour,when I run it, its always print the same line 2 times and then when I enter the data for guide tour which should be store in the memory, but when using the display method it didn't appear like … Software Development java | |
You can download most popular and new IT ebooks (team lib ebook,java ebook,.net ebook,C# ebook,linux ebook,jsp,c++,vb.net,etc.) FTP serverIp: [url="http://www.itebooks.net"]www.itebooks.net[/url] userName:test_itebooks passwd:bestitebooks port:2121 Download speed is 5k/s,Max user is 40. To obtain a more fast download account,please visit Web site [url="http://www.itebooks.net"]www.itebooks.net[/url] for detail. Just one month for free,Enjoy! ITeBooks Web site … | |
Some similar recent threads have reminded me that I've been wanting to ask this for a while. I would like to declare a 3-dimensional array that uses contiguous memory so that I can calculate memory offsets from the base array element ([ICODE]x[0][0][0][/ICODE]) and use pointer arithmetic to access any array … Software Development c++ | |
After several hours of searching the web and the student MSDN archive in Visual Studio.net i cannot figure out through the random blabber of sample codes how to do basic connections using TCP socket connections through a client and a listener. I got the jist that winsock had become outdated … Software Development vb.net visual-basic visual-studio | |
Hiya people been working on a new project.You guessed right a RSS reader for podcasts....I have been able to reach and read text from a sample code I found.But because I am quite a noob I couldn't figured it out how to work it for podcasts... Here is the code: … Software Development xml | |
So, this is what ive got. Im trying to create a depth first search algorithm, but the problem is ive never been taught this - i dont do programming at school or uni, i try to teach myself but i need help sometimes. Im using a fairly simple iterated method … | |
I am trying to write a simple "Hello World" to the console. I created an empty C++ project in Visual C++ 2008, and added this one file: [code=cplusplus] // main.cpp using namespace System; int main () { Console::WriteLine("Hello World"); return 0; } [/code] I get this error: [code] Error 1 … Software Development c++ | |
Hi there I'm having a problem with gcc The code compiles just fine ,but it doesn't run I have a printf next to main but it doesn't even do that The code is supposed to be an http server ,implemented using Berkeley sockets ,but that doesn't really i just want … Software Development c windows-server | |
Hello fellow programmers, This is a tutorial about using pointers in the C environment. Please, don’t hit the back button; pointers aren’t as hard as you think. In fact without pointers, most of us would be lost in our latter programming years. Even though pointers are for the experienced, as … Software Development c++ |
The End.