Jimmy Jam's Q&A profile
.NET Development New column problem....!
I made a procedure Public Sub Novo(ByVal nova1 As String, ByVal nova2 As String) that creates a new oledbDataAdapter with insert update select and delete commads. I also added that commands can change depending how many columns are in a Table (insSql). Dataset is Studenti1data, I made it by the new data source wizard,and made datagridview and bindingsource draging Table1 to Form2. I use Access database. I add a new column with this code: Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Dim noviStupac As Data.DataColumn = New Data.DataColumn("Test Marko", System. ...Show All
Windows Search Technologies click on go button doesn't work
Hi I just upgraded from 2.6.6 to 3.0.1 on windows xp sp2 and when I click on the go button, it doesn’t open the full screen search. I removed it and reverted back to 2.6.6 and now my desk bar doesn’t show up either. So I put the 3.0.1 back again and rebooted. Under desk bar, you can see the search box and go button. Searching on box works fine but clicking on magnifier or clicking on search desktop has no reaction. Any idea how this can be fixed ...Show All
Visual Basic How to connect to current active Excel Workbook from standalone Visual Basic program?
I have an application that needs to verify if Excel is running ( doing this through System.Management.ManagementObject iteration) and if it is, to connect to the currently active workbook and fetch the list of worksheets. I cannot for the life of me figure out how NOT to say Dim xlApp As Microsoft.Office.Interop.Excel.Application xlApp = New Microsoft.Office.Interop.Excel.Application xlApp.Visible = False xlBook = xlApp.Workbooks.Open(xxx) but rather something like xlBook = Microsoft.Office.Interop.Excel.Application.ActiveWorkbook (I know that is wrong but that's the best I could think of). Can you please show me how to set xlBook to the currently active Excel Workbook Found the answer aft ...Show All
Smart Device Development MSMQ- on PPC
Hi, I have an application using msmq on ppc 2003 and wm5 device. Application on the ppc is a client and i happen to recive messages from a host which is a PC. I am losing messages on the cleint if the Host ie the PC sends me messsages in bulk ie around 4000-6000 messages. any idean on this.... thanks, praveen Loosing messages at which point Do they ever leave desktop Do you have enough space on device to store them all and settings allow MSMQ to do so ...Show All
Audio and Video Development DXVA 2.0 Video Decoding [Typo] //dxva2api.h in MicrosoftR WindowsR Software Development Kit for RC1
// compressed buffer types. enum { DXVA2_PictureParametersBufferType = 0, DXVA2_MacroBlockControlBufferType = 1, DXVA2_ResidualDifferenceBufferType = 2, DXVA2_DeblockingControlBufferType = 3, DXVA2_InverseQuantizationMatrixBufferType = 4, DXVA2_SliceControlBufferType = 5, DXVA2_BitStreamDateBufferType = 6, DXVA2_MotionVectorBuffer = 7, DXVA2_FilmGrainBuffer = 8 }; I assume there is a typo in the names, the following is probably a better match DXVA2_MotionVectorBuffer Type = 7, DXVA2_FilmGrainBuffer Type ...Show All
.NET Development Abortable thread with return value
Hello, There are two possible solutions that would work for me here... Requirements are as follows: I want to run a task in the background. The task returns a value, which I need to collect. I also need to be able to abort the task. I can use Thread.Start, and then Thread.Abort if I need to stop it, but I can't find a way to get a return value by this method. Alternatively, I can use BeginInvoke, which makes it easy to get a return value using EndInvoke, but then I can't seem to find a way to abort the thread. Either method would be fine. Any suggestions Thanks, Nick Nick, I realize your question is answered. I am just curious if you can give a very broad description of the application yo ...Show All
Visual Studio Express Editions Moving On
Moving on from my last post, where I wanted to draw an ellipse in Picturebox1. I now want to copy the part of the image that is inside the ellipse and move it to picturebox2. I've been looking at Transform and Translate examples but not sure how to adapt them to what I'm after. Most of them just show you how to draw a rectangle and move it 100 pixels to the left. Some pointers please would be helpful. Actually, as I look at talldudes code, it looks like he really did talk to the buffers instead of inscribing images on a picturebox surface which is fine to do although Powell clearly recommends doing this kind of thing in a paintevent with an event supplied graphics. This goes back to an answer tha ...Show All
Visual C++ error while registering an exe on vista
Hi everybody, I am getting error while registering an exe on Vista. Faulting application query.exe, Faulting Module Querydb.dll, exception code 0xc0000142, fault offset 0x000089f3, etc. It is properly registering in xp, the code developed is from vs2005 (vc++).. Please help me in resolving the problem. TIA, with Regards, Ravi Mudhol. Hi, registering components normally writes into HKEY_LOCAL_MACHINE\Software\Classes which a normal user cannot do. Maybe even an admin without explicitly giving full admin rights cannot do that if UAC is enabled. You can open a cmd.exe with full admin privileges: create a shortcut to cmd.exe on the desktop. Right click and cho ...Show All
SQL Server Create a cube- only of linked objects ?
How do you create a new cube, that only exists of linked objects. As i see it, you can only create a cube by selecting source, fact table etc. - and then afterwards add linked objects to the cube.... Hmm seems like the easiest way is to create a cube, is to select at fact and dimension - finish and the delete those again. Then you have e "blank" cube and can add the linked objects.... ...Show All
Windows Forms how te get date only?
I am using this code to get all available doctors in a specefic dates (regardless of the time). sql_command = new SqlCommand ( "sp_get_available_staff" , sql_connection); sql_command.CommandType = CommandType .StoredProcedure; sql_command.Parameters.Add( "@starttime" , SqlDbType .DateTime).Value = e.Start.Date; sql_reader = sql_command.ExecuteReader(); and this is mt stored procedure: SELECT working_schedule . id_number , persons . person_name FROM working_schedule INNER JOIN persons ON working_schedule . id_number = persons . id_number WHERE DATEDIFF ( mi , starttime , @starttime ) = 0 ORDER BY persons . person_name but it's not retriveing anything t ...Show All
Software Development for Windows Vista Visual Studio Crashes on Lab01
Hi, I have VS 2005. I installed both the WWF extensions and the hands-on lab, but when I run the form-based task of the lab, the crashes Any ideas thanks! Lior Please rety this with the WF RTM bits. If this is still hapenning please provide more details of where the crash occurs and what stack trace or other debug info is observed. Regards, Paul ...Show All
Visual Studio 2008 (Pre-release) What limit my connections?
I set the maxConnections of my netTcpBinding to 1000, and the behaviorConfiguration of my service is like this: <BEHAVIOR name="SampleServiceBehavior"> <SERVICETHROTTLING maxConcurrentInstances="1000" maxConcurrentSessions="1000" maxConcurrentCalls="1000" /> </BEHAVIOR> In my client, I send 200 requests to my service in 200 threads, In every thread, I create a new proxy to connect to my service. In my service, I make the thread sleep 10 seconds before return the response. for I want to simulate multiple clients call the service to do a long time work in concurrency. But I found that my client can't receive all the responses. And there were some timeout excep ...Show All
SQL Server Combining Multiple Subreports in One Report
Hi, I am trying to combine 5 different reports in one report. I am using them as subreports. The problem is, they are all different formats. For example, one of the report is rendered as 3 column report, and page length and width vary from report to report. When I tried to use table and list for this, my program crashed and closed my visual studio. When I use rectangle for it, then shows me the report but report is no more multiple column and page sizes were also different from the one I did in the report. Please guide me how to combine all these reports and not loose the formatting of the reports. Thanks, -Rohit Hi Robert, Do you think its going to be fixed If yes, then how early you think it ...Show All
.NET Development .NET 1.1 vs .NET 2.0 behaviour with Image fields
In not .NET 1.1 and 2.0 the System.Type mapping for a SqlDbType of Image is byte[]. If you use this type to create a SqlParameter (with a value of DBNull.Value) and then use this in a SQL statement of the form "Update table Set ImageField = @parm where ......" Then in .NET 1.1 it works, but in 2.0 you get an Exception "nvarchar is incompatible with image" How can you determine the correct System.Type to use for Image fields, and why is the behaviour now different The application code is generic and not tied to specific database designs. Thanks Tony sorry if I am being confusing/misunderstanding, I apologise. From the code snippet, you are inserting a b ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Missile Command - XNA Remake
Max Damage Studios is now making its release of its Missile Command XNA remake public. You can go directly to our downloads page to grab it. This project was mostly a proof of concept written in a very short, around 10 hours, amount of development time. We made use of a few of the DirectX SDK Tools such as XAct to get the final result. All audio work was done in our studio. There are only 11 levels in version 1.0 currently, but perhaps someday we shall extend that and produce another version. But we are moving on to our next project for now. I can't edit the above post because the forum is being strange...but here's the correct linkage for the sound pack: Max Damage Studios - Audio Page ...Show All
