Shamdogg's Q&A profile
Visual C++ Getting the installation directory of a dll at run time throgh its code
I'm creating a dll. This dll is a in process server which runs inside the internet explorer. I want to get the installation directory of this dll at runtime through the code. Because of this dll runs in IE if I get the current directory is it gives the directory of IE or this dll. Thanks, Supun. Have you tried GetModuleFileName with first parameter equal to the handle of your DLL, which is passed to DllMain function of your DLL ...Show All
Visual Studio Team System Unable to create any new Team Project
Although this seems to be related to some of the posts, I do not see TF30177 in my error log, so I am seeking help. This also seems extremely similar to http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=147772&SiteID=1 but I have doubts. I have VSTS and TFS installed. A few test projects were crearted quite a while back and everything seems to be working fine. Recenty, we have revived our research work on team system and hence I needed to create new team projects, and despite old team projects being fine, I have started getting problems while creating new team project. After reading through forums, I discovered that it is likely that the WSS version in TFS machine was updated. So, I ran: stsadm.exe -o upgrade -forceu ...Show All
Visual Studio Express Editions your sql server installation is eaither corupt or has been tampered with (could not open SQLEVN70.RLL)
i have tried un installing it and re-installing it over and over and there is no change! please help me! Ummmm......what did the post advise Am I really going to have to pay $15.00 to find out I sent a request to Dell for tech support and they told me to just DISABLE the function. I'm not sure if I want to do that. Thanks, Rita ...Show All
SQL Server DecryptByPassPhrase not decrypting varchar columns after copying a database
I have an encrypted column of data that is encrypted by a passphrase. The passphrase was encrypted by a symetric key in a key pair. The passphrase also is stored in a table. I can get the passphrase as needed to encrypt/decrypt the columns. I copied the production database to a new database for development. Subsequently I had to create a new symmetric/asymmetic key pair and recreated my passphrase with the new key pair. Now the passphrase will decrypt a text column but it will not decrypt two other columns which are of type varchar in the database. Here is an example: DECLARE @pss varchar ( 30 ) EXEC [dbo] . [uspPassPhraseGet] @pss OUTPUT SELECT DISTINCT contactid , uissueid , createdby , created_dt , CONVERT ( varchar ( max ...Show All
SQL Server I am having a problem with percision which appears to be a documented bug is there a work around of solution in sqlserver 2005
I have been working on an application which require as much percision as we can get. We have defined all numeric values as (38,16) however when ever we divide a number by the result of a built in function it truncate the percision to 5 decimal place this cause us to have a small but enoying loss in the numbers being caculated we need a minimuim of 8 decimal places or better is there a work around or solution for this problem in sql server 2005. The more percision the better. example: select tna/(select sum(tna) from taum) from taum where fund_id = 2345 the result is always 5 decimal places even though fund_id tna = 2569698.23 and sum(tna) =98745612325879.36 which should equal .00000002602341683313994 instead ...Show All
Gadgets Develop sidebar gadget in exchange for promotion?
I've just upgraded to Vista and think that these sidebar gadgets are going to be really popular as the platform gains exposure. I author one of the top fashion blogs on the net and would like to work with a developer to create a gadget that would display a daily fashion/beauty tip. Would anyone like to work with me to develop this in exchange for an embedded link to your development company Please email me at rachelmichaela()gmail()com for more info on the collaboration. Cheers! Rachel Michaela ...Show All
.NET Development Interop Thread Leak?
Hi, I'm hoping for a few pointers for tracking down a resource leak. I developed a VB 2.0 indexing application which is using FileNet's Capture COM objects and we're occasionally seeing a fairly serious leak. It doesn't appear to happen consistently (one user has never had one and I can't seem to reproduce it in my test environment), but it does occur regularly in production. I've been using various tools to poke around in a mini-dump (w/ full memory) and I've seen a few potential problem areas, but I can't seem narrow it down any further. Using PerfMon I found that the leak appears to be in private unmanaged memory. When I open the dump in WinDbg, I get this message: This dump file has an exception of interest stored in it ...Show All
SQL Server Where to build client application for SQL 2005 standard edition
Hi, I have a database working on SQL Server 2005 Standart Edition and i want to create a client windows form aplication. My problem is where to do it Im trying to use MS visual basic 2005 express edition but it doent support SQL Server 2005 Standart Edition, it only supports SQL 2005 express edition. What should i do And in the visual studio 2005 that comes with the package of SQL Server 2005 standart edition there is no project of a winodws form. Please help The VS2005 comes with the SQL standard edition is a special-purpose VS2005 which is called BI Studio. It is used to develop Reporting Services project and SSIS projects. VB2005 Express definitely supports all versions of SQL 2005. After supplying the machin ...Show All
SQL Server why won't this work? select stmt
select uid, OrderID, Count(OrderID)As DupCnt from OrdDetails group by uid, OrderID having count(OrderID) > 1 this returns no rows, can't I show another column to identify which uid goes with the dups, I did it before and now it doesn't work, probably something silly I'm missing. thx, Kat I just wanted something to tell me which specific columns had duplicates in it. If I change the UID to something other than an identity column then it will probably work. UID was added after I created a table with duplicates in every column so I could learn how to delete duplicates. Practicing strange test situations. ex. UID 100 has 2000 duplicates UID 200 has 258 duplicates Then I could use different types of code to track t ...Show All
Audio and Video Development XPath Syntax - which is best?
state:actioned()=true() state:actioned()=true state:actioned()=1 state:actioned() Are all of those valid and one in the same Depending on which document or sample I'm looking at I see all flavors. The second one ( focused()=true ) is an error, since true by itself is undefined. The rest are equivalent, but yeah, having no RHS is less typing. Note that any non-empty string is converted to true, so you could have focused()='0' or focused()='false' or even focused()='Jack Sparrow' and they would all be equivalent to true() . Only focused()=0 or focused()=false() or focused()='' or not(focused()) are really false. ...Show All
Visual C# How to set font and colour for different parts of the text of Controls?
I want to have something like TreeNode node = new TreeNode(); node.Text = string1 + string2 + string3; and string1, string2, string3 must have different font and color. How can I do that Thank you. Trang Hi all: I have tried this method, we can add code in treeview's drawitem event private void treeview_Load( object sender, EventArgs e) { this .treeView1.Nodes.Add( new TreeNode ( "zbo" )); } private void treeView1_DrawNode( object sender, DrawTreeNodeEventArgs e) { Graphics g = e.Graphics; Rectangle r = e.Bounds; g.FillRectangle( new SolidBrush ( Color .Blue), r); string str = (( TreeView )sender).SelectedNode.Text; g.DrawString(str, new Font ( "Verdana" , ...Show All
.NET Development dataset transaction
Hi, When looping through the table(s) rows of a dataset to commit changes to the database, how do you maintain the transaction For example: you loop through the rows of a dataset based on table1. System will pick up the changes. One row at a time, the system calls the necessary storred procedures. Then what if the final row in table1 is incorrect for some reason Thanks Your easiest why of doing this is to use a DataAdapter. Create a transaction and assign it to each of the updatecommands in the adapter. Code taken from http://www.eggheadcafe.com/articles/20050719.asp string strConn, strSQL; strConn = "Provider=SQLOLEDB;Data Source=(local);Initial Catalog=Northwind;Trusted_Connection=Yes;"; ...Show All
Visual Studio 2008 (Pre-release) Issue with WCF method in client app
have a Web Project called secure that I would like to use a WCF service on the server. In the Solution, I have another project, WebFuncs, that is some common code, and includes the Service Reference to my WCF Service. Because secure imports WebFuncs I was able to use this code: Private proxy As New OrderCompletion.OrderCompletionProxy ... Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSend.Click ... OrderNum = proxy.CreateOrder(Me.CartID, Me.tbComments.Text) ... End Sub However, in use I get this error: System.MissingMethodException: Method not found: '!0 System.ServiceModel.ClientBase`1.get_InnerProxy()'. at secure.OrderReview.btnSend_Click(Object sender, ...Show All
Software Development for Windows Vista Retrieving External Service from Activity Validator
Hi All, I have registered a validator with my custom WF activity. On the overriden method 'Validate', i need to use some external service to perfrom the actual validation. This service is registered with the runtime via 'runtime.AddService()'. The ValidationManager that is passed as part of Validate has a method GetService. However when I invoke this method to get hold of my external service, I get null as the return value. Am I missing something here ..... Rgds Giri Hi Giri - Validation happens during compilation time. You cannot access a runtime service in the manner you have specified, which is why you are getting the null return value. Can you describe to us what you are tryi ...Show All
Windows Forms Priniting
How would I print the text in a textbox using a print dialog Also how would I get the text in a textbox to show up in a print preview dialog Thank You! Please refer to http://windowssdk.msdn.microsoft.com/en-us/library/ms742418.aspx . Help it is helpful. ...Show All
