Maikel56450's Q&A profile
Windows Forms Help me: Get System DateTime Format (user defined in control panel)!
I want to get system datetime format dd/mm/yyyy or mm/dd/yyyy etc... that user defined in control panel because when I used "INSERT ..." in SQL Server with column type datetime, if wrong format that take error :-( Please to help me! Thanks alot! CultureInfo .CurrentUICulture.DateTimeFormat.FullDateTimePattern ...Show All
Visual FoxPro Registering a Visual FoxPro driver in SQL
Hi... Not sure if this is the right place but we have a problem registering a Visual Foxpro driver in SQL. The driver does not appear on the initial drop down list and so we have added it manually using regsvr32. All seems fine until we try to access the server when we get error 7403 Could not locate registry entry for OLE DB provider 'VFPOLEDB' Any ideas or advice gratefully received... Hope I have all the details, but it is happening ...Show All
Visual Studio ReportViewer control - protected memory error when printing
Hello, When me or my users try to print from the Windows Forms ReportViewer control to a specific printer (using PCL), the following error appears in the ReportViewerControl client area: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. It is only happening with the one printer of that type. The error appears after choosing the printer to print to and selecting "P ...Show All
Visual C# Double trouble - Numbers gain fractions
This piece of code looks pretty simple: double num1 ; num1 = 10.72 ; But after num1 has been assigned it holds the value of 10.720000000000001. If I change to float it's 10.7200003. I know you're supposed to use decimal if you want better precision but this loss of precision seems very unnecessary. Can anyone offer an explanation /David The problem is that floats and doubles are binary representations of numbers, and ...Show All
Visual C++ beginner C++
Still in class for intro to C++ and I'm working on one of the labs. In this lab, the program prompts the user to input a number (x), from there the program sums up the numbers from 1 up to (x). For example: input sum 1 1 2 3 //(2+1) 3 &n ...Show All
Visual Studio unmanaged addin registration for all users
What is the recommended way to register an unmanaged vs2005 addin for all users It appears that the .addin xml file is only for managed addins; is this correct You are right. The .addin xml file is for managed add-ins. To register an unmanaged VS 2005 add-in, you can simply run "regsvr32 yourAddin.dll". If you want it registered for all users, before running the above command, open file AddIn.rgs and ...Show All
Visual Studio Team System TF86001: Team Foundation was unable to load the Office AddIn
After dealing with the daunting install process and getting it right, now I'm able to create projects and work with most of the items, however I found a new issue while trying to open any of the Excel sheets included in the default project team solution structure from WSS and I get that error, funny thing is that this only happens with XL files, since I can open Word and Project files with no issues Here's what I'm running on: Server: Wind ...Show All
SQL Server Embedding an object into report
Hi, I am trying to figure out the way to embed a plug-in (Chime for Windows) into my report, so that I can display a certain object from a database, that is stored there as a string. This Chime plug-in would read the input string and convert it to video display. This embedding is easily done in simple HTML: <embed type='chemical/x-mdl-molfile' display2d=true width=200 height=200 hlabels2d='terminalhetero' structure= [encrypted string from the ...Show All
Visual C++ Strange error with _fileno
We're in the process of converting from visual studio 98 to 2005 (yes, we were a bit behind the times). Most of the changes are now dealt with, but there's one weird one that we can't figure out - it looks like a bug in the compiler. Here's the error we get: v:\frame\utils\.\preftext.c(104) : warning C4996: '_fileno' was declared deprecated C:\MSDev05\VC\include\stdio.h(219) : see declaration of '_fileno' Message: 'The POSIX name for th ...Show All
.NET Development c# form based app best architecture
Hi all, I'm design a windows forms application and i'm having some problems structuring it. The application itself will block a computer until a person gives a username and a password, after that it hides itself and keeps a small icon on taskbar. Lots of things will be happening meanwhile, syncs and comms with server, forms popping-up, and timers firing. My question is, what of the following approaches is the best one: 1. A c ...Show All
Visual Studio Express Editions re use datagridview
Hi, I've build a datagridview with a particular style - docking, padding, row color ... I'd like to re use this grid in another form. No drang and Drop possible or cut and paste because I'd like to build the grid programmaticaly... Can I use something like a sub, structure, class pseudo code : Me .TabControl.TabPages.Item(0).Controls.Add(myGrid( my BindingSource)) I don't know exactly --- sorry for this newby question :-) C ...Show All
Windows Forms Relating Combos on Windows Forms
What is the neatest way of relating Combos, e.g., selecting a Product Category in combo1 restricts the Products in the list portion of combo2 I have a dataset containing the two tables related by a datarelation. Using the Find method of the P ...Show All
Visual C++ wldap32.lib
Anyone know where this is located Microsoft Platform Software Development Kit (SDK). I have looked all over the Microsoft site. I need to get the latest wldap32.lib. Thanks, JoeyP You can find the download here: http://www.microsoft.com/downloads/details.aspx FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en Ronald Laeremans Visual C++ team ...Show All
Visual Studio 2008 (Pre-release) How to control the set on Data Bound control?
I have a textBox that is 2-way bound to a DataSource. When the user changes the value in the text box and focus moves to another control, the set operation is triggered, which is expected behavior. However, I would like to initiate the set myself at a different time(maybe while they are typing or perhaps on a button click). How do I link the set portion of the binding to something other than lost focus Thanks NIK The UpdateS ...Show All
Visual C++ Excessive rebuilds
I have quite a bit of base code (a bunch of header files) that I reuse for many of my programs; I store them in a folder /Common Code/, and it has always worked fine. Just yesterday, without (knowingly) doing anything wrong, any program that I have that includes these header files forces a rebuild of all source files whenever I try to run or compile it, even when I haven't changed any code. I'm guessing that I accidentally toggled some command ...Show All
