ArtapuS's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. using a .X file
Could anyone point me to a tutorial(s) regarding how to load and use a .x model in the XNA environment Thanks is advance! There are several posts in the XNA Groups on doing this, some of the guys have also written components to load models. What you will find though is that the models need to be swm format... Also in the group are some converters for x to swm... I would have a look at some of the posts there to see what they have done and to also download the examples. If you have a look at http://www.xnaspot.com/ there are some samples on what you are trying to do. ...Show All
.NET Development StreamReader
Is there any way for a StreamReader to read a URI Here's the unhelpfully literal answer: static void Main( string [] args) { string myUri = "http://www.interact-sw.co.uk/iangblog/" ; byte [] uriBytes = Encoding .UTF8.GetBytes(myUri); MemoryStream ms = new MemoryStream (uriBytes); StreamReader sr = new StreamReader (ms); string fromUri = sr.ReadToEnd(); Console .WriteLine(fromUri); } This does exactly what you ask - it uses a StreamReader to read a URI. But I'm guessing it's not what you meant. Here's what it prints out: http://www.interact-sw.co.uk/iangblog/ I'm guessing what you probably meant was: Is th ...Show All
Microsoft ISV Community Center Forums Link Table
i have a link table in access which is linked to SQL Server, by opening the linked table itself, i could see the records etc, but if i try to access the link table through vb coding, it is saying that i dont have permission to SQLServer. How to overcome this issue. Many Thanks Syed ...Show All
SQL Server replication hangs on one table
publisher - sql2000 sp4 distributor - sql 2005 sp1 subscribers - mix of sql2005 sp1 and sql 2000 sp4 we have a database with around 300 tables and replicate it to around 10 different subscribers. some in the same datacenter and others in different offices. We have around 50-60 different publications for this. Some have 20 or so tables others have only one table if they are large tables. Tables range in size from a few hundred rows to over 20 million. Some tables replicate a few commands, others 100000 or more commands on a daily basis. Around 6 weeks ago we started having problems with one table. It's 1.4 million rows and replicates around a few thousand commands on a daily basis. We saw a backlog of around 150000 to 400000 commands. We ha ...Show All
Visual Studio Tools for Office How to implement a gallery in ribbon, its items are building blocks in word 2007
Hi. everyone. I'd like to customize a ribbon which has a gallery in word 2007. The gallery should be similar to a QuickPartsInsertGallery in word 2007 original ribbon. I added some building block to a quick parts and I wanted to display building blocks satisfied some search conditons on ribbon's gallery. so, I added a gallery tag customui.xml. <gallery id="Gallery2" label="Gallery2" size="large" showImage="true" showItemLabel="true" &nb ...Show All
Software Development for Windows Vista Assigning event handlers to methods in Activity base class
I inherit a number of custom activities from a common base class (which contains no children of its own). This base class provides event handlers for events raised by the derived classes, e.g. EDX and CodeConditions. The derived classes contain child activities which raise these events (usually as DependencyProperty events). If I try to (manually) assign a derived activity's event in the activity property window to a base class EventHandler , I get an "Invalid Value" error in VS.NET stating that a method with the same name is defined on the base class (which is kind of the point). The base class handlers are also not visible as drop-downs in the property windows (although they are scoped as public/protected). The workarou ...Show All
SQL Server DatabaseLog table
AdventureWorks database has tables: DatabaseLog, ErrorLog. I figured there should be a system stored procedure that creates such tables for your database. So far I could not find what it is. I would appreciate a pointer. Thanks. Andrea Montanari wrote: hi, AlexBB wrote: AdventureWorks database has tables: DatabaseLog, ErrorLog. I figured there should be a system stored procedure that creates such tables for your database. So far I could not find what it is. I would appreciate a pointer. Thanks. those tables are not system table but user tables... dbo.ErrorLog has a dependency chain including dbo.uspLogError stored procedure, 9 triggers and more 3 stored proc ...Show All
Visual Basic How can i use the CUMIPMT function from excel inside vb.net?
I am currently writing a program and need to use the CUMIPMT function from excel inside my program, on a form, but there seems to be no way to add it, and its not included in the financial functions as far as i can see. can i add it somehow or does anyone have the math formular i would hate to do it, but if i have the formular i think i can just write code to do it. thanks CUMIPMT function returns the cumulative interest paid on a loan between start_period and end_period. Syntax CUMIPMT ( rate , nper , pv , start_period , end_period , type ) Rate is the interest rate. Nper is the total number of payment periods. Pv is the pr ...Show All
Windows Forms Accessing objects on a form via a class
I have a form with a text box and I need to access the textbox and some other events within the form class from a seperate class. How can I get access to that textbox The form is making a call to a method within the class class.getCommand(command); and then the getCommand method needs to be able to modify the textbox within the form. Any suggestions would be great! Thanks! Scionwest Hi, I am not really following what you are trying to achieve. When the user clicks a button you call getCommand, where does the command parameter come from Your business objects should not know about GUI classes, your getCommand method can return a string which the form can then use to change the bu ...Show All
Visual Studio Express Editions yet another listbox question..
I am having trouble figuring out what i am doing wrong here. the following is the code im using. after that i will explain what i want it to do. Private Sub load_but_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles load_but.Click Dim game_dir As String = wrk_dir.Text + "\" + gametype.Text + "\" Dim TextLine As String ' Open file. Try FileOpen(1, game_dir + "maplist.txt" , OpenMode.Input) ' Loop until end of file. Do While Not EOF(1) ' Read line into variable. TextLine = LineInput(1) ml_list.Items.Add(TextLine) 'add the value of textline to the listbox Loop FileClose(1) Catch ex As Exception ...Show All
SQL Server Better was to handle fixed width flat files?
Is there a better way to handle fixed width flat files than the built-in SSIS capability I have a fixed width file with over 400 columns and it looks like I need to manually click lines where each column starts/ends (quite tedious and prone to error). I have an excel version of the spec with start position, length, and data type for each column. So far it looks like the only way to automate this task is to somehow automatically generate the package XML from the spec and paste it into the dtsx file. Anyone know of a better way I think you're posting correctly. Your approach is fascinating, can you provide instructions for what you did ...Show All
Visual C++ HASH method implementation in a COM DLL.
Hi All. I am currently writing a COM DLL on VB 6.0 and VC++. I need to implement a HASH METHOD in ATL/COM. Can any one please guide me in this implementation. Thanks in Advance. Here's a hashing function I've used for years: UINT HashBuffer(void* buf, UINT len, UINT slots) // Computes a hashing value on <buf> for <len> bytes, using the ELF algorithm { DWORD hash = 0; for (UINT ix = 0; ix < len; ix++) { hash = (hash << 4) + ((BYTE*)buf) [ix]; DWORD hibits = hash & 0xf0000000L; if (hibits) hash ^= hibits >> 24; hash &= ~hibits; } return hash % slots; } ...Show All
Visual Studio Express Editions Problems Compiling
I'm having troubles compiling my program and I'm not sure why it isn't generating the correct names. G:\RadASM\Cpp\Projects\TypeSpeech>cl TypeSpeech.cpp /link /nodefaultlib kernel32.lib user32.lib gdi32.lib ole32.lib sapi.lib Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. TypeSpeech.cpp Microsoft (R) Incremental Linker Version 8.00.50727.42 Copyright (C) Microsoft Corporation. All rights reserved. /out:TypeSpeech.exe /nodefaultlib kernel32.lib user32.lib gdi32.lib ole32.lib sapi.lib TypeSpeech.obj TypeSpeech.obj : error LNK2019: unresolved external symbol ___security_cookie referenced in function "long __stdcall WndPr ...Show All
Windows Forms Run .bat file on completion of install (setup project type)
Hello. I'm trying to create a setup project that will run a .bat file after all the other steps in the installation process are completed. I've added the .bat file to the dependencies so that it gets copied to a location during installation, but when I try to select it as the item for the custom action I get the error "Not a valid file type for a custom action" Perhaps .bat files are not allowed in this context but I've seen other questions (but the answers were not helpful) that seem to imply that this should be possible Can someone help me with this please Thanks David This thread has some answers: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=869675&SiteID=1 ...Show All
SQL Server Inserting Arabic characters into a column
Hi, I am trying to insert some arabic characters into one of the tables but after I insert it, it get stored as . What should I do I have SQL Sever Managment Studio Express running on Windows XP. I appreciate any suggestions!! Thanks Two possible reasons I can think of: 1. the column is not defined as unicode data type (need to use nvarchar instead of varchar for example) 2. the string was not led by the special char N (e.g. need to use N'chars' instead of just 'chars') ...Show All
