MarcoB's Q&A profile
Visual Studio Tools for Office VSTO 2005 SE Deployment Problem
Hi, I am creating a Excel 2007 VSTO COM Add-In using VSTO 2005 SE . It runs perfectly fine when I build it and run the in development computer having VS 2005 . However, when I try to install the setup.exe or .msi file for the same addin in the client machine or Virtual PC having the following configuration: 1. VSTO Runtime 2. Office 2007 3. .NET 2.0 Framework it does not seems to load . I also did caspol settings to make it Fully Trusted . I get the following error " Not Loaded. A runtime error occurred during the loading of the COM Add-in ." Can someone please help me on this Thanks in advance How do I get teh PIA for Office 2007 I checked it in the Disabled Application Add-in Section b ...Show All
Windows Forms BackgroundWorker ReportProgress Multi-Core
I have a problem with ReportProgress on multi-core machines. The following code updates/removes items from a list view as a background thread processes the data that they display: Background Thread: ChangedPacket^ changedPacket = gcnew ChangedPacket(); for(int i = 0; i < newWords->Length; i++) { ... changedPacket->ItemToSub = newWord ; lexiconMutex->ReleaseMutex(); worker->ReportProgress(pComplete, changedPacket); ... } private: System::Void bwTextProcessor_ProgressChanged(System::Object^ sender, System::ComponentModel::ProgressChangedEventArgs^ e) { lexiconMutex->WaitOne(); ChangedPacket^ retrievedPackage = gcnew ChangedPacket (*dynamic_cast<ChangedPacket^> ...Show All
Visual Basic Welcome to the Visual Basic IDE forum!
Hi all, and welcome to the Visual Basic IDE forum . I'm Paul Yuknewicz - I'm one of the Program Managers on the Visual Basic product team, and starting today, I'll be moderating these forums. For more info about me, check out my blog . Note there is a VB Team blog as well. In this forum we will cover questions and discussions regarding the all things in the Visual Basic IDE (integrated development environment). This covers Intellisense, debugging, ErrorCorrect, ClickOnce deployment, code snippets, colorization, smart tags, key bindings, Object Browser, Refactor! for Visual Basic 2005 , etc. The team and I look forward to joining you in discussions about VB. Best, Paul ...Show All
Community Chat Microsoft and its 'new' Halo: Wars RTS Game, and Derelict Studios
Well, as most have probably heard, Microsoft has come out with a 'new' Real Time Strategy game called Halo: Wars, a game to be made for the X-Box 360. I quote 'new', because it is not a new idea, nor shall all the credit go to those people who work in Microsoft. A Modification for the game C&C Generals, called Halogen, was a mod in the works for approximatly 3 years, where people from the community pitched in numerous hours of work and labour for the good of the community, and a playable release was soon to come for those of us desperate to download it. Microsoft came in close to before the release and forced the memebers of Derelict Studios to close down Halogen and halt all progress on the game, and close down the ...Show All
SQL Server Delete records every day
Hi! New on this Is there a way on a sql sever where i can delete som records one time every day like if a field in my table is < getdate() Alvin Hi Alvin, You can schedule the stored procedure to run as required via creating a job (and step) in SQL Server agent. Cheers, Rob ...Show All
Visual Studio Building a web form programmatically
I am fairly new to the extensibility realm. I think it is a great tool but I have run into some issues. I am working on an add-in that will generate a basic application based on a database. Currently, the tool has no problem generating the necessary classes and thanks to some of the posts on this forum I have figured out how to add the code to App_Code folder correctly. The problem that I am trying to solve is to create the web form programmatically and then populate it with controls. I can dynamically generate the web form but I can not figure out how to add controls to the page. I would like to have the application write much of the codebehind logic to tie to the classes that the system generates also but until I can figure out the ...Show All
SQL Server nvarchar datatype causes hungarian characters to not be displayed correctly.
I have a hungarian character which looks like a lower case o with two single quotes on top of it --> I have this character stored in two table the datatype of the column where this is stored at is varchar in one table and nvarchar in the other. When I try to view the field in enterprise manager the character appears as it should in the 2 tables, but when I use a jsp page deployed on weblogic to look at this character the one stored in the column of type varchar displays perfectly, but the table in which the column is nvarchar the character on the jsp page appears as a Q instead. Any inputs on how to correct this issue will be much appreciated. Any changes to the character set on the html / jsp pages has no affect on the resu ...Show All
.NET Development Insert Image From asp.net2.0 webpage to sql database and Retrieve the image from sql database to asp.net2 webpage
hi, I don't know how to Insert the Image From asp.net2.0 webpage to sql database and Retrieve the image from sql database to asp.net2 webpage.if any body knows answer for this please replay imm. Thnks. Good day! Could you please let me know how I can retrieve files from a folder and display them in a grid view dynamically. Thank you. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. I bought a couple of books but have ran into a little problem...
I bought both C# and Game Programming, and C# for Dummies 2005(I am kinda a new to programming), and they seem up to date, yet neither are new enough to feature the Windows Game project, so they cover console app, which I can do fine in, so as far as making games goes, is it all right to use console app, or should I stick with Windows Game, and if so, how do I translate what there is in console app to that of Windows Game, is there any sort of FAQ to the matter, I didn't see on in the FAQ thread. Thanks for any help that you can give me. lol, well the books dont use the "Windows Game Project" because that is only from the XNA framework which as you should its BETA came out on ~August 30. They will probably teach you s ...Show All
Visual Studio When a VS Service Doesn't Exist
I am developing a package and am new to VS Extensibility. I understand that communication between VS packages is done through services. I've been scouring the SDK documentation and it seems that the service I'm looking for doesn't provide the interfaces that I need. My question: Does this mean I must obtain interfaces through COM instances and interop namespaces Thank you. JJ Unless you are actually implementing a custom debug engine, Those interfaces will not be of much use to you. It would be better to retrieve the EnvDTE.Debugger and/or EnvDTE.Debugger2 interface. I'm not really sure if you can directly effect a change in the thread's instruction pointer though. I know you can do a SetNextStateme ...Show All
.NET Development ResourcePool problem
Not sure what has changed, but I'm getting this exception. I have registered oledb32.dll and comsvcs.dll but no dice. Please advise. ************** Exception Text ************** System.PlatformNotSupportedException: 'ResourcePool' is not supported on the current platform. at System.EnterpriseServices.Platform.Assert(Boolean fSuccess, String function) at System.EnterpriseServices.Platform.Assert(Version platform, String function) at System.EnterpriseServices.ResourcePool..ctor(TransactionEndDelegate cb) at System.Data.SqlClient.ConnectionPool..ctor(DefaultPoolControl ctrl) at System.Data.SqlClient.PoolManager.FindOrCreatePool(DefaultPoolControl ctrl, IntPtr SID) at System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConne ...Show All
Visual Studio Express Editions Saving decimal in SQL Data Base
Hi, When I save a decimal number, forexample 1.23, the database is rounding it to the nearest whole number 1. I need the DB to retain the value sent 1.23. Ron If you are using typed datasets, they do not automatically refresh when the database schema changes. Thus your strongly typed dataset proxy likely still forced 0 decimal places. You need to refresh your schema when the database structure changes. Jim Wooley http://devauthority.com/blogs/jwooley ...Show All
Internet Explorer Development the blue screen keeping up everytime i open IE
I have been using IE7 for a while with no problem. I dwnloaded the updates. Now when I open my browser the page tries to go to http://runonce.msn.com/runonce2.aspx . There is an error reported for this page and it will not open up I get a blue screen. How do I eliminate this I have my home page set in the tools section but when opening it won't go to my home page until I hit the home button on the tool bar. CAN ANYONE PLEASE HELP If you get a blue screen, chances are good that you have a hardware problem. You can skip the runonce screen by setting a registry key. See http://enhanceie.com/ie/troubleshoot.asp near the bottom. ...Show All
Windows Forms Control Arrays
I have a form with tabControl that has 5 pages. All the pages will have same controls. Is there a way i can define the controls on each page as an array, so that i don't have to access them by name such as txtName1.text, txtAddress1.text . I would like to access the controls in a loop as txtName.text (arrayindex), txtAddress.text(arrayindex). Thanks You are probably from VB6 :)! leave that old style and adopt the .Net way: This post must help you: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=822110&SiteID=1 Best Regards, ...Show All
Audio and Video Development How to set default button and global variables?
Two questions: 1. Total 3 menus with several buttons in each of them. how can I return to the correct menu with correct button focused after playing through each clip 2. If I have several .js file, where should I set the global variables that could be shared among all .js during disc playback Many thx! Easiest thing to do is to remember who has the focus when you leave one menu, and store it in a variable. Then when you load a page, use a simple animation to set the focus correctly: // When leaving the page: var focusedButton = GetFocusedButton(); if (focusedButton != null) resumeFocusId = focusedButton.core.id; // When loading the page (ie, setMarkupLoadedHandler) document.setXPathVa ...Show All
