djmikke's Q&A profile
Visual Studio Express Editions how to set a thread to run at specific core
1. is it possible to set a thread to run at specific core. 2. to find number of core using vb.net He is referring to processor affinity in symmetric multi-processing configurations (SMP). Please see System.Threading.Thread.BeginThreadAffinity() and System.Threading.Thread.EndThreadAffinity() in your object browser. I hope this helps. ...Show All
Windows Forms cause a property to display "builder" button to browse for folder ?
I'm writing a custom control. One of its properties is a directory name. I'd like the property sheet to display a "build" button that--when clicked, displays the standard Browse for Folder dialog. I have no idea how to do this. Any help getting started is appreciated. The Editor attribute takes 2 arguments, not 1 as in your example. I dug around to find an example, and was able to make it work, but I don't really understand it. [ Editor ( typeof ( FolderPropertyEditor ), typeof ( UITypeEditor ))] ...Show All
SQL Server SQL Analysis Services Service does not start
I have installed SQL Server 2005 Standard Edition for use with Team Foundation Server. I have verified the installation according to the documentation, and all is well except that the Analysis Services Service is not started. When I click Start, I see the progress bar as if it is starting, but it stops shortly after, saying that "Some services stop if there is nothing to do". Team Foundation Server requires that this service be started for the installation to succeed. How do I get the service to stay started Thanks in advance. What logon account you are using for Analysis Services serivce Try changing it to the domain user account. Edward. -- This posting is provided "AS IS&quo ...Show All
SQL Server Performance is degraded drastically after migrating to SQL Express 2005 from MSDE 2000
Hi, Recently we have migrated our application from MSDE 2000 to SQL Server Express 2005(SP 1). This has significantly reduced the performance of our Windows.NET application which is developed using C#. For example : While logging in to the application two databases are being attached. Time taken in MSDE: 16 secs Time taken in SQL Server Express 2005 : 58 secs Also note performance is degraded for normal screens where data is retrived from database using inline queries. Questions: 1) Is there any special(optimum) configuration(installation parameters) while installing the SQL Server Express 2005 setup 2) Is there any query optimization to be done w.r.t SQL Server ...Show All
Visual C++ std::vector::resize bug
This is the declaration for the second form of std::vector::resize (in VC 2005): void resize( size_type _Newsize , Type _Val ); Note it passes by value, not by const reference. This is different to every other function in std::vector, and means you cannot construct a vector of items marked with __declspec( align( n ) ). I modified the vector header to use a const reference instead and it seems to work fine now. The Intel C Compiler does not seem to have this problem, and I've just checked the GCC header and it passes by const reference. I can't really see any reason why you'd want to pass by value, so I'm presuming this really is a bug. Does anyone in MS read these forums cfp c_f_p: Are y ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What a drag...
On the games I've made in XNA, there seems to be some slowdown drag time when the processor is doing something else for a second. This usually happens at the worst possible time and my 360 controller can only take so many throws into the wall. I know that professionally created games do a good job of keeping things on an even keel (unless you're defragging your hard drive or something)... How have the rest of you managed to get around the slowdown ticks Does it have something to do with the XNA thing that keeps everything at 60fps I haven't delved into that area yet.. That sounds very much like what you see with a GC2. Spacewar doesn't have any media that is loaded during run. However the MS guys tol ...Show All
Visual Studio Express Editions Installation Problem
When i try installing the express edition of visual basic it gets so far with the installation and then a box comes up saying Unkown Error and you can only select Ok after i click Ok another one comes up but the installation still continues but then when i got to run teh prgoram it comes up with unkwonw error, help me Can you make sure to disable all antivirus software before installing the Express edition. Can you try installing from the manual download and see if that install works ( http://msdn.microsoft.com/vstudio/express/support/install/default.aspx ) ...Show All
Visual C++ GetFileSecurity(): Data area...too small
Hi, I am trying to read out the DACL for files and directories, to evaluate the contents. The problem is that I just can't get this function to work properly. In the examples that I have found I should be able to call GetFileSecurity twice in order to get the SecurityDescriptor for an Object. Everytime I get "The data area sent to the api function is too small" - reguardless of how I allocate (HeapAlloc() or malloc()), hardcoded parameters... it seems like a dead end. The soloution should be C based (no / minimal .NET). Please help me out. [code] void display_acl_info(char * file){ /*GetFileSecurity Vars*/ LPCTSTR lpFileName=NULL; BYTE * buffer=NULL; SIZE_T sizeSD=0; PSECURITY_DESCRIPTOR pSecurityDescriptor = NULL; /**/ ...Show All
Visual Studio Express Editions How do you get the contents of sertain folders to show in a ListBox?
Hello. Can any one tell me how to get the contents of the History folder to show in a LiskBox when ya click a button, and the same with the Temoprary Internet Files folder Aslo, how do you get the ListBox to clear and only show the contents of the folder selected when ya click the Button, and the contents of all the folders showing in the LiskBox. Am an absolute beginner, only started learning 2 weeks agao, any help will be very much apreciated. Thank you. im pretty sure I answered this question before http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=984031&SiteID=1 ...Show All
Visual FoxPro excel and foxpro
Dear friends, when exporting datas to excel from foxpro using the copy to command, there after trying to do some calculations and formating the excel file using automatation macros how could I integrate this in foxpro, I don't know where to start. thanks for explaining me the functionality satish Dear friends, I found out the great prg file and my project works as I wanted. nice weekend, thanks for all your kind suggestions especially for cetin satish ...Show All
.NET Development SqlBulkCopy - Recommended BatchSize's?
Hello, Is there any rule of thumb for deciding what to set the BatchSize when using SqlBulkCopy When inserting around 20,000 rows When inserting around 100,000 What about 500,000 Is there any guide that could point me towards any 'rule of thumb's Or is the only way to test with my specific data and with different BathSizes I have googled but could not come across any 'guide' such as this. Thanks, Drew A lot of factors can affect your scenarios. Basically, increasing the batch size can improve performance. But constructing the batch in client and handling the results in the server also have some overhead. So you don't want to set it to 0 (one batch). Usually batch size between 100 and ...Show All
Visual Studio Express Editions Getting the WebBrowser LocationURL to show.
I am having a lot of trouble getting the webbrowser location to show up in the textbox that I use as my address bar. I am trying to make it so that the address bar always stays up to date with what URL the webbrowser is at. Can someone give me an example code of how this is done Sorry for all the questions. I'm very new to VB Private Sub wb_StatusTextChanged( ByVal sender As Object , _ ByVal e As System.EventArgs) Handles wb.StatusTextChanged ' Tabp.wb_StatusTextChanged - WebBrowser Event handler ' WebBrowser Status Text has changed Static tmp As String tmp = wb.StatusText.ToLower() If tmp.Contains( "http://" ) _ Or tmp.Contains( &q ...Show All
Visual Studio VS .NET 2003 debug broken with windows XP SP2/VS2005
I have recently installed windows XP service pack 2 and a trial demo of VS2005/VSTS on my PC. Now I can't debug in VS .NET 2003. I get:- "Access denied. Verify that you are an administrator or a member of the 'Debugger Users' group on the machine you are trying to debug. After being added to the 'Debugger Users' group, you must log off and log back on for the setting to apply". My MDM isn't running and when I try and start it I get:- "The Machine Debug Manager on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service." I have looked through all microsoft articles I can find and tried everthing they sugge ...Show All
SQL Server SQL Server Management Studio Express: How can I install AdventureWorks "dbo" files? Is AdventureWorksBI.msi right for them?
Hi all, I downloaded the AdventureWorksDB.msi and install AdventureWorksDB in my C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data with the following stuff: AdventureWorks_Data AdventureWorks_Log masterlog mastlog model modellog ......... But, in my computer\SQLEXPRESS (SQL Server 9.0...), I did not see the following: |-| Databases |-| AdventureWorks |+| Database Diagrams |-| Tables |+| System Tables |+| dbo.Production.ProductCategory |+| dbo.Production.Product |+| .................... Should I download the AdventureWorksBI.msi from Microsoft and install it to get the 'dbo' and other files Please help and advise. Thanks in advance, Scott Chang The schema d ...Show All
Internet Explorer Development Disable/Hide IE7 Command Bar
hi, I just download and install IE7. Don't like the tab browsing thing and try to revert back to familar IE6 menu bar etc. Manage to get back classic menu on TOP of address bar (which IE7 never provide such option) after some google search. Tries to remove all icons in command bar. But after restart a new IE7, the defaults icons came and is quite annoying. No matter how many times I remove, they will still come back. Discover the command bar cannot "move" to be inline (at least) with address bar even toolsbar is unlocked. Also unable to find any solution to disable or hide it. Any one knows how to disable/hide the Command Bar Thank you. I just tried out by myself: 1. ...Show All
