omrivm's Q&A profile
Smart Device Development Exposing .NET Compact Framework Components to COM
Is there any tutorial out there for the following Exposing Managed Components You can provide managed .NET Compact Framework components to native applications . The process involves the following tasks: Design your managed types while considering COM programming. For example, do not use generic types. Define the functionality you wish to expose in a managed interface , and have your managed object implement this interface. The following is recommended: Use the GUID, InterfaceType, and ComVisible attributes for your managed interface. Use the ClassInterface(ClassInterfaceType.None) attribute on your managed object. Create native definitions of your managed types. Pass your managed ...Show All
Visual C# IDataReader???
Can someone give me explanation on how this works or a link that explains this Is it the Same as a SqlDataReader but it can be implemented for all types of Data like Oracle an Access or what...a lil cloudy on how i should use the IDataReader As stated this is only an illustration on interface usage. The SQL command in the data layer is not fully configured. commandtype and parameters etc. Martin. ...Show All
Visual Basic Dataview table problem
I made a form and put a datagridview table in the form. I can open the form and see my data-I can click in a cell and change data But it doesnt save when I close the form I noticed that on the record selector that the save button is grey out. My setting for my data sources are save if newer, and my datasources are in the location that I specified. I can make another form and just put textboxes tied back to the same datasource and save with no problem. What did I do wrong Davids Learning I am not using code, I used drag and drop to build this form, I havent learned the code good enough to try this yet. Can this be set elsewhere other than code Or can you help me with where it goe ...Show All
Visual C++ Pressing 'Enter' key terminates the Application.
Hello! I had asked for the solution of this question earlier as well,but, those solutions did not work. I was asked to look for 'OnOK()' and override it. But the biggest problem is that even after overriding it , the debugger doesn't doent stop at this function. hence proving that 'OnOK()' solution doesnt work here. Please suggest me the solution to this problem, as, this is the last thing that is blocking the completion of this project. What do you mean by "the debugger doesn't stop at this function" The application quits as you hit enter, when launched through the debugger If that's the case, you haven't overridden OnOK in the correct class. Can you make a completely fresh project, override the function, confirm that i ...Show All
Smart Device Development Battery indicator on ToolBar? How to?
I got a requirement to place a battery indicator on the ToolBar of a .NET CF 2.0 form on Pocket PC 2003. I started by assuming that I could derive a custom control from ToolBar, and modify OnPaint to add my indicator. But to my surprise, OnPaint is in fact never called. The designer of the System.Windows.Forms.ToolBar must have gone to great lengths to hide/disable/avoid all the functionality inherited from the Control class. For example CreateGraphics is not supported ! I now have a working method using PInvoke GDI that looks OK, but feels somewhat like a HACK. What is the "correct" way to do it. I will "reveal" my code later. What would that accomplish, except filling the pr ...Show All
Visual Basic Dataset InserAt
Hello, I am attempting to insert a new row into my database into a particular row location. I use the following code. dim newrow as datarow = me.testdataset.test_table.newtest_tablerow newrow("ID") = "33" newrow("CAB") = "44" me.testdataset.test_table.rows.insertAT(newrow, 3) Now, if I check the contents of row 3, ID does = 33. However, once this information is updated and sent to the database file via the tableadapter.update command, the row is placed at the bottom of the table. Why is that Any help would be great Thanks, - Edward I did understand you problem and detailed the issue that the dataset and the database table are NOT ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Microphone input
Hi, is there _any_ way to get input (16bit PCM would be perfect) from a microphone connected to the XBOX360 I'm planning to write a karaoke game (like SingStar), but that's not really possible without microphone input support. I already have code to analyze input streams and everything that I need, the only thing which is missing is a way to get input from microphones. Any ideas Patrick What a shame! It would be a great feature to build great rich-media games. As SingStar is very popular on Sony's Playstation, a game like this would be a great addition to the choice of XBOX 360 games. ...Show All
.NET Development Save SQL dataset to Access database
I have a dataset populated with data I've queried from a SQL Server database. I have an access database file with exactly the same tables as the SQL Server database. I know how to connect to the access DB, and create a data adapter, etc., but am unsure as to how to add the data from the dataset generated from SQL Server and save it into the access database. Do I have to loop through all of the rows from the SQL dataset and add the data to the access db one row at a time 1. you have not defined an InsertCommand for you ms-access dataadapter. That will be used by the data-adapter Update method. For now there is no insert command so nothing will happen. 2. I am not certain if the merge of the dsAcces(dslD ...Show All
SQL Server Couldn't connect to reports
Hi, I'm not able to browse through http://localhost/reports . When I'm trying to connect it gives me "Server Error in '/Reports' Application."At the same time I'm able to view Reportserver.At the same time I'm able to view Reportserver.(i.e)http://localhost/reportserver please can anyone suggest me some solution to this problem.. Server Error in '/Reports' Application. Sorry for misunderstanding, We have chosen for Integrated Windows Authentication Anonymous is not enabled. Thanks, Anandhi ...Show All
SQL Server Do nto send scheduled report when no data is present
Dear Friends: Could somebody please help me to stop sending scheduled report when no data is present in the report Actually I have a daily report which is sent to the client and in a week, two or three days, data will not be there and thus it delivers blank report to the client. So how can I stop sending blank mails to the client Thanks in Advance Emmanuel Mathew One possibility would be creating a data-driven subscription with query that returns an empty list of recipients if no data for the report is available. ...Show All
SQL Server Open url in a new window
hi, I got a problem with reporting services 2005. I have to create a link activated by clicking on an image. In the image navigation properties I inserted the link in "jump to url" but the problem is that no new window is opened, the url is opened in the initial report page. I tried to use jscript this way: javascript:window.open("myurl","", "scrollbars=yes,width=800,height=600,left=0,top=0"); but in this case the url opens in a new window but a blank page is shown in the report page. How can I solve this problem and open the url in a new window without changing the report page Thanks in advance and sorry for my english MaryAnn80 wrote: ok it works! Thanks a lot for y ...Show All
SQL Server Fuzzy Grouping seemingly corrupting data
I've seen one other post on this topic from October 2005 and I thought I'd bring it up again. I've a Fuzzy Grouping component in my data flow. The output data from it appears to be the result of records spliced into other records. This includes pass-through columns, not merely "clean" or similarity columns. For example (I've added the suffixes for illustrative purposes): AddressLine1_in: 162 OAKMONT AddressLine1_out: 162 OAKMONTLAMINATION INC CityStateZip_in: Alexander, AR 72002-8539 CityStateZip_out: Alexander, AR 72002-8539116-7066 These are just pass-through columns, although "used" columns are seeing something similar (below.) Any others with this experience City_in: Alexander City_out: Alexandertle Rock ...Show All
Visual Studio Tools for Office Application.OnKey
I want to disable short-cut "ctrl+s" in excel.. I use: Application.OnKey("^s", ""); But I want to activate again this chort cut. Application.OnKey have 2 parameters, string key and object procedure.. For reactivate short cut must second parameter to be omissed. Parameter is optional but in C# not exist overload of this method and must specified both parameters. I try with Application.OnKey("^s", null) but not working. ...Show All
Visual Basic convert datagridviewtextcolumn to strings(window applications)
Using VB2005 Can anyone help me with this How to convert the datagridviewtextcolumn to strings You simply want to refer to the value property of the specific row and cell. The datagridview rows and cells are simply collections you can use, the property will get the contents of the cell - in this case column1 is a cell of type datagridviewtextcolumn. dim s as string = me.Datagridview1.rows(0).cells("Column1").Value If you want to change the value to other types then you may need to cast the value with ctype. If you want to build and array out of the contents of the datagridview column , then something like the following will work, which is simply iterating through the grid and ...Show All
SQL Server Cannot open database
My mdf file was deleted. I was able to restore the said file but unfortunately I can no longer open it. I have also noticed that the recovered mdf file was smaller than the file before it was deleted. What can I do to open the database file I have tried the following lines using osql utility. 1> use db1sql1 2> go Msg 946, Level 14, State 1, Server JDI11-31, Line 1 Cannot open database 'db1sql1' version 525. Upgrade the database to the latest version. No - as I explained before, the database isn't accessible because the corruption is preventing the upgrade steps from completing. This means that no SQL Server tools can connect to the database. Your only recourse in this case is to restore from a b ...Show All
