8,298 Topics

Member Avatar for
Member Avatar for anupjp

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 …

Member Avatar for thewebhostingdi
0
2K
Member Avatar for kingben

[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); …

Member Avatar for tux4life
0
882
Member Avatar for adamdk

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 …

Member Avatar for sknake
0
124
Member Avatar for S2009

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 = …

Member Avatar for adamdk
0
893
Member Avatar for trickx0729

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 …

Member Avatar for trickx0729
0
111
Member Avatar for S2009

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 …

Member Avatar for lighthead
0
5K
Member Avatar for hitchiker

[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 …

Member Avatar for sknake
0
643
Member Avatar for si_f

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 …

Member Avatar for serkan sendur
0
236
Member Avatar for jaymar_jmj
Member Avatar for Ramy Mahrous
0
216
Member Avatar for anish.anick

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 …

Member Avatar for kvprajapati
0
3K
Member Avatar for SuperErik

How can I send a string from php page to c# windows form using socket? Can you give me some example?

Member Avatar for kvprajapati
0
808
Member Avatar for kspriya01

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 …

Member Avatar for serkan sendur
0
90
Member Avatar for S2009

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 …

Member Avatar for serkan sendur
0
305
Member Avatar for GECKA

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

Member Avatar for GECKA
0
81
Member Avatar for Zachster

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 …

Member Avatar for shadwickman
-1
55
Member Avatar for didijc

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 …

Member Avatar for Laiq Ahmed
0
1K
Member Avatar for ninjaneer

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); …

Member Avatar for Ramy Mahrous
0
1K
Member Avatar for Sazabi02

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 …

Member Avatar for Sazabi02
0
192
Member Avatar for jonnytabpni

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 …

Member Avatar for kvprajapati
0
120
Member Avatar for john_beginner

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 …

Member Avatar for ddanbe
0
170
Member Avatar for Poab9200

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 …

0
68
Member Avatar for genepi

[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 …

Member Avatar for siddhant3s
0
136
Member Avatar for malikfirose

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 …

Member Avatar for Ramesh S
0
319
Member Avatar for mario20055

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 …

Member Avatar for mario20055
0
2K
Member Avatar for thilinam

Please tell me how to create a multi diminsional array using pointer(dynamic array, set size at run time).

Member Avatar for Ancient Dragon
0
162
Member Avatar for digital-ether

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] …

Member Avatar for jephthah
0
171
Member Avatar for dfswart

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 …

Member Avatar for serkan sendur
0
114
Member Avatar for seebharath

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...

Member Avatar for Ramy Mahrous
0
120
Member Avatar for mtyb

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!

Member Avatar for Ramesh S
0
110
Member Avatar for asw.asela

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

Member Avatar for asw.asela
0
111
Member Avatar for DezireSoftware

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, …

Member Avatar for Sky Diploma
0
173
Member Avatar for scholar

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 = …

Member Avatar for ddanbe
0
313
Member Avatar for Raza Najam

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 …

Member Avatar for Hiroshe
0
96
Member Avatar for BradenMurphy

Heya, I would like to know how to pass a packed record in delphi into a C# dll procedure. Any ideas?

Member Avatar for BradenMurphy
0
100
Member Avatar for MervinKoops

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 …

Member Avatar for MervinKoops
0
1K
Member Avatar for abhay_pundir

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.

Member Avatar for Ramy Mahrous
0
111
Member Avatar for csharplearner

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# …

Member Avatar for jerry32uk
0
437
Member Avatar for Tank50

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 …

Member Avatar for sknake
0
154
Member Avatar for Jim_b

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?

Member Avatar for Ancient Dragon
0
84
Member Avatar for Clawsy

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 …

Member Avatar for Clawsy
0
147
Member Avatar for XTRobot

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 …

Member Avatar for Stefano Mtangoo
0
242
Member Avatar for hotriver

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 …

Member Avatar for hotriver
0
108
Member Avatar for amadaeliseo

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 …

Member Avatar for amadaeliseo
0
120
Member Avatar for chriscross86

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 …

Member Avatar for dnanetwork
0
323
Member Avatar for kspriya01

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 …

Member Avatar for kvprajapati
0
145
Member Avatar for niketan

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 = …

Member Avatar for kvprajapati
0
305
Member Avatar for djzmo

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?

Member Avatar for sknake
0
110
Member Avatar for serkan sendur
Member Avatar for serkan sendur
0
258
Member Avatar for jonnytabpni

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 …

Member Avatar for sknake
0
133
Member Avatar for IntegrityWebDev

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 …

Member Avatar for IntegrityWebDev
0
116

The End.