JLeBert's Q&A profile
Windows Forms SqlCommandBuilder.DeriveParameter
Hi, When I use SqlCommandBuilder.DeriveParameter to derive the parameters of a stored procedure using a command object when it returns the parameter direction is being returned as InputOutput even though I have a stored procedure with an output parameter.Below is& ...Show All
Smart Device Development Need help for Process
Hi, I am developing smart device application for Pocket PC and Smart Phone by using CF 1.0. I need a help for getting process information. What my question is Is there any API function to know whether a Process (eg. PocketWord) is running or not Please reply suggestions.. Note: I don't want to use Process class because i don't hav CF 2.0 eventhough i hav.. Thanx. GANESAN M. Windows CE platform contains toolhelp.dll , which i ...Show All
Visual C# Using C# with MySQL
I'm asking about using C# with MySQL server. Which is better using C# with SQL server or C# with MySQL server I'm working with project that used C# as my application to read data from smartcard. The data from smartcard then will save into database. Which server is better yes.. as he sad.. you you wanna store real big amount of date is best SQL server.. but in ypur case use MySql .. is simple. is small and free ...Show All
.NET Development System.Threading.Monitor.Enter (under the hood)
What do the threads that are locked out do when they are locked out And does the Sleep call help get { if(dsUsers == null) { if(IsdsUsersLocked) System.Threading.Thread.Sleep(50); lock(UsersPadlock) { if(dsUsers == null) { IsdsUsersLocked = true; dsUsers = (3 sec call to the database server accross heavy network traffic); IsdsUsersLocked = false; } } } return dsUsers; } The sleep call appears to help when dealing with 100 ...Show All
Visual Studio Creating ranking report using Crystal report10
i am trying to create a ranking report using crystal report 10, this ranking report should show all the employees revenue for the current month ranked from the largest revenue to the smallest. i used NthLargest funtion to pull up the largest, and the 2nd largest and so on, but also i need to pull up the name of the person who made that revenue. previously, i used excel spreadsheet to do that by using index and match funtion together, but i don't ...Show All
Visual C++ What will cause AfxGetModuleState() return different values during DLL initialization?
My application has over 100 Dlls. During startup, many resources failed to be found. I finally find out this is because AfxGetModuleState() returns different values in the CDynLinkLibrary's constructor, but I get no idea how can this happen. Anybody can help Thanks. Could it be a failure to use AFX_MANAGE_STATE(AfxGetStaticModuleState( )); on your DLL entry points This macro informs MFC that a DLL boundary has be ...Show All
Visual C# Web Application - Desktop Application
How can I send a command from a web page to a desktop application... Example: I have a txtbox in the webpage, then i type some text (ex.: Hello) when I click submit my desktop application calls a function to show a MessageBox with the hello Thanks U can't directly communicate from a web application to desktop application. I will suggest you before starting read the architecture of ASP.net and how its work. There is an alternat ...Show All
Software Development for Windows Vista Media Center
I installed and validated Windows Vista 5270 today (Jan 2, 2006). When I tried to load Media Center I got the message "This trial version has expired and can no longer be used." If I reset the computer date to Dec 31, 2005 or earlier, Media Center loads OK. Seems like the expiry date for Media Center in CTP build 5270 has been set to 1/1/2006. Are there any other programs in 5270 that share this problem, and will we be getting updated ve ...Show All
Visual Studio Express Editions MS Access connection problem with data source configurazion wizard
It seems to me impossible to do a very simple thing as to connect to a MDB or to a TXT file as a record source using the wizard (It's VISUAL BASIC isn't it ) From the Data Source Configuration Wizard --> New Connection --> changed the data source to MS Access but ... the system does NOT show me the windows to let me browse the file I want and I am shown only an input line space for a connection string ...Show All
.NET Development COM and CLR
Hi all, I read that COM is having contract specification and implementation in binary format and CLR has contract specification in the form of Metadata and Implementation as IL. What are the disadvantages of COM having things in binary format Thanks, Suresh. Your definitions of COM and CLR are reasonable but the issues with COM do not necessarily derive from how they are specified. COM promi ...Show All
Windows Forms newbie -- Insert item into combo box
Hello, I am trying to insert an item into my combo box which is data bound. I know that you're aren't supposed to be able to this but what's the work around for a case like the following. I don't want to add the extra  ...Show All
Visual C# Web Application Problem
Hi, I would like to know how can I run a ".bat" file trough my web application, I tried using process but it doesn't get the argument... Here is the part of the code.. System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.EnableRaisingEvents= false ; proc.StartInfo.FileName="C:\\Inetpub\\wwwroot\\Webshell\create.bat"; proc.StartInfo.Arguments="Pasta1 Pasta2"; proc.Start(); But it does not work, if I paste the comm ...Show All
.NET Development Framework 1.1 Oracle .NET Data Provider -> CommandTimeout?
Hello, does anyone know if there is a possibility to set a command timout for the Oracle .NET Data Provider like for the SQL-Server with SqlCommand.CommandTimeout Thanks in advice! Best regards, Kris Are you sure the Oracle Command doesn't have this property I don't have it available right here, but CommandTimout is a member of the IDbCommand interface. If the Oracle Command implemetns this int ...Show All
Windows Forms Ambient Properties Question
I'm trying to make a property of my control act just like BackColor does. Here's the code that I have that's not quite working. Private _AlternateBackColor As Color = Color.FromKnownColor(KnownColor.Control) <Category("Appearance"), AmbientValue(GetType(KnownColor), "Control")>&nbs ...Show All
SQL Server DTEXEC ReturnCode
Hi, The DTEXEC Utility has the capability of returning ReturnCodes which have specific meanings e.g. ReturnCode=3 means: The package was canceled by the user. Is it possible to set my own ReturnCode values For example, my Package contains a Script Task which contains code to search a folder for a file. If the file cannot be found then I make the Script Task fail and hence the Package fails. But, when the Package is invoked by the D ...Show All
