mars76's Q&A profile
Visual C# JPEG Image compression
How do i create a function that takes a jpeg image and compress it even more, and save it again i have tried to search for an answer but can't find the solution, is there a class i can use en .net like the system.drawing.image links i found, but they are in C and using gdi http://msdn.microsoft.com/library/default.asp url=/library/en-us/gdicpp/GDIPlus/usingGDIPlus/usingimageencodersanddecoders/transformingajpegimagewithoutlossofinformat ...Show All
SQL Server MSSQLService (MSDE) Not Re-Configured correctly
Hi all, I have a question regarding restarting MS SQL Service under a different user, in other words, re-starting MSSQLService as a "Log on as" user instead of "Local System" account. By default MSSQLService starts as a local system account. Now my problem is, that I install MSDE 2000 for my application. And I install it as a seperate instance with name "MyInstance". So after Install my service is called MSSQL$MyInstance. so my process basicall ...Show All
Visual C# The designer cannot process the code : Icon = ((System.Drawing.Icon) (resources.GetObject("$this.Icon")));
After we moved our project from .NET1.1 to .NET2.0 we are getting the following error when opening a form in designer mode: The designer cannot process the code at line 693: Icon = ((System.Drawing.Icon) (resources.GetObject("$this.Icon"))); The code within the method 'InitializeComponent' is generated by the designer and should not be manually modified. Please remove any changes and try opening the designer again. Bu ...Show All
SQL Server about multiplication in sql
what is the value when running sql script select cast( cast(.0000006 as numeric(38,10)) * cast(1.0 as numeric(38,10)) as numeric(38,10)) the result is .0000010000. why the result is not .0000006000 It looks to be rounding it upto the nearest decimal place, as the result has one fewer zeros to the right of the decimal point. WHy it would do this I am not sure. ...Show All
Visual C++ VS2005 Linker /ENTRY
We have a bunch of legacy DLL code which uses makefiles to build. The DLLs all use /ENTRY:SomeOtherName rather than the default and I've encountered a problem in VS2005. If I put the /ENTRY switch on the linker command line in the makefile, it doesn't seem to work - when I attempt to load the DLL via LoadLibraryEx(), I get an entry point not found error (0x7f). If, however, I put the /ENTRY switch in the LINK environment variable, the DLL loa ...Show All
Visual C# C# 2.0 doesn't allow me to use System.Void?
I love generics in 2.0! What a time-saving feature, less code to write! Plus it allows for more code re-use, and thus fewer bugs. I love generics, pat on the back to Anders and the C# team. I ran into a limitation, however, with C# 2 compiler and generics. I wanted to implement a method that would have a generic return type, for instance: TReturn ExecuteSomeDelegate<TReturn>(MyReturnableDelegate<TReturn> serverMethodToExecu ...Show All
Visual Studio Team System work items tracking via web portal for Team System project
QUESTION: 1. Is there any way to create or manage work items from the web portal for a Team System project QUESTION: 2. Specifically, is there any way to create a work item of type "Bug" and/or update it from the web portal Out of the box, we only provide a read-only interface for work items. You may want to investigate TeamPlain . ...Show All
Visual C++ Unit testing For C++ code
Hi, I want to unit test a Simple VC++application. I am unable to find any reference, how to unit test a vc++ code, studio 2005. please help me by giving sample example. thanks. Depending on your situation you might try out 'CppUnit' testing framework for C++. http://cppunit.sourceforge.net/cppunit-wiki ...Show All
Visual C# Where is the namespace in 2005?
In ASP.NET using C#, I am not able to add a namespace to my pages. When I do I get a bunch of errors. Here is what I am doing: namespace MyNamespace { public partial class _Default : System.Web.UI. Page { protected void Page_Load( object sender, EventArgs e) {} } } Could this be because this is a partial class In VS 2003 I was able to change the namespace, I could also specify a default namespace, but I have been unable to ...Show All
Windows Forms TreeNodes with checkboxes
Hi all, does anyone know how to create a treeview where some nodes do have checkboxes and others don't To me this seems like a fairly common problem, yet I haven't seen any reference to this so far - maybe I'm missing something obvious I ...Show All
Visual Basic Using the progressbar
This is what I am trying to do: Copy a file from my resources to the temp directory. Get the size of the file in my resources in bytes. For every byte that is copied I want to step the progressbar by 1. The part I am having troubles with is getting the size of my file. I want to get the size so I can set the progressbar's maximum property to the same value. Also, would it be a good idea to use a background worker for this Thanks. H ...Show All
Visual Basic text formating
Hi, i would like to ask whether can i format the text in textbox in such a way that whenever there is a bullet, it will display it in a newline. the textbox data is retrieve from a database in the same column. Try using a RichTextBox. You'll need to generate text in the RTF format if it is not already in that format in the database. ...Show All
Software Development for Windows Vista Event cannot be delivered
We have developed a workflow application similar to the order workflow sample we get this error "Event \"RequestApproved\" on interface type \"RequestLocalServices.IRequestService\" for instance id \"8ce3ae0f-a8f5-4c15-826d-59dfbadf2515\" cannot be delivered." Can any one plz help Which build are you using Where are you hosting the workflow Are you using a s ...Show All
Visual Studio Where to start??
Hey everyone! I need to find out where to start with CR and .net. I have read about 5 or 6 books on .net and visaul studio. Not one of these books ever mentioned CR. At the moment I am working on a project that I need to report some info from some tables, calculate some values @ report time, and take totals at the end. Programmaticly doing this is not a problem, but printing all this formated is a problem. Anyhow, where should I start to f ...Show All
.NET Development Unmanaged code to managed code
Is there any way to convert unmanaged dll to a managed one If you have the source you could convert the code to compile it as managed code. It could be alot of work. Maybe you are just interested in using methods from the DLL The DllImport attribute can be used for that. If it is COM you can add a reference to the COM and then you can use it directly in the code. ...Show All
