Danny Tuppeny's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. loading a cube map from file
there appears to be no cube map equivelent of CD3D10_TEXTURE2D_DESC, so i've assumed a cubemap is just an array of 6 sub surfaces for a 2d texture. so i've set up my code with the desc.ArraySize = 6, create texture 2d completes succesfully, how ever, calling CreateShaderResourceView with the parameter SRVDesc.ViewDimension = D3D10_SRV_DIMENSION_TEXTURECUBE; set, fails. Also is there a way to get dx to automatically generate mipmaps Make an array with 6 elements was a good starting point but you need to set the D3D10_RESOURCE_MISC_TEXTURECUBE flag to. If you want auto generated mipmaps the D3D10_RESOURCE_MISC_GENERATE_MIPS flag is your friend. But this works only with resources that have a render t ...Show All
Visual Basic region hit test efficiency
I am designing an app that involves a display consisting of many rectangular shapes interconnected by lines. What I need is an efficient mechanism for hit testing mouse clicks on the lines. One way to do this is to create regions around the lines the length of the line and a few pixels wide on each side and then use Isvisible on the region to do the test. My question is whether or not this is a bad idea from the point of view of overhead The alternative is to develop my own or someone else's algorithm using the mouse location and the lines directly. There is certainly overhead connected with that approach as well. read this , you may find it useful. http://www.dotnet247.com/247reference/a.aspx u=http://www.bobpowell.net/gdiplus_faq.h ...Show All
.NET Development Read image data from SQL and use it on web app
Hi I'm developping an intranet and I wan't to view the images from a database, i allready save the files on a directory and read them from a datalist, what I want to do now is to get the images from SQL, I have done this in windows app but I have no idea how to do it from the web (no problem saving or shrinking the image, the problem is to retrive them to an image on asp net 2.0) thank's Pedro R. See if it helps http://support.microsoft.com/kb/326502/en-us ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Xna questions
Just to make sure XNA game studio express is just for programing only so then what is the actual software that allows you to create your own levels in the game and to create the actual models that would be placed in the levels Demonslayer wrote: I just got XNA and i am not at all familiar with programming at all. So i was just wondering what are the basaics for making a third person side scroller Such as moving your guy while his legs are moving on the screen or shooting ammo from a gun. Any responses to this question should be directed here . ...Show All
Visual Studio Reporting Services Report Viewer Control for VB6
Hello There. I've got a very simple question. The ReportViewers from Microsoft are based on the .NET-Framework so they can't be used in Visual Basic 6. Are there any other Viewers for ReportingServices (RDL-Files) to bind in an existing VB6.WinApplication Thanks, Tobi Hi Tobias, I was just wondering if you found out anymore about this topic since you have posted it. I would be very interested in such a control as well. Thanks! ...Show All
.NET Development is there a cross framw in .net 2.0
Is there a cross frame support in .net 2.0 If no what is the solution kangkang wrote: Is there a cross frame support in .net 2.0 If no what is the solution ...Show All
Visual C++ Mix assembly and C/CPP codes in a Makefile project in VC 2005
Hi, Guys, I would like to mix some assembly files and CPP/C files in a Makefile project in VC 2005. Does anyone know how to do it Thanks for the hints and/or suggestions. ...Show All
Visual Studio Express Editions Best way to update multiple files, .dll's, and .exe's?
What's the best (nicest & easiest ) way to update multiple files, i.e. [.bmp, .jpg, .gif, and other different file extentions]. Will ClickOnce do what I want, I was planning on uploading my stuff to a website of mine. I also need to update a .exe or two, and other files. Click once is what you want. If you build up your package and deploy it to your web site. Each time the client connects it will check you package to make sure it is the latest version if not it will reinstall/update the install on the client. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Changing multiple textures during run time
I am currently loading a single mesh object and all textures via an .X file. I have multiple different textures mapped to various faces of the mesh. What I would like to be able to do during run time, is change some of these textures dynamically based on user input. If someone could please point out how I can reference/change the various textures associated with the mesh, it would be appreciated. Take a look at this sample from the XNA documentation: http://msdn2.microsoft.com/en-us/library/bb195020.aspx This sample uses triangle primitives instead of a model, but otherwise the concept is the same with regard to applying an Effect. If you wanted to change the texture being used in this sampl ...Show All
Visual Studio Express Editions Why would I be getting these errors?
It seems strange to this newbie why these errors are popping up in a Windows .h file. Can someone enlighten me ------ Rebuild All started: Project: Driver, Configuration: Debug Win32 ------ Deleting intermediate and output files for project 'Driver', configuration 'Debug|Win32' Compiling... driver.cpp D:\WINDDK\3790.1830\inc\ddk\w2k\ntddk.h(7944) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int D:\WINDDK\3790.1830\inc\ddk\w2k\ntddk.h(7944) : error C2146: syntax error : missing ';' before identifier 'InterruptTime' D:\WINDDK\3790.1830\inc\ddk\w2k\ntddk.h(7944) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int D:\WINDDK\3790.1830\inc ...Show All
Smart Device Development Intaller for application in .NET CF
Hi I am working in a pocket PC application compact framework 1.0(vb.net) . I want to make an installer for my application . so that it will install the application from desktop through Active sync I created one cab file containg all my images and other files Now i want a wizard to deploy my application . thanks There was a topic about this yesterday to which I responded. Please take a look and see if it helps: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=523405&SiteID=1 You may also need to run cabwizsp to create the cab file for your application Just to add, for .NET CF 1.0 projects, I had once used a tool called ezsetup - great stu ...Show All
.NET Development xml file for dataset
Hi, I want to read data from xml file into Dataset. So if i have 2 tables in dataset, then how to list data for both tables in one xml file Is this possible I listed data in single file like <tables> <ATable> <Table1> one row <all columns data for table1> </Table1> <Table1> one row <all columns data for table1> </Table1> </ATable> <BTable> <Table2> one row data </Table2> <Table2> one row data </Table2> </BTable> </tables> But it is not loading data in second grid. Please help as early as possible. Thanks Vrushali I'm not sure off the top of my head how your XML example will get loaded. But if you want to see w ...Show All
SharePoint Products and Technologies Issues With Delay Activity
Has anybody had any success using the Delay activity within Visual Studio authored workflows Whenever I include a Delay activity in my workflows the workflow goes to sleep and never wakes up. If I listen for a Delay activity along with other events inside a Listen activity, I find that the other events (for example, OnTaskChanged) cause the workflow to be rehydrated as expected but the Delay activity does not. It doesn't seem to make any difference what the TimeoutDuration is set to or whether it's set statically in the designer or dynamically inside an InitiializeTimeoutDuration method. Does anyone have some sample code with Delay activities working correctly Are you having any problems with it I conta ...Show All
Visual Studio Report Viewer not Refreshed
Hi I am working with Using the ASP.NET 2.0 ReportViewer in Local Mode. On my page i have a dropdown which is populated with "rdlc" names.The issues is that when ever i select some other report from the dropdown the new data is not updated in report viewer, to over come this i even start creating report viewer object in my code and then add it in the page but still the old report contents are shown but if i click on the refresh icon of the reportviewer then the content got updated. i am also using the reportviewer.LocalReport.Refresh() in my code. here is my code: ReportDataSource s = new ReportDataSource(resourceName, _dataTable); ReportViewer objViewer = new ReportViewer(); objViewer.ID = this.ddlReport.Se ...Show All
Visual Studio Can't see field borders
Hello, This is weird. When I preview the report in VS 2005, the lines and field borders shows as designed. But when the report is viewed in a web Crystal Report viewer, the lines are still shown, but the field borders are not. What gives Thanks. ...Show All
