mel_mel's Q&A profile
Visual Basic Failed to import ActiveX control
I am using VB2005 express and VC#2005 express. With my old friend VS2003, whenever i needed to add flash to my WInforms, all i needed to do was to add the control as a com component and drag it on the stage from the toolbar. Now, when i did the same in new express version, althogh it is added in the toolbars and the references list, but still, whenever i try to drag a shockwave flash instance on my win form, i get the error: Failed to import ActiveX control, please ensure it is properly registered. does some one have any idea how to add flash comntrol as we used to do in earlier versions Please reply this ASAP. Thanks and regards. Syed Mazhar Hasan Hello, I also have the same proble ...Show All
SQL Server SQL 2005 decryption of external data
I’m importing AES encrypted data into SQL 2005 database. I was hoping to use the built-in abilities of SQL2005 to decrypt the column but I do not see anywhere a way to import the key. All I see is how to generate a key from a phrase. Is it possible to import the key No, not at this time. If you encrypt the data on another SQL Server instance, then you can transport encrypted data between the servers if you follow the steps I described in: http://blogs.msdn.com/lcris/archive/2006/07/06/658364.aspx . If you encrypt the data with another application, then you cannot use it in SQL Server in encrypted form - you have to decrypt it first. Thanks Laurentiu ...Show All
SQL Server Will User's permission be overriden by database role?
in SQL server 2005, Database User's permission will be overriden by the database Role's permission or ottherwise For example, a userA is owner of table AA so it has all permisions on table AA but the user is a member of GroupB but group B has no permission to access to Table AA. What happen on User A . has it permission to access to table BB or not How can I find document or example about this Please help me, thanks so much Hi, Permissions are cummulative. if the user is granted access in one but not in another one, he will still have access until he is DENIED the access in some role which will deny him the access to the object/action. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Windows Forms Datagrid fill problem
Hi, When I fill a simple datagrid, the first row of my table is always duplicated to the end. Then I cant do anything, the program crashes. What could be the problem I use VB.net 2003. When editing the table in the IDE, everything works fine. Thanks for help, No, that is the strange thing about it. And it only duplicates the first row-input of the table (wich gives then a conflict off course). All other functions work fine... Anyone an other idea what could be wrong ...Show All
Visual Studio Express Editions VC++ 2005 EE: comexcel.cpp & /clr: Compiles but Crashes
I run VC++ 2005 EE with SDK & the MS sample comexcel.cpp works fine by itself (I still run Office Pro 97, which is more than adequate for my needs). The amended code below also works by itself (with main for LoadDataFromExcel of course) & also with a Win32 Windows Application (as it is). However, with a Windows Forms Application (just created with no deletions or additions) & the amended code I can get the program to compile if I make the changes: Configuration Properties - General - /clr C/C++ - Code Generation - Runtime Library - Multi-threaded Debug DLL(/MDd) [was /MTd] but then the program crashes immediately I run it. The Debugger is no great help to me. The simple Windows Form Application by itself works p ...Show All
Visual Studio Custom editor in VS 2005 using embedded Visio 2003 Drawing Control
Hi, I am attempting to create a custom editor integrated with VS 2005 in C#. The editor will use the Visio 2003 Drawing control (which is an ActiveX control) embedded into it. I ran the VS Integration Project wizard, selected a custom editor as an option, chose an extension type, generated my project, and then modified the generated code to use the drawing control instead of the RichTextEditor. If we open up only one document in the solution everything works as it is supposed to. We can load a Visio document, catch the events from the drawing control, and interact with it without problems. If another document in the solution is opened up along side of it (new instance of the editor and the drawing control) it too works ...Show All
Visual C# Context menu for tree view asp.2.0 web control
Where can I find treeview asp.2.0 web control that has built in context menu If such thing does not exist, how can I create that I found some posts about that topic, but all of them are very old (year of 2005) so maybe something new came up. Sorry, I have no solution for you, except that you can look up ASP.NET source code on Apress.COM to see if there are any custom controls that you can create. ...Show All
Windows Forms Form roll over opacity
Does anyone know how to make a form that is set to 50% opacity and when the mouse runs over the form it turns the form to 100% and when you go off the form it returns to 50%. Hi, To have the required result you need to catch two events : 1- MouseMove event of the form. This event already exists in System.Windows.Form object. So when the mouse moves on the form, change the opacity to 50% (if it's not already done). 2- The mouse goes outside the form. There is no such event in the framework (as i know). But u can install a Mouse Hook that catches any mouse event (including events outside the application). Here is a link that can be usefull to use hooks. Then u just have to find if the mouse posi ...Show All
Visual Studio Generate C# 2005 project files
Hello, I am looking forward to manage some C# projects programatically. Precisely, I am generating C# files and I want them to be added and removed from their projects on-the-fly. It would be very useful to add VSS checkin and checkout compatibility in the process. To achieve this, I think have to be able to at least generate C# projects as well. What is the most efficient way to write these files Is VS 2005 SDK suitable for that task It would be very nice if I could use a method that offers maximal compatibility with future versions of Visual Studio. Thanks! Marc Lacoursiere RooSoft Computing yes, writing them by hand is easier IMO. If you edit the file in Visual Studio (any fla ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Leftovers from object pool
Hi all, Hopefully I can explain this one properly - the title is the closest match i could get. Question: I am drawing Primitives (stored in a GeometricObject class that has a draw method) on screen via the DrawPrimitives method. But as each new object is created I get a split second flicker in the center of the screen of the object with no size (just a pixel point) and then it is drawn correctly. Its like the draw is happening while the object is being created. This wasn't really much of a problem as no-one would really notice a tiny pixel flicker. But the problem now is that I an using a GeometricObject Pool to maintain a list of objects (List<GeometricObject> _pool) for reuse and hopefully not involve the GC much. But this shows ...Show All
.NET Development phantom "=" signs?
I have an xml reader thats reads an xml string onto it, this works fine but when i try to call the individual elements to enter into my database using an sql string some of them have the = character in them. They seem to have appeared from no where any ideas string before: "<Client><ID>WEBCLAFFKD722164086454497T</ID><DateTimeAdded>10/30/2006 13:51:00</DateTimeAdded><CompanyName>Test</CompanyName><Position>Test</Position><Title>Test</Title><FName>Test</FName><LName>Text</LName><EmailAddress>test</EmailAddress><Telephone>85763866733</Telephone><WebSite>test</WebSite><Mobile>06987354266</Mobile> ...Show All
Windows Forms Resize application forms to fit all user monitors...
I work on some in house software for a company. The applications are deployed to machines interanlly and the monitor will vary from machine to machine. Some are wide screen and the resolution setting will vary as well. The problem is it cannot be guaranteed that the way I see the application interface will be how all the users will. Some users say the interface gets cut off and not al the controls are visible. Can anyone suggest a means of ensuring that the forms can adjust themsleves accordingly to a users monitor setting Or point me to some relevant help sites... Thanks. Thanks for the response. Any advice for a new hire given an existing application that was already developed at a ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rants on XNA 1.0
This is my first reaction when I installed and tried the 1.0 of XNA. To summarize my feeling: it's still 95% for XBox and no nearer to replace the old MDX 1.0. So I decided not to migrate from MDX to XNA though I want to do that very much. I feel like MDX 2 more; amen to MDX 2. The hardest issue for me is the content pipeline, which is very necessary, but the workflow is fixed and it assumes the contents are only built before the program runs. The helper functions wrapping D3DX can only be used with types in the content pipeline. I have to utilize the full content pipeline just for generating something dynamically, of course with significant performance cost. Or I have to write those D3DX utilities my self. Currently I don't have a good id ...Show All
Visual Studio A Help2 link in a Help1 file
Is there a way to reference from a CHM Help1 file a link into a Help2 HxS file And vice-a-versa. TIA, Noral Hello Noral - the answer is yes, though it would be dependent on the Help 2 runtime being installed on the system. To reference a link from a .chm file into an .hxs file, you could use the same formatting of links that you otherwise would see in an .hxs file. For example, you could reference a topic directly using an a href="" with an ms-help:// type URL (see URL for any topic you display in VS Help for example), or you could use an MSHelp:Link markup specifying both namespace and keyword to do the lookup. For these to work, you will need a <link> reference in all your topi ...Show All
SQL Server Execute() in class Microsoft.SqlServer.Dts.RunTime.Package has memory leak
The Execute method in Microsoft.SqlServer.Dts.RunTime.Package class has memory leak after each invokation. This following code demonstrates it. Output from the program: Allocated memory after 1 iteration(s) = 476316 Allocated memory after 2 iteration(s) = 546448 Allocated memory after 3 iteration(s) = 555008 Allocated memory after 4 iteration(s) = 563632 Allocated memory after 5 iteration(s) = 572232 Allocated memory after 6 iteration(s) = 580856 Allocated memory after 7 iteration(s) = 589480 Allocated memory after 8 iteration(s) = 598240 Allocated memory after 9 iteration(s) = 606816 Allocated memory after 10 iteration(s) = 615424 Allocated memory after 11 iteration(s) = 624000 Allocated memory after 12 iteration(s) = 632576 Al ...Show All
