Bland's Q&A profile
Visual Basic Question about Security Permission FileIOPermission
I generated a program to read an xml file from a network drive, and display the information in a form. The program doesn't quite work until I change the security level in Visual studio (right click on the project name under solution explorer -> properties -> security -> This is a full trust program). So now, when I complie it, it runs, reads and displays data from share drive. Then I close visual studio, run the .exe program under bin\Debug, and I got an error. I don't understand why it reads the network drive file when I am in visual studio environment but not with the .exe file. Can anyone give me a hand on this The error message is as follow: "Application attempted to perform an operation not allowed by sec ...Show All
Windows Forms pack my program with visual studio 2005
Hi all, How to pack my program to MS window installer with visual studio 2005 I tired serach some infomation with google, but the info not very good. Who can give good refer to me. Best Regards, These are Visual Studio 2003 but still relevant: http://simple-talk.com/dotnet/visual-studio/getting-started-with-setup-projects/ http://simple-talk.com/dotnet/visual-studio/visual-studio-setup---projects-and-custom-actions/ http://simple-talk.com/dotnet/visual-studio/updates-to-setup-projects/ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. .FBX files over Xfiles
Iv never used .FBX files before so i was wondering if anyone have some incite into using one over the other, i understand that XNA is still coming and that how they are used mite make the deciding factor... basically they are similar in respects it will be easy to load with XNA. FBX just makes things easier for modelers to model things accross programs and import them into other things. I have talked to a couple of game devs that prefer it to anything else because it is so independent. ...Show All
Software Development for Windows Vista XPS Viewer not printing with XPS DrvDocumentEvent changes
Hi , We are developing a monolithic XPS Driver. We are facing a major issue with printing from XPS viewer. We are extracted the print ticket from DOCUMENTEVENT_XPS_ADDFIXEDDOCUMENTSEQUENCEPRINTTICKETPRE and converted it to XMLDOMDOCUMENT. We did the necessary changes in the printticket, wrote it back to pvOut, but in datain.xps,Job_PT.xml is not proper.It comes as Job _PT.xml\[0].piece, and Job_PT.xml\[1].last.piece. We also found that there is a BOM of 3 bytes for UTF-8 encoding in memory pointed by pvIn. Is this the reason for the corrupted job_pt How can we handle this encoding issue Could someone please help us with this problem Thanks. Naomi. Also it depends on couple of oth ...Show All
Game Technologies: DirectX, XNA, XACT, etc. setup desktop resolution as static
is it possible in current version of DX10 in Vista setup desktop resolution as static In result if any application tryies to change resolution, DX change it virtually, but actually will work with desktop resolution. I think it would be nice to have this feature for current LCD displays, which is not good to support natural resolutions. I haven’t seen something like this yet. Additional it would be dangerous to use a different resolution as the application request. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Translucent Overlay Sprite (i.e. "developer console")?
How would I implement a console into my program I have a solid dark blue DDS file loaded into a Texture2D variable. I can map it to the screen at (0,0), but (as expected) it's just a rectangular solid blue blob. I want to make it translucent, so that I can see some game elements moving under the console. I am already using SpriteBlendMode .AlphaBlend , but I think that's for making transparent "holes" in your bitmap files, which isn't what I want. I want the whole destination rectangle to be filled with my dark blue, but I only want the dark blue to be half intensity and blend in with what's underneath it. If you make your original image translucent, then when you draw it with ...Show All
.NET Development Oracle connection break
Hi, I'm using System.Data.OracleClient DLL to connect my Vb.net 2003 program to an Oracle Data Base. It works fine but I have a problem: When my network fails for moments (for example, unplug and plug the cable), my connection give a error (correct) but my problem is not here!! My problem is when I try connect again, my connection have state = OPEN and it's not correct (when make a select, give me error). I use the same connection for all aplication (to prevent multiple oracle connections entries because I have more than 200 connected Pc's). I have a Public var accessible from all application) To can connect again to BD, I need close and open the application. how I can connect again whithout close the program ...Show All
Visual C# main menu resizing problem
I have a program with a main menu that has 4 submenus in it. Depending on certain options that are chosen my app resizes itself. MY problem lies in the fact that with one option choice my window becomes too small and only the leftmost 3 of the 4 submenus can be seen/accessed. Without changing the size of my window is there any way to do something about this Thanks I tried that already, and its nice, cause it does flow. But the problem is that the flow causes it to go to the next line instead of just like adding something to be able to scroll. Anyone know if this is possible Thanks ...Show All
Community Chat Windows Vista Gaming Performance
I just read over on Neowin that gaming performance in Vista will be 10-15% slower in Vista. Can someone tell me whether or not this is true Thanks! - James the slowdown is due to how vista processess ram and graphics. the only difference between vista and xp (aside from a few os tweaks) is that vista is ram hungry and processess graphics differently. this change is due to the aero interface and how that works. i don't know why, i'm just a n00b. ...Show All
Visual Studio Team System source control
does visual studio team system for database professionals incude source control if yes, is the source control at the database level meaning if someone goes into Management Studio will they "see" that a stored procedure is currently checked-out and then they cannot modify that sp. i am looking at it from a full source control solution, for a sql server database, via Visual Studio Team System for Database Pro. that's was one reason for me looking at this product. But like now, with our team using Visual Studio and VSS, there exists a hole in the source sontrol solution. I cannot guarantee that the most recent version of an sp is in VSS or in the database. And I surely don't ...Show All
Windows Live Developer Forums Set the zoom level after a findlocation
I have an address in the UK, that I want to have a default zoom level at, which is a lower (closer) zoom than the default zoom. Using the finlocation method I can find the location, but how do I set a zoom level in code. Regards ...Show All
Visual C# Join Threads Question
Hello I have 10 threads which i start that way: for ( int i = 0; i < 10; i++) { Thread newThread = new Thread ( new ParameterizedThreadStart (BLABLA)); newThread.Start(LALALALA); } now i want to Join these 10 threads. how do i do it (Sorry for the newbie question..) Hi, you have to define an array of thread objects to keep variables to call methods on: Thread[] tt = new Thread[10]; for(int j = 0; j < 10; ++j) { tt[j] = new Thread(new ParameterizedThreadStart(blabla)); } for(int j = 0; j < 10; ++j) { tt[j].Join(); } -- SvenC ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Academic Edition?
Hi all, I was just wondering about a rumor mentioned in a couple of game news websites, where they hinted at the fact that any Uni partnering with MS would get an elusive "Academic Edition" What would that mean exactly Would the Academic Edition be like XNA GSE, but with some features of XNA Pro Does such an edition exist anyway in the first place I'm quite interested in this as I'm a lecturer in Game Dev, in one of the most active Unis in Australia (RMIT, in Melbourne), and I've been recently quite pleased with my XNA experimentation Cheers Thanks a lot, Dave! Either way it's fine with me...I just wanted to be sure there was no extra "feature" we were missing Th ...Show All
SQL Server How do I use a variable to specify the column name in a select statement?
How do I use a variable to specify the column name in a select statement declare @columnName <type> set @columnName='ID' select @columnName from Table1 You can't do that directly. You have to create a dynamic sql statement using a var and execute the statement. declare @sql nvarchar(1000) set @sql = 'SELECT ' + @columnName + ' FROM Table1' EXEC(@sql) ...Show All
Visual C++ Can you please help me
Hi I am trying to pass a object by reference with pointer into a function and using a method in that object. By seem to me it doesn't work. The object i want to pass is Game and in Game have a function vector <char> getPuzzle (); I pass game into the function bool guess (Game* game){ //do something here vector <char> p = game->getPuzzle(); //do something here too } it will compile but when i run it it come back with the error message This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Can you please tell me is that the correct way of using it What should i do to avoid this kind ...Show All
