132,725 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Jagruti22

"Error in Line 4- System.NullReferenceException: 'Object reference not set to an instance of an object." Private Sub btnsearch3_Click(sender As Object, e As EventArgs) Handles btnsearch3.Click Dim vSearch As String = InputBox("Enter Employee Id to search the details:") If vSearch <> "" Then cmdSearch.CommandText = "SELECT * from Employee_Details WHERE Emp_Id …

Software Development vb.net
Member Avatar for xrjf
0
452
Member Avatar for omi4u

Hi All Brothers I am working on ERP system and i need one help I wrote code for Datagrid auto complete. this code is working perfect but it only showing one Column record from database what i need is i want first column is to autocomplete as i did and …

Software Development dataset vb.net
Member Avatar for rproffitt
0
593
Member Avatar for Mike_63

Hello, I need help on getting solution for the below python code. The code gives the required output which is that it dispaly number of prime number that user wants. if user inputs 4 Actual Output: 2, 3 , 5 , 7 The main question is that I do not …

Software Development python
Member Avatar for vegaseat
0
637
Member Avatar for Kam_1

Hi, I have the program, which is a traffic simulation, and I have a few linked lists in it. I'd like to ask you what is the easiest way to check if I don't have duplicats in them? The code which runs it looks like that: public static void main(String[] …

Software Development java
Member Avatar for JamesCherrill
0
287
Member Avatar for catastrophe2

I have a table that contains some cubes with servers and active status (see attached image): note: CUBE1 is repeated intentionally. The idea is the same cube is getting synced from the same server 1 as a data source (process_server) onto different target servers (query_server; say server2 is in region …

Software Development dataset sql windows-api
Member Avatar for pinel
0
1K
Member Avatar for SaRaVaNaN_2

import csv import xlwt import os import sys #import openpyxl # Look for input file in same location as script file: inputfilename = os.path.join(os.path.dirname(sys.argv[0]), 'book2.txt') # Strip off the path basefilename = os.path.basename(inputfilename) # Strip off the extension basefilename_noext = os.path.splitext(basefilename)[0] # Get the path of the input file as …

Software Development file-system python
0
357
Member Avatar for Kerdon

I'm trying to make this queue program for school to take the next packet out of my queue (therefore delete it) in the queue function : struct packet_t *queue_retrieve(struct queue_t *queue) in line 73. I know that i have to use my write and read but i fail to understand …

Software Development c queue
Member Avatar for rproffitt
0
603
Member Avatar for SharonP123

Hi, I'm working as a Software Engineer. You can imagine, how will be my work? I used to work when I'm in my home too, especially, during the month ends. The problem is, I'm not able to access my internet during the day time .there will be a connectivity problem. …

Software Development
Member Avatar for rproffitt
0
335
Member Avatar for DeanMSands3

Background: I'm looking to program and sell (on the Mom & Pop circuit) some internet-enabled devices. They need to be pre-configured in-store by a non-techie. The device will come online with a DHCP address. I need to find it, send it customer-specific configuration changes, then wrap it up for the …

Software Development
Member Avatar for rproffitt
0
2K
Member Avatar for JModak

Getting error when showing data in list view, please help me..... Error :* Cannot add or insert the item '10-07-2018' in more than one place. You must first remove it from its current location or clone it. Parameter name: item* I use Vb.net 2010 visual basic sql server 2008 r2 …

Member Avatar for JModak
0
643
Member Avatar for Braden_1

I would like to create a Microsoft Access database and integrate it into my VB.net application. I am also hoping to distribute this application to others. My concern though is whether or not users who download my application will also need Microsoft Access in order for the database (and app) …

Software Development microsoft-access vb.net
Member Avatar for rproffitt
0
397
Member Avatar for omi4u

i have a mssql datagridviewer. i only need when user load the form..they must get empty datagrid...data only show when they search any item or add item....i worked on search and add but i am confused on load event ....please help with code

Software Development mssql vb.net
Member Avatar for adam_k
0
330
Member Avatar for Braden_1

I have a text file with the following contents: Andrew Law 32 6'1 123 Pounds Tom Harris 19 5'5 180 Pounds Randy Poffo 45 5'3 141 Pounds Now on my form i have a listbox and four labels. What i would like to do is have the listbox show only …

Software Development vb.net visual-basic
Member Avatar for Reverend Jim
0
868
Member Avatar for Sergei_1

I have questions: 1) Program to get input from user till 'z' or 'Z' is inputted the program will check for the chars, and print (new line) small chars (new line) big chars (new line) numbers [without 'z' or 'Z'] can't use variables. only Stack. example : input: ASdf154sdgdf123vcvbz Small …

Software Development assembly
Member Avatar for rproffitt
0
651
Member Avatar for Divinedar

I have a worksheet of about 388 items that each item is exported into a template worksheet that is created to itemize each item. It creates the worksheets but I can't get it to stop looping at the line of code in bold comments icons. The line that it stops …

Software Development microsoft-office vb.net visual-basic
Member Avatar for xrjf
0
589
Member Avatar for sabrin4

Initially, I've a simple program to print out the whole output to the console. **Initial Code to display output in the console only** import os, subprocess print("1. Before") os.system('ver') subprocess.run('whoami') print('\n2. After') **Output in console** 1. Before Microsoft Windows [Version 10] user01 2. After Then, I decided to have a …

Software Development file-system microsoft-windows python
Member Avatar for rproffitt
0
520
Member Avatar for Pk11

Hi, I have two problems with application I write in Java. Now it looks like that: import java.awt.*; import javax.swing.*; public class Main{ public Main() { JFrame frame = new JFrame(); frame.setSize(1200,900); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); JPanel background = new JPanel(new GridBagLayout()); background.setBackground(Color.lightGray); LeftPanel lp = new LeftPanel(); background.add(lp, new GridBagConstraints(0,0,1,3,3.0,1.0, GridBagConstraints.WEST, …

Software Development java java-swing
Member Avatar for JamesCherrill
0
438
Member Avatar for Kam_1

Hi, I'd like to ask you a few questions about a things which don't work right now in my (very simple) graphic interface. The code I have: import java.awt.*; import javax.swing.*; public class Simulation{ public Simulation() { JFrame frame = new JFrame(); frame.setSize(1200,900); frame.setTitle("Traffic simulator"); frame.setResizable(false); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); JPanel background …

Software Development java java-swing
Member Avatar for JamesCherrill
0
552
Member Avatar for ABaileyRush92

Hi i am new to java and just learning as i go , I the basic of calling mothod arguments and so forth but i am having difficulties calling my array method so it would come up to the terminal to the user when the code is running . i …

Software Development java
Member Avatar for JamesCherrill
0
463
Member Avatar for omi4u

Dear all I am working on a project for my customer . I wrote code to search items from sql using vb.net Now my code working fine.....when I search data using itemid it show me data in all related textboxes but not in datagrid here my code Dim connection As …

Software Development vb.net
Member Avatar for SeanDevoy
0
508
Member Avatar for Isaiah_4

You must then use a loop (for or while) to find the sum of all the numbers in the geometric sequence of 3 less than N. The geometric sequence of 3 looks like this 1, 3, 9, 27, 81, 243, ... where you start with the number one and multiply …

Software Development python
Member Avatar for vegaseat
0
462
Member Avatar for rollercoaster

Hi, does anyone know how to pass variables between functions in C so one function can recognise the variable passed from another function. one function knowing from another function like length = 0; while (length <= 5) { length ++; } return(length); getting the value of the length from the …

Software Development c
Member Avatar for Manali_2
0
4K
Member Avatar for purplegerbil

I am writing an application which will process data over night. When it's finished a report is printed out. I am wanting the report to be printed to 3 different printers on the same network. Is it possible to do this? All three printers are installed on the pc. Thanks …

Software Development visual-basic
Member Avatar for TwoFeetDown
0
3K
Member Avatar for cambalinho

i create the read(...) function for read to variables. but i need too the read()(without arguments) for press enter before continue\exit. void read() { //wait if the enter key is pressed: cin.ignore(); cin.get(); } template<typename first_t, typename... rest_t> void read(first_t &first, rest_t... rest) { std::cin >> first; read(rest...); //function is …

Software Development c++
Member Avatar for cambalinho
0
2K
Member Avatar for cambalinho

i'm trying using the GNU compiler with command lines( using the ShellExecuteEx()). when i do: string FileName1="C:\\Program Files\\mingw-w64\\x86_64-7.2.0-win32-seh-rt_v5-rev1\\mingw64\\bin\\x86_64-w64-mingw32-g++.exe"; run(FileName1,"-c \"C:\\Users\\Cambalinho\\Documents\\CB\\testfolder\\bin\\Debug\\test2.cpp\""); the object file is created. these line creates the exe: run(FileName1,"-o C:\\Users\\Cambalinho\\Documents\\CB\\testfolder\\bin\\Debug\\test2.exe C:\\Users\\Cambalinho\\Documents\\CB\\testfolder\\bin\\Debug\\test2.o"); (tested) but the exe have some dependencies... so seen the Code Blocks: x86_64-w64-mingw32-g++.exe -Wall -g -std=c++14 -c …

Software Development c++ windows-api
Member Avatar for cambalinho
0
2K
Member Avatar for simm3

Hello everybody, I want to convert python to c but ı did not find any converter. Is it possible to convert

Software Development c python
Member Avatar for Reverend Jim
0
346
Member Avatar for Sergei_1

I have to get from user up to 8 letter to string, and print the string in reverse. There is my code : STA SEGMENT STACK DB 100H DUP (0) STA ENDS DATA SEGMENT MSG1 DB 'ENTER STRING (Maximum is 8) : $' MSG2 DB 'REVERS IS : $' ISTR …

Software Development assembly
Member Avatar for rproffitt
0
1K
Member Avatar for Aild

Hi all, I'm having a little problem with array and some "unqualified-id" problem. I've created gazillions (okay, maybe 80) arrays before but I had never encountered such problem. Especially with static arrays. [CODE] #include <stdio.h> #include <cstdlib> using namespace std; int main() { // with addition of buffers for 3x3 …

Software Development c++
Member Avatar for Andy_20
0
13K
Member Avatar for PM312

Hi, I Have below table I want all rows with all coloumn from below table where ActCode is 1162828 and sum of DocAmount for DocNo. i.e where the docNo is repeated i want only one row with sum of amount of all repeated rows. ** "Select *, Sum (DocAmount) from …

Software Development sql vb.net
Member Avatar for SeanDevoy
0
3K
Member Avatar for Yoni_2

hello. how can i print out in textbox a void * value ? here is the code: uintptr_t offsetFromBuffer = (uintptr_t)internalAddress - (uintptr_t)&buffer; void * healthDecAddress = (void*)(currentChunk + offsetFromBuffer); richTextBox1->Text = healthDecAddress; // how can i do it right ?

Software Development c c++
Member Avatar for Yoni_2
0
415
Member Avatar for COKEDUDE

I am doing a team project with some people that prefer Linux and some people prefer Windows. We are also not allowed to share code for security reasons. One thing the Windows people love to whine about is a way to hold the window open. So the way they usually …

Software Development c
Member Avatar for liammasson33
0
2K
Member Avatar for networkZombie

Ok so I have been trying to do project euler problem 1 which finding the sum of all the multiples of 3 and 5 that are less than a thousand. i dont know why my program is not working. here's my program - [code=c++] #include <cstdlib> #include <iostream> using namespace …

Software Development c++
Member Avatar for memson
0
523
Member Avatar for Petcheco

Hello, friends. I did the fourth challenge on Project Euler and I'd like to know what I can do to improve the efficiency of my code. Right now it takes 1.562s to run and the source code is as follows: #include <iostream> #include <string.h> using namespace std; int Number = …

Software Development c++ mathematics
Member Avatar for memson
0
418
Member Avatar for COKEDUDE

I am trying to replace a string in a function with double pointers. I would like to see this change back in main. What am I doing wrong? These are the warnings my compiler gave me. $ gcc *.c -Wall main.c: In function ‘replacevalue’: main.c:10:12: warning: passing argument 1 of …

Software Development c
Member Avatar for nullptr
0
2K
Member Avatar for Ilia_2

Hi, I have a C++ program : // ConsoleApplication14.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <list> #include <queue> #include <vector> #include <string> using namespace std; class RectangularVectors { public: static std::vector<std::vector<int>> ReturnRectangularIntVector(int size1, int size2) { std::vector<std::vector<int>> newVector(size1); for (int vector1 …

Software Development c c++ queue
Member Avatar for Nutster
0
604
Member Avatar for cppgangster

Hi I am trying to get windows positioned in specific order as show below ![desired.PNG](/attachments/large/3/6447240b1491d04046fa904f31659f9b.PNG) but I am unable to get and get always this ![wrong.PNG](/attachments/large/3/71f4b92c4f40a6afeeab7e3c2f136526.PNG) the code below is shown HDWP cmdWnds; cmdWnds = BeginDeferWindowPos(col.size()); for (int i = 0; i < col.size(); i++) { if (i == 0) …

Software Development c c++ windows-api
0
341
Member Avatar for killerqb

I know an AVL Tree guarantees a time of log(n), but what is the time cost of the actual re balancing of the tree and why is this ignored?

Software Development c++
Member Avatar for Herbert_3
0
499
Member Avatar for PM312

I am traying to filter Datagrid view based on user type in TbxGlCode (TextBox) Initialy Datatable is populated from SQL table to TempTable (DataTable) getting error at **runtime** at below line Dim Rows As DataRow() = TempTable.[Select]("Code like '%" & VerCode & "%'") Exception Unhandled **System.Data.EvaluateException: 'Cannot perform 'Like' operation …

Software Development vb.net
Member Avatar for tinstaafl
0
17K
Member Avatar for JModak

I create a project on vb.net 2010 and SQL server 2008r2 I showing a report in listview report am show fine and error free. But now I want to add a sub total column every end of the category. How it is possible please help me sir Please see the …

Software Development listview vb.net visual-basic
Member Avatar for Santanu.Das
0
456
Member Avatar for sgw

When I try to display the address of a char type variable, I don't get the normal hexidecimal address, but some strange symbols. I don't have the same problem with int or string, etc.. Example: char x='#'; cout << &x; The output of this is: #( ( What's the explanation?

Software Development c++
Member Avatar for sgw
0
570
Member Avatar for restrictment

Pretty neat text-based RPG that I made. Currently my first game.

Software Development c++
Member Avatar for emeraldamerican
0
6K
Member Avatar for browneyeguy25

I trying to write a code that reads a set of integers and then finds and prints the sum of the even and odd integers. The numbers will be read in from the user via the cin statement. You do not know how many numbers the user may enter. When …

Software Development c++
Member Avatar for Reverend Jim
0
441
Member Avatar for s_ghonem

i am using zk sdk to connect to fingerprint i tried Connect_Com(1, 1, 38400) BaudRate is the same in the application and the fingerprint i am using com1 the deviceid =1 but the connection between fingerprint and pc failed do u have an idea about configurations needed to the serial …

Software Development c#
Member Avatar for Rupesh_3
0
11K
Member Avatar for it@61@sec

I'm using Gambas as my language.. :-) Now I have a problem getting some values from an XML document. I'm using xml.gb as my "plugin". The XML document is: "<ns1:Event> <ns1:Number>1</ns1:Number> <ns1:Name>Home Team - Away Team</ns1:Name> <ns1:Status Id="100">End</ns1:Status> <ns1:Results> <ns1:Result Id="0" Name="Result">2</ns1:Result> <ns1:Result Id="1" Name="Fulltime">2</ns1:Result> <ns1:Result Id="2" Name="Halftime">0</ns1:Result> </ns1:Results> </ns1:Event>" …

Software Development xml
Member Avatar for Joris Claassen
0
2K
Member Avatar for babi.meloo

I need to create a class that represents one crayon of a particular color and height(length). Then, I need to design an applet that lets me draw a box of different colored crayons. This is what I have so far: **CLASS:** import java.awt.*; public class Crayon { private final int …

Software Development java
Member Avatar for Paul_65
0
2K
Member Avatar for sabiut

hi, i am trying to read from a text file and store the data in an array but i don't know how to get started with my code. can someone please get me started here. i have start with the code for locating the file, but i am having difficulty …

Software Development file-system vb.net visual-basic
Member Avatar for LordPike
0
13K
Member Avatar for JustinRunyon

Hello, have the following program code: #include <stdio.h> #include <stdlib.h> #include <ctype.h> int main (void) { char c; while( (c = getchar()) != '\n') { putchar(c); } putchar ('\n'); return EXIT_SUCCESS; } At the moment he reads in entered characters and outputs them again. I should [write](https://prowritingservice.com/write-my-essay/) it so that …

Software Development c++ encryption
Member Avatar for nullptr
0
251
Member Avatar for xuele91

Visual studio cannot start debugging because the debug target 'C:\users\lizane\desktop\project\peek-ture\peek-ture\bin\x86\debug\peek-ture.exe' is missing. please build the project and retry, or set the outputpath and assemblyname properties appropriately to point at the correct location for the target assembly. How to solve this? ( Using Microsoft Visual Studio 2008) thank you

Software Development assembly visual-studio
Member Avatar for Caroline_4
0
2K
Member Avatar for Shkelzen_1

I need to Retrieve the values from a XML file i have seen many example but none of them is like the XML I have. My XML look like this <component> <section> <code code="31011" codeSystemName="Codifica Interna Laboratorio" displayName="Etanolo (urine)"> <!--TRASCODIFICA ANALISI NON DISPONIBILE--> </code> <text> <paragraph> </paragraph> <table> <thead> <tr> …

Software Development vb.net visual-basic xml
Member Avatar for xrjf
0
576
Member Avatar for gahhon

Hi, I'm using NetBeans with Java. I have create a JFrame with some checkboxes and a button to open browser go to the specific URL based on the checkboxes' values. But how do I auto-login/auto fill the username and password textbox then trigger the login button? Please kindly advise. Thanks.

Software Development java java-netbeans
Member Avatar for rproffitt
0
481

The End.