Davids Learning's Q&A profile
Visual C# ExtractAssociatedIcon Help!!!
Hello, I'm trying to extract icon from exe files during runtime, i know about the following function. Icon ico = Icon.ExtractAssociatedIcon(@"C:\WINDOWS\system32\notepad.exe"); this .Icon = ico; The problem is when i save the icon object to the disk!! MemoryStream Memo = new MemoryStream(); ico .Save(Memo ); File.WriteAllByte(@"C:\DLICO.Ico", Memo ); The above code should write the icon to C:\ the icon is saved but its deformed!!, i mean its colors looks very bad, can any one help, mention that the icon appear correctly in this line this .Icon = ico; but the saved icon appear very bad. Please help, thanks I'm building an app. that take as an input exe file and encapsulate th ...Show All
Windows Forms MFC71u.dll - MSVCR71.dll - MSVCP71.dll
I am wrtiting a .Net Setup and Deployment project. This project packages up an application that was written in .Net and then deploys it on fresh systems. I was under the impression that the .Net redistibutable package supplies all the necessary dll's for runtime linking of applications built in .Net. I am getting errors complaining that MFC71u.dll, msvcr71.dll, and msvcp71.dll are not being found. I was wondering what is the correct way to distribute these to customers. Should they be in the redistibutable package What are these being called for Thanks - Arra Add the appropriate merge modules to your setup & deployment project. They are all typically in <Common files Folder>\Merge Modules. VC_Use ...Show All
SQL Server database connection with sql server 2005 fail with DSN
hello everybody I have a problem in connecting to my SQL Server 2005 With the help of DSN i.e. Data Source i have tried with both SQL Client and ODBC Connection RasConnection.Conn= new OdbcConnection("DSN=CallingServer"); but it is throwing the error the user is not associated with trusted SQL Server connection Please tell me how to solve the problem I n the serve side i had made the setting of the select "SQL Server and Windows authentication mode" Please give me some solution for both VB and C# .net Thanks in advanc3e Hi, Sarguna The error is expect as " Login failed for user 'xx', the user is not associated with trusted SQL Server connection " . So can you provide what is the exact error & ...Show All
Audio and Video Development Titleset aspect ratio
Hi - long time listener first time caller. I am working on a disc where the main title is 1080p VC1, but some of the extras are 480i and 4x3. I'm afraid I don't have a copy of the spec. Is there a way I can set the aspect ratio for each title in my playlist This should be set in the VTSI file when you build your content. You can set this in the playlist under MediaAttributeList insert something like <VideoAttributeItem index="1" codec="VC1" sampleAspectRatio="4:3" /> However this may not work: as some titles have defective attributes in their playlists, the Xbox player will use the VTSI information in preference to that in the playlist. Of course a few titles have defective VTSI data too, the ...Show All
Visual Studio Express Editions Trouble with database connections
Hello all, I'm trying to get some data from a table in an Access database, and my program is behaving weirdly (at least i think so). Ok, so for now, i want to run this query: Dim query As String = MonthCalendar1.SelectionStart ' + " " + ComboBox1.Text + ComboBox2.Text + " " + ComboBox3.Text Dim myQuery1 As String = "SELECT [BID]FROM Table1 WHERE [Date]=" + query + "" Dim myConn1 As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:Documents and settings\dbase.mdb") Dim myCommand1 As OleDbCommand = New OleDbCommand(myQuery1, myConn1) myConn1.Open() Dim myReader1 As OleDbDataReader = myCommand1.ExecuteReader(CommandBehavior.CloseCo ...Show All
Visual C# BeginInvoke and resource leaks
From Jeffrey Richter's "CLR via C#": "You must call Endxxx or you will leak resources. CLR allocates some internal resources when you initiate asynchronous operation. If Endxxx is never called, these resources will be reclaimed only when the process terminates." This is written about functions like BeginRead and EndRead. Is this correct also for delegates For example: public delegate void SomeDelegate; ... SomeDelegate someDelegate; ... someDelegate += subscription; ... someDelegate->BeginInvoke(); If I never call someDelegate->EndInvoke, does this create resource leak, as written in the book According to Richter, the only Beginxxx function which doesn't require Endxxx is Control.BeginInvoke. I can use Control.BeginInvoke ...Show All
Windows Forms Parameters for iexplore.exe
Hi, I have a .Net application that opens the browser when a certain action is done. This is done by Process.Start("www.google.be") for example. Now I want that there is only one browser window for the application. When I click on a link in my program, the link must open in a existing window from that program if exist. I have googled to find the iexplore.exe parameters but only find -k for kiosk mode and some others like -new, -embedded, -nohome... Someone have a link or the list for the parameters Thx Hi Guys, ok, well I am not a programmer.. I have a batch script that opens up a website, just like this other guy's.. however, I have no idea what u guys put in this thing I need a way for ...Show All
Visual C# make default webbrowser, and publish problem
hey i just made a simple webbrowser (using IE activeX) an i want to use it as default Webbrowser, how can that be done. i read something on a post that it can be done with the registry key, i read something on this link but, i didn;t understand many (visual basic ) this is the link... http://support.microsoft.com/default.aspx scid=kb;en-us;299853 isn't there anything easyer or made in C#. btw i have another question, at my borwser i used some pictures on buttons but when i publish project it;s not working (only when i deselect pictures form buttons) how can i make the publisher to take the pics (they are imported local resources should i use project resource file Resources.resx and import them there) HKEY_CLASS ...Show All
Visual C++ atof rounding error
Hello, While using visual studio 2005 I noticed an odd rounding error where 0.0355 gets converted to 0.0349 when atof("0.0355") * 100000.0 is done. If you run the code below you will see it printed out. Any help / ideas would be appreciated. string strList[2] = { ".099999", ".0355" }; for ( int i=0; i<2; i++){ string strVal = strList [ i ]; double fVal = atof(strVal.c_str()); long lValx10 = ( long ) (fVal * 10.0); long lValx100 = ( long ) (fVal * 100.0); long lValx1000 = ( long ) (fVal * 1000.0); long lValx10000 = ( long ) (fVal * 10000.0); long lValx100000 = ( long ) (fVal * 100000.0); cout.setf(std::ios::showpoint | std::ios::showpos); ...Show All
.NET Development WEB service parameters styles
Hello. I am implementing a client for a Web service defined on the JAVA server (JBoss AS). They tried to define a style for methods parameters as 'rpc' which meaning that parameters appear in the WSDL as they are defined on the server and .NET test application had problems when the number of parameters was greater than 1. Then they moved to 'document' style which forced WSDL to envelop a list of methods parameters into a structure and pass this structure as parameter. It is very inconvenient because the name of the structure is defined as a name of the method and there are other confusing elements in this solution. Can you provide any information about limitation or constraints on the list of parameters in WSDL generated by JAVA What ...Show All
Visual Studio Team System How to add multiple workitems with <TFPT workitem> using the option @filename
I am looking for a solution to migrate multiple work items from one project located on TFS "A" to another project located on TFS "B" - perhaps by using the TFPT workitem command. Creating a list of items e.g. as XML from a query or as text output of the command <TFPT workitem @> works quite fine. Afterwards I'd like to use this list in order to create the new items (with the same field values) on the other server's project. Three main questions come up: How should the file look like which gets piped in the command TFPT workitem /fields:@filename How to disable work item validation for field values (e.g. I'd like to keep the current state and other fields as well) while creating the new items D ...Show All
Windows Forms Adding controls to form
Is there a way to add controls to form from other class without creating a new instance of the form I needed to add a label and a button to the form without creating new form every time.And the second question is...how to save these controls in the form,i mean when user close the application and run it again the form should contain the controls which user is added to it las time,how can i to save the form and controls values when i close the application Really sorry for the bad english,that's not my mother language..... Yeah,but how to invoke the method AddControlsToForm after that What parameter should i pass Sorry...i'm new to .net programming. ...Show All
Software Development for Windows Vista validation failure when importing managed card from a file
After the signature is checked, what further validations are performed on a managed card while it is being imported from a .CRD file Is there a way to enable debugging to find out more about what goes wrong when it fails Upon importing a managed card I generated from a file, the signature appears to be validating (I'm past earlier error messages by adding the issuer's certificate temporarily to the trusted root CA list), however a dialog box appears with: The data present in a card could not be validated. and the import fails. The event log shows event 263 ... The following information is part of the event: An unexpected element was encountered during reading. The card was generated by the sample CardWriter for a ...Show All
System Center SCCP 2006 availability on MSDN
Previously, we incorrectly communicated that SCCP 2006 would be available for download by all MSDN subscribers. The download option is available only for Premium-level subscriptions. We apologize for this miscommunication, and for any inconvenience caused. ...Show All
Smart Device Development sms in the inbox
does any way to get sms in the inbox check out this article ;) http://www.developer.com/ws/pc/article.php/3381221 ...Show All
