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

Software Development Network >> Boogeyman777's Q&A profile

Boogeyman777

Member List

DRoden
stefciu
Luispekos
Mark Flamer
Fille
Devin
Will Merydith
ChrisMcCabe
sdj_dk
Gene R S
saloni1
Emil2000
GrandpaB
anu.ind
Smitha R
Mikaelm
vikionline
Simon Rapier
JimBim76
SyracuseCheer
Only Title

Boogeyman777's Q&A profile

  • .NET Development get windows directory name

    Hi, I have a Visual Studio 2005 VB.Net project. I need to access a file which is located in windows directory. How can I do that. Is there a function to get the full path of the Windows directory I saw the GetWindowsDirectory () function but I can't use it. Do I need a certain reference to a library for it or what Thanks. Are you looking for the Windows directory or just the system directory If the System directory you could simply do this: Environment.GetFolderPath(Environment.SpecialFolder.System) Otherwise to get the Windows directory you can still use that value to move a directory back up the tree. Also... to be able to use GetWindowsDirectory() you'd need to setup a P/Invoke decl ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. SpriteCache - A custom sprite renderer to eventually replace SpriteBatch. Source & Demo inside.

    Hey all, I put together SpriteCache for people interested in rolling their own SpriteBatch class. It's capable of doing almost anything SpriteBatch can do (no rotations yet), but also adds two nifty things: Per-Sprite Shaders - I know this is possible with SpriteBatch, but it's pretty obnoxious to have to set it up every time. With SpriteCache, you just set the effect and draw as normal. It's a lot simpler then setting up the effect passes every time. Four-Corner Tinting - I don't know why you can't do this with SpriteBatch, but you can't. SpriteCache allows you to tint each corner of your sprite individually. This is cheapest way to do 2D lighting. Play with the source and the demo and let me know what you think, I'd appreciat ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Could C# be the future of gaming?

    Since XNA is using C#, and is is a more intuitive language than C++, is it possible that in the future that C# will dominate, espessially in AAA titles. Could XNA be ushering a new way of programming in the main stream I agree with a lot of what is said here. A collegue and I dabbled in producing "cottage industry" type games using C# and DirectX 9. The Z-Buffer web site (www.thezbuffer.com) shows the groundswell of movement towards managed languages and game writing. Excuse this ... (Under the "games" link, the game "d-Rez" was our first attempt at a C# DirectX game) . Personally, I think managed environments are the way forward in creating some much needed layers to game industry. I love C#. I don't write games as a day job. How ...Show All

  • SQL Server Apply permissions to user, role or group?

    Hi guys, I'd appreciate your thoughts on this. Not done too much DB admin. Usually I do development work and the admins to the admin. The database is behind an API of stored procedures to manipulate the data, and views to select the data. The database needs to be accessed remotely by multiple clients. How best to keep the database secure Create a new user and login on the database which is made known to all client applications. Then grant execute permission on the stored procs and grant select on the views There is probably a better way than one login for all Should I be looking at roles and groups etc If so, how best to set that up A few pointers would be gratefully received! I still need more details about your ...Show All

  • Visual FoxPro Problem of import CSV file with Japanese Characters

    I'm using VFP9.0 SP1. I have a CSV file which contains Japanese Characters. I have change the language to Japanese of my Window XP. The problem is; I created a temp dbf to contain the CSV data, I used "append from csvfilename type CSV" to append record to this dbf, but those Japanese characters became special characters. What should I do Thanks, Edward Make sure you set the proper Codepage for Japanese (932) See: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dv_foxhelp9/html/a4b83cd7-c41f-4e46-a70c-c7c6799cfb36.asp frame=true http://msdn.microsoft.com/library/default.asp url=/library/en-us/dv_foxhelp9/html/a3d7b0e0-8320-44b1-8983-17c30a78c6c4.a ...Show All

  • Visual FoxPro Excel to cursor SPT problems

    I am using a SPT solution to take information from a .xls file and importing it to a cursor with this solution: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=509710&SiteID=1 However, I am now receiving problems where before I had not. Now I am getting Error 1466: Connection handle is invalid. Any ideas guys I can't see what the problem is but it occurs at the sqlstringconnect( ) line. Thanks! No it wouldn't be guaranteed to have a sheet name as Sheet1. Even if it would you're not guaranteed to have a table on excel (to excel every sheet doesn't contain a valid table that it could export via SPT. There are rules for it to accept a region as a valid "data table"). End users behaviors are always different from d ...Show All

  • SQL Server Connection Error

    Hi, I have developed a program which connects to an SQL Express 2005 server. This worked fine until yesterday when the server failed. I have set up a new server, same name, config, etc and restored the data back into the database. When the program runs it displays an error: System.Runtime.InteropServices.COMException (0x800A0E7D): The connection cannot be used to perform this operation. It is either closed or invalid in this context. Connection code that is erroring: rs.Open(s, sq, ADODB.CursorTypeEnum.adOpenKeyset, ADODB.LockTypeEnum.adLockOptimistic) * s is the search string * sq is the connection string sq.open("Provider=SQOLEDB;Data Source=mns-web01\sqlexpress;User ID=WLANClient;Password=password;Initial Ca ...Show All

  • Visual Basic filling a bitvector32 in a loop

    Dear all, I can fill a bitvector32 like this: Dim InBytes As Int32 dim i for i = 1 to 1000000 InBytes = i 'for example Dim InBitVector As New System.Collections.Specialized.BitVector32(InBytes) next i and then I can read out the individual bits (need this for a graphics conversion). Problem: this gets VERY slow, and I trailed that to the Dim InBitVector statement. Is there ANY way to assign an Int32 number to the InBitVector WITHOUT using the dim statement Thanks, Kees Perhaps it's wise to say what I want in the first place. Perhaps you guys even know a way to prevent extensive coding in solving this problem. I have 12-bit gray-val ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Joypad problems

    Hi have just set up C# EE and XNA game studio, no problems there. Compiled and run ok, but I get absolutely nothing from my Joypad, no buttons, no direction, nada..So am forced to use keys which respond fine The joypad works fine in other games, so is XNA only compatible with Xbox 360 joypads TIA Brian If you don't have the latest DirectX SDK you might want to download it and take a look at the DirectInput samples. They'll show you exactly what you need to do to get it running in your game. There's also a ton of resources available on the various game dev sites (you might start at GameDev.net). ...Show All

  • .NET Development dataset.merge .NET 1.1

    Hey guys Got trouble with dataset.merge in .NET 1.1 . I did 8 query with the sql database and tried to merge those tables to one dataset. it simply doesn't work. It gets 7 datatable and doesn't merge the 8th one. I wrote a simple for loop and it does the same. mycode: DataSet dts = new DataSet(); for (int i = 0; i < 10; i++) { DataTable dt = new DataTable(); dt.TableName = "table"+i; dts.Merge(dt); } dataGrid1.DataSource = dts; Result: adds table0 till table6 and after tht doesn't add anymore tables. I display the results on a datagrid. Please help!!! is this a bug Or constraints on DataSet.Merge ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Calculating normals for large mesh with no vertex to triangle info

    I have a mesh of 100.000 triangles where I need to calculate the normals for the vertices. The datastructure, I am using, does not point from vertices to triangles, but only the other way arround. I therefore defined my vertex normals as the sum of the triangles using them, weighted by the triangles size. I simply set all vertex normals to zero and then run through my triangles (when running through them anyway for some other task) and add a triangles normal (weighted) to the vertices it uses. The I run through all vertices and normalize the normals. This is suposed to give me a valid normal for the vertices. I am not much liking waht i see though. The entire terrain is filled with little pyramids. Light ones and dark ones. When I ...Show All

  • Visual Studio Express Editions Editing data thru Bound Controls

    I am writing a program that cycles thru an Access database and asks quiz questions. I have a column that has a checkbox bound to it that indicated wether the question was answered correctly. How do I get the corresponding entry inthe database to reflect the change in the control Hi, If the checkbox is bound to the database field, you should not have anything special to do. Can you explain more and give an example Charles ...Show All

  • Visual Studio Team System line coverage with VC++ Profiling(PREP, PROFILE, PLIST)

    hi All, I am trying to generate coverage information for a dll using the VC++ profiling. I am able to generate function coverage information using the batch file COPY % 1 .dll save PREP / OM / FV % 1 .dll COPY % 1 ._ll % 1 .dll PROFILE / I % 1 / O % 1 % 2 % 3 % 4 % 5 % 6 COPY save % 1 .dll PREP / M % 1 PLIST % 1 > cov.txt The problem is when i remove the /OM option, there is no error reported, but the coverage information is not generated. The batch file i have used having only "/FV" is as follows. COPY % 1 .dll save PREP / FV % 1 .dll PROFILE / I % 1 / O % 1 % 2 % 3 % 4 % 5 % 6 COPY save % 1 ...Show All

  • Visual C++ wchar_t compiler option causing linker errors

    Hi. I'm working on a project that uses MSXML4.dll. The dll is included into the project using a #import statement. This generates a .tlh file. I am implementing the ISAXContentHandler (and the other ISAXxxx) interfaces. The MSDN documentation says that strings are of type wchar_t but in the generated .tlh file, all the strings are of type unsigned short**. When I switched from VS 2003 to VS 2005, my project no longer compiles in UNICODE. I get errors saying "Cannot convert from wchar_t* to unsigned short**" (or something like that) for all my calls to SAX. When I change the compiler option NOT to treat wchar_t's as native types (No (/Zc:wchar_t-)) , the SAX errors go away, but I can no longer link corectly with the other dl ...Show All

  • Visual C++ Vector subscript out of range - can't understand why

    I'm having a problem regarding the 'vector subscript out of range line 756' when popping back a vector after upgrading to VS2005. Pushing back still works perfectly. Searching the web I find many others with the same problem, but no explanation or way to fix it. This is purely in debug mode, no problem with mixing release mode or anything. #include "fire.h" vector < fire > MYFIRE; In main I have this function for(unsigned int i = 0 ; i < MYFIRE.size(); ++i) {     MYFIRE.DoPhysics(MYTIMER.getdelta_time());         if(MYFIRE.Pos().X()>400)         {         for(int j = i; j < MYFIRE.size(); ++j)     ...Show All

©2008 Software Development Network