132,726 Archived Topics
Remove Filter ![]() | |
I have a problem with the following code.Please help me out #include<stdio.h> #include<iostream> #include<conio.h> #include<winsock.h> #include<winsock2.h> #include<fstream> #include<windows.h> #define WIN32_MEAN_AND_LEAN #include <sys/types.h> #include <streambuf> #include<string.h> using namespace std; int main() { int length; char *buffer; const int iReqWinsockVer = 2; WSADATA wsaData; if (WSAStartup(MAKEWORD(iReqWinsockVer,0),&wsaData)==0) { if (LOBYTE(wsaData.wVersion) >= iReqWinsockVer) { … Software Development c++ ios socket-programming | |
I'm just trying to get a bit more understanding about what seems to be to me a contradiction in the C# Pro book i bought. The book says >In simple terms,** a process is a running program**. However, formally speaking, a process is an operating system level concept used to … Software Development api operating-system windows-api | |
I only just noticed that doing something like this is wrong; int thrdcount = 0; while (thrdcount < 4) { Thread t = new Thread(() => { dowork(thrdcount); //Start the threadWorker }); t.Start(); thrdcount++; //Increase the thread count } Because the loop can end up finishing so fast that all … Software Development client-server | |
HELP ME plzzz! I try to make my datagridview rows change colour depending on value on a row cell. I ve tryed everything i found on the web but nothing.. plz help Last I tryed this one: http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.cellformatting.aspx but stil nothing :( Software Development vb.net | |
I think the following code should print 26 but it's printing 62 instead. public class gjh { public static void main(String[] args) { int x = 2; x += ++x * ++x * ++x; System.out.println(x); } } So how is this possible? Software Development java | |
hi guys i am puting this query in my querybuilder in the table adapter but i need to make the query only return the transaction done today!! i dont know the syntax to get the cuurent date today. this query should work in the tableadapter query configuration wizard!!! SELECT Trans_ID, … Software Development vb.net | |
Hi!!! I am making a program that is supose to use Naive bayes classifier to classify text from few categories. This is the best i can do to explain, here is what i have done so far: import math d=open('D.txt', 'r') di=open('kat1.txt', 'r') posleden = di.readlines() total = d.readlines() Di … Software Development python | |
Hello, I am very new to python and have been going through all over the web to try to figure out my problem. I have small script that I would like to do something simple with. I have a number of files called soemthing like (myFile00.txt, myFile01.txt,...). Mainly this is … Software Development python | |
Hi everybody, I'm trying to do a simple login for a web site, and everything looks fine except one thing, when I enter a name and a password for a superuser I got "403 Forbidden" error. here is my login.html: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> … Software Development python | |
I just came across this question. All the solutions given are in PERL for this question. I thought I can learn solving this in Python as I could learn many thing by solving this problem. But I am stuck. The question is: You are working at a grocery store which … | |
Hello. I am working on a personal project. It's basically a program for changing specific tags from certain HTML files. So far, everything works. The GUI and the logic a work but I know the main function is wrong because it looks like this: def tag_remove(HTML_string): clean_HTML = a_string.replace('<b>', '').replace('<i>', … Software Development data-structure gui html-css python | |
I have a Two Test classes that use variadic templates but I made the constructors explicit so that the compiler doesn't convert anything and leave everything as it was. One class was Array and the other was called 2DArray. When I intialize 2DArray, the compiler was converting its arguments to … Software Development c++ | |
I have developed VB.NET 2005 application with .sdf database, but I have problem with inserting new records into databse from application. I have tried with MSDN example code, but failed. Can someone provide me with code for this one. Please... Pete Software Development vb.net | |
All, I'm very new to java having done most of my scripting in Javascript and a little bit in other types of programs. I'm basically trying to obtain a script variable and compare it against a condition and return some println messages. Here is my code: String agentType[] = request.getParameterValues("Agent … Software Development java | |
Hi all, I've browsed the net trying to find a paradigm to describe what I'm looking for but haven't been successful. So I'll try to explain it as succinctly as I can. Right now, for my PhD research, I've set out a few applications that take input files that have … Software Development c++ file-system | |
As the title said, how to send text messages from a java program? Software Development java | |
Hi guys and gals, I'm writing a file parser, which reads "source code -ish" text from files. The text is usually in this kind of format: Module: { Submodule: { Property: Value ... } Submodule: { } } Module: { Property: Value } I've written a simple but hazardous reader … Software Development | |
I'm trying to test my copy con and move con as well as their assignment operators. It NEVER gets invoked :S Copy con gets invoked just fine but the assignment operators are never called and neither is the move constructor. How can I test it to make sure it works … Software Development c++ | |
I have created MFC ActiveX project in VS 2010 using C++. I have added just one function "Add" to the project by clicking the Add method option in the menu that pops when you right click _DProjectname under ProjectnameLib in solution explorer. SHORT CSampleProgramActivex01Ctrl::Add(SHORT a, SHORT b) { AFX_MANAGE_STATE(AfxGetStaticModuleState()); // … Software Development c++ | |
Hi! when I try to run this code: struct Cand{ // 0 -> not a cand // 0.5 -> preCand // 1 -> cand float status; // Row position int PosX; // Col position int PosY; /* * and many other things * */ }; int rows = 1024; int … Software Development c++ | |
I am writing a program that is suppose to read all the lines in a .ini file and then the program will configure the network connectivity. ex. ip = 128.123.156.46 then it would set the ip address to 128.123.156.46 i have tried this: while(getline(infile, TheBuffer)) { if(TheBuffer == "ip =") … Software Development c++ | |
In my applcation I have a JText field for entering a phone number. Is it possible to make it only accept numerical characters? Or should i wite a method to alert the user if they enter any other characters into it? Thanks Software Development java | |
hi i am programming for about 4 years and i want to learn how to make a operating system. for ex window, mac or unix. And i am think of storing it on a disk. I have no idea how to get started. can any one tell me the steps? … Software Development c mac-hardware mac-software operating-system unix | |
hi, i made a music player it opens almost all the songs but while opening some songs it gives this error : A:/Chrome Downloads/Jhalla_Wallah_(Remix)_-_(MusicTub.Com).mp3 Error 277 for "open "A:Chrome DownloadsJhalla_Wallah_(Remix)_-_(MusicTub.Com).mp3" alias mp3_0.878022650438": A problem occurred in initializing MCI. Error 263 for "set mp3_0.878022650438 time format milliseconds": The specified device is … | |
For some reason, before the selectedindexchanged sub routine finishes, combobox Description is still pointing on the last selectedindex changed and the combobox Image is on the actual current selected index changed. Once it exits the routine both combobox are in the current value. I cant see why this is happening, … Software Development dataset open-source vb.net | |
Anyone fimilar with VB scripting with Windows Task Scheduler ? I'm hoping someone can create a custom script when my task is executed. At present, my task runs the program, that's all it does. Software Development visual-basic | |
hi everyone , can someone help me by this i have a DB table and a form the following fields , combobox and textboxes, what i need is how to write a query to retrieve data from the table when the user select some record from combobox thnx before and … Software Development vb.net | |
Hi All, I would like my 'quit' button to appear in the bottom right hand corner of my menu screen, but it seems that every computer in the office has a different sized screen, different size ration (some are widescreen), and different resolution. When I deploy my program, the quit … Software Development vb.net | |
Hi, I'm trying to take two text files, compare them, then output the matches into a new text file. I've read the thread started by the1last, but that's outputting differences, not matches. I just started learning about python a couple days ago, so I don't know anything about what syntax … Software Development python | |
Hi guys, How to display vertical scrollbar in listview. In listview their are 3 columns also i have set ListView.View = View.Details; but vertical scrollbar doesn't appear. Any idea Thanks in advance. Software Development listview | |
How can i remove an array item by selecting an item from listobx and press remove/delete button? for an example, if i want remove index 2 from listbox, so the array should remove index 2 item and move the item of index 3 to index 2 and so on. is … Software Development vb.net | |
I am trying to run an easy Android ndk app in cpp, but I get UnsatisfiedLink Error for the Generate() function. Any help would be appreciated. I am quite fluent in c++, but my java is a little bit rusty. I have been trying a lot of tips from the … Software Development android-development c java | |
I initiate OpenFileDialog from a btn and once the correct file is selected at OpenFileDialog1_FileOK * ,I want to load Form2 to do some file checking routines. Private Sub OpenFileDialog1_FileOk(sender As System.Object, e As System.ComponentModel.CancelEventArgs) Handles OpenFileDialog1.FileOk dbfFileFolder = System.IO.Path.GetDirectoryName(OpenFileDialog1.FileName) dbfFileName = System.IO.Path.GetFileName(OpenFileDialog1.FileName) dbfFileNameShort = System.IO.Path.GetFileNameWithoutExtension(OpenFileDialog1.FileName) If dbfFileName = "GNDITEM.DBF" … Software Development vb.net | |
I have a TreeMap<String, Customer> (Customer is a class I have created). Customer objects hold a HashMap<String, Repair> (Repair is a class I created). I wrote a method to find a given Repair, this is it: public void processFindRef() { if(ref.length() == 6) // ref is the string we want … | |
ok so i want to build a simple app that woks across a network. basicly it is a c++ consle appliction, you type the ip and a message on the server consol and then that computer will do somthing based on the message. if anyone can derect me to a … Software Development c++ | |
please, am new to vb.net, i have a project and i want to use a textbox as a search box to search through the data on the datagrid view on my form. please kindly assist | |
Hello, Is there a Python tutor in this group who would be willing to help me with about 3 - lines of code. I have an assignment due on the 4th of July and am a little stuck. Thank You, HR Software Development python | |
Hello, friends! Can anyone help me to create a small application in PASCAL for a DVDs Rental Shop? This applications should be able to do : Add 25 films (title, gender, cod, status) Add 15 Costumers (name, sex, age, films rented) List films List costumers List rented movies and then … Software Development pascal | |
I have this form connected with SQL server : http://img171.imageshack.us/img171/7423/692012101827pm.png is there any way that when I enter a new company and press save icon, the combobox will update automatically ? Thanks | |
Hi, I have a sql statemente but I don't want to display all info in the gridview (c# webforms). How to bind specific columns at runtime on gridview? Thanks | |
Following code is for deleting elemnt from array but it shows NullPointerException at **if(names[k].equals(user))** ... how to remove it!!! public class del_array { public static void main(String s[]) { String names[ ] = new String [10]; names[0]="admin"; names[1]="b"; names[3]="m"; String user="b"; for(int k=0;k<names.length;k++) { if(names[k].equals(user)) { String item=names[k]; for(int j=k;j<names.length-1;j++) … Software Development java | |
> "warning: 'class Debug' has pointer data members but does not override 'Debug(const Debug&)' or 'operator=(const Debug&)' [-Weffc++]" The only pointer member I see here is the HANDLE hTHread. Why should I override my constructors or add a move/copy to this class as the compiler suggests? class Debug { private: … Software Development c++ | |
I am using VB.Net 2003 (version 1.1) and I am attempting to open some forms with: Dim myform As New FormX If myform.Visible = False Then myform.Show End If Problem is, no matter what, a New instance of the form opens. How do I check if an instance of myform … Software Development vb.net | |
Hello, I am having trouble writing a variable named UpperCaseSentence outside of a for loop in this particular code snippet. It runs fine while in the loop but not while out of the loop. Can anyone shed some light on this dilemma for me. Here is the code. Thank you … Software Development python | |
Hey all, I'm attempting to bind a function, then store it in a map. Later I want to call that function with parameters that I don't yet have when I bind it. So this is the code `boost::bind(&State::setBufferSourcePlaying, &::top->dsp->getState(), 0, 1 )` Currently I'm not binding any "dynamic" data, ie … Software Development c++ | |
Dear Reader, I would like to be educated on how to open an Excel Worksheet within a VSFlexGrid OR MSFlexGrid. The reason I give both as an option is because I want to explore which option is best, so if you have input on the Pros and Cons of using … Software Development visual-basic | |
I'm trying to convert a number to a string then back to a number to perform math, then back to a string to return it to the user. I don't understand the problem because this is how my friend did it (that I can remember and it worked for him). … Software Development c++ | |
First of all, just registered and this forum looks great! PROBLEM: My program which I wrote in Code::Blocks, has compiled fine and has worked fine, but when I run the outputted file called (BINDED.exe) it shows a very quick console window then closes, I think this is due to the … Software Development c++ ios open-source |
The End.