132,726 Archived Topics
Remove Filter ![]() | |
Hello Guys, please i need your help: does OpenFileDialog control have a restriction on the maximum number of files it can upload? i'm curreently working on an application that uploads files to an FTP Server. the codes work perfectly to upload up to 80 files but if i try to … Software Development file-stream vb.net | |
Hi All, After compiling below code , I am getting below error. error: cannot convert a* to b* in assignment. it seems to be assignment doesn't work with pointers . Can anybody throw some light on this? i tried to use unique_ptr by transfering the ownership from a to b … Software Development c++ | |
| |
Hi, **Python script** from xml.dom import minidom doc = minidom.parse("wind7.xml") Ts = doc.getElementsByTagName("TimeStep") for Ts in TimeStep: Part = TimeStep.getElementsByTagName("Particle")[0] for Part in Particle: Pcid = Particle.getAttribute("Nr") Lat = Particle.getAttribute("x") Long = Particle.getAttribute("y") print("Pcid:%s,Lat:%s,Long:%s" % (Nr,x.firstChild.data,y.firstChild.data)) I have written this python script to extract XY data, but am getting lot … | |
Hi Dw. Has anyone worked with TCP/IP socket in Windows Phone? I'm using Windows Phone 7 and I would like my app to communicate with my server which my client will send some data to the server and the server will also send some data to the client, It's more … Software Development smartphone vb.net | |
![]() | heY, I need help.... I want to know about concept of combination between software and database on enterprise level software. Recently I develop software using vb.net. Then I install mysql and connect these two software. But this isn't the way enterprise level software. Ex : In Quick Book Accounting package … Software Development vb.net |
This snippets contains a python program to find a shortest solution to the problem of the farmer who whishes to cross a river. The boat can only contain two things, including the rower. The farmer comes with a wolf, a duck and a bag of corn, and he can't leave … | |
![]() | I want to know about develop vb.net project by LAN users... I Find about this internet and I couldn't find..... Please give me steps to do that .... Software Development vb.net |
Good morning, I have 2 client applications which do the same thing. The first app which is written in VBA(MS ACCESS) and the other is ASP.Net. We can have multiple items for a client so we use a transaction id. When the access application starts a new transaction the app … Software Development microsoft-access visual-basic | |
Below is my code function getWorkingDays($startDate, $endDate){ $begin=strtotime($startDate); $end=strtotime($endDate); if($begin>$end){ echo "startdate is in the future! <br />"; return 0; }else{ $no_days=0; $weekends=0; while($begin<=$end){ $no_days++; $what_day=date("N",$begin); if($what_day>5) { $weekends++; }; $begin+=86400; }; $working_days=$no_days-$weekends; return $working_days; } } $beginday=date("2016-04-01"); $lastday=date("2016-06-30"); $nr_work_days = getWorkingDays($beginday,$lastday); echo $nr_work_days; ?> above code is giving count … Software Development php | |
I have a project that uses DirectSound to play streaming sound. I use SetThreadpoolWait to get a threadpool callback every time the notification (AutoReset) events are signalled. (To fill the streaming buffer with more audio). The new Win7 threadpool API requires you to use SetThreadpoolWait to schedule a new wait … Software Development c++ microsoft web-design | |
Hi, I am trying to plot live data reading them from a txt file. The interesting thing is that it works fine without the animate function and I am not sure what is going on when I introduce this function. The code is appended below. from datetime import datetime import … Software Development python | |
I have the following: string oledbcmd = ""; string constr = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Excel.xls;@Extended Properties='Excel 8.0;HDR=Yes;"; oledbcmd = "Select top (1) * From [CLIENTES$] ORDER BY id desc"; OleDbCommand oconn = new OleDbCommand(oledbcmd, con); OleDbDataAdapter sda = new OleDbDataAdapter(oconn); DataTable data = new DataTable(); sda.Fill(data); It fails. What is wrong with … Software Development microsoft-office | |
I'm currently reading a huge Python book. I've just written my first Python code (from this book). It's [CODE]import sys print(sys.platform) print(2 ** 100) x = 'spam!' print(x*8) [/CODE] It works fine and I get the results I want. The only problem I have right now is running it off … Software Development python | |
Hi All, Below is the code of implementation of aggregation in c++. In this code class bar object will be contained in class a but class a won't act as a owner of class bar and due to this bar object is deleted after class a's life time ends. Now … Software Development c++ | |
Help me please! below is a part of the code which causes the error. int B[996]; for (j = 0, k = 0; j < (N / 6); j++){ if (A[j] == 0){ continue; } B[k++] = A[j]; } //팀원이 여섯명인 팀만의 순위대로 저장한 배열을 새로 만듭니다. int SUM[167] = … Software Development c++ microsoft-access | |
Hi, I got multiple threads in different classes created in this manner: private ThreadStart someName_TS; public Thread someName_Thread; public void someName() { someName_TS = new ThreadStart(someNameThread); someName_Thread = new Thread(someName_TS); someName_Thread.Start();} } private void someNameThread() { while(!Shutdown) { //Do heavy work } } The heavy work is set to a … Software Development c# multithreading | |
Hey everyone, I'm looking for some help with coming up with a system to communicate data between client and server sockets. I was thinking of a command system, but that would only work when the client is sending a request to the server, not when the server is returning data … Software Development client-server java socket-programming | |
Alright this one has me stumpted. I have a piece of code to do TCP Listening running on a thread that was executed from the ThreadPool, using this little one liner `ThreadPool.QueueUserWorkItem(ServerListener);`, that will continue to run until a status flag is altered. When the thread has ended I need … Software Development | |
Hi there! I am having trouble figuring out what is wrong with my code also I'm kinda new to Python. I'm trying to get variables to one class to another class then return it back. Here is my code: from tkinter import * from tkinter import ttk class Logic: def … | |
Hi All, In below code i am surprised to see destructor for rectangle class is not being called though base class destructor for IShape is virtual. below is the output of below programme: draw the rectangle draw the circle draw destructor deleting circle **deleting the Rectangle** is missing from output … Software Development c++ | |
HELP! I've been working on this assignment for a while and can't get it to work. It's supposed to pull contact info from a text file, and then return it. Every time I try to run it , it returns "no entry found" no matter what. HELP! #Declare constants lastname … Software Development python | |
Good Day VB.net Geniuses! I'm just wondering if there are still any other free reporting tool that can be use for Visual Basic 2010 Express edition since Crystal Reports is not working for Express edition :( I only have a simple MS Access Database :) Software Development vb.net visual-basic visual-studio | |
Hi Group, I've imported an existing form into a new project that I'm creating (using Visual Studio 2015 Express/VB.net). When displaying the "Design" version (the user interface), it looks like a plain form and doesn't resemble the actual form in the original program. As per the directions, I added the … Software Development user-interface vb.net visual-basic visual-studio | |
Hi, I am developing a WPF application in which I need to call `MouseLeftButtonDown` event in a single `DataGridTextColumn`. For that I wrote some xaml code as :- <DataGridTextColumn x:Name="myAge" Header="Age" Binding="{Binding Age, Mode=TwoWay}" IsReadOnly="True" Width="*"> <DataGridTextColumn.CellStyle> <Style TargetType="DataGridCell"> <EventSetter Event="MouseLeftButtonDown" Handler="{Binding MyAgeCommand}" /> </Style> </DataGridTextColumn.CellStyle> </DataGridTextColumn> But I am … Software Development asp.net | |
Hi all, I want to write a program in python to capture memory and cpu readings of a process which is running on linux server and save the readings in a tabular format to any .doc or .csv file. Got to know that 'top' command would give the cpu and … Software Development python | |
I have multidimensional array that include department and category. Based on the selecting department and category, i need to search names. below is my code $shop = array( array( "emp_name" => "ramu", "department_name" => "cse", "Number" => 15 ), array( "emp_name" => "ramesh", "department_name" => "eee", "Number" => "56", ), … Software Development javascript-jquery php seo | |
How to copy folders from one system to another within the network. We would need to provide username pwd for authentication to establish connection. Is it possible to achieve this using java? Software Development java javascript | |
I have inputs in the form like below Data: 01 18 01 23 45 67 89 AB CD EF FE DC BA 98 76 54 32 10 01 23 45 67 89 AB CD EF 02 18 67 89 AB CD EF FE DC BA 98 76 54 32 10 … | |
I made a simple complain management system in VB.NET, but I want to display daily, weekly, monthly and annual reports at any time when it will be required. The only hardness I'm suffering here is to get let's say the specific date just after the past 24hrs, past 7 days … Software Development vb.net | |
any body help me to convert php multi dimensional array to php multi dimensional array format $data = array( array( "emp_name" => "ramu", "department_name" => "cse", "Number" => 15 ), array( "emp_name" => "ramesh", "department_name" => "eee", "Number" => "56", ), array( "emp_name" => "ravi", "department_name" => "it", "Number" => … Software Development java javascript php | |
![]() | Hi all, I would like to replace new lines with "<BR>" in a text file. I'm executing the following line in Powershell: `[regex]::Replace((Get-Content "testfile.txt"), "\.``n", ".<BR>", "Singleline")` The contents of testfile.txt: Some text here for paragraph one. More text for paragraph two. Software Development regex shell-scripting ![]() |
Hi, so I'm trying to create a Java program that will read a Java file that is incorrectly formated and properly indent and format it. This is what I have so far. import java.io.*; import java.util.*; public class Project3 { public static int SPACES = 0; public static void main(String[] … Software Development file-system java | |
How to write a C++ program doing the following : a series of names with no blank characters and displays the number of the names having more than ten charaters. the name must not exceed 25 characters and the series ends when the user enters the word "end". Software Development c++ | |
Hello Everyone, I am new to c# and am trying to use Open XML to pull data from a SQL server into a spreadsheet. I followed some examples I found online but had to alter them to fit the test scenario I have set up and have run into an … | |
How to handle org.springframework.web.multipart.MaxUploadSizeExceededException in spring 4 am uploading a file in java it will accept only 2omb but i have uploaded 30mb its giving org.springframework.web.multipart.MaxUploadSizeExceededException how to handle in spring 4 How to handle org.springframework.web.multipart.MaxUploadSizeExceededException in spring 4 am uploading a file in java it will accept only 2omb … Software Development java | |
Hi, I need simple VB6 application to delete some temporary files inside specific folder. This is my code and I can't make it work for current user - please Help. Private Sub Command1_Click() Dim fso As New Scripting.FileSystemObject fso.DeleteFolder "C:\Users\user\test", True fso.DeleteFolder "C:\Users\user\test2", True fso.DeleteFolder userprofile & "\newfolder", True Unload … Software Development visual-basic | |
![]() | Hi everyone. I was reading some source code and I cam across the line `cout << "\nu converted to upper case is " << static_cast<char> ( toupper('u') ) << endl;` Why would the programmer use static_cast<char> in conjunction with toupper to print 'U' instead of just typing `cout << "\nu … Software Development c++ ![]() |
Assuming my second byte in hex is a representation of the message length, how can I dynamically adjust the length of the message the user can key into the textbox based on the hex value of the second byte? Message Byte entries into textbox: xx **xx** xx xx xx xx … Software Development | |
Hi Dw. I'm deeply in need of your help, I'm having a problem that is giving me a very serious problem with my code. My program is a multithreaded program and its a TCP/IP based application. Client has no problem, only a server that is being so weid to me … Software Development client-server microsoft-access multithreading mysql vb.net | |
Given the following C code: `B[8] = A[i - j]` Assuming B = $s7, A = $s6, i = $s3 and j = $s4 What would the assembly code be? sub $s3, $s3, $s4 # i - j sll $s3, $s3, 2 # multiply the offset by 4 add $s3, … Software Development assembly microsoft-access | |
My program draws numerous rectangles in a JPanel; the location, dimensions and colors are determined by a random number generator. I want to save the panel contents as a jpg. I believe this requires converting the panel contents to a buffered image using something like this: BufferedImage awtImage = new … Software Development java | |
/*CODING A PROGRAM FOR LOGIC GATES*// #include<stdio.h> #include<conio.h> [CODE] int x,y,z; //printf("Enter value of x"); scanf("x:",&x); //printf("Enter value of y"); scanf("y:",&y); And(int,int) if(x==1&&y==1) printf("z=1"); else printf("z=0"); Or if(x=0&&y==0) printf("z=0") else printf("z=1"); Not if(x==0) printf(z=1) else printf(z=0) [/CODE] Software Development c | |
Hi, I want to write a python program for connect to remote server (using ssh) and execute the command and return back with output. Here is my code: import sys import os from subprocess import Popen, PIPE, STDOUT from time import sleep from os import waitpid, execv, read, write #Ports … Software Development microsoft python windows-server | |
Hi Dw. I'm developing a Client Server application. At the moment I can connect the two and send data. The main aim is to make a server as a core control. The server only perform actions according to each client request, so the client can request to connect to let … Software Development client-server lan-wan vb.net | |
A 24 hex byte message entries: xx xx xx xx xx xx xx xx xx xx xx xx I have a 24 hex byte message entry into a textbox with different byte segment entry requirements, how to code dynamically the range of hex value I require for each segment e.g. … Software Development | |
Hi, I am working with Winform Grid .As per my requirement , i need to use two control in single grid cell. please suggest how i can achive it. Thanks in advance. Software Development | |
Hello every one. I have a form in VB.Net, as attached, I need to code the OK button. The Transfer From combobox and Transfer To combobox get all there values from the same table. The amount being transfered is keyed in via a textbox. Once the amount has been transferred, … Software Development vb.net | |
I need to read from a txt file and then pass that array into another function which prints the data in a neat organised manner depending which type pf book it is... So if its audiobook then the book is listed under audiobook, if ebook then under ebook etc... I … Software Development c++ | |
Hi I have an app that I compleated about 2 years ago with vs2010 and all is working. Now I just oppened the app in vs to make some additions and the error 'Format' is a type and cannot be used as an expression is all over the entire app … Software Development |
The End.