Doobe01's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Drawing on only a portion of the screen (2D clipping)
I have 2D texture font that I'm drawing to the screen. I'm going to make a text box which the font can be drawn on top of. What I want to do is draw the text so that it only draws inside the text box, with any text that overhangs the text box being clipped. How can I acheive this in XNA Another example would be having a large picture insize a smaller gui panel with a scroll bar. Adjusting the scroll bar would show different parts of the picture while clipping the portions of the picture that extend outside the gui panel. There are a lot of uses for this functionality. Does XNA provide it easily A Rectangle clip parameter in SpriteBatch.Draw would be the perfect thing, but I don't see anything like it :/ bryanedds wrote: ...Show All
Windows Forms filling a datagrid
Hi, i need sombebody to explain me how can i fill a datagrid with information comming from different tables in a unique DB, or a link to anywhere explaining with an example.. Thanks! I'm using VB .NET and a DB created with Access. Hi, My fault I guess. I forgot to mention that you must set the datamember property to the name of your table if your binding using a dataset. But you can bind the datatable instead of a dataset so that you would not need to set the datamember property. cheers, Paul June A. Domag ...Show All
SQL Server what errors normally should i log for my SSIS package?
I got an SSIS package that first "truncate the product table" then populate the table with new rows....if there is an error then i will invoke the send email task. However in the "truncate the product table" task, the sql i put "truncate dbo.product" instead of "truncate table dbo.product" but this error is not captured in the text file that I m going to send an email to the appropriate personnel. Under logging, and when i go into "truncate product table" tasks , "Details", i saw "OnError", "OnWarning" and other error handlers...which should i tick in order for the text file to ONLY show errors I encounteered during the running of the SSIS packa ...Show All
Windows Search Technologies Setup error
attempted to install, setup error as follows Not enough storage is available to process this command. I got over 300 gigs free, how much space does it need I'm running vista ult rc2 Yes, I believe thats where I downloaded it from I have 4 disks total, physical, none have seperate partitions on them. ...Show All
Visual Studio Syntax error when using Online MSDN
Hi, I have a problem with the Visual Studio 2005 help. Every page that loads i get a "line 1 syntax error" message box. It is DRIVING ME INSANE! I have tried to repair of the Document Explorer tool. I have looked for updates or KB articles and i can't find anything. I have tried turning off IE debugging but just the shape of the message box changes (and it doesn't ask me to debug), and the syntax error moves to line 2. A sample source for the page starts with XML so i thought that might be the cause but I am running the latest updates. Has anyone else had this problem Thanks in advance for any tips, Nathan Hi All, Some thoughts on this problem: Using IE 6: Nathan is correct in that the o ...Show All
Visual Basic Wait a moment!
In VB6 there was a wait command that would halt the program untill a button was pressed, or some other type of event would restart the programme. Is this still available in VB.Net Unless your code is telling the program to do something (through a timer, for example), the program by default will not do anything until it receives an event. Using Sleep() in your main thread will not help you if you are waiting for a button push. If you have a process that you want to pause, program it to 'stop' at your predefined point, then monitor a flag, waiting for it to be set. Set the flag in your button push. Alternatively you could throw up a messagebox ("Push me to continue"). ...Show All
Visual Studio Express Editions User Functions in seperate files
How do you get MessageBox support in a user defined function when the Function resides in a seperate .cs file It will only allow it when I make my function either part of a class or form. Thanks I just want a function in that file, Does it have to be a class And if it does, Do the reccomend in C#, that to make a function that you just really make a class and make the function part of a class and it is really just a public method If so i guess i could work with that, but i really just want a function. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Sprites
Hi all how can I draw sprites on more than 1 or 2 different layers is there a possibility like a "z-coordinate" for a 2d sprite - which gives the order of the sprites I do know the Spritebatch.Begin(SpriteBlendMode.AlphaBlend); - method.. but can i put 3 or 4 sprites above each other I hope you know what i mean ;) thx greg does this work When you draw your sprites, the SpriteBatch.Draw() method takes a LayerDepth float (0 to 1). Setting this should have an impact on what depth order the sprites happen. ...Show All
Visual Studio Team System Build Failed
Hello, i have tried to build after an import schema and I got build failed with this output ------ Build started: Project: GescomDatabase, Configuration: New Deployment Any CPU ------ Error: Project contains invalid objects. ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ========== How can I know where are invalid objects Luis - Objects that are invalid should be displaying with a red exclaimation (!) point in the Schema View. Depending on the type of object and the nature of the problem, you may find them in the Orphaned Objects folder in Schema View. When the parent of an object is missing or invalid, and we can't establish the dependency relationship, the item will end up under Orphane ...Show All
Visual Basic About developing IPv6 Multicast Video Chatting Programme
Dear friends, I would like to ask about how to develop a Video and voice chatting prgramme using IPv6 multicast technology. I am sorry about I have no any knowledge of this aspect. The programme I would like to develop includes video chatting using webcam (I would like to use Multicast insteads of using one to one connection). May I have your opinions on it THX Fenwick Fenwick Tang, How would you like to "ask router" by code Do you mean add a ping control in your project and return the group IP address Actually there is a sample project on your demand: Ping Control: http://www.codeproject.com/vb/net/PINGCONTROL.asp ...Show All
SQL Server Convert Date
Hi ! I think I need your help... to convert the date (2006-09-09) to weekday, weeknumber, month number, month, year in OLE DB source editor ... created following sql, which is not working. How about using derived Column transformation editor SELECT DATENAME (WEEKDAY, YYYYMMDD) AS weekday, DATEPART(WEEK,YYYYMMDD) AS weeknumber, MONTH(YYYYMMDD) AS month_number, DATENAME(MM,YYYYMMDD)AS Month, YEAR(YYYYMMDD) AS year, DAY(YYYYMMDD) AS date FROM Purchase thank you so much... curiousss wrote: Hi ! I think I need your help... to convert the date (2006-09-09) to weekday, weeknumber, month number, month, year in OLE DB source editor ... created following sql, which is not working. How about using derived Column transformation editor ...Show All
Visual Studio Can instal GAT (and MobileClient! ;( )
I have: 1) Windows XP Pro Polish 2) Visual Studio Pro with many addins and DSL 1 localized on D: drive 3) Plenty different SDK (from Intermec, HHP, Microsoft etc) Here is message from event log (sorry it is in Polish, but probably you got additional necessary info) : Typ zdarzenia: B d rod o zdarzenia: MsiInstaller Kategoria zdarzenia: Brak Identyfikator zdarzenia: 11001 Data: 2006-09-20 Godzina: 12:12:36 U ytkownik: MKIEREPKA\kierepkam Komputer: MKIEREPKA Opis: Nie mo na znale opisu dla identyfikatora zdarzenia ( 11001 ) w rodle ( MsiInstaller ). By mo e komputer lokalny nie ma wymaganych informacji rejestru lub plikow DLL potrzebnych do wy wietlania komunikatow z komputera zdalnego. Mo esz u y flagi /AUXSOURCE= do pobra ...Show All
SQL Server Using SQL Server CE in a NON .NET Delphi Application
Hi, I'm looking at using SQL Server CE as a replacement for MS Access in a WIN32 Delphi Application. This limits my database options to Providers that is usable from ADO. I see that the OLE DB Interfaces are implemented, but I can't connect to a SQL Server CE database from Delphi. I've cut and paste a sample connection string (replacing the data source bit) but no go I've installed the Runtime Environment, VS2005 bit, Connectivity Tools and the SDK :) Any help Anything that I might have missed Thanks, Dawid Are you up to date on your Delphi 2006 patches Are you sure you are not using the .NET native driver in VS2005 and that is why it is suceeding Good luck, I will give this a try ...Show All
Game Technologies: DirectX, XNA, XACT, etc. .xnb files are huge
Hi! Our 2D game is getting huge because of the non-compressed .xnb files all our graphic are stored as by XNA. A single background image in 1280x720 pixels is using 3,5 MB ! What can you do to get file sizes for graphics down Maybe I need to explain myself better. When the background images are stored as compressed jpg's they are about 75 KB in size for at 1280x720 resolution. When they are published in our XNA game they are about 3.5 MB in size (in xnb format). So the question is how to compress images in XNA when deploying games ...Show All
Visual C# Constructor on type 'MYCLASS' not found.
I have 7 classes.. Some of them inherited from non serializable object , some of other inherited from 3rd party components. All of my classes have got [Serializable] attribute , ISerilazable interface and ClassName( SerializationInfo info, StreamingContext context) Most of them have got List of the other as property . Altough everything fine I got error like that " Constructor on type 'myclass' not found." I couldnt understand why Thx for advices.. My problem is more complicated i think i have to solve myself ..But i coudlnt understand why someone (like Microsoft :)) doesnt write Serialization Framework (Library) .. I have to write my self as you see : But not simple ...Show All
