jaramillo's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Workaround to make XNA GSE work on Vista RTM?
It is not supported of course, but since Vista is locked down and shipping, is there a workaround to install Beta 2 of XNA GSE on Vista Repro steps: On Vista RTM Install C# Express Launch XNA GSE Beta 2 When it is "registering templates", an error message about C# Express closing down appears XNA GSE Installation app errors as well, saying that something went wrong Installer reverses all the installation... I know that some people have gotten the GSE and XNA Framework to work under Vista... Remember that the GSE and XNA System is unsupported under the Vista system, in future releases this should be fixed when the updates to the Express Products are released. ...Show All
Visual C++ need help to deal with char* pointers on COM interfaces
I need to reimplement legacy COM interfaces (derived directly from IUnknown). A lot of methods on the old interfaces are equivalent to the following: HRESULT setValue (const unsigned char* value); HRESULT getValue (unsigned char* buffer, int bufferSize); The pointers on both methods are in fact the addresses of unsigned char arrays, which may be allocated on the old COM client's stack. The COM server needs to use the pointers either to fetch a C-style string (in setValue method), or fill up the client's buffer up to the buffer size (in getValue method). See the big problem (flaw) here The COM server must be able to access the COM client's internal memory directly. But the problem is, that can't happen all the time, because COM ...Show All
SQL Server Long time SSIS package loading
I load SSIS package using following code: Application app = new Application (); Package pac = app.LoadFromSqlServer( packageName , serverName , null , null , null ); For simple package containing 2 tasks this code executes about 20 seconds. If I load old version (SQL2K) package from SQL2000 then it takes 5 seconds. Is any way to increase loading speed for SSIS packages Much of the time on the initial load of the package is due to validation of the metadata of each of your tasks. In order to speed of the initial load, you could change the DelayValidation property of your package and all tasks to true. However, that's not really best practices. ...Show All
SQL Server Maxis 3G connection
I cannot connect to SQL Server 2000(Remote Server) through Maxis 3G connection. I'm using Windows Application to connect to SQL Server 2000. dim strsqlcon as string = "Server=000.000.000.000;databse=dbname;usr=sa;pws=1234" dim sqlcon as sqlconnection = new sqlconnection(strsqlcon) sqlcon.open() "It's Error : Sql not exist or access denied." But I can connect to SQL Server 2000(Remote Server) through Local Area Connection. Have any solution Thank you. Server does not has any firewall. I can connect to SQL Server 2000 through Lan Area Connection. Is it 3G Connection TCP different with Lan Area Connection TCP ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Direct Answers For A Beginer
Dear, I Am A Beginer In Game Development, But Professional In C# And C++.Net 2005. I Want To Start Learning 3D Game Development Where I Have 2 Main Questions: 1- C++, C++.Net 2005, Or C# Is The Fastest And The Powerfull Language For Creating 3D Application 2- What Is The Graphic Library I Have To Learn And What Are The Difference Between XNA, DirectX, And XNA Game Studio I Hope To Help Me In My 1st Steps. Thx Alot Hassan Ayoub wrote: Thx Guys For Your Answers, But Plz, I Want A Direct Replies. 1- Can We Say That XNA Is The Latest Graphics API After Managed DirectX And DirectX Not really. XNA actually sits on top of managed directx and is actually a wrapper for it. The key thing about XNA was to provid ...Show All
Visual C# delete file which is in use by application
hi everybody, in my application for buttons i set images from directory (ex. C:\Images\), when i run application i set images for buttons from that directory, and i need to do that these pictures automaticaly renew periodicaly... so i tried to run thread in application which gets images from server, and overwrites old files periodicaly, but the problem is that application uses these files in C:\Images\ and i can't no overwrite, no delete and write new file instead... and at least when application runs i go to C:\Images and try to delete images and i can't do this, and it's nothing strange becouse these files are in use by my application :) but maby somebody can tell me how i can work around this and implement images renewing ...Show All
Visual Basic Threading and Events
Hi folks, Just want to double check my understanding is correct... Got a windows service that fires of a series of scheduled tasks. My ScheduledTask base class has an event called TaskComplete which also passes back the result of the task (ie success/fail) The idea was so that we can start the task and then just listen for the TaskComplete event to be fired, however... If the windowsservice launches the ScheduledTasks Start method on a seperate thread, If my understanding is correct, the TaskComplete event will not be picked up by the windowsservice that called it (because its on a seperate thread.) Now I know that for the senario above, I could just use the provided background worker and its provided methods but I need to kno ...Show All
Smart Device Development DLL questions in the compact framework.
I haven't done much with libraries outide of .NET so please help me out here.. Where can I find information about using an MFC dll in .NET Also, can I use an MFC dll in the CF (one that was not designed for a mobile device) My main problem is that I have a dll that handles our user list and security that was written in unmanaged MFC. I need to use this library in an application that runs on windowsCE. Can you tell me if this is possible.. and possibly a few links to the information I need to research to do this. Thanks, Alan It is not possible to use MFC library from CF directly. You will have to create a wrapper DLL that exposes the MFC library as exported methods and then you can ...Show All
Visual C++ Invoke throws an exception with VC8 ported code...
Hi, I have upgraded vc5 ATL server DLL to vc8 and vb5 client to vb6. I have a VC8 Atl server dll that I would like to fire an event to then be used by VB6 using the With Events keyword. BUT when DLL raises event, it throws an exception at the following statement.. pDispatch->Invoke(0x1, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL,NULL, NULL); It was working fine with my original source code in vc5 and vb5 client. Any ideas Thanks, Mac well VC5 was not ... hmmm how to say it ... very successful. VB5 was a disaster. It is possible they were very forgiving, compare to much more stable but unforgiving 6s . Anyway that's all gone, we have problem at hand. Is it possible to publish more of your ...Show All
Visual C# Why do we need Interfaces?
Hi, I am not able to understand the significance of the interfaces. Interfaces exposes some behavior through methods, but classes can also expose its behavior through public methods directly, then why do we want to use the interfaces is it just for an assurence that all the methods in the interfaces are inplemented in the class Is there any other reason like performance I guess interface object will/can not be created at runtime, is it correct if so then how does the communication happen at runtime any thoughts/links to understand "what an interface is ". Thanks and Regards, Benin. Hi, Its difficult to explain the real-time benefits of interfaces, abstract cls etc in such a short span/space. So le ...Show All
.NET Development System.Diagnostics.Process.Start not work with IIS, but on ASP.NET Development Server (Please help urgently)
Dear all: I am using VS2005 C# and testing on my local XP Pro PC with local IIS, I have wrote a web service to call a third party software .exe file to use CSV file to insert data in its OLEDB database, which use System.Diagnostics.Process.Start . The same codes did work when I use VS2005 build-in ASP.NET Development Server( http://localhost:2999/MyServices/MyServices.asmx ). but when I use IIS normal URL( http://developer/MyServices/MyServices.asmx ) to run Process.Start on the web service, it just haunlted and not doing anything. So I put the kill statment to kill the process after 1 mins, however, the process stopped, but did not do anything. T ...Show All
SQL Server OO storage? How to store large graphs and enable efficient graph operations?
Storing large graph in relational form doesn't allow us to perform graph operations such as shortest path quite efficiently. I'm wondering if storing the graph as objects would be better How should I design the schema Thanks! this is what I found of this book: Inside Microsoft SQL Server 2005: T-SQL Programming byItzik Ben-Gan, Dejan SarkaandRoger Wolter Microsoft Press 2006 (532 pages) ISBN:0735621977 Written by a T-SQL guru, this thorough, hands-on reference for database developers and administrators focuses on language features and how they are interpreted and processed by the SQL Server execution engine. ...Show All
Visual Basic conditional actions in a deployment project
Hi A few queries / how do I's with regards to deployment projects. When installing my application I want to see if a certain registry entry exists (one containing a directory path) and if it does I'll use that to copy some files into that folder ... How do I do this Thanks Bruce Hi, Bruce, I'm assuming that we're talking about setup projects here. When you select a file in the File System Editor in the setup project, you'll note that one of the properties is called "condition" -- you can specify under what conditions that file will install in that setup. Condition specifications can get fairly gnarly, and I'm certainly no expert on it, but for more information on how to spec ...Show All
Windows Forms DataGridViewLinkColumn
Hello there I am working with datagirdviews and have bumped into a problem, I have a column to display the type of file, i have linked that column to the file path, i made the subprocedure for cell click event, and tried opening the file using openfiledialog, and setting the filename to the path of that file, but that didnt work. still when i click on the link, the file doesnot open automatically, any one has an idea of this do i need to open the file in someother way, or change the path somehow,(i also tried using file://(full path to file) but that didnt work, still when i click on it, nothing happens what i want is the file to automatically open, the type of files are txt files, and some wav files. so when a user clicks on the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Drawing a simple rectangle
Hello - I'm trying to use XNA to draw a simple rectangle at the moment, using DrawIndexedPrimitives. I've tried tweaking and adding many different things but I can't even get anything to show, just the plain black screen (and yes, everything else like textures are rendering fine). Here's my code: Declarations: Protected vb As VertexBuffer, ib As IndexBuffer Protected vertexData As VertexPositionColor(), indexData As Integer() DeviceCreated event: vb = New VertexBuffer( _ graphics.GraphicsDevice, _ GetType(VertexPositionColor), _ 4, _ ResourceUsage.WriteOnly, _ ResourcePool.Managed) ib = New IndexBuffer( _ graphics.GraphicsDevice, _ GetType(Integer), _ 6, _ ResourceUsage.WriteOnly, _ ResourcePool.Managed ...Show All
