Ljhopkins's Q&A profile
Windows Forms How-to embedded Win32 DLLs and .NET DLLs in my Application
hi how can I embedded (Win32 DLLs and .NET DLLs) in my .NET application exe and use these embedded files when my exe application needs them like the one here http://www.oreans.com/xbundler.php Thanks Take a look on this .NETZ is a free open source tool that compresses and packs the Microsoft .NET Framework executable (EXE, DLL) files in order to make them smaller. Smaller executables consume less disk space and load faster because of fewer disk accesses. Unlike other portable executable (PE) packers, .NETZ uses a pure .NET solution and it is written in C#. .NETZ can be used to pack .NET executables written in almost every .NET language. .NETZ supports both .NET EXE and non-shared DLL fi ...Show All
SQL Server Mirroring questions
Scenario: The principal is in LA and the Member is in NY. 1. Where should the witness typically reside LA or NY 2. Can the witness handle several quoroms or it has to stay within the quorom it is assigned to 3. LA to NY - what is the recommended bandwidth for this right now we have a 1MB pipe We average about 9 Gig of transactions/day Thank you.. Refer to http://www.microsoft.com/technet/prodtechnol/sql/2005/dbmirfaq.mspx - DM FAQ Where should the witness server go if the partners are in different locations A. The location of the witness (indeed, the location and configuration of all the servers) depends on what problems are anticipated and what errors must be re ...Show All
Software Development for Windows Vista Adding a Task to Outlook from a work flow
We would like to push tasks from our workflow app into Outlook. Before I go through the learning curve, is it possible via the WF or other means ...Show All
SQL Server Daily use of encryption
In practice, I find encryption kind of messy to use -- opening, closing keys, use of certificates, all the while trying not to give away the password in cleartext. If our .NET programmers are to use it efficently in high-level code we need a function call, say "EncryptValue(<input value>)", that simply returns the encrypted value. Is it possible to write such a function (And of course, we need the mate "DecryptValue(<encrypted value>)". TIA, Barkingdog That's what I just recently figured out - I will talk to my IT department to determine how the web application creates its database session - I also know that we have a webfarm - so each webserver that makes a ...Show All
Visual Studio Express Editions Machine UI
Building a new production machine. Are set to use Parker controls ACR9000 servo controller. Has anyone used VB.net for building the U.I. Parker offers .ocx's and controls for .net. I have used dos in the 'long' past. For some reason I am a bit skidish about using windose for the U.I. Any comments st I'd much prefer to build a UI using Windows and VB.NET than trying to code up a UI using any DOS based application. Much quicker to develop and really very easy. The concept of OCX controls is that its basically canned functionality that you can include and much of the UI stuff is hooking items up and writing code to tie everything together. The controls have events which you just ...Show All
Visual C# BackgroundWorker dies between DoWork and RunWorkerCompleted?
I have an application with a bunch of checkboxes and a listview. The pattern of checked boxes corresponds to a SQL query, which is run by a BackgroundWorker. Since this might take a while, if the pattern of checked boxes changes before the background thread is done, I cancel the thread and start over. This works fine as long as I don't click the checkboxes too fast. If I do, the entire application freezes up. My debugging output indicates that this is happening in between the completion of DoWork and the beginning of RunWorkerCompleted. If I use the following code in my checkbox CheckedChanged event handler: while (search_thread.IsBusy) { search_thread.CancelAsync(); } search_thread.RunWorkerAsync(q); ...Show All
Software Development for Windows Vista RMTool Test Case 30
Hi, I am having problem with RMTools. As per this tool this will shutdown and restart application. But this not doing os. following message I am getting when runnnig this tool. Starting Session StartSession() returned 0 SUCCESS: StartSession() Session Key: 75863bc2e2df2e42a3e21c17dbd77ec3 Registering file RegisterResources() returned 0 SUCCESS: RegisterResources() Getting affected apps. RmGetList() needs 2 structs, reboot reasons 0, returned 0xea SUCCESS: Allocating RM_PROCESS_INFO array SUCCESS: GetAffectedApps() My PID: 3140, Affected Apps: 2, needed 2, reboot reasons 0 PID(1:3832, type 1, stat 1) - INPAGEMFC () PID(0:0, type 3, stat 4) - (-r) Ending Session EndSession() returned 0 SUCCESS: EndSession() Though I checked m ...Show All
Software Development for Windows Vista XtraGrid compatibility with Vista
Hi All, We are using XtraGrid control with Visual Studio 2005. Is there any compatibility issues occur if i use XtraGrid in Vista platform . Thanks, Senthil A ...Show All
Microsoft ISV Community Center Forums Creating MROUND function
Hello, MROUND is a built-in function in Excel that round a number to a specific multiple. eg. =MROUND(21,5) rounds 21 to the nearest multiple of 5, which gives 20. For some reason this function is not available in my Excel (2003) and so i thought it may be useful to write the function myself using VBA. However i'm not very familiar with VBA so can someone please help me to kick start my first VBA function. Thanks! ps. i've found out after that to add the function all i have to do is go Tools --> Add-ins and tick Analysis ToolPak in the dialog box. Hi The solution is actually very simple. The following code gives the result you were looking for Option Explicit Function MyRound(Number As Double, Multiple As D ...Show All
Visual Basic How can I search a database on multiple criteria selected from listboxes?
I am new to VB and I am finding it difficult to understand. I am using Visual Studio 2005. I want to search a database for several items, I am using the My Movie Collection template to practice with and I want to be able to search for actors, directors and release dates and see the movies that match. I want to use listboxes for the items to search on and populate them with the possible options from the database. Ideally I would like the results to be updated as I click on the options in the listboxes (no 'search' button). I want to be able to click on more than one item in a listbox (e.g. several dates) and I want to be able to deselect items that I previously clicked on. I have found examples of searching for one thing in a datab ...Show All
.NET Development Server encountered an internal error.
Hello, I am running a .NET remoting client/server application using interface. When i run both the server and the client on the same machine then client can instantiate the remote object factory class and basically connect to the server. But when the server is running on another computer, then client cannot get a proxy to the remote object factory and it gives me this vague error message (remoting Exception ): Server encountered an internal error. To get more info turn on customErrors in the server's config file." (now, i know i can set the customError of config file to off and receive more detailed error message, but i am not using a config file for my server yet and i don't know how to set the customError programatically). anway, i hav ...Show All
Visual Studio Express Editions how to use a control using a string
Hi All, I want to change the properties of a control, by calling it names. I have several labels in my form (L1...L100 for example) and in the code I want to select one of these label, using a string ("L" & i) in order to modify it property. I can write Activecontrol=L2 But not Activecontrol= Numlabel where numlabel = "L2" But if L2 is a result of a calculation how can I select the proper control. Not sure it is clear ( ) thanks, VSC I'm having trouble figuring out how to convert this to C#. Would you help with that, or should I make a new post in the C# section Thanks. ...Show All
SQL Server There is no direct equivalent to Oracle's rownum or row id in SQL Server
hi, There is no direct equivalent to Oracle's rownum or row id in SQL Server there is any possiblity are alternate thing is exist then please reply regards santosh I want to add SQL SERVER i) Having uniqueidentifier datatype, which we need to add manually as ROWID uniqueidentifier NOT NULL DEFAULT newid() this is unique in the whole database as of GUID. II) Having timestamp datatype, which we need to add manually as ROWID timestamp in the first option the GUID remains constant, but in the second case the timestamp changed whenever the update command is executed for that row. ORACLE i) ORACLE dont need these things, it having Pseudo coloumn called ROWID. this is ...Show All
Commerce Server Server Error in '/OrdersWebService' Application.
Hi, I've had this error on 2 separate sites (CsharpSite and StarterSite). Am really struggling to resolve it. Looks like the AllowedStatusTable is expecting data but doesn't have any. I've found another post on the forum for the same problem http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1083101&SiteID=1 but he didn't get an answer. I'm sure we'd both appreciate some help. Thanks very much. Server Error in '/OrdersWebService' Application. The specified value for the newOrderStatus attribute is not valid. The value provided was: 'NewOrder'. Please make sure an entry for this value exists in the AllowedStatus table in the transaction config database. Description: An unhandled exception occurred during the execution of the c ...Show All
Visual Basic Window Screenshots
When you press Ctrl-Alt-Del (and then click Task Manager if you are using XP Pro), you can see a list of all the currently open windows, and whether they are responding or not. How can I write a program that acheives this same functionality Additionally, how can I get the window handle (hWnd) of each window The easiest way to do this from Managed code is to use the Process class. In particular, the static method Process.GetProcesses will return an array containing all the processes on the current machine. You can then determine if a process is "responding" by checking its responding property. You can then obtain the handle to the main window of each process using its MainWindowHandle property. The MainWindowHandle pro ...Show All
