invoke's Q&A profile
SQL Server Cant get SQL Server 2005 to work
Hello ia m trying to install SQL Server 2005 but i am unable to run it. I installed Net Framework 2.0 Then i have tried the following files: SQLEXPR.EXE SQLEXPR_ADV.EXE Then i installed Service PAck 1 for that but an error occoured during the install. Basiclly i have no idea what i am doing here. It creates a configuration tools start menu item but it seems just like configuration. In C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\Binn there is a file called sqlservr.exe but all it does is create a black console window and does nothing. OS: XP Pro + SP2 How to get it to work Thank You Thank You for Your reply. I did not install them at the same time, i tried them both. I could not find the exe file ...Show All
Smart Device Development Discover and Pair with Bluetooth devices
Hello. I am trying to develop a Pocket PC app that uses a bluetooth GPS unit. I would like to be able to simplify the process of pairing with a GPS device by writing code to discover the GPS unit and pair with it. I understand (I think) that this is not possible at this time in the .NET CF 2.0 without using P/Invoke. My Question is where can I find some info and possibly some examples of how to implement something like this. I've tried Google, but perhaps I am not thinking of the right keywords. I would appreciate any help. It depends on what Bluetooth Stack your device uses. The OpenNetCF library supports the Microsoft stack but not having used it I'm not sure whether it supports pairing. Unfortunately the OpenNetCF library does no ...Show All
Software Development for Windows Vista DLL registration fails on Windows vista
Hi, i am in process of upgrading a DLL application from VS 2003(Windows 2003) to VS 2005 on Windows vista platform. There is a post build event for registering the DLL. This fails with error code "0x80070005". When i try to register this DLL through command prompt, it fails with the same error code. With reference to all forum discussions, i disabled UAC on vista and tried registering the DLL through command prompt. This time it fails with the error code "0x800703f2". There is absolutely no way i can find out about this new error code on the net. Can somebody help me resolve this P.S. : i am running VS 2K5 as an administrator and also i have administrative privileges for my login. Thanks in ...Show All
Visual Studio Express Editions HOW TO: PInvokeStackImbalance was detected
I have a problem with my application. I created a system that integrates the contactless smart card reader. Before I used VB6 to integrate the reader but as of now, I used VBX2005. When I run the program, I got an error: PInvokeStackImbalance was detected.!". How can I prevent this error Anybody here can help me or give an idea how to handle this please help me... This article I ran across summerizes most of the situation you are looking at: I quote: As a developer going through the ‘.NET’ change, so to speak, I come across a few situations where the framework doesn’t support the specific functionality I require (admittedly the lower down stuff) and I've had to revert back to the Win32 ...Show All
Software Development for Windows Vista Vista IME doesn't work right for .Net Richedit control
Our application works fine with the IME for 2000 and xp but get different results with the Vista IME. Are there properties that must be set in the application to get it to work right Is there anything that must be done differently to get applications to interact with Vista the same way as 2000 and xp. Are there known issues with the Vista IME Thanks for nay help with this. ...Show All
Visual Studio Building a simple EXE that can run on any 2000 or XP machine
Can someone point me in the right direction. Basically all I want is an exe of a form that displays the username. I need to be able to execute this exe from a logon script on any of our 2000 or XP machines. I've pretty much figured out how to create the form in C#, but when I try to run the exe on other machines I get errors. I'm guessing it's because maybe they don't have the latest .NET framework installed. My question is, should I be doing this some other way like using C++, or some other feature in VS2005 I can't imagine needing the .NET framework for such a simple thing. Any suggestions are welcomed even if it's something like "Go out and by this particular book newbie" :) Thanks for the repl ...Show All
Smart Device Development Why no managed C++?
I am wondering what is the specific reason why there is no support for managed C++ (CLR projects) in smart device development Is it because this area is not very popular and since most .Net programmers use C# and VB, MS figured the resources are better spent elsewhere Or is there some other, technical reason I have done plenty of Win32 and MFC development and I have no problem using Win32 (or should I say, the Windows API) for lower-level stuff (inter-process and thread synchronization and communication, system and hardware access, etc.) but MFC was really only good for GUI stuff and now that we have .Net, which can do that and so much more, I just don't want to have to go back. And I'm really not looking forward to learning C# - not that ...Show All
SQL Server How do they control the distinct records in a table without using any keys in SQL Server 2000?
Hi, all, Thank you very much for your kind attention. I have just restored a database backup file generated by SQL Server 2000 to my SQL Server 2005 database engine, and I found that some tables dont use any keys at all. But have checked the distinct records in those tables finding that each record in those tables is exactly disctinct without any duplicate rows. How did it work out to control the distinct record in those tables Thank you very much in advance for your kind and advanced guidance. With best regards, Yours sincerely, Hi, thanks a lot-Joeydi and Adam. The tables above dont have any unique indexes neither. So as Adam mentioned, perhaps blind luck Thank you for your guidances. Best regards, ...Show All
Software Development for Windows Vista CreateFileMapping
Hi, I'm experiencing problems with Vista RC 2 Build 5744 when using shared memory. Our application uses the page file, and applications running in the same session communicate together using this approach. I have two accounts, a low priveledge account and a high priveledge account. The following function call works successfully in the low priveldge account but fails in the high priveldge account. You might say that both accounts should run code the same (UAC) however something is behaving differently. All policy settings are default and UAC is enabled along with virtualization etc. The following call fails with GetLastError returning 5 (Access Denied). The following names all fail THISISATEST Local\THISISATEST hQue ...Show All
Visual Studio Team System Team Build Adding Referenced Assemblies to the Drop Location
I have a build type that it setup to build one solution and drop the file to the specified drop location. When I do the build it seems to add some of the referenced assemblies to the drop location. I only want the assembly for the solution and the .pdbs added to the drop location. Is there any way to specify what gets sent to the drop location You could customize the DropBuild target in the build type file to copy only the files you require. By default, we copy all the binaries generated out of the build ...Show All
Smart Device Development IMAP Client with SSL
Hi, What is the easiest way how to implement IMAP client with SSL in CF Thx. I found some, but the problem was that some classes were missing in Compact Framework. I need one that supports SSL connection and is free ( the best with source codes ). Creating own IMAP library woudn't be a problem, but i don't know how to implement SSL in Compact Framework. ...Show All
SQL Server blank passwords
Is there a way to test for blank passwords on logins using SMO Thanks! I also have a Tsql script to check for blanks. Wanted to make sure i wasn't missing something here. Is the performance acceptable iterating through the Login collection or would using TSQL and reading the results to a data table be the better route ...Show All
Visual C# Messagebox when I close my application
When I close my form I want a box that ask me if I really want to quit. Is there any easy way to check if you press the X in the upper right corner Have a look at the FormClosing event . The FormClosingEventArgs allow you to cancel the closing and to check why it is closing , for instance a user action like clicking the [X]. Reasons you can check for. ApplicationExitCall The Exit method of the Application class was invoked. FormOwnerClosing The owner form is closing. MdiFormClosing The parent form of this multiple document interface (MDI) form is closing. None The cause of the closure was not defined or could not be determined. TaskManagerClosing The Microsoft Windows Task Manager is closing th ...Show All
.NET Development Serialization and Inheritance
Hi, I'm having a bit of a problem with serialization. I want all of my classes to have individual version numbers and figured that I could store this in a static, read only field like so: class A : ISerializable { private static readonly m_version = 1; //... public virtual void GetObjectData(SerializationInfo info, StreamingContext context) { info.AddValue("Version", m_version); } } The problem is that when I inherit from one of these classes, I get an error during serialization that I'm serializing the same member twice and that's not allowed: class B : A { private static readonly m_version = 1; //... public override void GetObjectData(SerializationInfo info, StreamingContext context) ...Show All
Visual Studio Express Editions Read only property?
i have a bitmap, and i want it to be controlled by the keyboard. my present code is... Private Sub Form1_KeyDown( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me .KeyDown Select Case e.KeyCode Case Keys.Left rect.Left -= 25 Case Keys.Up rect.Top -= 25 Case Keys.Right rect.Left += 25 Case Keys.Down rect.Top += 25 End Select End Sub Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim TmpCtr As Control For Each TmpCtr In Me .Controls AddHandler TmpCtr.KeyDown, AddressOf Form1_KeyDown Next End Sub After writing this, blue li ...Show All
