Penicillin's Q&A profile
Visual Basic Dynamic Control binding to dataset
dont call acceptchanges on the dataset. In order to update the database, you need to use a DataAdapter/TableAdapter and call the Update() method How are you creating this binding source How are you retrieving data take a look at this and see if it guides you also: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=932108&SiteID=1&mode=1 ...Show All
Software Development for Windows Vista Can't download .NET Framework 3.0 June CTP SDK
When I try to download it, it reports : The download you requested is unavailable. If you continue to see this message when trying to access this download, go to the "Search for a Download" area on the Download Center home page. This has been a particularly difficult release to publish live, and it has caused us a lot of late nights and internal conversations. Bottom line is that it took a long time for all bits to be fully live, and now they are. We on the SDK team apologize for your frustration on this, and we're using this as a lesson to help drive how we manage future releases. If you continue to have problems, please email me with a copy of your log. ...Show All
Visual Studio Text Template questions
Hello, I have two questions about the text templates: 1. I've just scratched the surface of the DSL tools and architecture, but find them very interesting and am anxious to start using them. I am curious however, can i use them to implement a diagram designer that matches the usability of a Form designer. What i try to say is that i would really like to keep the model and sourcecode in sync. It is not a problem that it is one, way, but i really don't want the end-developers to continually have to re-generate the code whenever a model has changed. If possible, i wouldn't even want them to see the text templates, but just the model they design and the resulting sourcecode (Like the Form designer). Is this possible 2. How can i use text tem ...Show All
Microsoft ISV Community Center Forums Worksheet.Copy causes execution to stop
Hi I am experiencing an odd behaviour from my VBA code in Excel. I have some code that has worked until recently. We have gotten XP instead of win2k, which i could suspect is causing this in some strange way. My problem is that i have the code below. In the line where i say Worksheet.Copy, the execution simply stops. No errors appears, nothing. <CODE> On Error GoTo ERROR: Worksheets(SN_MonthYearAct).Copy After:=Worksheets(Worksheet.Count) .... ERROR: MsgBox(Err.Description) </CODE> The variable SN_MonthYearAct is a constant containing the string "MonthYear Act", and a sheet with this name does exist. Worksheet.Count returns currently 8, and there are 8 sheets in the workbook. I have trie ...Show All
Smart Device Development MS Access query from Mobile App
I'm trying to determine what is and isn't possible before starting development of a mobile application for this mobile device ( http://www.intermec.com/eprise/main/GSS/Service/Content/Tools/Tools_ListProductManual section=Tools&Category=CMPTR&Family=CMPTR2&Product=CMPTRCN2B&Tool=Manual&Language=English ) The current plan is to have a laptop acting as a central server and 2 handheld devices. On the laptop will be an Access database. The devices (barcode scanners) would be connected through wifi to the laptop. Would I be able to create a C# application on the mobile device that can pass the read barcode to a query to the Access database on the laptop through the wifi connection Or what would need to be done to enable i ...Show All
SQL Server dynamic Instead of update trigger problem
Hello, I am trying to use an instead of update trigger to alter a lastupdated field in the table when any of the other fields are modified by an update. I want to do this as I can't rely on the applications updating the date when they alter other data. The trigger looks something like this. CREATE TRIGGER [noidentitytableinsteadupdate] ON [dbo].[noidentitytable] INSTEAD OF UPDATE AS if(not update(updatedat)) begin update noidentitytable set text = inserted.text, state = 'updated', updatedat = GetDate() from noidentitytable INNER JOIN inserted ON (noidentitytable.id = inserted.id) end else update noidentitytable set text = inserted.text, state = 'updated', updatedat = inserted.update ...Show All
Windows Forms Changing transparent color on BMP
I found this source from the GDI+ FAQ web site which will change the transparent color on the palette for a GIF file. However, I need to do this with a BMP file and this code doesn't seem to work on BMP, the resulting image is all messed up. Can anyone tell me how to modify this code to work with BMP images private void panel1_Click( object sender, System.EventArgs e) { //Creates a new GIF image with a modified colour palette if (cp!= null ) { //Create a new 8 bit per pixel image Bitmap bm= new Bitmap(_gifImage.Width,_gifImage.Height,PixelFormat.Format8bppIndexed); //get it's palette ColorPalette ncp=bm.Palette; //copy all th ...Show All
SQL Server Microsoft.Data.SqlXml.SqlXmlCommand in asp.net 2.0 web application
Hi guys, I met a problem when I use Microsoft.Data.SqlXml.SqlXmlCommand in asp.net 2.0 web application. The following is the code: using Microsoft.Data.SqlXml; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { ConnectionStringsSection secConn = (ConnectionStringsSection)ConfigurationManager.GetSection("connectionStrings"); string strConn = secConn.ConnectionStrings["sqlXmlConn"].ToString(); try { SqlXmlCommand cmd = new SqlXmlCommand(strConn); <-- error occurs here } catch (Exception ex) { } } } If <trust level="Full" originUrl="" /> is set in web.config of machine, the code works fine. i ...Show All
Visual Studio substitution and environment variables in project template files
How can I substitute a variable in a file contained in my Project Template with the value of an environment variable Can this be done in a similar manner to the Visual Studio macros e.g. $destinationdirectory$. The environment variable is my own, I've tried $MY_ENV_VAR$ and $(MY_ENV_VAR) but it does not get evaluated. HI, I was able to use environment variable in my .proj.user file as shown below and it worked perfectly <StartProgram>$(igxlroot)\EXCEL.EXE</StartProgram> ...Show All
Software Development for Windows Vista How to control the fixed page part name when Win32 App printing to MXDW(Microsoft Xps Document Writer)
Hi, I have a win32 app printing to MXDW. Is there a way of customizing MXDW output, like changing Fixed Page part name to something (like Esc1.fpage). Is there any printer escape available Thanks do you know of a way where i can make any other application print to the document writer without popping up the save as message box ...Show All
Visual Studio Express Editions need help displaying array values
i have 150 values in an array and i want to display them in order of the highest first and the lowest last. i have no idea how to do this. Help will be appreciated. thanking in advance oli I think you need to explain a bit more clearly what you mean by "not saving the values for "arrtotals(150)" after when it gets to the listbox part" ...Show All
Visual C++ sort a 'std::vector' containing classes/structures?
Hi, I want to sort a vector contain some data using std::sort. Here are the sample codes. #include <vector> #include <string> #include <iostream> #include <algorithm> using namespace std; class MyData { public : int m_iData; string m_strSomeOtherData; }; bool MyDataSortPredicate( const MyData& lhs, const MyData& rhs) { return lhs.m_iData < rhs.m_iData; } int main () { // Create list vector myvector; // Add data to the vector MyData data; data.m_iData = 3; myvector.push_back(data); data.m_iData = 1; myvector.push_back(data); // Sort the vector using predicate and std::sort std::sort(myvector.begin(), myvector.end(), MyDataSortPredicate); // Dump the vector to check the result for (vector: ...Show All
.NET Development Transaction Scope
How to use distributed transaction scope with oracle 10g..... ...Show All
SQL Server Windows XP media and SQL Server 2005
I'm not finding a definitive answer to my question as to whether or not I can run the development edition of SQL Server 2005 on my brand new pc with this operating system. No one seems to know for sure and I can't afford to pay for tech. support. It should be supported but I don't know where to get a 'real' answer. thx, Kat well really you should be using a more "development" based OS like WS2003 but thats just me. take a look at the requirements: http://www.microsoft.com/sql/editions/developer/sysreqs.mspx it should run, even though it states Windows XP SP2 or later, MCE2005 is XP Pro plus bits on top. But don't quote me, the guys will help here hopefully but you can also contact the MS PSS - product support se ...Show All
SQL Server AS400 DB2 connection strings
I am trying to construct a connection string via iSeries OleDb provider. The default list of libraries on the AS400 for my user is fine for production. But in test scenarios the code/data libraries are rolled out through a sequence of test libraries. How do I specify the additional libraries for testing. I connect fine and can execute sql. the statements like insert into TestLibrary.Table work fine, but the associated trigger code isn't called. Would it be better to use the .Net Connection set of classes instead. I switched from ODBC to OleDb because of assumed thread safety issues. This link might help: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1061900&SiteID=1 ...Show All
