Vitalijus's Q&A profile
Internet Explorer Development activex and IE7
Hello, I'm testing activex and IE7. My activex works with IE6 but I try it with IE7 it doesn't work.... I got: LOG: File C:\WINDOWS\Downloaded Program Files\mydll.dll being registered. ERR: Setup Failed Error Code: (hr) = 800736b1, installing: mydll.dll to (null) destination code(0) LOG: Reporting Code Download Completion: (hr:800736b1 (FAILED), CLASSID: e0e7c46e..., szCODE:( https://xxxxxxxx/demo/my.cab ), MainType:(null), MainExt:(null)) Do you have any ideas Henri Do you get an error if you manually regsvr32 mydll.dll on the target machine I suspect you need to change your C++ code-generation to use a statically-linked version of the ATL and VC runtime libraries. ...Show All
SQL Server Allow user to choose grouping order?
I have a report which is working off a dataset with 5 columns. Date, Type, Color, Value1, Value2 We would like to set up a report such the user viewing the report could drag and drop column headers and set up grouping in whatever order they want. What would be the best way to do this Is it even possible, or do we have to create a separate report for each combination For example, One report just groups by Date and Type. They might also want to group by Type then Date. Other times we want Date, Type, then color. I used to run the reports in a third party grid which supported this, but since it was all client side, it was very slow for large datasets. You can change the grouping through report parameters. C ...Show All
SQL Server How to work out the difference of two numbers in SQL table.
Hi I have 2 columns the first column is a counter thats always counting up like a meter, the second column is a formula that calculate the difference between the counter(column one). like Counter Difference 1 1 3 2 6 3 9 3 11 2 13 2 17 4 25 8 The first row is taken as it is, but the second row will be difference = 3-1 the third one will be 3-6 and so on. How can I do this in a SQL table or any other away Your help will be highly appreciated. Your problem is not something I've done in straight SQL statements, so it may take some time to work it out. I had thought of using COMPUTE, or R ...Show All
SQL Server Why is there a 256 JOIN Limit in SQL Server 2000/2005?
Hi, Does anyone know why there is a 256 JOIN limit in SQL Server 2000/2005 Are there any plans to raise this limit (or do any add-ins exist to raise this limit) Thanks. BTW, a separate question -- is there a limit to the number of rows a SQL Server 2000 database table can have What about SQL 2005. Thanks. You can only reference 256 tables in a select statement. I would imagine this is somehow tied to page size...or manageable RAM...but I don't know. I think the bigger question might be, why would you WANT to reference more than 256 tables I can't imagine that query would run terribly efficiently... ...Show All
Community Chat Attn: Microsoft Engineers! Push-email Technology
Push-email technology is about to explode to the masses. The technology, which is available only before to blackberry users, is currently being provided by the most mobile manufacturer such as Nokia & Sony Ericson in their latest brand. The recent marketing campaign of Microsoft about using outlook in mobile proves that the technology is about to explode to the masses. However, the success of push-email, I believe, will depend on how we can tame the spam. The current spam filtering technology still doesn't prevent spam but thrown only as bulk or junk email thereby causing a lot time wasted just to delete it. We can't expect users to download 100 garbage email a day in their mobile! If email will be available without spam, everyon ...Show All
Visual Basic Streamwriter in VB 2005
This SHOULD be easy. I must be missing something. I'm assembling a long string and trying to write it out to a file. If I display it in a message box or textbox, it looks fine. But when I write it out to a file, it gets chopped off. I thought it might be my data, because it is supposed to be HTML, but it seems to be related to the amount of data, because it chops off at about the same number of lines no matter what the data. I tried breaking it into smaller strings and doing two writelines, but it still does the same thing. lname = names(1) outFile = "D:\Class of 57\updatehtm\" & lname & ".htm" output = New FileStream(outFile, FileMode.OpenOrCreate, FileAccess.Write) fileWriter = New StreamWriter(outp ...Show All
Visual C# How can I select multiple rows in a table (in a word document), using C# code.
I'm using VS 2005. Best Regards Trinadh P. ...Show All
SQL Server Calling Stored Procedures using plain ADO in C#
Hello All, We are trying to figure out how to make a stored procedure call and pass some inputs using C# and plain ADO. We are able to call an empty stored procedure but cannot pass parameters into a stored procedure. Does anyone have sample code in C# whereby we can open a connection and pass inputs into a stored procedure The following is a sample code we are using: ADODB.Parameter param = new ADODB.Parameter(); param=cmd.CreateParameter("@StoreID", ADODB.DataTypeEnum.adInteger, ADODB.ParameterDirectionEnum.adParamInput,sizeof(int) , 9); cmd.Parameters.Append(param); ADODB.Recordset rsInv = cmd.Execute(out objAffected, ref objAffected,-1 ); In the ...Show All
Windows Search Technologies How do i edit the index list
I want to be able to search for C# ,, C++ etc is there a way to edit the words that wds indexs (using WDS 3.0) Bruce, Are you wanting to make sure you index source files like ".c", ".h" and ".cpp" or are you wanting to specifically be able to pick up the term "c++" in a document or e-mail In the advanced options for WDS there is the ability to include and exclude certian file types. By default, .c and .cpp are indexed though. Being able to pull out words specifically like "C++" and "C#" really depends on what ifilter is being used for the given file type. Are you seeing file types that have C++ in them and search isn't picking it up ...Show All
Visual C# what files for deploying
I've built a windows application and when I build the project there are a lot more files than I really need: myconnectiondll.dll myconnectiondll.pdb myDB.mdb myapp.application myapp.exe myapp.exe.config myapp.exe.manifest myapp.pdb myapp.vshost.application myapp.vshost.exe myapp.exe.config myapp.exe.manifest I can grab just the .dll, .mdb and the .exe and it runs just fine. Do I need any files other than those 3 when I deploy the application I'm creating my own installer because I need to install a few other things too, but I might try making a deployment project just to see which files it uses. Thanks ...Show All
Windows Forms TableAdapter and Commandtext... Help please.
Dear, I have a Typed DataSet in which the instructions exist INSERT, UPDATE and DELETE for my table using a TableAdapter. I would like to know like me access the instructions existent DML in this TableAdapter, as for instance: string temp = ((SqlDataAdapter)ProductsTableAdapter). InsertCommand.CommandText; How do I make that Thanks! Alessandro. Tks! I will try to simplify. Like me I do access the object SqlDataAdapter through TableAdapter Example: ((SqlDataAdapter)ProductsTableAdapter). InsertCommand is that possible Alessandro. ...Show All
Visual C# Casting using (decimal) or Convert.ToDecimal ? What to use?
What are the differences between casting a result using (decimal) and doing Convert.ToDecimal. Both seem to generate the same result...so what should I use, is there any particular circunstance Tanks a lot! Well, convert will almost always work. Its a Static Method of the convert class and has overloads for just about all of the basic value types. casting will only work from/to certian types that are compatible. For example.... string s="12345678"; int i=(int)s; //throws an exception string and integer do not have a common base class, therefore, some serious work has to be done in order to turn the 16-byte unicode string into a 4-byte integer so trying to tell the runtime to just look at that same memory ad ...Show All
Windows Forms System.Security
Whenever i import System.Security class then what type of security is provided by .net framework,where did it need specially.. if you are referring to what security classes exist in the .NET Framework, take a look at this and use/import the System.Security.Cryptography namespace: http://msdn2.microsoft.com/en-us/library/system.security.cryptography.aspx Mostly each class in terms of security generation includes examples as well as documentation ...Show All
Visual Studio Error while unfolding template with empty projectItem file
When unfolding a template which contains (or generates implicitly) a projectItem which is an empty file, the unfolding crashes in : Microsoft.Practices.RecipeFramework.VisualStudio.Library.Templates.IsTemplateFile(string filePath, ref string content) On closer inspection this method appears to assume that the projectItem file at least has a single line in it. StreamReader reader = new StreamReader(filePath); string s = reader.ReadLine() // the next line is a problem when the file is empty and s == null if (s.StartsWith("<#@ Template Language="), StringComparison.InvariantCultureIgnoreCase)) { // ... A particular case this happens in is when the template contains a typed dataset f ...Show All
Visual C++ GDI+ CachedBitmap drawing issue
I'm trying to speed up some GDI+ code by creating and using CachedBitmap objects. All seems Ok except when I go to paint them. If the image has an alpha channel then this is drawn at relative position 0, 0 and the rest of the image is drawn at the correct location. To test it I filled the CachedBitmap with a solid color 255, 128, 0, 0 (ARGB) , this then draws in the correct location. If I fill it with 128, 128, 0, 0 then the rectangle appears at 0, 0 What am I doing wrong For such issues, please use the newsgroups at http://msdn.microsoft.com/newsgroups . Folks there might be more familiar with such issues OTP Thanks, Ayman Shoukry VC++ Team ...Show All
