Alex2200's Q&A profile
.NET Development Read Excel error in x64 server
I have a project that use oledb to read a excel file. The code is like that(C#): string connString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + excelFile + ";" + "Extended Properties=\"Excel 8.0;HDR=YES\""; OleDbConnection conn = new OleDbConnection(connString); ... conn.Open(); But it seems not work on the 64bit machine, it showed me " The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine. " Can someone help me with the issue Using 'anycpu' as compile option on x86 machine will make your program run as 'x64' on 'x64' machine. Hence this problem. Force compile it as 'x86'.. It should help resolve it (atleas ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Realtime debugging text?
Hello. All I`d like to do is display crude text somewhere inside the game screen. Can I do this without having to load/use any type of font. The `Print` commands equivelant I suppose It`s just so I can see a variable changing during play. Please excuse this possibly mundane question but I`m fairly new to all this. -Daz. I believe you can include System.Diagnostics and use Debug.WriteLine() to output text while running in debug mode. The nice thing about this is it's ignored in release mode, so you don't need to worry about commenting out all the debug code. ...Show All
Software Development for Windows Vista what's wrong with the DocumentViewer's Find method ?
I open one XPS document with the control DocumentViewer, invoking the control's Find method which would pop up find dialog on the MSDN specification, but nothing to happen. Why Heather, When you say "inserted into that", what do you mean Somebody else suggested that If I created a " PART_FindToolBarHost " that had the same naming convention and element tree, that it was possible. Any ideas Thanks in advance. Peter ...Show All
Visual C# Problem with Sockets
Hi buddies, How are you !! I got the following problem while i am developing a chat software My software consists of two parts: Server Client each in a seperate project, and each works very well when they are working alone, but when i try to test my application -I run the server then the client- i got the problem that when the client create the TcpClient object i got this message: Only one usage of each socket address (protocol/network address/port) is normally permitted I think that is because i use the same port number for both applications but this is the only way to run both applications on the same machine. the short version of my question is: How can I start a TcpListener and a TcpClient on the ...Show All
Windows Live Developer Forums Sample: MSN AddIn - Outlook Calendar
Description A simple msn live addin that will integrate with Outlook Calendar. Set it up so that it's enabled when my status is anything other than "online" or "appear offline". Now when someone sends you a message the addin will check outlook to see if you currently have any appointments and reply with something like this: [15:33] dan (work): Auto-Response: I am currently in a meeting (test) scheduled to end at 4:00 PM If no appointments are found no reply is sent. The addin also keeps an internal list of users that it has replied to so that it doesn't send out the same info more than once to each person. This list is reset when the status is changed back to online. As with the text-to-speech sample I posted the oth ...Show All
Windows Forms Binding a datasource to combobox
I have a ComboBox in my application that is bound to a BindingList through the DataSource property. I am monitoring the SelectedIndexChanged event of the combobox for selection changes made by the user. My problem is that i want the ComboBox to have an empty selection (nothing selected) initially, however upon setting the DataSource property to the BindingList the ComboBox automatically changes selection (from empty) to the first item in the BindingList. Selection also changes (if there is nothing selected) when items are deleted or added to the BindingList (once its bound to the ComboBox). Is there anyway of disabling this behaviour any help would be much appreciated. Sorry still dont und ...Show All
Visual Studio Express Editions Timeout Expired Error
Help! I've built a program with a data base, The 1st time I run it I receive a "Timeout Expired" error, The second time I do not get the error, the same thing happens when I deplopy to other machines. I've read all the post suggesting changing the CommandTimeOut = 0. My question is how do I code this into my program. I try this, came from the msdn site, didn't work. Public Sub CreateMySqlCommand ( ) Dim myCommand As New SqlCommand ( ) MyCommand.CommandTimeout = 0 MyCommand.CommandType = Commandtype.Text End Sub Thank for any ideas or help. IW I found the answer hope this works for you. You'll need to click on the link below I posted it on a different forum. IW http://forums.microsoft.co ...Show All
Visual C++ AfxGetThread from non-MFC thread
Hi i have the following problem: i'm developing Internet Explorer extension, which have some dialogs with help buttons When pressing help button from the extension executing in the main thread(first IE window), message is routing well to the main thread CWinThread object where it is handled and everyting is all right. But when i'm opening new window and press help button there, AfxGetThread which is called in CPropertySheet::OnCmdMsg(dialog which owns help button is a CPropertySheet) returns NULL, course as i understand, new thread, that IE created for a new window is not an MFC thread. As a result message it is not routed to thread message pump and nothing happents :( The project i'm working on was previously a VS6 project, and everything ...Show All
SQL Server Enabling CLR Integration
Hi All, I'm new to SQL Server Express. But I need to find out how easy it is to create custom types with SQL Server Express because we have to represent house numbers as a custom type in the database. After enabling the CLR integration with the SQL Server Surface Area Configuration tool, I created an SQL Server Project with VS 2005 Pro., created a custom type called HouseNo, deployed it to a database and finally created a table with a column of that custom type. But when I tried to use the option 'Show Table Data' for that table, the following errors always appeared SQL Execution Error Executed SQL statement SELECT NP.ToString() AS NP From Table1 Error Source : .NET SqlClient Data Provider Error Message : Execution of user code in ...Show All
Visual Studio How to change the paper orientation to Horizontal ?
Hello Gurus, I'm developing with VS2003, ASP.NET with Crystal Report for VS.NET, and I need to change the paper orientation of a Crystal Report to Horizontal... How to do that I tried to follow the instructions in: http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do cmd=displayKC&docType=kc&externalId=c2014205&sliceId=&dialogID=3086149&stateId=1%200%203082728 ("How to increase the page width of a report" ) But no success.... please, help ! I got it: Rigth click on your report designer: select item Designer-> Set up Printer -> check Orientation - Horizontal ...Show All
Visual Studio XML documentation, ASP.NET site, NDOC
Hi, I have an ASP.NET website with several classes but i would like to use Ndoc to generate some documentation. When I do Open > Website and I load my website folder i can't fill in a 'XML Documentation File' at the properties screen, those options aren't even there. How is it possible to let VS make a xml file everytime I build my project. Greets ...Show All
Software Development for Windows Vista Service installation in Vista
Hi, During setup my software attempts to install a service, and Vista claims that it can't identify a publisher and asks if I still want to install (i.e. trust the 'unknown' publisher) or reject the setup. All files to be signed in the package are signed properly with a "true" publisher certificate. Surfed through MS pages, MSDN and have found a lot of info about drivers signing and installation, but nothing concerning cervices set up under Vista. Is there any specific procedures or best-practices for such tasks Best regards, Kostya The presence of a certificate by itself isn't what makes this safe for the customer. I can give you a signed program, but why does the fact that it's signed make it safe The point here is that ...Show All
SQL Server format in hh:mm:ss in MDX
Hi, My data warehouse project is more on call center agent score card. my source table schema looks something like this: Agent_Name Date Talk_Time (in secs.) Handle_Time (in secs.) Agent1 05/10/04 50 15 Agent2 05/10/04 65 86 I want to have in the MDX the talk_time and handle_time in hh:mm:ss format like the one below: Talk_Time Handle_Time 05/10/04 Agent1 00:00:50 00:00:15 Agent2 00:01:05 00:01:26 Total 00:01:55 00:01:41 I've used a technique to convert it to time format but then when total of the time field (talk time or handle) has a value like 90000 seconds, it will give me 1:00:00. Wh ...Show All
Community Chat New revolution - Classic ASP/VB6 moving onto ASPX and VB.net, what u think ???????
Supp Coder , Just wanna know, now that there are new frameworks and managed codes in .NET while we most are used to coding da classic stuff -------------------------------------------------- Who is going to procede wit da new code style -------------------------------------------------- and who feels like sticking to there old coding style -------------------------------------------------- for example who wants to stick to C+ or who to move on to C# --------------------------------------------------- and what could be da conciquences of sticking to unmanaged coding or is it just a microsoft monopoly act (im a microsoft oriented coders, just so u know) ---------------------------------------------- ...Show All
.NET Development Runtime error while loading DLL on Win64 platform.
Hi, I am trying to compile my program as DLL on Windows 64-bit (AMD64) platform using VC 8.0. This DLL is loaded through Pro/Engineer Wildfire 3.0 and upon loading it is supposed to add a toolbar option to Wildfire 3.0 However, when I start Wildfire 3.0, I always get C Run-Time Error R6034, which is related to manifest file. I consulted following URLs: http://msdn2.microsoft.com/en-us/library/ms235560.aspx http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=94312&SiteID=1 http://blogs.msdn.com/nikolad/articles/427101.aspx Since I am embedding the manifest file into the DLL using mt.exe, I suppose the unavailability of manifest file is ruled out. I opened the DLL file in Visual Studio and verified that the RT_ ...Show All
