Jaime Stuardo's Q&A profile
Visual Basic Win32 Application
Hi All Is there a way to compile a Win32 app/dll from the vs 2003 or 2005 environment as in Delphi, where you can choose your output type Thanks Not with a VB project if that's what you mean (considering the forum you posted to). Out of the languages included with VS, only C++ supports compiling to native code. ...Show All
Commerce Server Payment Gateway Pipeline Integration
Hi all, I am a beginner in CS 2007 doing my first CS 2007 project. We as a team are working to customise the CS 2007 Starter Site according to the business needs and to use it to launch as an ecommerce website. I have read the MSDN for pipeline and using the existing pipeline for payments provided in CS2007 Starter Site, it does not look viable to use it as it is for payments. Some blogs and discussions also redirect to the fact that one has to write their own pipeline for payments and integrate with their payment gateway service provider. Keeping in mind the deadline which has been given the 1st Dec 2006, we as a team don't think it would be possible. There couple of options that I have thought of Option 1 Removing the control ...Show All
.NET Development Saving data to two related tables
I have two tables related as such: one course has many students. In order to save student data, I need to link the student to a course (a student has to be registered under a course after all). I have created a lookup table in VS 2005, which successfully displays the list of courses available and the course code on a label next to the course name combobox. The problem is, it's not saving any data at all, nothing happens. I used TableAdapters to handle the saving and retrieving of data, I hope this info is sufficient. Please help! I finally found the answer, the problem lies with the way I was trying to save the course code field. The solution to my problem is assigning the selected value property ...Show All
Visual Basic regsvr dialog confirmation
This might be a imple solution to someone but I can't figure it out. I need to know how to register a dll without getting that annoying confirmation message. My code is below. Thanks! Shell( "regsvr32 operate.dll /i" ) 'to install Shell( "regsvr32 operate.dll /u ") 'to uninstall no worries, anytime. I actually just tried it out of curiosity but it still didn't return anything back to the application - only works for command line based apps I believe. I guess you maybe stuck unless you can find out how regsvr32 works, perhaps mimmic those things into your application if you can. Do you have to register the dll ...Show All
Visual Studio Problem printing local report without preview
I am having trouble printing a report without preview. The report designer works and I can print from it, but the process would be too slow for the final application. I have tried the walkthough provided by Microsoft for printing a report without preview and keep getting an inner exception (the program seems to read the dataset, first query (view), but can't find data for the second query(view) and throws the exception. Here is the walkthough code, with data modifications for my data The inner exception is thrown in the sub: Public Sub Export(ByVal report As LocalReport) The message says: a data source instance has not been supplied for the data source "SDBDataSet1_Tm1Pos2"."} "SDBDataSet1_Tm1Pos2".&quo ...Show All
Windows Forms VS2005 MyApplication_Shutdown not getting fired.
We are developing windows application in VS2005 (VB.Net). I have placed resource clearing and audit entry in the "MyApplication_Shutdown" event. But this event is not getting fired when our application exits. When I tired with the sample application, in our system it works fine. I don't know whether I have disabled any setting so that this event does get fired. Note: I have checked application framework checkbox in application settings. Hi I could get the problem. We have a login screen as startup. If the login is valid we do the following frmLogin.hide() frmMain.show() Since we hide the screen, the shutdown event is not getting fired when we close the frmMain. Alternatively. frmLogin.close() frmMain.show() In t ...Show All
SQL Server nvarchar(max) gets truncated at 4000 chars(?)
I’m trying to call sp_ExecuteSQL with a query that exceeds 4000 characters. DECLARE @sq NVARCHAR ( MAX ) DECLARE @from NVARCHAR ( MAX ) SET @sq = N 'SELECT Quite, AFew, Columns' SET @from = N ' FROM NumerousTables WHERE LotsOfConditions=''very big query...''' SET @sq = @sq + @from PRINT @sq -- This appears truncated at 4000 chars in the Messages tab. EXEC sp_ExecuteSQL @sq , @params , @Param1 , @Param2 , @ParamN , @Param10 -- gets errors Any suggestions Thanks. I realize that is what it says, but it is WRONG. This bites me almost weekly. I create dynamic sql to execute very large inserts and updates and every time it is over 4000 chars, it fails. It is easy to te ...Show All
Visual Studio Express Editions Managed Code samples for WMP11
The WMP11 SDK contains a folder in 'WMP 11 SDK\WMFSDK11\samples\managed' which has some C# sample code for a Tag Editor. I have been trying to port the C# code to vb.net 2005 express. Unfortunatly for me I am new to VB.net and don't really know a lot about C#. Does anyone know of a successful port of that code. rctaubert, Did you try to reference the C# code in your VB.NET project I mean just compile the C# code successfully and make it as a component in your toolbox or a dll file, then just add the exist component to your current project. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. My managed directx is horribly slow.. help!
Hi there. I have been writing games for years now and most recently in Blitz3D which uses dx7. I am now converting to managed dx with c# as that is the language I use at work and with managed dx now coming into it's own I though it was as good a time as any. Anyway, I wrote a small program with a camera following a ufo mesh around a ground plane with other ufos present in the scene. In blitz3D I can have over a hundred in the scene with no slowdown at all but in dx 9 if I move the ufo around, as soon as more than 4 or 5 appear I get about 2fps!! I've tried what I know (its using hardware and not reference or software except for vertex processing) but its such a simple program I don't know what else to do. Any Ideas I'm happy to p ...Show All
Software Development for Windows Vista Is this possible?
I have been searching through the forums and have found some partial answers to some of my questions. I decided it might be somewhat more beneficial if I simply posted the scenario that I must implement and try to see if this scenario is possible. If it is, in fact, possible, could people point out the specific areas of functionality in Windows Workflow Foundation that I can look to in order to accomplish my goals I will simply summarize the requirements for the workflow solution: Workflow must support a hybrid parallel/serial activity flow (i.e. The person assigned to the root "task" can assign out multiple child tasks simultaneously, and each of those child tasks could do the same, or create sequential tasks where one ...Show All
SQL Server SQL Express user permissions?
I'm trying to build a web application using SQL2005 Express and Visual Studio Express. It all works OK on the local machine, but gives an error "Login failed for user xxxx\ASPNET" when used remotely. I can't find where I can set login permissions for SQLServer 2005 Expresss - can anyone help, please Thanks John ... also ... This should be easy and almost automatic - am I missing something Is there something I should be doing outside SQL to make xxx\ASPNET useable John ...Show All
Game Technologies: DirectX, XNA, XACT, etc. xbox flickers while playing my game
I'm working on a pong clone. It's going together well on the computer but the xbox has a terrible flicker to it. Spacewar works fine, and the windows version of my game works fine too. I have tried vertical sync being on and off. All I'm doing is creating a 1x1 quad with texture coordinates and transforming it with a 1x1 white texture. Any suggestions I don't think code is worth much here because again, it works fine on my computer. I'm pretty sure it's caused by something I'm *not* doing. Any suggestions public void Render(GameTime time, GraphicsDevice dev) { dev.Clear(Color.Black); RenderTex(dev, tex, p1Paddle.Center(), new Vector2(p1Paddle.Bounds.Width, p1Paddle.Bounds.Height)); RenderTex(dev, tex, p2Paddle.Ce ...Show All
Visual Studio @err,hr or its equivalent in 2005
In older versions of Visual Studio (6 i know for sure , 7 i think) you could put the string @ERR in to a watch window to see the last error (as returned by the function) and you could put ,hr on the end of any HRESULT to get the string equivalent of the error, This was terribly handy. Is there any equivalent in the newerversions of vs Thanks, Eric- ERR, hr is so useful, it's unfortunate that it's not documented in the Pseudovariables page of the Visual Studio Debugger documentation (or anywhere else, as far as I can find). It was very nicely documented in the "Viewing the Last Error Code for the Current Thread" page of the VS6 documentation. It seems like an unfortunate ...Show All
Game Technologies: DirectX, XNA, XACT, etc. [MDX] VertexBuffer.SetData() ArgumentException
I'm creating a particle system in MDX and when I try to write the array that holds the particles I keep getting the ArgumentException. I've never had a problem with writing to a vertexBuffer before. Maybe someone can help me out with this. For now I'll just post the initialization of the VertexBuffer and how I write to it. Init vertexBuffer: mVertexBuffer = new VertexBuffer( typeof (Particle), mMaxParticles, mGDevice, Usage.Dynamic | Usage.WriteOnly | Usage.Points, &nb ...Show All
Windows Forms Launch Condition Haze
Hi. how we could reinstall the installation itself after a launch condition setup In a Visual Studio 2005 setup, use the Prerequisites button on the properties to build a setup.exe that will install the framework then launch your MSI file. The MSI itself also has a check for the framework, but that will be satisfied and the MSI file will just install. You probably don't mean the ".net framework sdk". You mean the redistributable for apps to run, not the SDK fopr developers to use. ...Show All
