Software Development Network Logo
  • SharePoint Products
  • SQL Server
  • Visual FoxPro
  • Windows Vista
  • Microsoft ISV
  • Visual C#
  • Audio and Video
  • Visual Basic
  • Game Technologies
  • Visual C++
  • VS Team System
  • Smart Devicet
  • Visual Studio
  • IE Development
  • Windows Forms

Software Development Network >> Michael Schreyer's Q&A profile

Michael Schreyer

Member List

robinjam
Cadey
Stanley Yuan
maliger
Tdar
sirpelidor
larz
roisaonua
dmatth
Valery Zharkov
gary560
EvilTrev
Tim Joyner
Karim Hemani
Scott Allison
Geo725
WinFXGuy
Denvas
search and deploy
Keithyboy1
Only Title

Michael Schreyer's Q&A profile

  • Visual C++ Slowdown with MSVC memory operations

    After some line by line profiling of my code with a profiling tool, I noticed that the MSVC implementations of new, delete, memcpy, and memmove seems to slow down on a per-call basis the more they're called. My question is the following: is the only way to get rid of this bottleneck to override the default new/delete operators with my own custom implementation and possibly restructure my code or are there some compiler settings available in MSVC that I can try playing around with My code is basically a single-threaded RUDP-esque library, and it's memory-leak free, and the amount getting moved/allocated/copied is always less than or equal to 1030 or so bytes. Any help would be much appreciated ...Show All

  • Visual Basic Passing variable from form1 to form2

    How can I accomplish this. Form1 has my working code. I've dim'd tmpfrm2 as new form2. When I use tmpfrm2.show() it indeed shows me form2, however I need to be able to pass a variable to the code in from2 for form2's code to act on. In this case it is a file name that is picked from a listbox in form1. form2 will then use that name as a new bitmap image and place it into picturebox1. Thanks, RobertMC Hi, you could pass the variable to a form2 through its constructor. Or expose a property or method in form2, which would pass the variable to form2 and set the picture. Andrej ...Show All

  • Visual Studio Example code and it's language

    How do I place example code in a code file that is language specific. For example: public class MyTester() { <SUMMARY>Test Method</SUMMARY> <EXAMPLE> <PARA>C#</PARA> <CODE> MyTester tester = new MyTester(); test.Test(); </CODE> <PARA>VB</PARA> <CODE> Dim tester As MyTester = New MyTester() test.Test() </CODE> </EXAMPLE> public void Test() {} } I would like to be able to do this so that users of my documentation can filter on the language which they want to see. I have noticed that the MSDN site works this way which leds me to believe that it can be done. Can some one shed some light on how this is done. Thanks John We ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Heightmap Collision testing

    This question has been mocking me all day. I know it's doable, I have even used such a function somewhere long ago, and I have even found quotes of people saying "the calculation is easy and quick," however, I cannot find an example of heightmap collision testing. In other words, I want to be able to type MyLandscape.GetHeight(x,z) and it'll return the height (y) at that point. Now, this is not a simple, find the vertex at (x,z), and return the array value. There is distance between each vertex so, (x,z) wouldn't always be a vertex location. If I recall my calculus from ages ago, I think I remember there being a way to do this, but I don't remember. Answers or links would be deeply appreciated. ...Show All

  • Visual Studio CTC constant for "Test Results" context menu?

    I'm trying to find the constant that I need in my CTC file to add my own item to the context menu in the Test Results pane. However, there don't seem to be any such constants defined in the header files found in the VS SDK's VisualStudioIntegration\Common\Inc, or the example found in VisualStudioTeamSystemIntegration. I'm looking in the August 2006 CTP release of the SDK. Any help would be appreciated. Thanks! The one you probably want is this one guidVSEQTPackageCmdSet : imnuTestResultContextMenu where guidVSEQTPackageCmdSet = {B85579AA-8BE0-4c4f-A850-90902B317571} imnuTestResultContextMenu = 0x1301 The context menu contains the folowing groups in the same guid scope id="igrpTestResul ...Show All

  • Visual Studio Express Editions database tables doesn't update

    Hi. I have few tables in my database and they don't want to update. I changed database property "copy to output directory" to copy if newer. Then after I'm inserting data in my database everything works but changes doesn't show in the tables. Below u can see part of my code, I'm using Insert, Fill and Update. I can compile program over and over again and changes stay but when I open "Show table data" everything is going back to beginning. What should I do Dim datasave1 As New MaintenanceDatabaseDataSetTableAdapters.EmployeeTableTableAdapter Private Sub Add_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click firstname = TextBox1.Text lastname = TextBox2. ...Show All

  • Visual Basic DataGrid Problem

    Hi I have a problem with a datagrid where it has lost its reference to its event handeler. I have checked that all the code is there but nothing gets fired once I click on an item in the grid Any help would be appreciated ...Show All

  • Visual Studio Team System How to delete folders from drop directory of Web Deployment proj

    I need to delete folders from my drop directory of my web site. My Web Deployment App copies everything over from my ‘Binaries’ folder. I have the code below that deletes the files I’ve specified, but not the directories. The odd thing is that the folders do get deleted in my ‘Binaries’ folder, but somehow they are copied over to the drop directory. < ItemGroup > < ExcludeFromBuild Include = " $(SourceWebPhysicalPath)\bin\*.pdb " /> < ExcludeFromBuild Include = " $(SourceWebPhysicalPath)\*.sln " /> < ExcludeFromBuild Include = " $(SourceWebPhysicalPath)\*.vssscc " /> < ExcludeFromBuild Include = " $(SourceWebPhysicalPath)\*.vbproj &q ...Show All

  • Visual Studio AssemblyInfoTask weird behavior

    Good day, lately I've been using the AssemblyInfoTask for my version automation, I've changed the default settings so that the build version will increase one per build, and the rest always stays the same. But it seems to behave quite strange actually. When I was checking it in the beginning it increased nicely, but for example yesterday my build was 55 when I started that project for the first time that day, I didn't build much that day, approx. three or four times, but when I checked today my build was suddenly 99. I'm sure I didn't build my program 44 times yesterday. Now my question is, is this normal Does the build also increase in other situations apart from when the project gets build Did someone else already have this problem May ...Show All

  • Windows Live Developer Forums No maps in 3d view!

    Hi I recently upgraded my VE code to v4, and whilst the 2d stuff still works perfectly well (even the Birds' Eye View works fine), all i get in 3D view is a green blur (i.e. just the globe) regardless of my zoom level. It doesn't matter where i look at in the world - whether it be here in the UK or anywhere in the US. It's almost as if the 3D tiles aren't loading, as the navigation control and the orientation widget are both present. I just can't see any details on anything - very frustrating! The 3D examples on the maps.live.com (i.e. Tower of London and the Millennium Wheel) do exactly the same thing, so it's not my code at fault. Has anyone any ideas as to what might be going on Thanks Spencer ...Show All

  • Visual Basic A very strange incident... and strange question.

    Well I was working on a MS-Access 2003 project that has a bit of VB code that executes once a certain text box loses focus. When it loses the focus it calculates a couple of lines of code. Everything worked fine. Now for some reason it seems to crash, when I debug it, it goes to a line where the following happens 'cPrice get's a value on the form e.g. R150.00 'iWeight get's a value from the form as well e.g. 5t tTax = cPrice / iWeight But it keeps stalling there, VB auto casts it's types if I am not mistaken, so anyone any ideas why this keeps failing What types are cprice, iweight and ttax if they are decimal, the division can cause exceptions for overflow or division by zero. For integers, the ...Show All

  • Smart Device Development Compact framework 1.1

    Hi, I'm trying to spin off a new process by doing something like this: ProcessStartInfo s = new ProcessStartInfo(ExeName); s.Arguements = CmdLine; Process.Start(s); I have included the proper using directives that msdn said, and the types are fine in a windows enviroment, but when I use it on Compact Framework 1.1 it isn't recognized, is there something similar I can use to create a new thread, I cannot update this device to CF 2.0 moved thread to appropriate forum I don't think you can do this in .NET CF 1.0 (there was no 1.1), but only in .NET CF 2.0 You may have to PInvoke, Create a process using CreateProcess() http://msdn.microsoft.com/library/default.asp url=/library/en-us/wcecoreos5/html/wce50lrfcreatepr ...Show All

  • Gadgets Setting and gadget main.html

    Hi guys, I have a main.html which have a dropdownlist. My settnig page have a text box for me to enter the text of each element in the drop down list. after i clicked "ok" and store those values in System.Gadget.Settings, i want the values to be shown in the dropdownlist how do i do a refresh or populate the main.html is there any way i can get the document object of the gadget from the setting page Please help thanks!!!! In your main.html, capture the Settings closing event and then add the options to your drop down. System.Gadget.onSettingsClosed = settingsClosed; function settingsClosed() { var tmp = System.Gadget.Settings.readString(" <myOptionSetting> ") ...Show All

  • Visual Basic Focus a minimized form

    Hi... ...I've built an Iterface for a piece of hardware. This Interface has got a section with some information (another form dedicated to it). Now, when I open the info section a new form is opened. If I go back to the main form and I press the button again, which open the Info form, the form is brouhgt on front [used Info.Active ()] but it the Info form was minimized the form is only activated and focus is given to it but is not displayed! Is there any solution to the question Regards MrBrilliant, Try to use the Control.Focus method please. The Focus method returns true if the control successfully received input focus. The control can have the input focus while not displaying any visual cu ...Show All

  • Visual Studio 2008 (Pre-release) WinFX Runtime Components 3.0 Beta 2 installation problems

    Hello! I have some major problems installing WinFX Runtime Components 3.0 Beta 2. It won't work... The errorlog says: [05/26/06,11:43:37] Windows Communication Foundation Beta 2: [2] Error: Installation failed for component Windows Communication Foundation Beta 2. MSI returned error code 1603 [05/26/06,11:43:56] WapUI: [2] DepCheck indicates WinFX Runtime Components 3.0 Beta 2 was not attempted to be installed. I have tried everything, please help me! /Goran Strange. Maybe you can try to reinstall it but I thikn the installer will show you only to repair/delete. Hum.. Sorry but I've no ideas, maybe someone from Microsoft will be able to help you..... ...Show All

©2008 Software Development Network