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

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

Rocky79

Member List

Neal Sidhwaney
donkaiser
Dagz
Michael Ziggy Morton
AlexVallat
Bastiaan Molsbeck
Cesar Francisco
JawKnee
imed-deborah
Ansaar
learningtoprogram22
Spyrrho
Joel Martinez
Espresso74
Rastogi
Simple Samples
clint 2
Jeon
el-chema
meoryou
Only Title

Rocky79's Q&A profile

  • Visual C# Using a class as a parameter

    Hi there! I have to pass a class (not an instance) as a parameter to a method, and I have no idea if I can do that -- tried various things and it doesn't work. It should behave like this: I have a BaseClass. Another ChildClass inherits it. The ChildClass has a method (or Property), static or not, that returns a class. The BaseClass has quite a few methods where this class is needed (to invoke static methods on it), so the BaseClass invokes the "GetClassINeed", which returns the static class and then uses it. The reason I need it is that I have about 30 of those ChildClasses, and they all need those methods defined in BaseClass. I don't want to add them in all of them if not needed. Also, to create instances of that Cla ...Show All

  • SQL Server High availability for Database Mirroring

    Hello, I would like implementing a database mirroring architecture with SQL server 2005 but i have questions. If i don't use a cluster architecture, i would like knowing if there's any solution to move the alias SQL server from the primary to the secondary by script. Anyone got a pb like me or any solution ... Thanks for your help... I can't change connection string because i'm using a software not developped by me. I'll send a request to the support of this program. I found on this site the solution to my problem by changing alias in the registry http://blogs.developpeur.org/christian/archive/2006/11/04/SQL-Server-_3A00_-Alias-de-serveurs.aspx Thanks you all for your answers... ...Show All

  • Smart Device Development Can not convert CCeSocket to WM 5.0

    Hi all! I have a problem on WM 5.0. Anyone can help me. I have a project on Pocket PC 2003 and I use CCeSocket class to connect to the NET. Now, I want to convert this project to Window Mobile 5.0. I use Visual Studio 2005 IDE to convert it but VS 2005 not supports CCeSocket class. On the msdn documents, they say that CCeSocket encapsulates CAsyncSocket. I've replated CCeSocket by CAsyncSocket but the application still can not connect to the Net. I debug step by step and when I use connect function of CAsyncSocket, it is not successful. I get the error with the function GetLastError() and the return is WSAEWOULDBLOCK error "The socket is marked as nonblocking and the connection cannot be completed immediately.". Please tell me so ...Show All

  • Visual C++ Some novice questions....

    Hey everyone.... , just started using MS Visual Studio recently for an application i'm making... and hit some problems, so any help would be very usefull :) (to Mods - if this is in a wrong thread, please move the post) first question is button related.... i have a button , which needs to be kind of ON/OFF style... (also have 2 procedures for those states - buttonClick1 & buttonClick2) now in the button definition i added the line this->button->Click += gcnew System::EventHandler (this, &Form1::buttonClick1); as you can see, the event handler takes only 1 procedure how can i implement to take the buttonClick2 on another click (i guess it has to do something with checking the button state, but i'm ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Stuttering in D3D application

    Hello, we're experiencing stuttering in our D3D game. With stuttering, I mean that the game loop will generally take 20-30 milliseconds to complete, running smoothly at ~30 fps. But then, like once per second or so, the game loop will take like 150 milliseonds or more to complete. The stuttering happens on many different computers so I don't think it's a driver/hardware/setup problem, but rather something that we're doing in our rendering that's causing the stuttering. Many other games run fine on these computers. I've profiled parts of the code.. and usually the huge delays come from D3D Present() method or the actual rendering. Does this indicate that there's a problem with the rendering command queue being filled up and stalled or somet ...Show All

  • Windows Forms UI hangs when updating data

    HI, I am using listview to update data.I was getting "Cross-thread operation not valid:......" . Hence, to update the data i am using now listview.Invoke(delegateObject, new object[] { parameters }); The delegate object makes call on the method to update the listview.Now I am not getting the above exception. However, the object[] parameters I am passing is too large( about 1000).So while updating the listview the listview hangs. The listview is on a tabcontrol I cannot do anything until the listview is completely updated.I tried updating in small chunk size, even that didn't helped Any help is greatly appreciable Regards nhd I tried using listview.BeginUpdat ...Show All

  • Visual Studio Catastrophic Failu Visual Studio Crashing like crazy!!! WHAT IS GOING ON!!!

    I reinstalled my whole damn operating system thinking that I had broken visual studio somehow... it turns out that was a collosal waste of time... I have a fresh clean windows xp pro sp2 install, and a clean Visual Studio Professional... and whenever I add a dataset to a project, and right-click the designer and hit "View Code", I get this horrifying error: Failed to view the validation code because of the following error: Catastrophic failure (Exception from HRESULT: 0x80000FFFF (E_UNEXPECTED) and it gives me a blank document. If I click the button to Save All open documents, the whole damn program just crashes!! I've submitted the error reports, but that's not going to help me fix the problem... what is goi ...Show All

  • Visual C# class view in VS2005

    In VS2003 class view showed all class members and variables in the same tree. In VS2005 I may see only "Base types" and should right mouse and select "Browse definition" and they will be shown in Object Browser. Is this expected behaviour or I am missing certain settings Click on any class and you should see all of the members in a separate, adjacent window. Only types that the class derives from will be shown in the treeview. The default presentation I get is the treeview and search bar on the left half, and then the members list and descriptions on the right half, one above the other. Unfortunately, I can't include a screenshot of what I'm on about. I only hope you see something similar in your VS2005. In th ...Show All

  • Visual Studio 2008 (Pre-release) My Linq refuses to work, why?

    For some reason Linq just does not work on my computer(s). What I have installed: SQL Server 2005 Express (default settings) Visual Studio Web Developer 2005 Linq Preview May 2006 Scott Gu's TagCloud linq example which you can find here: http://weblogs.asp.net/scottgu/pages/Building-a-Photo-Management-Tagging-Site-using-ASP.NET-2.0_2C00_-LINQ_2C00_-and-Atlas.aspx The Problem: I tried to run Scott's example above but this error comes up whenever the program encounters "DataBind()" or if I try to use the sqlmetal command: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused b ...Show All

  • Windows Forms One more TIFF question

    As long as i am being bothersome to everybody with TIFF questions, I was wondering if anyone has ever seen any code or docs which show the way as regards using extended tiff editing features. (If you haven't tried it, save a bitmap as a .tif file and open it with Windows Fax and Image Viewer (not sure that's the correct name of the default picture view with Windows XP, anyway, the shell program (originally by Kodak, i think) which a fresh out of the box system opens images with). Note the really cool set of extra 'features' that show up on the tool bar -- different kinds of "annotations" and diagramatic elements tthat can be placed on the image which do not become an intrinsic part of the image when it is saved (they must be data ...Show All

  • Visual Studio 2008 (Pre-release) Question about Application.LoadComponent() and ComboBox

    Hi, I am using Application.LoadComponent() to load a control in a XAML file. I then add this control dynamically to my main window. I do this because I can swap controls in and out of my main window dynamically. Anyways, LoadComponent() works (it returns an instance of my control) but it strips out my ComboBox's Text and Items. It doesn't strip out my ListBox's Text or Items, nor other controls. I guess this is probably a problem with the ComboBox. Anyone had a similar issue Thanks, Kent Boogaart My bad. I was missing the leading "/" from my image source path. Therefore, it was being interpreted as relative to my control, not the page. Instead of throwing an error, you just get no im ...Show All

  • Smart Device Development Problem for BthSetMode()

    Hi everyone I use BthSetMode() to set the Bluetooth status, it seem ok. But if I change the BT status by using BthSetMode() and reboot(Warm power off and power on) the PPC immediately. BT status is wrong with I set before reboot. Anyone could tell me if I lost some procedure before I reboot the PPC. Thanks Which OS are you running on And how do you reboot the PPC By the "reset button", power button or by code Oystein ...Show All

  • Visual C++ How to fire up the default mail client using extended MAPI

    Hi, folks, I need to write a program to generate HTML reports and email them to clients. I'd like to fire up the default mail client with the report populated in the message body before sending it. This can be easily done using simple MAPI with the MAPI_DIALOG flag passed to MAPISendMail function. However, since simple MAPI doesn't support RTF/HTML messages, I have to use extended MAPI instead. But I failed to find an equivelant way of firing up the default mail client -- just as I did in simple MAPI. How can I do it Have a look at the IMAPIFormMgr interface. LoadForm can be used to load a form for an IMessage. On the IMAPIForm interface you can call DoVerb. I think 0 would be the verb for &q ...Show All

  • SQL Server Querying Analysis Services 2005 Cube with SSIS

    Hi, I've been trying to use Analysis Services 2005 Cube as a data source, query it via MDX and then use the data returned elsewhere in SSIS. However, I've been unable to get this working and can't find any information regarding how this can be done. Surely it should be possible when I can get this working even in Excel I've looked in December edition of BOL and no luck - have also sent a feedback to BOL regarding this and have been told that "it should be possible, since there is a way to send SQL queries to AS." However the person I was speaking with knew of no one who had actually tried this scenario and to try posting here. Any help as to how to get this done would be greatly appreciated. NR ...Show All

  • SQL Server So frustrated...why does it have to be so difficult

    Why have you made connecting to a sql server express database so difficult I have it working locally, but going to production has been nothing but a nightmare. I can't even connect locally on the production box. I am on a dedicated server and my login is an Admin on the box. I have just installed SQL Express + the fancy management interface. I have made a copy of my database that I was connecting to dynamically (which was failing remotely) and I have attached it to the server.  I have made myself a user of the database and granted my self evey permission available. I have turned on impersonation in my web.config.  The database knows it's me trying to connect and STILL denies me when I'm actually ON the production s ...Show All

©2008 Software Development Network