43,549 Solved Topics
Remove Filter ![]() | |
I have the set of code writen in vb 2010 to reformat a text file of ip address and give me ipsec command to block the ipaddress to my server. It takes a long time when I'm doing 1000+ Ip Address to block a country. This might not be able … Software Development vb.net | |
Hey, I've been working with a company which basically works with vb6 and now we're trying to re-write the applications they developed using vb.net any recommendation for where i should start searching , what we're thinking of is to create application programmatically and then loading forms from access then looping … Software Development microsoft-access vb.net visual-basic | |
Does anyone know how to do this? I attached a program that collects all the command line arguments into a map container noting how many times each command line argument occurs. Now I want to sort this map of information by loading a vector with iterators that point to each … | |
Code a decision using an IF, THEN, ELSE statement (2 branch decision) Code a one branch decision using a null else statement The following is my answer: [CODE] program Negatives; {$APPTYPE CONSOLE} uses SysUtils, ourcrt; var balance, posNeg:integer; begin randomize; writeln ('Generating your bank balance'); writeln ('Please wait .....'); sleep … | |
Ok lets say i have the following xml file <Users> <User> <Name>Jonathan</Name> <Tests> </Tests> </User> <User> <Name>John</Name> <Tests> </Tests> </User> </Users> Im writing a C# program, and what I want is to search for a specific name(eg Jonathan) and add elements and values to that specific tag in my xml … Software Development c# file-system xml | |
Hello, Can we perform bulk insert for SQL data? I have the complete SQL data in text files. There are multiple tables and the corresponding text files. I tried to do the bulk insert but always got some new error. Please help me to get an answer. My code Imports … Software Development mssql open-source sql vb.net | |
i have 1 text box and 1 button in my application text box have items like this 24.192.72.54:27799*71.163.168.187:40807*93.31.71.187:2541* 24.140.130.144:49251*76.15.157.93:16811 now what i want to do? when i press button then txt change in to this format , like this 24.192.72.54:27799 71.163.168.187:40807 93.31.71.187:2541 24.140.130.144:49251 76.15.157.93:16811 some when can help me? please Software Development visual-basic | |
All, I usually write console apps, but now I have to do a forms app. Hopefully that will explain the sillyness of the following question: I created my project in NetBeans and NetBeans automatically generated a class with the project name, and this class has a main() method. Then I … Software Development java | |
Good Afternoon, I'm a little difficulty with this little program. The error is argument of type int (*)[5] is not incompatible with parameter of type double. I'm getting this error on swapFour(&a, &b); Here is the whole program code double a =102.39, b=201.59; double c=30.99, d=48.99; double e=55.21, f=95.35; //call … Software Development c++ | |
I am doing a project in class. We have to make a program that scans Two Postive Integers, one at a time, using try-catch block. Can some one please help me get started? Software Development java | |
Hello. I'm doing an exercise whereby I need to test if a word is a palindrome. My code for the function is as follows: #include "test_palindrome.h" using std::string; bool is_it_palindrome(const string s) { bool palindrome = true; for(string::const_iterator iter = s.begin(); iter != s.end(); ++iter) { string::const_reverse_iterator rit = s.rbegin(); … Software Development c++ | |
Hi, I encounter an assertion error on my thesis while trying to write a line to a file. The related code is pasted below. The funny thing is that this code runs maybe 5000 times and i get the error at 5001 th time. Thank you very much for any … Software Development c | |
So I've started learning makefiles today for a project I've been working on. The project uses OpenGL and GDI. I decided to dive right into make files and so far, everything compiles but at the very end, it gives a bunch of undefined references. Thing is, when compiled in codeblocks, … | |
Hi, my daughter is struggling a bit with maths and logic and I was thinking of doing some programming with her hoping that a different approach to the field might help a bit. I've had some look at Java syntax and I think I should be able to write some … Software Development android java socket-programming | |
Hi everyone. This regards exercise 5-6 of "Accelerated C++". I am asked to rewrite a function so that instead of using erase() to remove an element (of a failing student), I should copy the elements (of the passing students) to the beginning of the vector and then use resize() to … Software Development c++ | |
This seems like a pretty basic question, but I'm still learning Java and all the nuances of OOP. I have several classes in my program and they all need access to the same ArrayList (the one with all the data in it.) What's the best way to share that list? … | |
Hi every1 ! i want to make a search through a datagrid using a textbox. i want the search to be like in the cell phone, i.e whenever u type an alphabetfor e.g P it retrieves all names with P. i just want the textbox to search in one column … Software Development vb.net | |
i have this connection string <connectionStrings> <add name="Tendering_Pro" connectionString="Data Source=HABOUSH-PC\SQLEXPRESS;Initial Catalog=TenderingProgram;Integrated Security=True" providerName="System.Data.SqlClient" /> </connectionStrings> <system.diagnostics> AND THIS MY CLAAS : Imports System.Data Imports System.Data.SqlClient Imports System.Configuration Public Class BuyNewTender Private conn As SqlConnection Private _MSG As String = "" Private _ProjectTenderingNO As String = "" Private _TenderingNo As String … Software Development open-source vb.net | |
**Following is the code snippet to print the series:-** *111 211 311 121 221 321 131 231 331 112 212 312 122 222 322 132 232 332 113 213 313 123 223 323 133 233 333* **But there's some mistake in the code and it gives ArrayIndexOutOfBoundsException.I'm not able to … Software Development java | |
How can I terminate resources in a safe way when JFrame is about to close? - If I put terminate() in the a finally block it runs before windowClosing(). - If I put terminate in windowClosing() it can't be accessed from an inner class. I am aware that I shouldn't … Software Development java | |
Hi, I am wondering if there is a somewhat simple way to output extended ascii values in c. Basically I am thinking actually about unicode characters, stored in ints. Is there an easy way to do this, or would it require a custom gui console? | |
Hey! I've recently come back to C++ to tackle another project, but I've run into a problem I can't figure out. #include <iostream> #include <string> #include <fstream> #include <direct.h> using namespace std; int main() { string variable = "AwesomeName"; mkdir ("test"); ofstream write ("test\\" (variable+".txt").c_str() ); // this the place … Software Development c++ file-system | |
Hi there experts, I would like to know that is there any way to filter data in vb6 (data grid, flex grid or etc) as we do in excel spreadsheet? If no, can anyone suggest how to filter records in data grid pls? I'm nw to this. Please help anyone. … Software Development visual-basic | |
I have 3 tables in which one column name is common for all i.e PRNO .I want to write SQL query to select everything from Table1 where PRNO is 500, Table2 where PRNO is 500 , Table3 where PRNO is 500 . “Select * from Tab1,Tab2,Tab3 WHERE PRNO=500” Getting Error … Software Development sql visual-basic | |
I'ma noob and need some help from the pros. For school I gotta make a program to convert numbers into roman numerals 1-10 and return an error if its not 1-10. Got it all pretty much figured out but I want to know how to have it where if someone … Software Development java java-swing | |
Self-teaching Java, I am following a video tutorial about simple windows. Encountered a warning error using the example provided in the tutorial. Here's the piece of code. [CODE=Java]import java.awt.Frame; import java.awt.Label; import java.awt.AWTEvent; import java.awt.event.WindowEvent; public class HowdyByeWindow extends Frame { public static void main( String[] args ) { new … Software Development api java video windows-api | |
Hello Everyone. I am having trouble creating new objects in a loop. I am using: DataType *Ptr = new DataType (); I use this in the beggining of the loop then end the loop with: delete Ptr; Each constructor and destructor gets called each time the loop is executed.... but … Software Development c++ | |
-->>Hope all is well... -->>I'm trying to print all records in my list view on my form I went through the tread http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/431714/print-from-mshflexgrid-in-vb-6.0 and tried a couple of eamples it was cool and nice but what comes difficult to me is that my form has List View and not the … Software Development listview visual-basic | |
package mypackage; import java.util.Scanner; public class twinPrimes { public static void main(String[] args){ int userNum = 0; int attemptCount = 0; while (userNum < 3){ System.out.println("Please enter an integer greather than three."); Scanner in = new Scanner(System.in); userNum = in.nextInt(); attemptCount++; if (attemptCount == 3){ System.exit(1); } } int count … Software Development java | |
Hello, iv looked around google and have found it is possible to put an applet into a jframe. The problem i am having is that my applet is to be hosted online, what i want is to take the applet that is online and display it from a swing or … Software Development java java-swing | |
Hello, I am trying to make a variable (name) so it only accepts alphabet characters (eg. DaNiEl) not $@@4234. Below is an example of the code i'm trying to use. I have tried a few functions, to no avail. Can someone please post the answer (in code form). Much Appreciated. … Software Development python | |
Hi, this is my basic program for an assignment but I can't figure out why I am not getting the desired output for the grade printed and why there is a repetition of the Enter Student Name at the end before the program loops again. I have also included a … Software Development java | |
Can anyone explain how to remove an item from a listvuew. Ive tried: ListView6.SelectedItems.Remove() However that doesn't work, it has the little blue line underneath it. Does anyone else have any ideas? Thanks | |
Hi Guys, **<-- Newbie Here!** I seem to have an issue with an INSERT INTO statement when trying to add some textbox data into a DataSet and then update the backend table called 'cashOrders' in a Access Databse. The Following code is being run from the 'Save Button' private void … Software Development dataset microsoft-access | |
Pls let me know how to add a record in a database using a dataset. vidhya[COLOR="green"][/COLOR] | |
I noticed that when equals() is used to compare between two String objects it works fine. But when I compare two StringBuffer objects or two StringBuilder objects or mix of String and Builder and Buffer, equals() doesn't work even though I give same string value to the two objects being … | |
I have an Access database that I upsized with the wizard wishing to continue using Access for the Front End. I want to be able to connect to the SQL database without having each computer setup for the DSN. I added this to the autoexec macro. Function autoexec() On Error … Software Development visual-basic | |
Hi all, I was looking for a way to execute windows batch file from java code, and I was able to do this with the following code. [CODE] Runtime rt = Runtime.getRuntime(); Process proc = rt.exec("cmd /C " + "path" +exec.bat"); [/CODE] The batch file refers to some other files … Software Development java | |
import java.util.*; class SampleA { } class SampleB extends SampleA{ } class SampleC extends SampleA{ } class VectorDemo { public static void main(String r[]) { Vector<SampleA> v = new Vector<SampleA>(); v.add(new SampleB()); v.add(new SampleC()); SampleC rect = v.get(2); } } The output says "Incompatible types. Found SampleA, required SampleC. SampleC … | |
I've been trying to do this for some time. I can do it with a vector but with a const void*, it crashes badly! My bad code: Bitmaps::Bitmaps(const void* Pointer, int Width, int Height, uint32_t BitsPerPixel) { Pixels.clear(); memset(&Info, 0, sizeof(BITMAPINFO)); width = Width; height = Height; size = ((width … Software Development c++ | |
Hello, I have 3 combobox and I want to find them in my table "class" and retrieve the ID. I am currently having trouble with the following code: public void retrieveClass(String time,String stage, String teacher){ Connection con = null; ResultSet rs = null; java.sql.PreparedStatement st = null; Properties conProps = … Software Development java | |
I am new to programming.I have written this code which arranges the words in reverse order i.e., if input is "I Am Sad" output should be "Sad Am I" but am not able to get where i am going wrong so plz help me. here is the code #include<stdio.h> #include<string.h> … Software Development c | |
To print on the same line Python2 uses print item, Python3 uses print(item, end=' ') Is there a way to make it work in both versions? Software Development python | |
I have made one program that work on hash map. I want to do one thing. All the tuples(row) with defined quasi identifier location having value >=k will be moved from map m1 to asMap and it also removed from m1. So at last i am printinf the output of … Software Development java | |
Hi, Tq for ur support before.... I got some stuck here regarding how to make my text file write a new line for each input from textbox.. E.g :- I have a one textbox1 , when i insert any value in textbox it will save into my textfile. .. but … Software Development vb.net | |
i use this Update code to update my record but i get this error msg : Dim con As New SqlConnection con.ConnectionString = My.Settings.TenderingSysConnectionString con.Open() Dim cmd As SqlCommand = con.CreateCommand() cmd.CommandType = CommandType.Text cmd.CommandText = "update BOQDetailEntry set BOQDetailEntry_ID=@BOQDetailEntry_ID, ProjectTenderingNO=@ProjectTenderingNO,BOQSection=@BOQSection,Part=@Part,BOQITEM=@BOQITEM,BOQItemNo=@BOQItemNo,Description=@Description,Unit=@Unit,BOQTY=@BOQTY,ReferenceDrawing=@ReferenceDrawing,ReferenceSpecifications=@ReferenceSpecifications where BOQDetailEntry_ID=@BOQDetailEntry_ID" ' BOQDetailEntry_ID=@BOQDetailEntry_ID cmd.Parameters.Add("@ProjectTenderingNO", SqlDbType.NVarChar, 50) cmd.Parameters.Add("@BOQSection", SqlDbType.NVarChar, … Software Development vb.net | |
Hey guys I'm new to programing and I made a program to solve quadratic formula but it doesn't work with imaginary numbers when the number is negative I get something like this -1.#IND. What can I add or adjust in my code to help get the program to show imaginary … Software Development c++ | |
I have the user input a sentence (example " Hello this is some jello "). I already have that complete by having a method to do this. What the method does is take a user input (.nextLine) then stores the words of the sentence into String[] words and I use … Software Development java | |
Hi Everyone, I have this problem whit my code : ExecuteReader: Connection Property has not been initialized and i don't know why This is my code: Dim maximo As Integer Try oConn = New OleDb.OleDbConnection(con) oConn.Open() ' abrimos la base de datos oComn = New OleDb.OleDbCommand("Select ID_ISSUE From ISSUE") oRsRead … Software Development vb.net | |
The purpose of the program is to take 4 user inputed integers (days, hours, minutes, and seconds) and output them as a floating point doubles to show the maximum amount of time possible for each. For example I input 2 days, 10 hours, 45 minutes, 20 seconds and it outputs … Software Development java |
The End.