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

Software Development Network >> F. Gsell's Q&A profile

F. Gsell

Member List

Bassam72
ktietjen
jjvkm
BhanuKiran.K
Big5824
G_Unit
Bluehunter
tomerlev
errolian
Ragnarok
Jamie Kurtz
Eugen_S
Chandler Chao
Daniel_laksjdhfg
Tim Meyer
Roger Jennings
Christina Tabet
Alex Galkin
GunaChinna
MaggieChan
Only Title

F. Gsell's Q&A profile

  • Visual C++ Trouble using blocking calls in a c library from ATL com

    I have created a ATL com project which uses a external C library. This C library does some blocking network calls. But the when I use these blocking calls from the com component these calls don't block instead they return immediately. Is this happening because of the windows message loop Direct such questions to the newsgroups at http://msdn.microsoft.com/newsgroups , and specifically http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.win32.programmer.ole&lang=en&cr=US . This forum deals with C++ language issues, and as few off topic questions as possible. The scope of this forum can be summed up to include the C++ standard, Microsoft extensions (be it CLI or to the native language) as well as the standard ...Show All

  • .NET Development Additional information: COM object with CLSID {00020819-0000-0000-C000-000000000046} is either not valid or not registered.

    I am using excell 2000 and vb.net when i am opening a workboob using vb.net then this problem comes  - Additional information: COM object with CLSID {00020819-0000-0000-C000-000000000046} is either not valid or not registered. pls tell me solutions as soon as possible with regards thanks Hi I am using the similar code as u have given, but when it executes the following line, TestExcelWb = oApp.Workbooks.Open("D:\myfile.xls") the exception message is " Object reference not set to an instance of an object " When I checkd it, TestExcelWb prior to execution of this line is "nothing". any suggestion will be appreciated. Regards ...Show All

  • Visual C# Unhandled exception only when running in release without debugger attached.

    I am beyond baffled by this. My application throws a System.AccessViolationException only when it is run in Release mode without the debugger attached (as in, I run the exe directly, outside of Visual Studio or I do "Start Without Debugging" in the Debug menu). Debug mode - everything works great; Release mode with debugger attached - everything works great. The very nature of how this error is thrown makes it impossible to debug, so I have no idea where to look into correcting it. Has anyone else ever come across such an error Does anyone have an idea how to hunt down such an error The application is not just a few hundred lines, it is easily on the upper end of tens of thousands of lines. I cannot seek it out with a debugger be ...Show All

  • Visual Studio Express Editions Save on Close Issue

    I am trying to learn Microsoft Visual C# 2005, and some of the instructions are really confusing. It says in the help that to save on close, I need to enter the following code: Me.AddressesBindingSource.EndEdit() Me.AddressesTableAdapter.Update(Me.FirstDatabaseDataSet.Addresses) However, Visual C# is generating errors that: ";" is expected. When I add ";", it says that "The name Me. does not exist in the current context. Does anyone know what is wrong I followed the instructions from the beginning. Thanks, -Matt Sven is correct. No biggie though, just replace "Me" with "this" and put a semicolon at the end of the statement. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Content Pipeline Type Environment Odditiy

    Sorry this is likely to be a bit confusing, as its fairly complex... I have a Managed C++ Library (called Lua2ILContentImport) with a custom content pipeline in it, its has to be Managed C++ because it embed a fair chunk of old C code in it (Lua 5.0 for the curious), I also have a C# library (called Lua2IL) that runs on PC and 360 (a define removed some Emit calls on the 360, the rest is identical). Lua2ILContentImport reference Lua2IL with the define defined so that a Lua byte code to CLR IL system is enabled using Reflection.Emit. Now the product of the content pipeline is an assembly full of lovely IL that originally were Lua scripts. For testing I also have a tiny console driver that manually calls the content pipeline classes to make ...Show All

  • Windows Forms Eating MouseWheel Events

    I have a PixtureBox placed in a panel with AutoScroll enabled. I use the mouse wheel to zoom in and out of the image. I was able to add the mousewheel event code and this is working just fine but the image not only zooms, it scrolls with the mouse wheel as well. I would rather not have the image scoll due to the mouse wheel. I have seen examples for C# to use WndProc() to capture the WM_MOUSEWHEEL msg, but I can't seem to get these to port to C++. I have tried the following (Based on the only C++ example I could find)... void WndProc(Message* m) { const int WM_MOUSEWHEEL = 0x020A; switch (m->Msg) { case WM_MOUSEWHEEL: //TODO: Image Zoom Code Goes here... break ; } Form::WndProc(m); } This giv ...Show All

  • Visual Basic Combobox Itemdata is not available/accessible

    I have a VS.net solution (multiple projects), created entirely within VisualStudio.Net 2002. I try to access and update ItemData property of a MS-form combobox, design mode, yet the property is not accessible. NewItemID is not accessible either. I have queried from the internet and found an article, from Microsoft, stating similar problem when migrate from VB6 application into VisualStudio.NET 20056. However, for my scenario, the entire solution is completely created within VisualStudio.NET 2002. Thank in advance. Please do not cross post with the exact same question into multiple forums. It simply causes confusion and clutter, the moderators generally monitor all the VB related forums. http://forums.microsoft.com/MSD ...Show All

  • Windows Forms Better way of writing if statements

    Hi, Sometimes I have to write if statements like these if (product_key == 1 || product_key == 2 || product_key == 3 || product_key == 4) and the list goes on... I was wondering if theres a shorter and more elegant way of writing such if statements Thanks, If a condition gets long or complicated, I usually use a bool variable instead of putting it directly into the if statement bool keyInGroup1 = ( product_key == 1 || product_key == 2 || product_key == 3 || product_key == 4) ; if ( keyInGroup1 ) ... Alternatively, if your condition is testing the contents of a variable against a set of values, you could put the set values in a collection and test for collection contains contents of variable. ...Show All

  • Visual Studio Team System Code Coverage : Color is not seen

    Hi, When I run a unit test and checking code coverage details, I ccould see details like what percent of code is covered and not covered. But I couldnt see the colors (red, green,etc) in the program.Whenever I click on the'Show Code Coverage Coloring' tab on the 'Code Coverage Results' Window, an error message is shown: "value doesnt fall within the expected range'" Can anybody help in this. Thanks in advance akjal Hi David , Many many thanks man. It worked. Now I can see the colors.What could be the problem with it before Could u please let me know Actually I had seen colors some times before it.. Its version is like this.8.0.50727.42(RTM) lot of th ...Show All

  • Visual Studio 2008 (Pre-release) Why doesn't CreateMessage throw an exception for un-serializable body contents? (POX messaging)

    I just posted a blog entry here where I detail a situation in which I can legitimately and without exception make a call to CreateMessage where it will be physically impossible to serialize the contents upon transmission to the client. Basically it goes like this: I accidentally left off the [DataContract] attribute on a class and then I created a message that contained a list of that class (e.g. List<MyClass>). The call to CreateMessage did _not_ throw an exception, and when I attempted to access the service URL via GET (which should just dump me the contents of my list), I got the funky "you have no internet connection" message from IE. When I ran my little unit tester to try and extract the body from the response m ...Show All

  • .NET Development We've totally stuck, please help!!

    Hi everyone, Primary platform is full 64-bit both OS and RBDMS along with .Net Framework 2.0 We've totally stuck with this. We've got a .Net service running on Windows 2003 64 bit which has been compiled as x64 in project options. Everything is fine, service is installed, logged and finally started but the issue comes when you're going to Task Manager, and jesus christ, appears as "namexe.exe" instead of "nameexe.exe" *32 Is it running as 64 or 32 I understand when you set AnyCPU if destination CPU run as 64-bit mode it'll be a 64-bit executable and when you set x86 as 32-bit. Why Could you please so kind to provide me any clari ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Simple 3D Cube using BasicEffect -- No shading/color

    I am trying to just create a cube using BasicEffect, not shaders like in the sample code for a simple cube in the help (see http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=687011&SiteID=1 ). However, I only see the cube as a flat grey hexagon -- no colors, no shading, not even the edges of the cube are seen -- only the flat grey against the background. When I run the above code, I do get a colored cube. I have an NVIDIA GeForce FX 5900XT, which does support Pixel and Vertex Shader 2.0+. I've messed with every effect method there is, so I'm not sure what I'm missing. Below is the code: using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Frame ...Show All

  • Smart Device Development Pocket PC Phone WM 5.0 Device emulator Internet Setting "Automatically detects setting"

    I am working on a Pocket PC WM 5.0 application.Application is working fine in the Pocket PC Phone WM 5.0 Device emulator. No In My application I have to connect to internet. My system is on LAN.On my Internet connection setting Automatically detects setting check box is check. In the device emulator I don't know how to configure setting so I can able to browse in the deve emulator. Please Could Any body help I tried following the instructions at the web site you suggested but I am using the standalone emulator and it did not match up very well. I am still not able to connect the emulator to the Internet to access the web or the Exchange server mobile active sync connection. ...Show All

  • Visual Studio Express Editions error connecting to database

    I am using VC# Express and trying to connect to a SQL 2000 database. The error message when I compile the application is as follows: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) Is there anyway to connect to SQL 2000 with VC# Express or is this a waste of my time. using System; using System.Data; //ADO.NET namespace using System.Data.SqlClient; //Use SQL Server data provider namespace using System.Collections.Generic; using System.Text; namespace Da ...Show All

  • SQL Server SQL Server XE Instances in .Net

    Hi, I've got an application which uses the DBFactory Provider to enumerate a list of available SQL instances on the local network. I've just reformatted though and put everything back on, and my application will now see the sql server instances on the network, but not the instances on the local computer (only the server name), eg, it will see "BEN\SQLEXPRESS" on a computer (BEN) on the local network, and give the version info, etc, but it only sees "DAN" instead of "DAN\PCP" and "DAN\SQLEXPRESS" on the local computer (DAN). Regards, Ben Do you have the SQL Server browser service running on your machine HTH, jens Suessmeyer. --- http://www.sqlserver2005.de ...Show All

©2008 Software Development Network