elhussein's Q&A profile
SQL Server .Net CF 2.0 Error , "Can't find PInvoke DLL 'dbnetlib.dll'."
Hi All, I'm developing Pocket Pc application, In that i have set of statement, which establishes connection with sql Server 2000 Database. When ever I try to open SqlConnection, I’m getting error "Can't find PInvoke DLL 'dbnetlib.dll'.". Right now i am working in .Net Compact Framework 2.0 , But previously i worked in .Net CF 1.1 i didn’t face problem while doing that. Can any one help me to solve this issue My code exactly look like : Private SqlCmd As New SqlCommand Private SqlTrans As SqlTransaction Private SqlConn As SqlClient.SqlConnection Private SqlCmdBuilder As SqlCommandBuilder Private SqlDataAdapter As SqlDataAdapter Public Function Select_DocumentTempl ...Show All
Software Development for Windows Vista OwnershipTimeoutSeconds does not work
Hi, In order to be scalable we have two servers running our workflows. Any server should be able to take over at any time. The workflows running on the servers make asynchronous requests via msmq to other services. The replies should be able to come back to any one of the servers and still be processed. What happens is that when the reply comes back to a server which did not make the original request (and then wait on an event), the server cannot fire the event on the persisted workflow, because it's still "locked" for use by the workflow. I am currently configuring the workflow instance ownership to be 2 seconds, and it takes longer than that before the response comes back to the server. I'm using the released version o ...Show All
Windows Forms Row, Column properties of a control in TableLayoutPanel
How can I access the Row and Column properties of a control that has been dropped in a TableLayoutPanel. It provides these properties through an extender provider. I don't know how to access these properties at runtime. My requirement is to locate a control with respect to its row and cell. Waiting for a quick response.... ...Show All
Visual Studio Express Editions Making a Password form
Hello everyone, My question is regarding how I would make it where someone has to enter the right name and password inorder to bring up the next form, like they would have their own account as well and it would bring the form up when the correct info is entered. I am using VB Expresws 2005 , Thanks! Try something like this: First add a loginform to your project. The rest you should be able to figure out. Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click If UsernameTextBox.Text = "username" And PasswordTextBox.Text = "password" Then Me.Close() Form1.show() ElseIf UsernameTextBox.Text <> "username" Th ...Show All
SQL Server Nested Transactions
Can anyone verify for me whether SQL Server CE 2.0 does or does not support nested Transactions when using the SQLServerCe Data Provider The SQL Server CE Books Online documentation definitely states that SQL Server CE supports nested Transactions, but the example provided uses ADOCE Data Provider. The error message that I get when trying to begin a new Transaction with an existing Transaction still uncommitted on the same SqlCeConnection is "SQL Server CE does not support parallel transactions". Is it not possible to nest Transactions with SQLServerCE Data Provider Thanks for the information. I didn't know that. SQL Mobile doesn't support nested transactions either through oledb provider or ...Show All
Visual Basic Multiply long integer.
Hi everybody, I want to translate this piece of code from C to VB 2005: static unsigned long long mt; void srand64(U64 seed) { mt = 6364136223846793005 * seed; // seed = 5489 } But i receive an overflow exception when i try this in VB 2005. i declared my variable of type ulong. Also in C the result exceed the maximum value, but I don't receive any error and the result is 13057201162865595358. How i can do to get the same value in VB 2005 Thank's all Andrea By default in VB, the compiler compiles code with overflow checking and will throw an exception if the result overflows. To get non-overflow checking semantics, you need to turn off overflow checking in the pr ...Show All
SQL Server Sql Script
hello I need to script my Db, tables and storedprocedures. so i can create another same DB Dim con As New SqlConnection(DBClass.Config.DBString) Dim cmdName As String = File.OpenText("pro.sql").ReadToEnd() Dim cmd As New SqlCommand(cmdName, con) cmd.CommandType = CommandType.Text con.Open() Try cmd.ExecuteNonQuery() MessageBox.Show("DB Created") Catch ex As Exception MessageBox.Show(ex.Message) End Try con.Close() Any suggestions After you have run the above you may then use the following; Dim sr As StreamReader = New StreamReader("C:\script.sql") Dim script As String = sr.ReadToEnd Dim SMOServer As S ...Show All
Visual Studio Team System If I want to install TFS and Visual studio.net 2005 Team Suite what is the order to do it?
I want to do it on the same computer. Is it neccessary to install virtual server Can I do SQL Server 2005 Enterprise and my own db on the default instance Do I need to do development on a virtualised os or can do on the Windows Server 2003 whis TFS So do I need a).to install TFS on the real Window Server 2003 and then install Team suite on a Virtual OS (like WS 2003 or WinXP) or b).to install TFS on the Virtual OS (like WS 2003 or WinXP) and then install Team suite on the same OS or c)to install TFS on the real Window Server 2003 and then install Team suite on the same server. I do want to try on all the hats(Project Manager, Architect, Developer and Tester) on the same PC. So what is th ...Show All
.NET Development How to keep a thread running?
Hi, I have the following issue and the odd part about is that I had it already working however I don't know what I changed that it doesn't anymore. I runtime compile a class, create an instance of it and init it on a different thread. In this init the class subscribes to a couple data dispatchers and should now wait for incoming data. When I first implemented this it kept running after I subscribed to the dispatchers until I aborted the thread. However, now it subscribes and after that exits the thread. Any idea how I can keep it running without putting it in a wait loop Thanks, Tom A while(true) loop in the thread should do it. :) Or a Thread.Sleep() Dont!! Just Kidding. You have to give us more info ...Show All
Visual C++ c2228 and another question
hi, i have a bunch of c2228 errors in my code now that states left of '.RXbyte' must have class/struct/union the part of code it points to is as follows: m_bSendECG = false ; m_cRS232.TXbyte(0x00); m_cRS232.RXbyte(&Byte); m_cRS232.TXbyte(0x12); m_cRS232.RXbyte(&Byte); m_cRS232.Clear(); m_iBufferPos = 0; im not sure how to fix it. im sure its obvious by now that i didnt write most of this code. im a noob and most of this code is way over my head. im trying to understand it as i correct it. its part of a big project with many files inter-linked with one another. i apologize if my questions are very basic and i hope you will bear with me. thanks in advance. ...Show All
Visual Studio Express Editions Centering image in picturebox?
Is there a way to center an image inside the picture box or for that matter align the image in some way picBox.SizeMode.CenterImage = PictureBoxSizeMode.CenterImage This doesn't work i get an error msg: "Constant cannot be target of an assignment" ...Show All
Visual C# Diff between internal & protected internal modifiers..
hi, We know that if we declare anything as internal, that will be accessible within the assembly. And any protected members will be accessed by the subclasses within the assembly. But what is the use of declaring a member as protected internal Any one pls, help me in this regard... thanx... Hi, It is indeed a bit confusing but if you read below you will see the difference: protected Access is limited to the containing class or types derived from the containing class. internal Access is limited to the current assembly. protected internal Access is limited to the current assembly or types derived from the containing class. The important part is the last OR . Do you understand the difference Greetz, Gee ...Show All
Visual C# Error: "No overload for method "foo" takes '4' arguments"
I have referenced a C++ project to call a function from a class within but I get the error message "No overload for method "foo" takes '4' arguments" when I compile. if I go to the deinition for the class of the following call: myClass.foo(a, b, ref c, d) I can see the following metadata: namespace SPTI { public class myClass { public myClass(); public static bool foo(Target a, byte[] b, byte[] c, bool d); } } With the following for the declaration in C++: static bool myClass::foo([Runtime::InteropServices::In]SESTool::Target a, &nbs ...Show All
Software Development for Windows Vista outrageous setup
i have xp sp2 and alcohol 120% i setup 1 virtual drive and put it the vista image on it. the whole setup is smooth and clear im afraid these forums are for software development for Windows Vista, not technical support. The best place to post such comments/feedback/questions relating to the technical aspects of Windows Vista, not relating to software development, would be over here: www.microsoft.com/communities in the appropriate/correct newsgroups. ...Show All
Visual C++ COM newbie question
when i use COM objects from C++ i need GUID and interfaces definitions.. i usually get them from an header. I noticed also that when i add a reference to a COM object (dll) in a C# project, the enviroment get directly all those informations about classes and interfaces. this suggest me that i could use COM objects even without headers. So my question is, it is possible to retrieve guids and interfaces definitions from a com object thanks to everyone in advice :) C# IDE does this by reading COM component type library. To to the same in C++ use #import directory with COM Dll name. It reads type library and generates wrapper C++ class which can be used by client code. ...Show All
