Jim SweeneySLC's Q&A profile
.NET Development ODBC Error - Not a Valid Month
People.. my problem is that my application works fine on my machine , but when i installed in another PC, at the time to run the Query i get this error: "ODBC Oracle Error: Not a Valid Month " Can someone tell me how can i fix this .... The SQL statement is the following: Query = "SELECT Field1, Field2, Field3 FROM Table1 WHERE fecha BETWEEN '" & _ Me .DatePickIni.Value.Date & "' AND '" & Me .DatePickFin.Value.Date & "'" The Format of the DateTimePicker Control is 'dd-MMM-yyyy' and as i said before, works fine on my PC, the error comes out when i used the application in another PC. ...Show All
Visual Studio Express Editions using dll
Hello I have problem. I instaled Visual c++ 2005 EE without SDK. I have files my library dll,h,deg,lib. How call this dll to use function inside dll Jaca Well, it should be the usual way. If you exported the functions in the dll using __declspec(dllexport) then using __declspec(dllimport) and linking with the lib file that was created when you compiled the dll is the way. If you don't have it then I'm afraid you'll have to get the PSDK to use the appropriate functions. ...Show All
Visual C++ Class derived from abstract class with static members
hi, i derive my class from the abstract Stream class. my class contains static members. one of them makes use of a static variable member, where an error is generated at compile time (C2259: cannot instantiate abstract class). of course this is due to the fact, that the static instance of the class is created at the first time, a static member is accessed. why is the restriction, that no objects can be created from abstract classes, also true for the static instance is there a way of get around this thanks! hi, thanks for your reply! the compiler stops at the red marked line ("error C2259: 'D2XX': cannot instantiate abstract class"): public ref class D2XX : public Stream { protected: ...Show All
Visual C++ BackgroundWorker's thread trying to access Form1's UI
Hi there, I am using the BackgroundWorker to do a time-consuming calculation, and the code for the calculation is very very long, so I have put that calculation subroutine (function) in a separate cpp file. Thus, in my backgroundWorker1_DoWork event handler, I am just simply calling my calculation function. during the long process, i need to update Form1's UI (add rows to DataGridView & update its cells...etc). Do I must use delegate & invoke I have been trying to use those but I cannot find the correct way to call "invoke" from the cpp file that my calculation function is in. Can anyone plz help me out any C++ example would be really good. &nbs ...Show All
Windows Forms BindingSource.AddNew returning primary key from DB
I am binding a DataGridView to a BindingSource as follows. myConnection = New SqlConnection(My.Settings.Default.ConnectionString) dset = New DataSet() Dim qry As String = "SELECT * FROM approvals" Try adapter.Fill(dset, "approvals") bsource.DataSource = dset.Tables("approvals") dgv.DataSource = bsource Catch ex As Exception MessageBox.Show(ex.Message) End Try The DGV behaves as normal, except when user adds a new row (either using the DGV or with bsource.AddNew() ) I need the primary key field to auto populate correctly as it does when the DGV is implemented using the "Drag 'n' Drop" method of databinding. When user adds a new row, the ...Show All
SQL Server Transmission queue ?
Hi There I have sent messages and they are all sitting in the transmission queue with a blank status, why is service broker not trying to send them They are no errors in the sql log. BOL says this is blank when it has not tried to send the message Service broker is definately activated in the database. How do i force sql server to send anything in the transmission que I have no idea what is wrong or where to check Thanx Dietz wrote: We have checked endpoint security certificates are cool, however if a dialog was done with an inocrrect certificate for dialog security importing correct dialog certificates wont help because surely the message is stamped with the original certificate, ...Show All
Visual Studio 2008 (Pre-release) Exception when swiching on the UserNameToken security
Hi Community, I have created a UserNameToken Service I get the following excetion. I have also included the config file snippet end of the post. I have created the token using makecert.exe utility. The another question is I used the sample UserNameToken and created this service. In the sample it wsHttpBinding, How do I change it to BasicHttpBinding Server Error in '/UserNameGetAddressService' Application. Can someone point me to sample for UserNameToken using BasicHttpBinding I found two sample using wsHttpBinding. C:\Program Files\Microsoft SDKs\Windows\v6.0\Samples\WCFSamples\TechnologySamples\Extensibility\Security\UserNamePasswordValidator C:\Program Files\Microsoft SDKs\Windows\v6.0\Samples\WCFSamples\T ...Show All
.NET Development referencing .net 1.1 3rd party component from .net 2.0
If I reference a .net 1.1 component from my .net 2.0 project would the 1.1 component run on the .net 2.0 CLR would this cause any compatibility problems Thanks Yes, the 1.1 component would run with the 2.0 CLR. There's certainly a possible compatibility problem although pretty unlikely. Check out the full list of breaking changes between 2.0 and 1.1 ...Show All
SharePoint Products and Technologies new default template for mySite
Hi All, how can I update the default template for new mySites After studying the "Office SharePoint Server 2007 Administrator's Comnion" I see only a programaticly approach (the Object model). Is there any possibility for customers to modify and "save as default" Thanks in advance, Jens I have the documentation for this but have yet to find the time to install this. This forum is dedicated to Knowledge Networks though and im not sure why you posted. You may find a faster answer if you post your question in the General Questions and Answers forum. Im sure some of the other people that contribute to these forums have attempted this and will be of better assistance. ...Show All
Visual C# Problem with obtaining text in an edit control
Hi All, I am getting the text inside an edit control of another process. I tried to read the text inside the Notepad using Win 32 APIs. Unfortunately, there is no text returned. I don't know what's the problem. Here's my code: public static string GetEditControlText(IntPtr hEdit) { StringBuilder sbText = new StringBuilder(Windows.GetWindowTextLength(hEdit)); Windows.GetWindowText(hEdit, sbText, sbText.Capacity); return sbText.ToString(); } Here are my API declarations: public class Windows { [DllImport("user32")] public static extern int GetWindowText(IntPtr hwnd, StringBuilder windowText, int maxCount); [DllImport("user32")] public static ...Show All
SQL Server Reporting Services : Exporting Report To Excel (SubReport)
Hi All, Issue : While Exporting Report to Excel (Report contains SubReport) Advance Thanks In Reporint Services, I am using Table control to display the data. In that control footer section i added one subreport that accessing the value from the Footer Section of the table(like Total ..) Report is generating. While exporing that report, it is giving exception like : "Sub Report in Table Cell could not be shown." Any idea/ suggestion to resolve this issue. ...Show All
SQL Server Testing data validation against business rules
Any forum, link on doing this thx, Kat Check out this link: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=725&SiteID=1 Buck Woody http://www.buckwoody.com ...Show All
SQL Server Restoring a SQL2005 backup to a SQL 8.0?
I have a SQL backup that I created on SQL 2005 but need to restore it on a SQL 8.0 SP4 installation. I receive an error when I try to restore it. The error is : Error 3169: The backed up database has on-disk structure version 611. The server supports version 539 and cannot restore or upgrade this database. RESTORE FILELIST is terminating abnormally. Any ideas This is not possible, you probably will have to a an export of the database. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual C# Security and Authentication
I have a C# .Net console application I wrote that is on server 1. It needs to copy files from server 1 to server 2. The location at server 2 is a shared drive with a domain user as the only user with access. I need assistance with code or tools that will allow my console app to impersonate this domain user so that it can appropriately authenticate to server 2 and copy the files over. I can run it logged into server 1 as the domain user, but I can't schedule it to run as this domain user. Please help. Thanks in advance. There is a very nice sample about impersonating the windows user credentials at the following link. Hope it helps you http://www.codeproject.com/csharp/cpimpersonation1.asp ...Show All
.NET Development Finalizer guarantees for access to other objects
When a finalizer runs are there any gurantees that any other object has not already been finalized This would include another object to which a reference in the finalizer's class still exists or a public static object in the finalizer's class, or any other class. Chris Lyon - MS wrote: Hi eldiener A class cannot explicitly call its finalizer, so your situation shouldn't arise. Besides, according to the Dispose Guidelines, the resource cleanup should be done in a protected dispose, and called by the finalizer in the case where public Dispose was not called. See http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpgenref/html/cpconfinalizedispose.asp for more info. -Chris In C ...Show All
