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

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

pdurbha

Member List

sllik
dzimmy
JD Li
IWY
Mkennie
xplosiv_1
Andrew Todd
SelimO
Tom_Liu
Ronald#2
ab2304
Alan Cobb
stellag
Mike Hildner
Nick Mc
RWP
Laurent Kempé
tichy291574
tun
Karg Weng
Only Title

pdurbha's Q&A profile

  • Visual C++ CoInitialize has not been called

    void CDeleteDlg::OnBnClickedButton1() { CComPtr<IShellLink> spLink; HRESULT hr = spLink.CoCreateInstance(CLSID_ShellLink); //HR result is here :CoInitialize has not been called . . } HOw to call CoInitialize .Any help would be appreciated. -Rups Thanks , cgraus .. I t working now.. ...Show All

  • SQL Server checking the database existence in sql server

    hi to everybody i'm new member to this site and i don't know where can be a good place for creating this topic pardon me for probable mistake. i need to attach and detach the database in/from sql server in vb.net with hard-code .i can do this without using stored procedure and with SQL-DMO But i can't checking The database Existence for attaching it.now, how can i check the database existense for preventing the attach operation. please help me thanks a lot       Hi, using SMO you can use the following script: new Server ( "SomeServer" ).Databases.Contains( "SomeDatabase" ) HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All

  • Windows Forms Make form centered...

    How do I make my windows forms to display in the center of my screen Also how do I make my MessageBox to display in the center of my windows forms Thanks :) One of my students asked the following question last night: Having created a simple project (VB 2005) with a single form that is to be displayed, f you set the form designer StartPosition property to CenterScreen, the form will show correctly in the center of the screen. If you attempt to set the property in the Form Load event handler, the form will NOT be centered. He asked why, and I couldn't answer. Hopefully someone here can explain why. Thanks. Sean ...Show All

  • Visual C++ Winsock threading problem!

    Hi. I think i found a bug in VS2005 (or in the libraries for VC++). I tried to create a socket and connect it (to let's say to a webserver) and create a new thread to handle all the incoming data. In the new thread I call recv on the socket and that thread is blocked (as it should since a webserver don't send any data before it's got a request. The problem is that if i now call send on the same socket from the main thread, it's blocking too and the program has frozen. Why is this happening If i don't call recv on the socket, then send is returning instantly, as it should. To complicate things a little bit more I have tried my test application (see below) compiled by VS2005 on several computers and it's the same bug everywhere. But a fri ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. IXACTEngine::GetGlobalVariable crushed application

    I have code: // ... IXACTEngine* m_pXACTEngine // ... create m_pXACEngine and so on XACT_RUNTIME_PARAMETERS xactParams; ZeroMemory(&xactParams, sizeof(xactParams)); /* fill xactParams exclude XACT_RUNTIME_PARAMETERS ::globalSettingsBufferSize; // == 0 XACT_RUNTIME_PARAMETERS ::globalSettingsFlags; // == 0 XACT_RUNTIME_PARAMETERS ::globalSettingsAllocAttributes; // == 0 */ hr = m_pXACTEngine->Initialize(&xactParams); if (SUCCEEDED(hr)) { XACTVARIABLEINDEX xactSpeedOfSoundID = m_pXACTEngine->GetGlobalVariableInde("SpeedOfSound"); // now xactSpeedOfSoundID == XACTVARIABLEINDEX_INVALID XACTVARIABLEVALUE nSpeedOfSound = 0; hr = m_pXACTEngine->GetGlobalVariable(xactSpeedOfSoundID, &nSpeedOfSound) ...Show All

  • Visual J# Single instance J# browser control

    I'm using a J# browser control applet that communicates with hardware. As such I want to allow only one instance at a time to be created by the user. In my applet class (a singleton) I check the state of a static variable that refers to the single instance of this class. If it has already been assigned to then I just display a MessageBox saying that another instance is already running and return from the constructor, and just return from init(), start(), stop() and destroy(). I launch one instance then another. The second displays the MessageBox then goes no futher - fine. I close the second then go back to the first window whereupon I get the following popping up in VS.NET 2005: DisconnectedContext was detected Message: Context 0 ...Show All

  • SQL Server Performance problem loading packages

    We're having a performance problem with a package since an error occurred. The original error came from the Job Manager whicj was unable to start a thread. Our understanding is that this is a memory related issue and we'll deal with that. What is realy odd is what happened after that. The package executes from a SQL Agent job that includes 3 other packages. Each package is stored on the file system. Package execution time for the affected package changed from less than a minute to over 5 minutes. The other packages continued to execute normally. In checking the logs there is large time gap between the start of the SQL Agent step and the first pre-validation message that accounts for 4 minutes, as if there is some issue in loading ...Show All

  • Visual C# waiting for an event

    Hi I don't know if this is the apropiate forum to write, but I think someone might know about this. I am developing a library that invoques some methods of other library, he other library is a com object and the method tha I Invoque is called Login. Thre thing is that this Login method executes asynchronously and fire some event to say that it has finished the login process. In the event I write the code to send a messag for example. So fra everything is ok when I invoke the method from a windows or web app, but when I call the method from wthin a deliverychannel which is a common dll the event apparently did not get fired Here is the code of the method and the event handler public Yahoo( string action_param, s ...Show All

  • Visual Basic Logins

    Can someone point me in a right direction to learn how I can use a login form to login to SQLExpress Server using SQL Authentication I am thinking that I would like to use the login for my app instead of embedding one in my application. Is that wrong to thing like that I am thinking right by using this to gain access to my application and login to the server at the same time Davids Learning OK hope you didnt see the earlier post , but I feel like a dummy now. How do you handle 3 connection strings Davids Learning ...Show All

  • Visual C++ Declaring a delegate

    How can I declare (not define) a delegate as if I declare a class // to declare class A, to define class B.... ref class A; public ref class B { public: A^ Method1(); }; // to define delegate SomeEventHandler.. public delegate void SomeEventHandler(); // what about "declare" a delegate ...Show All

  • Visual C++ can't edit resources in VS 2005

    Hey all I have converted my program written in Visual studio 6 to be compiled under Visual Studio 2005. My problem is this: I now develop using Visual 2005 but I have noticed that when I go to edit and save any of the resources, they don't seem to want to save. Is there a procedure to import resources from VS 6.0 to VS 2005 Everything seems to work fine but resource editing. Thanks for any input on this. ...Show All

  • Visual Studio 2008 (Pre-release) Problems with building the ADO.NET October CTP sample set

    Prior to the October ADO.NET CTP (vNext) install I installed the VS 2005 SP1 Beta on a system with the May LINQ CTP. I downloaded and installed (on XP) the (1) samples and (2) the vNext October CTP. I was NOT ABLE to COMPILE all the samples. Of the six samples I was able to compile. 2. WebAppSample - OK 3. Model - OK I was not able to compile 1. EntityClient - NO 4. NorthwinLib - NO 5. ObjectServices - NO 6. WinAppSample - NO The error messages, on compile, I was getting are; ---The type or namespace name 'DataClasses' does not exist in the namespace 'System.Data.Objects' ----(are you missing an assembly reference ) I looked for System.Data.Objects in the GAC using gacutil and got: C: ...Show All

  • Windows Networking Development Weird one - Router Death by Vista

    Here's a weird one. It seems that Vista RC2 is routinely killing my ADSL router I have a dual boot system (patched up XP Pro vs Vista RC2). Vista seems to be killing my D-Link DSL-500 like...., several times a day while Vista is running. Has anyone else noticed this I'm thinking.... some sort of weird network plug and play thing (which is disabled - by the way) RickW hi, I have the same problem. Also perfectly working on xp and router dieing in vista. I have tried to uncheck the TCP/IPv6 box in the LAN options a minute ago, seems to be working but not sure though. Happened to me on wired and wireless router, the router just resets itself leaving me w ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Getting all players of a session

    Hi, i have the following question: I started up a peer session with dplay and now I'm searching for a way to get the names of all players on the server as well as on the client. Thanks for your help I use managed DirectX DirectPlay is deprecated, and Microsoft strongly recommends against using it to develop new applications. Game developers should use Windows Sockets (see Windows Sockets ) and the Windows Firewall APIs (see Windows Sockets ) and the Windows Firewall APIs (see Games and Firewalls ). ...Show All

  • .NET Development Sending Instance Object between Pages

    Hi, I wanna send my instance object between asp.net pages. For example : i wanna create a search engine and if one enters some words ,the engine find same words which one entered in textbox then i wanna be found fetched datas' id. and i wanna add this into List<int> object and i wanna send this instance object between two pages. how can i do that.. Please help me..Thanks.. You can add more then one value to it... For example v=Value1&v2=Value2&v3=Value3 ... Have a look into this: Solve Postback Hassles with Cross-Page Postbacks in ASP.NET 2.0 . It might help you! ...Show All

©2008 Software Development Network