joniba's Q&A profile
.NET Development Problem: How to draw text into bitmap?
Hi, I need to draw text into the bitmap. Resulting text should be "smooth" (antialiased) and international scripts should be handled properly. In addition, it should be fast. You might think, "That is simple, isn't it " Well, it is not! There are at least two ways to do it: 1. Graphics.DrawString and 2. TextRenderer.DrawText. Problem is that I cannot reach my targets with these two guys (who would say, huh ). Graphics.DrawString is too SLOW, and it is not handling complex scripts properly they say. On the other hand, rendering quality is ok, and it is not depending on system-wide tex ...Show All
Visual C++ Inherited nested class bug
/* Inherited nested class bug class B inherits from A::Nested and defines a class named Nested itself. So B is a composition of : B::A::Nested B::Nested class D should be a composition of : A::Nested B::Nested The enclosing class should behave like a scope for nested classes and its name can be used to discriminate between equal named objects from different scopes. The example compiles with comeau ( http://www.comeaucomputing.com/ ) and gcc 2.95 The compiler error suggested that the compiler is pulling in the whole definition of class B. This bug also occurs in Visual C++ Express Edition Beta 2 */ class A { public: class Nested ...Show All
Visual Basic Regions bug
Every day after I’ve been working in the IDE for a while, the collapsed #regions will not open with a single click on the plus sign anymore. Instead it takes 5 to 10 clicks to open them. Actually in different source code files it takes a different number of clicks in order to un-collapse a #region . (but always the same number of clicks within the same source code file) I sure hope this will be fixed soon. It's been doing this all along since I switched in February. Any idea what's causing this Which versions on VB are you using.... VS Studio, VB Express Has it been doing this f ...Show All
Visual Studio Express Editions Blue Rectangle in Breakpoint Margin
What does the Blue Rectangle in Breakpoint Margin indicate My guess is that you accidentally set them yourself - pressing Ctrl + K twice toggles bookmarks on or off. Steve Hoag Visual Basic Express ...Show All
Windows Forms ref a value on existing instance of a form
I am trying to get access from form2 (opened by form1) to a textbox value on form1. I created a public variable in form1 to store the value of the textbox in form1. I know how to get an instance of a new form and get that value, but it doesn't do me any good because the data is not loaded in the new instance. I need to get the value of the variable from the existing instance. I have found the following on google, but I can't get it to work and really don't understand it: Form2 Form2 = new Form2( this ); and create a constructor for FormB as : Public Form2(form1 form1) { } first, when I do "Form2 Form2 = ...Show All
SharePoint Products and Technologies Can I dynamic add item to enum
I would like to have a enum type that the items are dynamicly generate, is it possible Thanks. I believe that there is a way of doing this, but is not that simple... You can dinamicaly generate & compile code using CodeDOM. You can use CodeDOM to generate anykind of code you want. You can use the classes in the System.CodeDom namespace to create all sort of code. This means that you can actually write code that will create an enum, at runtime. More info: http://blogs.msdn.com/bclteam/archive/2005/03/15/396348.aspx and on MSDN. However, I don't know if this is worth "the pain". ...Show All
SQL Server Package won't run correctly when called
I have a stiuation where I need to import data from Excel and of course I'm using DTS to do so. Because the spreadsheets have a variety of datatypes in them, I have to make sure that DTS recognizes certain rows as INT so they will import properly, to do so I add 5 rows of 1's to the top lines of the individual sheets in the correct columns. After the 1's are entered I import to staging tables and then into the production tables. The package itself is run from a job and the job is called by a stored procedure running sp_start_job. Here is a sample of the ActiveX script I am using to alter the spreadsheets: ************************************ ...Show All
SQL Server OLAP Analysis Services: Errors in Encryption Library
Hi! I am trying to process a cube in analysis services of visual studio 2005, with sql server 2005. The error is: "Errors in the encryption library: Failed to encrypt sensitive data. Possibly the encryption key is inaccessible because of improper service account change." Thanks in advance, --Dimitris Doukas You might have changed the account for your Analysis Server service. To solve this problem you will have to stop Analysis Server. Remove all the files from the Data folder ( located under installation folder) and then start Analysis Server again. Create a backup for your existing d ...Show All
Visual C# How to get different files from one directory with GetFiles()
Hello guys... Is there a way to retrieve the names of all .bmp and .jpg files in one directory with only GetFiles() method....such that it puts all files into one array Here is a little self-explaining example: public void RenameAllBmpToJpg( string directoryRoot ) { String[] files = Directory.GetFiles( directoryRoot, "*.bmp" ); foreach ( String file in files ) { String destFileName = Path.ChangeExtension( file, ".jpg" ); File.Move( file, destFileName ); } } ...Show All
Visual Basic AnalogTVTuningSpace and MSVidCtl
I´m trying to develop a decent tv tuner/capture application (since there are no such apps, nowhere, I say) in Visual Basic 6.0. I´m using the MSVidCtl component together with the AnalogTVTuningSpace and IChannelTuneRequest object to achieve this, as described here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/directx9_c/directX/htm/hostingthevideocontrolinavisualbasicform.asp and here: http://msdn.micro ...Show All
Windows Forms Objects and Forms
Hi everyone, I'm currently developing a Windows app using .NET (C#). Here is my problem. In my Main Winform (Main.cs), I create a new instance of my "Configuration" object. Configuration config = new Configuration(); On my form, I have a menu that creates and shows my "Options" menu. Options option = new Options(); option.Show(); That works great, but here  ...Show All
.NET Development Create a new database
In VB 6 you could use the VisData application to create a new database for use on a local machine or on a remote server. What tool is available in Visual Studio 2005 to do the same thing. I have found the Server Explorer, but could not create a database as described in the online help that came with Visual Studio. Thanks for the help. Richard B. Oberholz Hi, Are you using SqlServer Express If so there is a management tool that's freely available. From there you can create your own databases. SqlServer Management Studio cheers, Paul June A. Domag ...Show All
Visual C# blocked zip files using zipsharp library
I had a program created in C#.net that zips a folder up for me automatically. We used the zipsharp library and it seems to work great execpt when you try to open it using windows to extract the files from the zip. If you try to extract the files you get a message saying "windows has blocked access to these files to protect your computer" and it tells you you can fix this by right clicking the zip file and go to properties and check the "unblock" box and all will be fixed. However there is no "unblock" option anywhere. I can use winzip or winrar to open and extract the file just fine but windows will not work. It seems to be somet ...Show All
.NET Development Server and client configuration with remoting
I'm getting an error stating that... System.Runtime.Serialization.SerializationException was unhandled Message="The input stream is not a valid binary format. The starting contents (in bytes) are: 53-65-72-76-65-72-20-65-6E-63-6F-75-6E-74-65-72-65 ..." I had the application working when I only have one wellknow object exposed on the server side of things as such <configuration> <system.runtime.remoting> <application> <service> <wellknown mode="SingleCall" type="Customer.AgreementDAO, OMData" objectUri="AgreementDAO.soap"/> </service> <channels> ...Show All
SQL Server SSIS - Data Sources - Configure for deployment?
I had posted this in the following pre-existing thread : http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=89737&SiteID=1 Also wanted to start a thread on this to see if I can get some suggestions. Any suggestions on how to do this are appreciated. -------------------------------------------------------------------- Books-Online quote: >> In Integration Services, data sources are design-time objects that you use when you build packages in SSIS Designer. This is indeed the case but why I would like to see it changed or provide some way of including the data source in some kind of a "solution/project con ...Show All
