Galbatronix's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Initialize(), LoadAllGraphicsContent(), Unload()???
Hi Guys, Just wondering if anyone could explain to me what is meant to happen in the Initialize and LoadAllGraphicsContent() methods in the skeleton source code. In particular I am unsure about what goes into the normal constructor and what goes into these two methods and what is the difference between each of those methods. Are these methods called only once at the start of the program or are there many calls to these methods Thanks for any help offered ProfEclipse wrote: When the device is created/recreated, LoadAllGraphicsContent is called with an argument of true. When the device is reset, LoadAllGraphicsContent is called with an argument of false. Alt-tab typically only causes a reset if ...Show All
SQL Server Accessing the variable in Execute SQL Task
I have a variable SYear with the data type Integer and the value 2005. Connection type is OLE DB, and my sql statement is: DECLARE @MyYear Int SET @MyYear = I have set the variable User::Syear as Input with the parameter name=0, there is no result set. I set BypassPrepare both True and False. However, this simple statement does not work. I keep having an error. If I put integer value directly into @MyYear, it is fine. What is wrong in here Somebody help me! DarrenSQLIS wrote: The parameter support is not geared to big lumps of procedural SQL, but simpler DML statements that share common structures between all OLE-DB implementations. Try re-writing the query to use parameters inline. ...Show All
Visual C++ NetUserGetInfo returns 1008 (GetLastError)
Hi, I am developing a dll which uses NetUserGetInfo to retreive the home directory of a Domain user. NetUserGetInfo returns 1008 error code. my usage of function: NetUserGetInfo(Domain-server,domain-user,11,buf) The problem i was thinking was, The dll is launched by a local user(admin privilages) on a system which is in the same domain. SO may be the local user does not have enough permissions to use the NetUserGetInfo function to retreive the necessary information. My questions: 1. Is it possible to provide enough permissions for the local-user to access domain users properties, How 2. The other alternate is to connect to domain-server with some power user and then use the NetUserGetInfo function. But I do not find suitable function to c ...Show All
.NET Development trouble installing the .net framework 2.0
when I try to install the .net framework 2.0 I get a message saying"Error creating process <C:\DOCUME~1\"username"\LOCALS~1\Temp\IXP000.TMP\Install.exe> Reason: C:\WINDOWS\system32\advpack.dll" I've tried all the ways mentioned on the forum so far and I keep getting the same error. I'm assuming I have a 32-bit version, is there a.NET Framework 2.0 32bit version If not, does this mean I need to get a new 64bit OS ...Show All
Visual Studio Team System Workgroup Edition license..
I am the only developer in my organization. I have a Premium MSDN subscription with the new DB Pro Team System. Anyway, a copy of the Team Foundation Server Workgroup Edition is included. This is great for me! I will probably be the only developer here for a while. Anyway, it says that TFS requires SQL Server 2005 standard and Windows Server 2003 to run! ! ! Okay, so I'm a single developer, do I have to buy a copy of windows server and sql server 2005 standard just to run my Workgroup Edition If so, it makes it unusable for me. I develop in-house Line-of-Business apps, so every dollar we spend is overhead. It is difficult enough just to get the msdn subscription. Anyway, I'm looking for some guidance here. Right now, I'm using a basic wor ...Show All
Visual Studio How to select particluar data from the database and how will i display it in crystal reports
Hi I'm developing an application which has around 20 reports. I have created the reports using CRYSTAL REPORTS WITH VISUAL STUDIO. I know how to group reports and also has a vague idea about the selection formula. The client when he click on the report title from the DOT.NET Application, he should be able to see a search box like which further allows him to filter the data and display the reports according to his selection. For e.g : if the client need to see the projects details between the September and October, he will select the months from the drop down box. and when he click ENTER, it should display the reports containing the projects details from September till October. Can anyone tell me how to do it Please. ...Show All
Visual Studio Express Editions Scheduling a procedure
I need to run some code at a certain time. I can do a While loop controled by a Time variable, but I think that that is too inefficient. What is the best way to do this I have something in mind like the Application.OnTime of VBA. Thanks, Antonio Hi Dave, It works. Many thanks. It needed this syntax If timestart - Now.ToUniversalTime < TimeSpan.FromSeconds(120) Then ...Show All
Software Development for Windows Vista Vista zip file problem
I just downloaded the beta (vista 64bit english), opened the zip file but all that was there was the read me file, i couldn't see any files. The zip file is 4GB so it must contain the files, when I try to unzip it, all I unzip is the readme file. I take it there's something I'm doing wrong here... What I downloaded was a DVD image. You need software that identifies and can burn it to DVD. I used Nero burning ROM as it was bundled with my CD burner drive. I have 32bit windows but it was not a zip file. If it is named img or iso you should be able to use cd burning software or iso software like isobuster to extract and burn the conent. ...Show All
Visual Studio Express Editions open a file and insert its contents into access
I am trying to get some data out of a text file and into a database. I have the openfileDialog to were I can select the file but I am unsure of how to read the file and input it into an access database. Any pointers would be great of were I should look. Thank you. Here is a sample of the data, Which would go into one line of the table. Dave ruez BFF DK 34 552 115 47 3 51 75 4 8 1250 the entire thing just doesnt seem right to me. Lets try fixing it up a bit Dim connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=project.mdb" Dim theOleDbCommand As New OleDb.OleDbCommand( "INSERT INTO tblmain (Name, Team, Position1, Hits, Games, 1B, TB, OBP, SLG, OBPS, BA) VALUES (@p1, @p2 ...Show All
Visual Studio Can't change ReportViewer ReportPath dinamically.
I haven't been able to change LocalReport.ReportPath dinamically (web form) Scenario, i want to reuse the same reportviewer control (in local mode) for several reports. Eg. Have a list of possible reports in a combo box, and have the report changed by the user choice. When i change the ReportPath dinamically, i get an error as if changing the report path doesn't clear the "previous" report definition. Eg. a)use ReportA.rdlc which has no parameters and render the report (everything ok) b)now chante ReportPath to ReportB.rdlc which has parameters and set a parameter. I get an exception stating that the report has no parameter with the given name. If i perform the steps in reverse order everything works fine. It appears as if, the ...Show All
Software Development for Windows Vista ASP.NET hosting....eventDelivery failed.
I have the following architecture: Console app-->WebService-->WorkflowBusinessManager(has the wf runtime and all other service)-->DataExchangeService--->Workflow Each of the above are seperate projects and I'm using XAML activation.Also im using a base workflow from which other workflows of specifice types are created. Inherited as follows: BaseStateMachine :StateMachineWorkflowActivity -->ProcessBase: BaseStateMachine ---> ActualWorkflow :BaseStateMachine even though the event args are marked as serializable.This event delivery fails and it mentions that the event args are not serializable... I've also set "waitForIdle" to true.I'm using the manual scheduler service. I'm using .N ...Show All
Visual FoxPro How to create a Shell Extension in VFP
Does anyone knows how to create a Shell Extension using VFP The Shell Extension are DLLs loaded by windows when the user right-click an object in Explorer. The DLLs add menu items to the context menu so the user could use some use full aplication or behaviour on the object. I talk to some people but the only thing they know is how to do it in C++ or Delphi. ...Show All
Visual C++ extern "C" with a struct
Good Morning I'm trying to compile a project that is a mix of C/C++ code. It compiles fine but fails on linking as one of the C++ file can't resolve the global variables from the C code. So I ' extern "C" ' all of the global variables and that works, except I have a question: how do you extern a pointer to a struct I tried: extern "C" struct myStruct *struct; and I get about 80 errors, saying I'm missing semicolons and brackets and stuff. Any ideas Thanks, Philski OK, the linker is giving me the following error: Error 135 error LNK2001: unresolved external symbol "struct MSL_st MSL" ( MSL@@3UMSL_st@@A) TI.obj I tried to resolve it using: extern "C" { struc ...Show All
SQL Server Memory Errors
I have been fighting with memory errors lately. The one below happened during my backup routine, which may or may not actually be related. System: Dual-core Xeon, 4Gig RAM, 300Gig HDD, Windows 2003 Enterprise, SQL 2005 Standard, Running all SQL Services including Reporting Services/IIS. I will lay out a timeline of events: ALL DAY LONG - Received the following error 'There is insufficient system memory to run this query.' It doesn't tell me the query name or database in any of the error messages. I didn't know it was happening all day. 11pm - A data copy process from a PostgreSQL database (success) 11pm - A data copy process from a CADOL CView database which said it ...Show All
Visual Studio 2008 (Pre-release) I want to make RecentMenuItem.
It made it. However, it doesn't become movement that the focus movement and the AccessKey processing with the cursor key intended. ------RecentMenuItem.cs public class RecentCollection : IEnumerable<string>, INotifyCollectionChanged { List<string> uris = new List<string>(); public RecentCollection() { //TestCode Start Add( @"c:\datas\testdata1.dat" ); Add( @"c:\datas\testdata2.dat" ); Add( @"e:\temp\dummy.dat" ); //TestCode End } public void Add( string uri ) { uris.Add( uri ); RaiseCollectionChangedEvent( new NotifyCollectionChangedEventArgs( NotifyCollectionChangedAction.Add, uri ) ); } public IEnumerator<string> GetEnumerator() { return uris.GetEnumerator ...Show All
