byronfromwesleyan's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Changing mesh in vertexbuffer?
I have a mesh which changes each frame. The change is not large, but there is generally always some change. The previous implementation used drawUserPrimitive and was quite slow. The mesh has a lot of shared vertices, so i was considering using a vertexbuffer and drawing indexed triangles. The question is now how to do this fastest. Is it very costly to lock the vertexbuffer each frame, alter som vertices and unlock If I sometimes have 4096 vertices and some times have 10, then the buffer needs to be created with the capasity of the largest number, but what when it is almost empty I can not delete a vertex, so it will really ...Show All
Visual J# J# and SQL Server Problem
Hi, I am using SQL Server 2005 b2 and i want to integrate my J# project with SQL Server. .NET Platform compiles it. No problem there. But while i try to create assembly by referencing produced dll file, SQL Server gives that error: "Msg 6581, Level 16, State 1, Line 2 Could not find assembly 'vjscor.dll' in directory 'c:\'." What is the problem Thanks in advance... I solved the problem. There is a path problem and also PERMISSION would be UNSAFE. Path problem is solved by producing dll into the C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322. Is there any setting that gives me the freedom of ...Show All
Visual Basic Msgbox to the foreground????
Hi, I've got a VB form in VS.NET 2005 which has a grid. When the user right-clicks on an item in the grid, I bring up a context menu. From there the operator chooses an option. Once the option is chosen, I ask that the operator confirms via a MsgBox similar to the following: If MsgBox( "Are you certain you wish to re-activate this product , MsgBoxStyle.Question + MsgBoxStyle.YesNo + MsgBoxStyle.MsgBoxSetForeground) = MsgBoxResult.No Then Exit Sub End If The problem is that the message box does not appear in the foreground. I have to select another window from my task bar and then go back to the windows with the MsgBox ...Show All
Smart Device Development Remote Spy
Hi, when i try to connect my using Remote Spy, i always get a "Class not registered" error. some more info.. -i am using a VS 2005 beta 2 -i select "Pocket PC 2003 Device" when asked to select a windwos CE device any ideas what might be causing this thanks much registering didn't work. but i did find a reference to a Remote Spy bug on msdn (and yes it was slightly different message, but i am also getting that message when trying to connect to an emulator rather than the actual device). the MSDN post stated it was addressed in one of their recent drops...so downloading the July CTP build right n ...Show All
Visual Studio Grouping on fields which have a space in the table name
I am attempting to run a 8.5 report in VS2005. There seems to be a problem with grouping on a field when it's table name has a space in it. The actual table name is {ccArea Types} in crystal and my dataset. I get the following message: Error in formula <G_netsf>. 'Sum({ccArea_Types.SM_N_AREA},{ccArea_Types.SORTORDER)' There must be a group that matches this field Notice that an underbar has replaced the space in the tablename. I have run simular reports without a problem when the tablename does not contain a space. Any ideas Thanks Keith, I tried to verify. no help. ...Show All
Visual Studio overriding default designer functionality
is it possible to override default designer functionality specifically, i want to change how the designer responds to double-clicking on events in the property editor. instead of placing the event handler into the codebeside, i want to place it into a different file. is this possible No, I would not recommend this. At best, this is very difficult to do, if not impossible. The designer loads "docdata" only for the immediate file and any child files. It has no knowledge of other files -- so (for example) the event binding done in the IEventBindingService would have to be customized. If you wanted to go down this path ...Show All
Visual Studio Team System How to: Customize the build reports
Hey there, I already know how to add lines in the build log file. But now I need to add information to the report that ends up on the project portal. I have read the SDK part about extending the Team Foundation Reporting Warehouse but I'm not sure this is what I'm looking for... Any pointers Thanks!!! If you want to add information that's already in the warehouse to the report, then you can just edit the report to include that. For example, if you want to add the number of bugs found in a build (and your Bug work item type uses the Found In Build field), then add the Cumulative Count measure, sliced by Found In.Build. I beli ...Show All
.NET Development What happened to the ADO.NET 3.0 May CTP?
It was announced here http://bloggingabout.net/blogs/erwyn/archive/2006/05/11/12167.aspx and then within a few days was so completely removed from MSDN ...it was like it never existed. Why was all of the documentation for ADO.NET 3.0 removed from MSDN ...Show All
Visual Basic WriteProcessMemory() Api Help
I have a problem with WriteProcessMemory() that I am trying to use. My code looks like this: Public Declare Function WriteProcessMemory Lib "kernel32" ( ByVal hProcess As Integer , ByVal lpBaseAddress As Object , ByVal lpBuffer As Object , ByVal nSize As Integer , ByVal lpNumberOfBytesWritten As Integer ) As Integer Dim appProcess as Process *gets the process* ' I know it works Dim offset As Long = 29689060 Dim value As Long = 3 WriteProcessMemory(appProcess.Handle(), offset, value, 4, 0&) What I am trying to do is to write the memory adress (01C504E ...Show All
Windows Forms DataGridViewComboBoxColumn Selection is not retained
Hi, I created a DatagridView and added two columns to it. One of them being a ComboBox Column. After running the form, I click on combobox, select some different value and leave the cell. At this point, the value I selected is getting lost and it reverts back to its original state. If someone has made samples on how to use the different column types, can you please put them on the net or mail it to me Thanks, Kunal I have found the solution to your problem after 2 days of agony here is the link to my post: http://www.vbcity.com/forums/topic.asp tid=144983 good luck ...Show All
Windows Forms TreeNode not highlighted on DragOver Event
I've got 2 treeviews. one treeview contains a heirarchical representation of a group of people, and the other is a collection of tasks. The user should drag the "tasks" over to a "person" to make an assignment. It works well enought, BUT as a user drags a task node from the right hand treeview and drags it over to the left hand treeview the Nodes do not highlight. I have tested and the node being hovered over is actually the selectedNode for the treeview but it's just not hightlighted. What gives Anyone seen anything like this Thanks, John Hi, You can use the code below t ...Show All
.NET Development How big is the SOAP wrapper overhead?
I'm using vs2005 Beta2, developing a system to transfer data to/from XDAs (PocketPCs) My issue is that our customers airtime contracts charge by 1024k chunks of data, so we batch data up to 1024k chunks before we send it. When the system was in evb we used HTTPRequests to post to an asp page, so it was easy to do this. Now we're using VB.net talking to WebServices, and I'm no longer sure what size the data is I'm sending. I'm not to sure about what happens underneath the hood (as long as it works I don't care much either!) but I understand that SOAP plays a part here, so what I'd like to know is how large is the data that actua ...Show All
SQL Server Splitted char values in table
Hi, I have the following content in one column of a table (each line one row, only 'underscore' seperated char): x_y 1_2_3 A z_X_c 9_2 I need to split this values (seperated by '_') and write each value into a new table. The resulting table with one column, shall look like: x y 1 2 3 A z X c 9 2 It is not the problem to split the char in single values, the problem is to seperate each value into one row. Thanks for the help, marc Thanks a lot folks for the good ideas and links. I solved it now in TSQL with looping with cursors and creating a table array (see below - only structure, not running code): ...Show All
Software Development for Windows Vista Vista SDK Feb CTP installation issues on Win2k3 SP1
I have been trying to install the Windows SDK on my virtual machine containing Windows Server 2003 Enterprise Edition with Service Pack 1. This has been causing me a lot of problems. I downloaded the full image and mounted the drive using the MS Virtual CD control tool. The install starts OK but gets to a point and fails on the setup. I followed the steps on this blog concerning known issues https://blogs.msdn.com/jsacks/archive/2006/03/16/553100.aspx . I even emailed Jason directly and discovered that the image I downloaded has a different reference when using crc.exe 0xD2F3971F. Jason's blog says to download the file again. I advised Jason ...Show All
Software Development for Windows Vista Windows Workflow Foundation from a business perspective
As a developer I am really enthousiastic about the new Windows Vista related technologies, and especially Windows Workflow Foundation. Being a developer, I have lots of stuff to read about this subject. There are many good-quality articles, whitepapers, webcasts and forums such as this one to help me get started. The problem is, however, that if I want to convince the management team of my company that WWF and WCF are the way to go (which I think it is), I can't seem to find (really) good information from a business perspective. All presentations directly dive into code on slide 3 or 5 or so, and most articles I found are too developer ...Show All
