Software Development Network Logo
  • Game Technologies
  • .NET Development
  • IE Development
  • Visual Basic
  • SharePoint Products
  • Visual C++
  • Windows Vista
  • Visual Studio
  • Audio and Video
  • Smart Devicet
  • Visual FoxPro
  • Windows Forms
  • Visual C#
  • SQL Server
  • VS Team System

Software Development Network >> Okugops's Q&A profile

Okugops

Member List

ChristianBG
The Admiral
adwins04
Amelie s
baldeagle16
gqlu
Lee B.
metz-
MarkLawrence
cunyalen
DreamingBear
din attarwala
Dave Kaplan
CodemasterMM
dvidal
Davids Learning
Superobotz
Sequel2k5
Old Jeffrey Zhao
Shouvik
Only Title

Okugops's Q&A profile

  • Visual C# why my try/catch statement "loops"

    hi! i have three succeeding try-catch-finally statements but it sort of "loops" when i run the program. this is basically the code.. . try { insert1.Connection.Open(); insert1.ExecuteNonQuery(); } catch ( OracleException ex) { MessageBox .Show(ex.ToString()); } finally { MessageBox .Show( "insert1 done!" ); insert1.Connection.Close(); } try { insert2Connection.Open(); insert2.ExecuteNonQuery(); } catch ( OracleException ex) { MessageBox .Show(ex.ToString()); } finally { MessageBox .Show( "insert2 done!" ); insert2.Connection.Close(); } try { insert3.Connection.Open(); insert3.ExecuteNo ...Show All

  • Visual C# any sample code for calculating "variance" (statistic)?

    Hi, i'm trying to compute variance-covariance matrix (finance). I'm wondering if there is any free sample code of library that can help me such as codes that computes variance(like in statistics). Is there any free sample code or libraby for that Thank you in advance. hi, In SQL Server method stdev (express) is available to calculate standard deviation, and many aggregate methods in it. Otherwise, there are also a lot of statistic methods in crystal reports and excel. BR   ...Show All

  • SQL Server SSMS scripting Stored Procedures to separate files

    I have noticed that in (SQL Server Management Studio) SSMS the ability to individually script stored procedures appears to have been removed (it was there in Enterprise Manager (SQL Server 2000) and I found a comment in another thread which appears to confirm this: Steven Twitchell wrote: >We've had several requests from various sources for functionality to script objects to their own files rather than one large file. I have been scripting stored procedures to individual files and then using sourcesafe to compare databases to ensure syncronisation with a client. I can do this on one file but it does not give the same granularity in my audit history. My question is therefore: Is there a workaround in the command line / T-S ...Show All

  • .NET Development Windows Installer 3.1 availability in running machine as a launch condition

    Hi, I wish to include Windows Installer 3.1 as a launch condition in my MSI project. In other words, the MSI will check for the availability of Windows Installer 3.1 in the running machine. If Windows Installer 3.1 is not installed in the running machine, installation will stop. There are 2 ways of doing this namely registry search and ComponentID search. However, i can't find neither the registry key nor ComponentID ( GUID ) for Windows Installer 3.1. Any ideas what's the values of the GUID and registry of Windows Installer 3.1 Thank you. Hi, The Windows Installer 3.1 is not an MSI, so you will not be able to check for a component ID. The way that Visual Studio setup checks for the existence of Windows Installer 3.1 ...Show All

  • Visual C# How to invoke command line from C#?

    Hi, I wish to know is there anyway to invoke command line from C# programatically Regards, Leo I can't seems to invoke this imagemagick command public void Flip( string FileName) { Process flip = new Process (); Process .Start( "convert C:\test.jpg –flip inverted.jpg" ); } If the command is not particular DOS command like cd and dir etc etc.. Do I need to do anything special to invoke them correctly And for the switches(parameters) like -flip and so on do I need to do anything to pass the parameters correctly By the way, I have installed the imagemagick software correctly on my Windows XP and it is working fine from command line. ...Show All

  • Windows Live Developer Forums Dynamically load API JS file kills IE6

    I'm trying to load the veapi.ashx file dynamically, but I'm having a big problem with IE6, please test the following code out in IE6, you will need to clean your cookies and cache, to do that in IE6 you need to go to Tools --> Internet Options -->Delete Cookies & Delete Files.. and close all your IE, and start IE6 with these code.. <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script> var map=null; function include_js(file) { var html_doc = document.getElementsByTagName('head').item(0); var js = document.createElement('script'); js.setAttribute('type', 'text/javascript'); js.setAttribute('src', file); html_doc.appendChild(js); js.onre ...Show All

  • Visual Studio 2008 (Pre-release) Can i debug the service developed using WCF.

    hi, I want to debug the service that has been developed using WCF. When i inovke a method exposed thru a service i need to debug from the client to the service. Both me client and service are on the same machine. Is it possible to debug Thanks in advance. Regards, Rajesh. Of course, to do this, you need to either attach your debugger in case your service is IIS hosted or if it's self hosted, just launch it in the debugger. ...Show All

  • Visual Basic Setting HSB value. Yes add a ColorDialog to your code then>>

    Is there a way to set the HSB values of a pixel in an image Hi, The first Sub here calls up ColorDialog1 and sets the Tag value of the textbox named txtColor . The button name is btnColorDialog Private Sub btnColorDialog_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnColorDialog.Click Me .ColorDialog1.ShowDialog() txtColor.Text = Me .ColorDialog1.Color.ToString txtColor.Tag = Me .ColorDialog1.Color.ToArgb End Sub Then elsewhere in my graphics demo code i have this Sub to CLS or CLearScreen on my picture box which is named picBoxOutput >> Private Sub CLS() v_color = CInt (btnBackColour.Tag) picBoxOutput.CreateGraphics.Clear(Color.FromArg ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Any suggestions for defining direction of partical effects on a 3D model?

    Hi all: I'm still playing around with XNA and figuring out what I can do with the current state of the technology. What I want to do is have a 3D model of a spaceship that has RCS thrusters and a main engine. The RCS thrusters and main engine will all have a particle stream to simulate rocket exhaust. Somehow, I need to define the size and type of rocket exhaust, and what direction it should take, and do so within the context of the XNA framework. I presume I'd need a custom processor for the model to identify where rocket exhaust nodes are (think named invisible cubes in the 3D model, like "MainEngine" and "YawRight"), but I'm stumped on how to define the direction of the particle stream in relation to the model ...Show All

  • Windows Forms Problem with ClickOnce and mandatory profile

    Hi, I'm having problem running a ClickOnce application using mandatory user profile. I'm getting these error messages: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES Deployment url : http://192.168.0.2/ClickViewPlayerLite/ClickViewPlayerLite_1_0_0_2.application videoid=668 ERROR SUMMARY Below is a summary of the errors, details of these errors are listed later in the log. * Activation of http://192.168.0.2/ClickViewPlayerLite/ClickViewPlayerLite_1_0_0_2.application videoid= ...Show All

  • Software Development for Windows Vista problem in compiling the video capture sample provided in the SDK

    hi all, I am tried to build (in vc++) the video capture code provided in the SDK which is giving the error C2065: 'ICaptureGraphBuilder2' : undeclared identifier I have included the library strmiids.lib and dshow header file which is neccessary for it. I don't what else i have to do. Any help is appreciated thanks Thanks LGS for your valuable reply. I have included the header file but still it is giving the error. I have posted my code here. #include "stdafx.h" #include <Dshow.h> #include <strmif.h> #include <stdio.h> int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmd ...Show All

  • Windows Forms Accessing the value of a a DataRowView from a ListBox (How)?

    I'm trying to use a form with a ListBox to select from and populate another ListBox depending upon the selection in the first. The first is populated by a query to a project resident .mdb file. I'm running into a problem when it comes to figuring out the value of the item selected in the ListBox. I can see that the object selected upon the firing of the SelectedIndexChanged event is of type System.Data.DataRowView, but try as I may, I cannot figure out how to get access to the actual values ( strings " Core" and "Special" in this case). Am I missing a necessary cast somewhere, or is it just a property or method that I missed Am I trying to use something entirely wrong for the situation Any help would be greatly apprec ...Show All

  • Visual Studio 2008 (Pre-release) Client side custom behaviors don't seem to work

    Hi, I'm having a lot of trouble programmatically increasing the DataContractSerializer.MaxItemsInObjectGraph property on the client side. I've read the posts about increasing it on both client and service side, and have also increased the top-level ServiceBehaviorAttribute.MaxItemsInObjectGraph property and nothing seems to change the default value of 65536 used by the client. To test this, I implemented a derived DataContractSerializerOperationBehavior that creates a wrapper for a DataContractSerializer so I could intercept Read/WriteObject calls by following this example - http://blogs.msdn.com/sowmy/archive/2006/03/26/561188.aspx . By doing this I discovered that my serializer wrapper was not being created/called by the client. ...Show All

  • Software Development for Windows Vista Virtualisation

    My application adds a dll name to the Registry HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs and creates the dll in the windows system directory (F:\Windows\system32). This works ok under XP but, under Vista I was surprised by two things: 1. The documentation states that writes to HKLM will be virtualised. It does not seem to be. Is SharedDLLs a special case 2. The CreateFile to the system directory failed. It was not virtualised. Virtualisation did occur when I wrote to other places in HKLM, as expected. Am I correct about SharedDLLs How can I create a file in the windows system directory I believe only some parts of HKLM get virtualization. It sounds like SharedDLL's i ...Show All

  • .NET Development Win Form Memory Usage

    Dear All, I am running win form application based on C#. The problem here is that I notice something that once I exit my program and when I look at my task manager under the processes tab I can still find my application is in it. That means I have not actually exited my application or even closed it. What is the problem because I am worried is eating up memory Can somebody pls guide me on this. Dear Nobugz, First I am sorry to make you confuse about my problem. Ok let me put it this way so now this how my program.cs looks like. static void Main() { Application .EnableVisualStyles(); Application .SetCompatibleTextRenderingDefault( false ); Application .Run( new ...Show All

©2008 Software Development Network