steveareno's Q&A profile
Visual FoxPro OleDb provider and unc path
I make ASP page for internet access and i need to read & write data from visual foxpro tables. These tables use new fields type (of last versions of foxpro) like autointeger fields so i can't use ODBC driver. The tables aren't on the sane server where is localized the web server and i need to use the oledb provider and insert this connection string Provider=VFPOLEDB;Data Source=\\DataServer\Application\Data\;Collating Sequence=Machine When i try to access the data i receive an error : Invalid path or file name..... There are problems using OLEDB and unc path names Why there is not an updated odbc driver from Microsoft for newer versions of Foxpro ! !! ! Thanks ...Show All
Visual C++ Matrices of constant data
Why is it that the compiler can convert from 'int *' to 'const int *', but not from 'int **' to 'const int **' An example is included. Any thoughts would be appreciated. #include <stdio.h> int main() { int A[] = {0, 1}; A[0] = 2; const int * X = A; // ok printf("%d\n",X[0]); int B[] = {1, 2}; int C[] = {3, 4}; int * D[] = {B, C}; D[0][0] = 5; const int ** Y = D; // not ok //int ** Y = D; // ok printf("%d\n",Y[0][0]); return 0; } Thanks, Mike. This seems to be effectively saying that you cannot make the entries of a matrix constant without at the same time making the rows constant. ...Show All
Visual C++ URGENT!! MFC function call error
HI I am using MFC .net single document extending from CRichEditView class I want to call a function from my view class during startup of the program. I tried to call it from the constractor method of the view class but non statc function call error. sample code CMyView::CMyView()//constractor { ...... LoadText(); //error with this call ...... } void CMyView::LoadText() { CString str= "something" ; //my actual code reads something from txt file. CRichEditView::SetWindowText(str); } How can call LoadText() method during start up of my MFC single document GUI tried this way but the folowing fragment does not set the editor text on start up int CMyView::OnC ...Show All
.NET Development Read ReadBinHex
Hi, suppose i have an xml file which contain the following data: <items> <item> 0A141E2832</item> </items> how can i read the item element in ReadBinHex method from xmlTextReader please note that the item data is not a fixed length and this is the main issue. a sample code in c# may be helpfull for me. Thanks. You can use XmlReader.ReadValueChunk() method to read it chunk by chunck. http://msdn2.microsoft.com/en-us/library/system.xml.xmlreader.readvaluechunk.aspx ...Show All
SQL Server Flat File to SQL Destination - Unused Columns Warning
I have a flat file data source and SQL Server destination data flow. Only a subset of columns from the source are mapped to the destination. During execution SSIS returns DTS pipline warnings for every unmapped source column. Is some kind of transformation the only way to get rid of these warnings Also this data flow subsequently returns an error: [SQL Server Destination [1293]] Error: An OLE DB error has occurred. Error code: 0x80040E14. An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E14 Description: "Could not bulk load because SSIS file mapping object 'Global\DTSQLIMPORT ' could not be opened. Operating system error code 2(The system cannot find the file specified.). Make sur ...Show All
.NET Development Abortable thread with return value
Hello, There are two possible solutions that would work for me here... Requirements are as follows: I want to run a task in the background. The task returns a value, which I need to collect. I also need to be able to abort the task. I can use Thread.Start, and then Thread.Abort if I need to stop it, but I can't find a way to get a return value by this method. Alternatively, I can use BeginInvoke, which makes it easy to get a return value using EndInvoke, but then I can't seem to find a way to abort the thread. Either method would be fine. Any suggestions Thanks, Nick you could set the value as a global variable and get that value after you have aborted the thread, setting the value withi ...Show All
Visual Studio Express Editions Let's go to work on an FAQ for this Forum
The concerted work that goes on here in really impressive. I'm also thinking about a mass mailed note I received from S. Somesegar, corporate VP of Microsoft development. He said that MS Engineers were not alone in building VS2005. Customers had a lot to do with it to make it as neat as it is. Continuing in that vein, I though it may be a contribution to see if we can't put together an FAQ that will take care of a large number of the routine questions. If you'd like to contribute to this let's try the following: In a post to this thread, add: 1.) A Title 2.) A fully stated question in FAQ form 3.) The best answer you can come up with. After a while.... We'll all review this and see if w ...Show All
Smart Device Development Addign Icon to Programs Menu
How do I add the icon (shortcut) to Programs Menu of a Pocket PC How I did see there is an option to add shorcut to program files folder and applciation folder...but not the startmenu/programs ...Show All
Visual C# keyboard and mouse
Hello, I'm wondering how it's possible to create an application wide event that's fired when any keyboard or mouse key is pressed and mouse move Please help. Thanks take a look at this http://www.codeproject.com/csharp/globalhook.asp it should help you with your answer ;) ...Show All
Visual Studio Express Editions adding 1 number to another?
i have a number 10 in one label, and i have a number 2 in label 2. is there a way to add the them at the click of a button, so that what ever number is in label 2 will add to the current total in label 1 thank you very much for your help, unforntunatly math is not my strong point. You need to parse the values then add it. Here are a simple example: MyTotalLabel.Text = ( Int32 .Parse(label1.Text) + Int32 .Parse(label2.Text)).ToString() ...Show All
.NET Development Sending Email problem (.NET 2.0)
Hello folks! I'm trying to send email using the new classes of .NET 2.0, with the following code: MailMessage msg = new MailMessage(); msg.To.Add("bribeiro@certisign.com.br"); msg.From = new MailAddress("bribeiro@certisign.com.br", "Bruno Ribeiro", Encoding.UTF8); msg.Subject = "Teste de envio de emails usando .NET 2.0"; msg.SubjectEncoding = Encoding.UTF8; msg.Body = "Este e o corpo da mensagem."; msg.BodyEncoding = Encoding.UTF8; msg.IsBodyHtml = false; SmtpClient client = new SmtpClient(); client.Credentials = new NetworkCredential("bribeiro@certisign.com.br", "xxx"); client.Port = 587; client.Host = "smtp.certisign.com.br"; client.EnableSsl = t ...Show All
Visual Studio Express Editions IDE Question about braces
In Beginning Visual C# 2005 Express Edition by Peter Wright it states that Visual Studio will automatically insert closing braces. When you enter a { followed by Enter , the VS editior will automatically drop in a closing } as well. This does not seem to work this way for me and I have been unable to locate an option that would turn this feature on. What am I missing Now that I have actually thought about the idea, I agree, after one brace has been entered it would be a great benifit if the closing brace was entered for you. I know from experiance that its normaly something stupid like a closing brace that stops my app from building the first time around, may be its an idea for the next version (well ...Show All
Visual C# DateTime Difference on WinForm and WebForm!
I write a simply code to see the difference: this .label1.Text = DateTime .Now.ToString(); this .label1.Text += " " + System.Globalization. CultureInfo .CurrentCulture.ToString(); The output of WinForm is “ 28/11/2006 11:03:21 en-GB ”, while WebForm is “ 11/28/2006 11:02:55 AM en-US ”. Even I restart my computer, the difference is still on. Can you explain this difference What Windows version are you using How did you change the local settings. Please post the exact steps. -- SvenC ...Show All
.NET Development Microsoft .NET Framework 3.0: x86 (KB928416) will not install.
The following updates are already downloaded on my computer: --------------------------------------------------------------------------------------- Definition Update for Windows Defender - KB915597 (Definition 1.15.2321.2) Root Certificates Update Microsoft .NET Framework 3.0: x86 (KB928416) --------------------------------------------------------------------------------------- But they won't install. Everytime I try to install them my computer shuts down. And at night when I want to shut down my computer, it says on the screen that updates are going to be installed. I shut down the computer but it restarts, and the updates still aren't installed. I have -Windows XP -Service Pack 2 -Home Edition -Version 2002 ...Show All
Visual Basic Find And Replace Command Not Working?
Good day! My Find/Replace Edit Menu command inside VB 2005 is not working anymore, and SQL Server 2005 as well. When I tried to check this feature in Microsoft Office applications, there is no problem at all. It's mysterious, I don't know what happen. I also tried to re-install VB and SQL, but still it didn't work. I know it is a petty problem, but it plays an important role when editing your codes. Please help. Thanks Does anyone happen to know how to do this on SQL Server Management Console Just happened to me there. Thanks, Greg ...Show All
