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

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

omp4u

Member List

Inferno986
psmithphil
M Rice
leonardoreyes
GaryMcC
NBaig
Simple Samples
Tejas_Kishanwala
F. Gsell
breceivemail
Eric H.
huriye
fddsfsdf
holysmokes99
Thilakavathy
Kumar Venkat
dark_sleauth
ParamSE
jrad
Tommix99
Only Title

omp4u's Q&A profile

  • SQL Server ADO Error codes...

    Hi, I have another question about ADO (using C++). I have searched the MSDN but I haven't found a answer to my question (maybe I'm just too stupid)... If I make a connection to my SQL Server there may occur some errors, but how to find out what went wrong In terms of code I have e.g. something like that: try { connection->Open(ConnectionString,Username,Password,ADODB::adConnectUnspecified); ... } catch (_com_error& e) { long numErrors = connection->Errors->Count; for (long i=0; i<numErrors; i++) { ADODB::ErrorPtr pErr = connection->Errors->GetItem(i); ..... } } Now I could get the error number by pErr->GetNumber(). But with which symbolic constant has this to be compared to find out which ...Show All

  • Visual C++ Help with variable/String

    hi i was wondering if anyone could help. i am using this small bit of code that will work only in the Event where it is placed but i want to be able to change the data that it holds throughout the program, im using MS VS 2005 C++ and here is the code String^ Species Species= "Dog"; MessageBox::Show( Species); I would like to be able to change the data in the String^ Species from anywhere and not just within the { }. can anyone plz help. thanks Sorry for the delayed answer. If you're using: A^ a = gcnew A(); a->Species = "event1"; inside a function(event handler) then you'll lose it because you have to keep a reference to that object "a" you created. If the event handlers are inside the same class A then use it like this: ref c ...Show All

  • Visual C# VC# Express crash with form designer

    Hello everyone, my first post here :) I have a problem viewing my Form in Form Designer; however, this only happens with the current project i'm working on. When I try to view my form i get the following error: One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. Error in the application. Hide at Microsoft.DirectX.Direct3D.Effect.FromFile(Device device, String sourceDataFile, Macro[] preprocessorDefines, Include includeFile, ShaderFlags flags, EffectPool pool, String& compilationErrors) at Microsoft.DirectX.Direct3D.Effect.FromFile(Device device, String sourceData ...Show All

  • SQL Server Inconsistent stored procedure syntax error

    We have a stored procedure that is being called from a vb6 application. The exact line of code is below. mats_Reports_CSR_OB_Hourly_Percent('11/1/2006 4:51:27 PM','12/1/2006 4:51:27 PM') when executing this in query analyzer it will always fail due to the parenthesis. However when this same line of code is passed to sql server in the vb6 application it usually works. There are times it fails with a syntax error message similar to: Incorrect syntax near '{ I fixed the problem last time by removing the parenthesis in the vb6 code. However I can now put the parenthesis back into the code and it works again now. Prior to my recent intervention the code was not being changed as it will work for days and then randomly stop working. ...Show All

  • 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 managed to install in on RC2 by running the .msi installation from an elevated command prompt Of course, after installing the SP for C# ...Show All

  • SQL Server SQL Server 2005 Evaluation Install Error

    I downloaded the SQL Server 2005 Evaluation setup .exe. When I wen to install it by clicking "SQLEVAL.EXE", I received an eror stating "There is not enough space on Drive C:\ to extract this package. I have over 50 gig of available spac eon my C drive. What gives When I downloaded the .exe, I had the Norton AntiVirus Auto-Protect enabled. Could that have caused it Also, 2 days ago, I installed MS-Accounting 2007. Could that have caused a problem I have seen this error posted on the SS2005 forums and the standard response is to look at the installation logs. I have no logs. The extraction never completed. Thanks. Check your system %temp% variable to see where it pointing. Ensure ...Show All

  • Windows Forms Designer Writing Broken Code in InitializeComponent (Class must be serializable?)

    Hi, I have a form that has a user control on it. This user control maintains all of it's values using a global object. The user control has a blank constructor that instanciates that object with no values. For some reason adding this line that instanciates the object causes the designer to try to set the properties of the user control in the InitializeComponent method. For instance, if the user control constructor inclues "globalObject = new myObject();" the designer will add lines of code to create it's own myObject and set it through the user control's property which is not necessary. Any ideas Thanks. All kinds, I just started designing the form. Any action that will trigger Visu ...Show All

  • Visual C++ Linking error in Visual C++ 7.1

    Hi all, I'm using Visual C++ 7.1 (the one that comes with Visual Studio . NET 2003). I get a linking error asking for msvcirt.lib ( msvcirtd.lib - during a debug build ) when I tried to build a project that was originally written in earlier versions of VC++ (6 or 5). When I looked at the lib folders I don't see these lib files and the corresponding msvcirt.dll. And I came across this link: http://support.microsoft.com/kb/154753 that says that for C++ run-time libraries, it uses MSVCPRT.LIB ( and MSVCPRTD.LIB), which will use MSVCP71.DLL ( and MSVCP71D.DLL) and for C , it uses MSVCRT.LIB (and MSVCRTD.LIB for debug) , which will use MSVCRT.DLL ( and MSVCRTD.DLL). Now the problem is MSVCRTD.DLL doesn't come with the Visual Studio.NET 2003 ins ...Show All

  • Visual Studio Team System Method to change properties in several requests at once

    I'm recording some web tests that have as many as 62 top level requests in each test. Due to a web analytics tool failing each step of the test, I need to set the Parse Dependent Requests to false on each request. While I can go into each request and set the parsing, this seems a bit tedious. I don't see anything in this forum or in the library on how to grab multiple requests and then set the parsing in a single stroke. Can this be done Thanks. Rick, That worked. Nice quick way to do a global change. That said, it would be nice to have the feature in the tool to begin with. Perhaps the next service pack. Bruce ...Show All

  • Visual C# Convert Decimal to String???

    this .txtCommission.Text = ( decimal )_SalesPersonToEdit["Default Commission"]; How do i convert this string to a Decimal, I have tried using ToString() but that does not work and I also tried to use Convert.ToDecimal(string) = object....and that didnt work eithier any help on this situation! thanks! but the line i posted - no where does it convert to decimal. It may well be producing an error from some other place. you could also try: this.txtCommission.Text = Convert.ToString(_SalesPersonToEdit["Default Commission"]); ...Show All

  • Visual Basic DLL Creation

    I want to create a DLL for editing HEX Data I want that if it is referenced for editing any bytes you need write this line: WriteB (File , Seek, Byte) File= Files to open with FileStream ( Imports Sytem.IO is necessary obviously) Seek= For moving the pointer in a offset Byte= Byte to write in the Offset Now if i want to edit a byte i need write this code Dim str As New FileStream(OpenFileDialog1.FileName, FileMode.Open, FileAccess.ReadWrite) str.Seek(&H18D, SeekOrigin.Begin) str.WriteByte(CByte("&H" & ComboBox3.Text)) And i want to create a Function in the DLL Imports System.IO Public Class Class1 ' Start Function Public Function Nome_funzione As CallType ......... ...Show All

  • Software Development for Windows Vista FreeformActivityDesigner and Connectors question...

    Hi! I am hosting a FreeformActivityDesigner in my app which works really great. I can drag my custom shapes onto the design surface and drag Connectors between them. But i'm unable to find out how I can delete a Connector on a key press (I know how to actually delete it but I can't figure out how to listen for a key press when the Connector is selected)... I tried to override FreeformActivityDesigner.CreateConnector to supply my own connector class derived from Connector but the Connector class doesn't have any events to listen for key presses... If I override FreeformActivityDesigner.OnKeyDown, my override method is only called if the design surface itself is selected and it's not called if a Connector is selected. How can ...Show All

  • Visual Studio 2008 (Pre-release) The certificate 'CN=localhost' must have a private key that is capable of key exchange.The process must have access rights for

    Hi, My WCF service has following security settings:- at server side(web.config) :- < behaviors > < serviceBehaviors > < behavior name = " myBehaviour " > < serviceDebug includeExceptionDetailInFaults = " true " /> < serviceMetadata httpGetEnabled = " true " /> < serviceCredentials > < serviceCertificate findValue = " localhost " storeLocation = " LocalMachine " storeName = " My " x509FindType = " FindBySubjectName " /> </ serviceCredentials > </ behavior > </ serviceBehaviors > </ behaviors > < bindings > < wsHttpBinding > < ...Show All

  • Windows Forms Datagridview - ComboBox column getting blanked out

    am using the datagridview to display 7 columns, 1) text box column 2) combo box column - parent1 3) combo box column - child of parent 1 4) combo box column - parent2 5) combo box column - child of parent 2 using databinding - all works fine except when the user selects a child of parent1 combobox to change its value, all of the other values in the column that are not valid entries (as a child of parent1) get blanked out - this happens until the dgv_Items_CellEndEdit event has fired (which includes dgv_Items.Refresh()) is there any way of changing this behaviour so that just the combobox being edited gets blanked thx for example column 1 contains co ...Show All

  • SQL Server Two log files generated using "c:\\" + @[System::ExecutionInstanceGUID] + ".log"

    Why are two log files generated when using a Text Log Provider with a Connection String property set to the following expression "c:\\" + @[System::ExecutionInstanceGUID] + ".log" I've set up package logging with a view to getting a unique, and linkable log. However, two files are always generated, no matter what the DelayValidation settings may be on the connection manager, file, and package tasks. Strange. I would guess this is something to do with the execution instance guid before logging begins (which I find strange actually). Hopefully someone from MSFT will confirm or otherwise. -Jamie ...Show All

©2008 Software Development Network