8,298 Topics
![]() | |
Hi Guys, I have written a windows c# service that basically write out some text to a file in the onStart function. The program works fine when i manually start or stop it. Now if i leave it started and restart my system, the service does not seem to do … | |
![]() | [code=c++] #define MIN_PASS_LENGTH 6 #define MAX_PASS_LENGTH 12 #define NUMBER_OF_PASSWORDS 3 #include<iostream.h> #include<stdlib.h> #include<time.h> #include<conio.h> #include<fstream.h> #include<string.h> //int i; //letters //int j; //numerals char rand_small_letter() { int nHigh = 122; int nLow = 97; int small_letter = ((rand()%(nHigh - nLow + 1)) + nLow); //values from 97 to 122 return (char)(small_letter); … |
I have not yet started this, I want some advice on how to proceed before I waste too much time! I am writing a Service which listens on a COM port, parses input, and stores relevant data to a database. I am fine with all of this, except I need … | |
Hi I want to store value from a row into a variable. I have used the following coding but it is not working properly. It is generating the following error: [B]Index was outside the bounds of the array.System.Data[/B] Please note that the table contains only one row. [code] objSqlConnection.ConnectionString = … | |
Hi guys, I have the same post in the java category. I tried using C# in coding this project on how can a user log-in his online accounts using a windows application created in C#. The windows application can store his username, passwords and the corresponding URLs, and all i … | |
Hi I am developing a windows application. For your infomation FRONT END : C# (VISUAL STUDIO 2008) BACKEND : SQL SERVER 2008 In a single form I have an option for add and remove books. Two different buttons are used(Add and Remove Books). When I click on Add button the … | |
[code]Excel.Application ExcelApp = new Excel.ApplicationClass(); ExcelApp.Visible = false; String WorkbookPath = filename; Excel.Workbook ExcelWorkbook = ExcelApp.Workbooks.Open(WorkbookPath, 0, false, 5, "", "", false, Excel.XlPlatform.xlWindows, "", true, false, 0, true, false, false); Excel.Worksheet Sheet = (Excel.Worksheet)ExcelWorkbook.Sheets[1]; DataTable newTable = new DataTable(); string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + filename + ";Extended Properties= Excel … | |
Hi All I am writing a C# windows application and it needs to run in a standard user account, however, the application should allow a standard user to create further standard user accounts using Vista\Windows 7. In order to create new accounts you need to be part of the administrator … | |
how to animate object in C#. moving from left to right or vise versa | |
Hi All, I need to send email from a C# application from localhost. I was successful in sending email using gmail SMPT port and host. But i need send email from local host SMPT virtual server. I followed the steps explained in [url]http://forums.asp.net/t/268037.aspx[/url] and [url]http://weblogs.asp.net/steveschofield/archive/2007/08/15/send-email-from-your-local-machine.aspx[/url] but the mail was not … | |
How can I send a string from php page to c# windows form using socket? Can you give me some example? | |
Hi, i have one doubt regarding datagridview in windows. i can take one column named "Description". I enter rows more than one for that column. but i want set the size of the column,here my requirement is 500 size for that column. pls help me, how to set the column … | |
Hi all, I am creating a Library Management System. I have used the timestamp to calculate the Date Difference and with the help of date difference I am calculating the Fine also. Now this date difference includes all days in a week. But for a library application fine should be … | |
Please need some help on what servers in windows/linux can c++ applications be deployed? Is the .exe file deployed or a library is created out of the application for deployment? thank you | |
I'm a newbie to C++ and am wanting to make a game where Zombies come after you and you slay them, along with jumping, running, shooting, stabbing, well you get the point but idk how. also i have a main menu done but i don't know how to preview it … | |
Hey C++ guru's... I'm pretty new to the C++ world and would really appreciate some help... ... I'm trying to build a general tree (a tree with one root and N children), I've written the code and compiled it quote/un-quote successfully... ...I say that because I am faced with a … | |
hi! I'm trying to get the following C++ class (contained in a DLL): [code] __declspec(dllexport) class ThreadManager { public: __declspec(dllexport) static UINT32 setThreadPriority(UINT32 tPriority); __declspec(dllexport) static UINT32 setPriorityClass(UINT32 pClass); __declspec(dllexport) static UINT32 setProcessorMask(UINT32 pAffinity); __declspec(dllexport) static UINT32 changeMATLABSeed(UINT32 inputSeed); static BOOL setHandles(HANDLE* thread, HANDLE* process); __declspec(dllexport) static BOOL testFun(UINT32 testInt); … | |
Hey y'all. I've just started studying C# over a month ago and I was looking for a bunch of exercises that I could use for practice. See, I bought the book "Pro C# 2008 and the .NET 3.5 Platform" and like most comprehensive books, it didn't have any. Can anyone … | |
Hi folks, I've got a C# client which can currently communicate with a C# server. I am considering re-writing the server in Java (to make it work better on Linux). Currently, the C# setup uses BinaryReader/Writer on top of a Network Stream on top of a Socket. Is there some … | |
hello every one... i'm very new to c# in the following program (Console application prg.) i want to get "int" value of "eno","ph_no" in place of string type but i don't know how to convert string type to "int" type if i use like eno=(int)console.readLine(); then it will give error … | |
Hello all, and happy fourth. First off, I've been trying to create this little app for quite some time now and I've gotten pretty far as the code just "came" to me the other day. So I've gotten... I'd say about 80% done with this project but I am having … | |
[code=c++] class C1{ public: C1(const C2& c){ //line 14 (works fine if i remove this constructor) //... } }; class C2{ public: C2(const C1& c){ //... } }; [/code] the compiler show me the following error: prova.cpp:14: error: expected ‘,’ or ‘...’ before ‘&’ token prova.cpp:14: error: ISO C++ forbids … | |
i heard there is a data type call blob in mysql to store image,can any one help me in which data type the image should be stored to db, or if any one send a link of a sample project with storing image to mysql using c# , that would … | |
HI Team, First of all, I'm new to C++, so my knowlege is like 2% and I would like to thank you for any help provided. Well I'm working on a project that looks like this: -- I'm creating an executalble (EXE) that will monitor and create a file into … | |
Please tell me how to create a multi diminsional array using pointer(dynamic array, set size at run time). | |
I've written an Object Cache in PHP. [url]http://code.google.com/p/php-object-cache/[/url] However, it requires PHP Sockets support which is not available on a lot of PHP builds. Coming to the conclusion that all hosting that support PHP should support C, I'm going to rewrite this in C. The PHP source is here: [url]http://code.google.com/p/php-object-cache/source/browse/trunk/socket.class.php[/url] … | |
I am usinh C# to create a Webservice. The applications that uses he Webservice does not have the capability of formating fonts, but uses it as it gets it. I would like to chnage the color of the data I send to the Webservice to something else in certain cases … | |
Hi, How do I modify an audio file( say mp3 or wav) using c# . I want to compare 2 audio files if they are same.. Also if someone could tell me how to record an audio using code would be great... | |
Hello, Win App: takes a value from a textbox1 and send it throw parameter to a method in the website called WebDisplay(textbox1.text) Web App: recives the value of the parameter. so how can i do that..? thanks! | |
i need to develop my own application with user name and password which allow users to login to windows.....how can i do tha....pl guide me on this...... thanks | |
Hello, everybody. I'm not new with C++, or anything, it's just been about a year since I've bothered with Client/Server for MMORPG Making. I am in need of experienced coders to help me out, and teach me, to get me back up there. The engine will be free to use, … | |
Hi friends, I am trying to add multiple LABEL controls in my program using a GROUP.I am using the folllowing code [CODE]Label newlabel = new Label(); void functionname(..... , ....) { int i = 0; foreach (string s1 in s2) { newlabel = new Label(); newlabel.AutoSize = true; newlabel.Text = … | |
I have names of certain students and their ages stored in a text file 'records.txt'. LIKE: John 22 Paul 21 Sam 24 Harry 23 Now i want to store these ages and names in a structure 'records(r)' directly from the file. (Here i am not taking any input from the … | |
Heya, I would like to know how to pass a packed record in delphi into a C# dll procedure. Any ideas? | |
Hello, i'm building a server application in C#.net which connects to a MySQL server via ODBC/Connector 5.1 .Net If a execute a query it works but when i try to exectute a query after waiting a while (ex. 5 minutes) i get an error which says: "The connection has been … | |
hii , i m getting a problem with save file dialog, i m getting this error "c documents and settings localservice desktop refers to a location that is unavailable' whenevr i click on desktop button. | |
Hello all, I am trying to connect to sqlserver on godaddy but facing so much trouble with the connection strings. I wanted to use C# but wasnt successfully in making a connection. when i simply copy-pasted their vb-script connection strings sample.. it worked. I tried to modify vb to c# … | |
Hi I created C# project ,but there is problem,the problem is if I click on close button in right side upper corner in windows application while program is running ,then it's close,but I cant compile it in second time because its giving error massage "your Test10.Exe is already running",but there … | |
Looking at using resource files. using Watcom c. Using the Watcom resource editor I output *.res and *.DLG files Any hints on how I produce a *.rc file? | |
As some of you know, there is a COM reference library called 'YahooMessengerLib'. What I have done with it until now was: - Login with user and password - Logout YM must be started for use to use this library. YahooMessengerLib has a lot of interfaces but I don't know … | |
Hi,first i must say this is not my homework,because i am to young (14 Years old)to have programming homework.I am trying to make application for automation of the dental surgery(i am testing my skills :D),this is the program menu : Ask for username and password and if it's correct it … | |
I have to open a log file created by c++, which is 4G in size. I want to read it from C#, but FileStream.Read uses int as offset, that means I can not read bigger than 2G. I believe C# should have a solution for it. How can I read … | |
hola, I really need your help on this. I tried to do k-way merge sort in c# and finally I ended with this: [CODE] public ArrayList MergeSort ( ArrayList arrIntegers ) { if (arrIntegers.Count == 1) { return arrIntegers; } ArrayList arrSortedInt = new ArrayList(); int middle = (int)arrIntegers.Count/2; ArrayList … | |
Hi, I am coming up with a calendar.I am using ASP.net with C#.I am having using a .ascx file format. i am getting an error on the 10th line. it shows CS1001:identifier expected. i am not sure of what to do. Please guide me of my mistake. im using Visual … | |
Hi, I want datagridview in windows application(C#.net), type in "this is the first line allows the 50 char", if you press "letter" and type "this is the second line", the current cell and go to the cell right below it. What I want is, when I press "letter" and type … | |
Hello, How can I define fixed size of structure in c#.. e.g. [code] struct xyz{ char localc[12]; short localshort; }; I had made a c# structure like this [StructLayout(LayoutKind.Sequential, Pack = 2,CharSet=CharSet.Ansi, Size = 14)] struct xyz{ [MarshalAs(UnmanagedType.ByValArray, SizeConst = 12)] public char[] localc; short localshort; } xyz abc = … | |
Hello, I'm looking for a way to pause or resume an upload process via C#'s WebClient. pseudocode: [CODE] WebClient Client = new WebClient(); Client.UploadFileAsync(new Uri("http://mysite.com/receiver.php"), "POST", "C:\MyFile.jpg");[/CODE] Maybe something like.. [CODE]Client.Pause();[/CODE] any idea? | |
could you please tell me how can i create c++ rapi application? | |
Hey folks, I've been reading: [url]http://www.codeproject.com/KB/IP/cs_remoting.aspx[/url] Now, I havn't actually done anything in the article yet however a question springs to mind. I have an app that has non-decoupled UI and business stuff (probably not the best). In time, I would like to make this app run on a "Software … | |
Hello all...my first official post (after the introduction) I'm relatively new in the area of C# (some PHP experience) and I'm hoping someone can help me. I have 2 arrays of variable lengths, with int data in them. Something like this: FreeNumbers = 1,2,3,4,5 UsedNumbers = 1,2 I want to … |
The End.