Software Development Network Logo
  • Windows Vista
  • .NET Development
  • SQL Server
  • Windows Forms
  • Windows Live
  • Visual C++
  • Microsoft ISV
  • VS Team System
  • Visual Basic
  • VS Express Editions
  • Visual J#
  • Game Technologies
  • Visual C#
  • Visual Studio
  • Smart Device

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

belangereric

Member List

Paco Garcia
jaybs
Aman Bedi
Lokka
tq00rrha
Adam Plocher
Mehal Shah
Wilson Neto
alex2000
ColdPolarBear
colin c
chacke
Lou Machado
MacDonaldC
CliftNorris
Mike2006
chale
jbauer138
Kiran05
Debblr
Only Title

belangereric's Q&A profile

  • Windows Forms Why can't I show sqlCommand and sqlConnection objects on Toolbox?

    I use VS2005 and I know by default sqlCommand and sqlConnection objects are not on Toobox of Data tab. I tried to add by right clicking on choose items and then selected the objects and clicked OK. But cant see these objects on Toolbox. Can anyone help me to add these objects on data tab please Thanks. ...Show All

  • Visual Studio Express Editions Building & Debugging

    Hi there, I got a question. I'm currently learning Visual C++ in school. I'm using Visual Studio C++ 2005 Express Edition which I've downloaded from the website not long. I typed out a simple program and try. However, upon building solution (Build>Build Solution), I get: ========== Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped ========== Only if I rebuild solution (Build>Rebuild Solution), I get: ------ Rebuild All started: Project: Trial, Configuration: Debug Win32 ------ Deleting intermediate and output files for project 'Trial', configuration 'Debug|Win32' Trial - up-to-date ========== Rebuild All: 1 succeeded, ...Show All

  • .NET Development Help getting started on serial comms

    Hello All I need help in starting to experiment with serial port comms. I have a device ( a gas analyser ) that I would like to read the output from via the serial port. I dont know what data it sends so my attempts to read text and byte data have not been succesfull. It has a row of LEDs showing ppm ( part per million) . What I would like to do is emulate those LEDs on the PC monitor. Where do I start Thanks     hi , the serial port class is in the System.Io.Ports namespace, you should check the documentation. the first thing you have to do is create your SerialPort object w ...Show All

  • Windows Forms DataGridView Scroll

    Hi. When I scroll my DataGridView it is scrolled by steps of 3 (or any other number) of rows depending on what is set in Windows Mouse Properties. Is there a way to make it scroll row by row t.e. one notch = one scrolled row. Thanks! Hi, I had the same problem with DatagridView. The solution is: set the focus on this control ;-) This causes, that events are generated. Adam Ps. Well I think, that this the most useful feature should be included in visual designing, what is more, should be configurable and hope that in the future will be included;) ...Show All

  • SQL Server TransactionScope

    Hi, I am trying to use transactions as below: using (System.Transactions.TransactionScope scope = new System.Transactions.TransactionScope()) { //some code here // Throw an exception to roll back the transaction. // Call the Complete method to commit the transaction } I can't seem to get it working though. Have trided several things like Security Configuration on the MSDTC tab, restarted “Distributed Transaction Coordinator” Service, iisreset, different constructors on the transactionscope etc. I haven't tried running it from the same domain since this won't work with the source safe. Is it really suppose to be this " ...Show All

  • Visual C++ Help, critical section doesn't seem to work

    Is is the right way to use critical section --------------------------------------------------------------------------- void main() { CRITICAL_SECTION testsection; InitializeCriticalSection(&testsection); .... } void Thread() { EnterCriticalSection(&testsection); .... LeaveCriticalSection(&testsection); } ---------------------------------------------------------------------------- For some reason it is not blocking before the entercriticalsection.  For example, if I tried : EnterCriticalSection(&testsection); TRACE(" step 1\n"); EnterCriticalSection(&testsection); TRACE(" step 2\n"); I would see : step 1 step 2 ...Show All

  • .NET Development "general network error" when trying to make an SqlConnection....

    able to connect via query analyzer, able to connect via a remote machine!!!!!! (using sql server's ip) :\ This is an old thread, but many people are still experiencing this problem. There are several workarounds: 1. Switch from Named Pipes to TCP/IP. This is in conflict with one of the posts in this thread, which causes me to point out this is a discusssion about workarounds. Workarounds may or may not work. 2. Set OLE DB Services=-2 if using OLE DB. I realize this isn't directly relevant because the original post is about SqlConnection. But the point is that it turns connection pooling off. 3. Add Pool ...Show All

  • Visual Studio Express Editions Memory Error

    I'm running the newest Beta 2 version for VB and when I run a project in debug and exit it I get this error: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Not sure what other info might be needed. I tried closing Visual Studio, I tried rebooting my machine, turning it on and off and can't seem to get rid of the error. Any idea what could be causing it A google search led me back to this site, and one of the answers given to this question before was : I too have been experiencing this issue. See: http://lab.msdn.microsoft.com/productfeedback/viewfeed ...Show All

  • SQL Server SSIS: Exec SQL Task: Capture return code of stored proc

    I am also having some issues with most recent CTP in regards to the ExecuteSQL Task, and parameters.  Most of threads I have reviewed deal mainly with parameters being passed into sql/procs, but nothing with return codes from procs. I am just trying to capture the return code from a stored proc, and there are no results sets, and no parameters.  pretty simple I would think.... Using OLEDB connection, I utilize SQL:  "exec = testingdups" I can not seem to map the return code to a parameter.  I defined a variable, mapped the variable to returncode, and used the previous mentioned parameter names to no avail. ( Or is th ...Show All

  • Visual Studio Team System FxCop Microsoft.Design and Generic outputs

    Working on a deserialization loader mechanism, I started out with a public method signature which looked like this: public static T Load<T>( string filename) FxCop suggests: CA1004 : Microsoft.Design : Consider a design where YamlLoader.Load(String):T doesn't require an explicit type parameter in any call to it. I what it's suggesting is that invoking this method with code like this may be hard to understand because of the part in the angle-brackets below. Foo temp = YamlLoader.Load<Foo>( "temp.yaml" ); The only alternate design that seems obvious to me would be: public static ...Show All

  • Visual Studio Team System VS 2005 compatibility with SourceSafe 6.0?

    Got a general question on VS 2005. Is Visual Studio 2005 compatible with Visual SourceSafe 6.0   Since I already use SourceSafe 6.0, I would like to know whether it can be integrated with Visual Studio 2005. From my testing with VS.NET RC, it looks like VS.NET 2005 is compatible with VSS 6.0d (not sure of any earlier versions). Since the option of source control is global in VS.NET, you will only be able to use one source control at a time. So if you are using TFS for some projects while using VSS for others, then you will have to switch back and forth from Tools, Options, Source Control, ...Show All

  • Visual Basic how can i disable HOOK?(in vb.net)

    hi i will have a question how can i disable or disarm HOOK (in vb.net) Please Help!!! in vb6 or c++ u can hook the api's! thats a kind of hacking(im not interested in hacking just wanna disable hooking) So how can i Disable hook ...Show All

  • Windows Forms Inheritance question

    I have a usercontrol base class called say 'UserControlBase'. This inherits from usercontrol. I then have a class that inherits from UserControlBase called say 'SpecificUserControl'. One of the methods in UserControlBase needs to loop through all the controls in an instance of SpecificUserControl. Can I do this   During testing, when I access the controls collection in a  ...Show All

  • .NET Development I need to create an instance of an unmanaged c++ class from a c# app

    My unmanaged class is exposed by a win32 DLL, and it's constructor takes a pointer to another unmanaged class exposed by the same DLL. I created a C++ project compiled with the /clr option, so that it could be referenced by my c# project. In this DLL, i created a public ref class for each of the unmanaged classes in question. (wrapper classes with a private embedded instance of the unmanaged class). My question is this: From C#, how do i instantiate my c++ wrapper class that needs a pointer to the other unmanaged class in its constructor I dont have access to the unmanaged class from C#, so i cant pass a pointer to it. Besides, point ...Show All

  • Visual Studio 2008 (Pre-release) Windows Media Player 9 leads to InvalidOperationException

    Hi Just like to confirm with you guys that with WMP9, MediaElement will not work when you start playing. When you close the app or stop debugging, an invalidoperationexception will be thrown by the app.run() method with an error message like "closed media player only support open and close" Now I've upgraded to WMP10 and can't reproduce the error. (WinXP SP2 + WinFX Runtime Component + WinFX SDK (Feb)) Yes, I confirme that: when you used a MediaElement, you need Windows Media Player 10 Also, it appear that, currently, video are not correctly supported by all the video cards... HTH. ...Show All

©2008 Software Development Network