Shilnet's Q&A profile
Visual C# Communiacting with DLL in c#
I am working on a project which communiactes with a Radio Device (WR G303e Radio Receiver)connected to PC via USB. I comes with an API WRG3API.DLL implemented as a 32-bit driver. In the SDK it has examples for Delphi and C/C++. My Question is..... How can i import/communicate (with) this dll to work in C#. I am looking for some1 2 reply... please help me if any1 out there has any info about this issue... Kind Regards t4urean I think you can take a look of P/Invoke in C#, which can invoke the functions of a dll. All you have to do is to make a method signature like this using dllimport attribute [DllImport("someLib.dll&quo ...Show All
SQL Server Try Catch Block
Hi: one of our study group members noticed a strange behavior and has the following question. Any thoughts are appreciated. I am unable to understand as to why the CATCH block is not executed when an INSERT is made On table T3 which is dropped after the first transaction. The severity of Insert into t3 values ( 3 ) is Msg 208 , Level 16 , State 1, Line 2 Invalid object name 't3'. BOL says TRY…CATCH constructs do not trap the following conditions: Warnings or informational messages with a severity of 10 or lower . Errors with severity of 20 or higher that terminate the SQ ...Show All
SQL Server A call to SQL Server Reconciler failed. Sql Mobile, BusinessLogicModule
I got a merge replication published by my SQL Server 2005 and subscribed by my Pocket PC emulator having SQL Mobile. This works fine. I've now developed my own class to handle my business logic according to MS specifications. Inherits from BusinessLogicModule in Microsoft.SqlServer.Replication.BusinessLogicSupport. I had by using the sp_registercustomresolver and sp_changemergearticle. When I now try to synchronize from the emulator I get the error Message: "A call to SQL Server Reconciler failed." Native Error: 29006 Source: Microsoft SQL Server 2005 Mobile Edition Any ideas what has happened I also try ...Show All
Windows Forms RichTextBox Length
Hi! I'm currently programming a text editor that needs to display very large files... The one that I'm testing with is a log file that's about 55 MB. The StreamReader can read the entire file just fine, but I can't seem to get the entire text to enter into the RichTextBox. Here's the code I'm using: Dim openstream As New FileStream(filepath, FileMode.Open) Dim opensr As New StreamReader(openstream, True) Dim NewWin As New frmNoteWin NewWin.rtbText.Text = opensr.ReadToEnd opensr.Close() opensr = Nothing openstream.Close() openstream = Nothing It doesn't even come close to loading ...Show All
Windows Forms a splash screen
How Can I do the application splash screen in Visual Studio 2005 Somebody told me the splash screen is setting in the Project Properties, but i don't know how. Please help Thanks Check out this links: http://www.codeproject.com/cs/miscctrl/SplashCS.asp http://www.codeproject.com/csharp/prettygoodsplashscreen.asp ...Show All
Microsoft ISV Community Center Forums Problems with BSM
Hi! Now we're trying to deploy a BSM-project. There're some comments and maybe questions. First of all I want to notice bad work with localized systems. English version of BSM requests 1033-folders. But russian version of SharePoint doesn't contain this folder (only 1049). As result some pages looks incorrectly (e.g. there's a problem with css in the page filter editor). The second problem is that the page filter doesn't work with members, which contains quotes. "There is a problem rendering this control". And not long ago we found out one more problem. Members with commas lose information before comma on scorecard. ...Show All
Windows Forms Launching application after install
I'm would like to know how can i launching the application that i'm installing ... I would like that just after the user exits the setup program, both windows services and they manager application (they are both part of the setup program) starts automatically !! Do i have to do a custom action a make a install class or there is a simple way I will appreciate any help or link to an article! Thanks a lot! Clickonce is ideal for Xcopy type diployments which are globally non impactful. You shoudl be able to find comparisions of MSI and CLkickonce technology in articles up on MSDN. For you particular question above since ...Show All
Windows Forms Numeric Data binded fields in maskedtextbox
A Data field having data type as numeric(6,3) is binded with Masked textbox with following mask property :- 00.000 Following code is given in form load :- Me .MyMaskedTextBox.DataBindings( "Text" ).FormatString = "00.000" a value of 12.889 is displayed correctly as 12.889 whereas a value of 4.55 is displayed as 04.550, i want to remove both zero's from the display for this type of value. can anybody help... When specifying a formatting string for a number like that 0’s effectively mean ‘put a digit here even if there isn’t really one’ which is exactly what you are seeing. ...Show All
Smart Device Development Handling Sliding Keyboard + Some ARM Assembly decoding
Hi, Apologies in advance if this may be off topic, but i think it is an interesting and challenging issue related to WM device programming ( besides, no one has been able to assist of yet in other news group ). My device has a sliding keyboard...when that keyboard is slid open on the WM2005 Today screen, the keyboards enters a "num lock" state. This is where some overloaded keys that act as the phone dial-pad ONLY output numbers, not characters. i'd like to disable this so that the keyboard functions normally on the today screen when my today item has focus and the keyboard is slid open...this way i can accept chara ...Show All
Visual C++ VC++ vs V# vs VB
I am developing software with extensive database access (SQL Server) and complex data analysis on what I would consider a massive amount of data. Is C++ the best option for going thru large database files and performing data analysis How do C# and VB compare with regard to speed and capabilities Is C++ on the verge of being replaced by C# and/or VB .NET Thanks for taking the time to tell me your thoughts. I have been leaning towards C++ but I guess I wanted confirmation. Also felt a bit nervous noticing that VC++ doesn't have starter kits or as much info available and was beginning to wonder if i ...Show All
Windows Search Technologies WDS Forum Users - Ever hear of Microsoft's MVP Program?
Have you heard of Microsoft’s MVP Program Microsoft’s Most Valuable Professionals (MVPs) are recognized, credible, and accessible individuals with expertise in one or more MicrosoftR products who actively participate in online and offline communities to share their knowledge and expertise with other Microsoft customers. The Most Valuable Professional Program is the way that Microsoft formally acknowledges the accomplishments of these individuals for their contributions to community. The key strategies the program employs are: · Recognize and engage with MVPs worldwide—Identify, enable, and empower commun ...Show All
Windows Forms Data Grid View with Databinding
Hi, I'm having a problem with Data Grid view control. Its is bind to a sql server 2005 table and it is displaying data. The problem i have is that I can't manage to capture that data and copy it into excel file. If someon knows how to capture it so that i can copy it into an Excel file. P.S I have one butoon which is select all, I want it to select all rows and then when i place copy it should export to Excel. Any specific property. Thanks Supes I want to give the user the option to either select all by clicking a button or select any no of rows and then the rows data should be transfered to an excel file, click an ...Show All
Visual C++ exe that modifies its own resources
Hello, I need to create an executable file that can modify its own resources, especially add some. (I use VC++ 2003) I'm using the BeginUpdateResource(...), UpdateResource(...) and EndUpdateResource(...) functions. It works fine when I use them on any exe file. But when I try to do it on the exe that call this functions, instead of modifying it, it creates a TMP file (like 'RCX719F.tmp'). This TMP file is exactly what I expect the exe to be. So I think that the exe is not allowed to modify itself, but is there a solution to do that Thanks! Hi! You can't modify your exe, because it's locked by OS while i ...Show All
Windows Forms Easiest way to pass a string from a child form to a parent form?
I'm working in C# and am trying to do the following: 1. Form1 creates Form2 2. User enters a string in Form2 3. When Form2 is closed, I want to insert the string from Form2 into a textbox in Form1 The part I need help on is #3. I'm not a very experienced programmer, so I would prefer the "easiest" method rather than the "best" method. Thanks for any help! colecovizion wrote: I'm working in C# and am trying to do the following: 1. Form1 creates Form2 2. User enters a string in Form2 3. When Form2 is closed, I want to insert the string from Form2 into a textbox in Form1 The part I ne ...Show All
Windows Forms UserControl Data binding & BindingSource.EndEdit() Effect
I have written a simple user control with just a TextBox control on it and bound Its MyText Property to a DataTable Column. Using 2005 UI facilities I dragged this control from dataSources window on the form.In the form_load I fill my DataTable and by clicking a button I Call the associated BindingSource.EndEdit() whitout any change.But my underlying DataSet HasChanges() method returns true! how can I Fix this problem. here is my controls source: I am having the same damn problem. I entered the following code to further test the current record in my databinding function: foreach ( DataRow r in this .myDataSet.myTable.Rows ...Show All
