Soteriologist's Q&A profile
.NET Development Desktop Notification using Windows services
Hi How to create Desktop Notification using .NET windows services,C# in Windows Vista Operato System Regards Govardhan Hi I am new to windows services,I am trying to create alets using windows service,But it is not working.The same code is working in windows applications,If any know pls give me replay my code is like System.Windows.Forms.NotifyIcon nty = new System.Windows.Forms.NotifyIcon(); nty.Icon = (System.Drawing.Icon)Properties.Resources.video; nty.Visible = true; nty.ShowBalloonTip(5000, "Match Cast", "Check for Match Cast Updates ", System.Windows.Forms.ToolTipIcon.None); Plz help me Regards Govardhan ...Show All
.NET Development wsdl.exe bug for wsdl with shared output message value
I have generated web service client proxy use wsdl.exe from a wsdl file. But when I try to instantance the the proxy class I get "method XXX can not be reflected" error. I found out the reason seems to be that there is two web service methods that has same value for message attribute in the output element. For example: <operation name="method1"> <output message=" Output " /> </operation> <operation name="method2"> <output message=" Output " /> </operation> Is it a bug in wsdl.exe Because accouding to WSDL standard, the value for message attribute does not have to be unique. Since I can not modify the wsdl file, Is there anyway th ...Show All
Visual Basic loading form
good day! how could i associate the progress bar with the .exe file thanks!! God bless Drop a progressbar onto you Form and the properties you are probably going to be using are Visible Maximum, Minimum, Value So general idea is 1. Initialize the maximum and minimum values ( say 100 and 0). 2. Set the value property to its initial value (0) 3. Set the progressbar visible property to true 4. Do you looping process and change the value to its new value between minimum and maximum values 5. When process is complete - set the progressbar visible property to false. Some things which can occur. If you looping process is very very quick then you may find out that the progressbar does ...Show All
SQL Server SQL Server Express SP1 Setup Changes
The just released SP1 version of SQL Server Express has a file name of sqlexpr.exe. The previous setup file was named sqlexpr32.exe. Why would Microsoft change the file name Anyway, the file name change obviously breaks the file name that is coded in the bootstrapper package.xml file. Also, the link address will need to change (I suppose Microsoft couldn't just put a new version at the same link with the same file name so that everything would just keep working ) Is there a revised package.xml file we can use If not, do we use the same publickey Are the necessary changes documented anywhere Thanks Russ Stevens Wait! http://blogs.msdn.com/sqlexpress/ says: "Since SQL Express is ...Show All
Visual C# How to remake this in C#...
Below is code from C++ file i'm trying to convert to C#: DWORD playerUnit[25]; DWORD addr; ReadProcessMemory (pD2, (VOID *)0x6FBCC1E0, &addr, sizeof(addr), &read); ReadProcessMemory (pD2, (VOID *)addr , playerUnit, sizeof(playerUnit), &read); This is my code: byte[] playerUnit = new byte[25]; byte[] bMemory = new byte[100]; IntPtr ptrReaded; ReadProcessMemory(pD2[0].Handle, (IntPtr)0x6FBCC1E0, bMemory, sizeof(byte), out ptrReaded); ReadProcessMemory(pD2[0].Handle, (IntPtr)bMemory, playerUnit, sizeof(byte), out ptrReaded); In the C++ code, I can see that the information read from "0x6FBCC1E0" is stored in "addr." I've been able to write that much, but now I'm stuck. Next, In ...Show All
Game Technologies: DirectX, XNA, XACT, etc. mipmapping
Hi, i've loaded some fbx models via the content pipeline with integrated textures. can i tell the loader routine to auto-generate mipmaps when loading textures integrated in fbx models or how can i postgenerate the mipmaps out of the models. sorry for my english ;) thx #pragma The content pipeline will create mipmaps by default: you only need to do anything special if you don't want them to be generated for you. ...Show All
Visual Studio Tools for Office VSTO for office 2007
inVSTO for office 2003 the version of office should be 2003 Pro. Any idea about this issue with VSTO for office 2007. You have to be careful comparing VSTO and VSTO :-) The full VSTO 2005 version for Office 2003 is restricted to the Pro and stand-alone versions of Word and Excel. The VSTO 2005 SE (second edition) that is a free download provides support only for creating Add-ins (just Add-ins, no document-level customizations). And that support is for Office 2003 as well as 2007. These Add-ins can be created and run against any "flavor" of Office. ...Show All
.NET Development Getting the calling assembly name in the client library
A client library ( ClientLib.dll) class has a method to derive the calling assembly name as string applicationName = Assembly.GetEntryAssembly().GetName().Name; If the above library is referred in Win app or other library, the applicationName is set to calling (entry) assembly name. But when above client library is referred in the webservice assembly (WsAssembly.dll), the entry assembly name is null but the executing assembly name is client library name(ClientLib), ideally I want the applicationName set to WsAssembly. Any ideas on deriving the calling or entry assembly name both for web applications and windows application is appreciated. Thanks Srik no... you should not matter. I tried that.... and in ...Show All
Visual FoxPro ? FoxBase Report Form .frm Conversion
Does anyone know of a foxbase report form conversion software I have a customer in need. The file extension is .frm and I can't find anything on it. Thanks to everyone!! normally reports will have extension .frt and .frx. u can normally open the report with any foxpro by just modi repo <reponame>. extension .frm i dont know. for the report to open u should have both .frt and .frx ...Show All
Game Technologies: DirectX, XNA, XACT, etc. isometric view
i can use a isometric view with the xna Yes, there is nothing stopping you from writing a game with an isometric view. You will either accomplish that by setting a particular camera position or by creating sprites that use an isometric view. But yes, both methods are entirely possible with XNA but XNA does not do anything in particular to help you accomplish an isometric view. How you achieve the view is entirely up to you. ...Show All
Visual Studio 2008 (Pre-release) svcutil and IDictionary
I use the /ct option on svcutil to specify the collection types I want it to use for lists and dictionaries: /ct:System.Collections.Generic.IList`1 /ct:System.Collections.Generic.IDictionary`2 The first one works - it generates all generic list types using IList<T>. But the second one does not work. It still uses Dictionary<K, T> instead of the interface I specified. Is this a known problem or am I missing something Thanks... Hi, ReyCri Turns out this is a bug in svcutil, but funny part is the bug is IList<T>. We shouldn't generate class : IList<t> because the generated class won't compile so the Dictioanry<K,T> behavior is expected and when you use IList<T> we should also generat ...Show All
Windows Forms Windows Authentication in WinForms
We are developing a WinForms application which needs to user Windows integrated application authentication. This means that there is no separate user name/password for the application. The user should be able to access the application with his windows security context. Am proposing a design, by which the as and when the user invokes the application the application will check for the 'windowsIdentity' and perform a 'IsAuthenticated' check and allow the user to access the application. Also there is another requirement that the solution should support 'Fast user switching'. Similar to Windows XP's 'Switch user' feature. The problem is I can't use this feature is disabled with Win XP systems which are part of a domain. I cannot upgra ...Show All
Visual Studio Express Editions Express for Small Buisness
HI : I am from Pakistan, Lahore. As Microsoft products are licensed and their use in production environment entitles with "some cost". Can small businesses or self owned type business use the "express editions" for their customers. Please also refer some link which briefs about the "feature difference" between Express Web Developer / C# Express developer and Visual Studio Professional /Standard Edition. Please help. oh sorry hi, Muhammad Ali Inayat (what a long name, ) Which edition you'd choose depends on what kind of project you want to dev and the function you gonna to implement. If you use it to study or other self-use, then ex ...Show All
.NET Development Create XML document from DTD
How can you create xml document from dtd using C#2.0. I have to create it using preexisting dtd and not schema. You can convert the dtd to schema and then create a sample xml from the schema. To do that, you can open the dtd in VS 2005 XML Editor and choose Create Schema on the Xml tab. Once you have the schema for it, you can then create a sample snippet in the editor or you can use other tools that generate a sample from a schema. Thanks, Priya ...Show All
Software Development for Windows Vista tableadapter update inside failed transactionscope doesn't rollback the datatable
I have a number of tableadapters which must update under one transaction. After a transaction failure I notice that the data in the (SQL Server 2005) database has rolled back but the data in the datatables on the middle tier has not. This creates problems as some of the tables contain data on which other data tables are dependent. In particular, identity fields on these datatables are left populated with the identity from the failed insert. Is there a way to accomplish a rollback of data in these datatables without resorting to datatable.clear() followed by datatable.Add[tablename]row Regards. All the work that gets done against the DataTables (inside DataSets) is accessed through methods ...Show All
