wirwin's Q&A profile
Visual Basic Accessing Clipboard
Hi, I wanted to take a screen shot and save that image as .bmp file using VBA. Could any one please let me know how to do this Thanks, Suraj Hi, I was trying with following code. But CopyImage function is returning handle to the image. I am not getting how to use that handle to store that image. Public Function GetclipboardBitmap(ByVal hwnd As Long) As Long ' Handle of the clipboad data Dim lngHandle As Long ' Handle of bitmap Dim hBitmap As Long On Error GoTo ErrorHandler If OpenClipboard(hwnd) <> 0 Then ' Get handle to global memory holding clipboard text lngHandle = GetclipboardData(CF_BITMAP) ' Could we allocate the memory If lngHandle &l ...Show All
Visual C++ Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.
I am working on a mulitple project solution in .Net 2003 whcih contains a mixture of C++ and C# code, either DLLs or LIBs. The main dll called is a mixture of unmanaged and managed code, managed code was added due to the addition of the C# code. I have a test application that calls this dll to run tests, surprise that! If I compile the test application, which is a VB.Net application, to the same directory as where all the DLLs and LIBs are built to all works fine. However, if the test application is built to a different folder I get the following error when I run the application: Run Time error '-2147024894(80070002)' File pr assembly name Blah.dll, or one of its dependencies, was not found. I I use DependencyWalker on Blah.dll th ...Show All
SQL Server What permissions to give Cluster account in SQL
Hey guys. I'll have an active/active cluster and seperate accounts for SQL Services and Cluster service. The question is what rights should the cluster account have in SQL if I've removed the 'builtin admins' from SQL Thank you The cluster account must be in a domain group, which will automatically have previlege of "builtin admins". This is due to a security problem as "builtin admins" still not strong enough to protect cluster services. See BOL for more details. ...Show All
Visual Studio 2008 (Pre-release) cannot find Linq after having installed orcas
Hello guys, I just installed orcas CTP Jan2007 and things seem to work fine .... but I do not find any trace of Linq. I went to add a refrence, there is no system.data.linq dll :-( I had installed the Linq may 2006 preview on VS 2005, and there it was, but now in orcas... nothing. Isn't this installed with orcas And if so, then what use for orcas ;-) Thanks a lot for any feedback - I am so excited to start working with Linq... Regards, Fabian Hello Fabrice, thanks a lot for your answer. I checked \WINDOWS\Microsoft.NET\Framework\v3.5.xxxxx and as you told the dlls are there... Buy why they are not presented under the .NET tap in the add reference window In fact non of the framework 3 ...Show All
Windows Forms ToolStripManager.Merge does not work
Hello all I have tried with no success to get 2 toolstrips one on an mdi parent the other on a child to merge using ToolStripManager.Merge(ChildToolStrip, ParentToolStrip) this does not work. I recall in tone of the Beta Versions that this was possible. Apparently this feature was removed ! ! ! Anyway is their a better way to merge toolstrips Or should I dump the toolstrip altogether and buy a third party control, because this is really getting aggravating Trophus "You Kill One Bug...And Fifty Show Up For The Funeral" Hello All: I finally got this thing to wor, its quick and dirty but it functions ok. It seems to work better if you put ToolStripManager.Merge in the ...Show All
Windows Forms Is this possible in .NET?
Is it possible to make this kind of toolbar in .NET. If so how Matt Yup. You can make something exactly like that just using a Windows Form. Just drag a toolstrip onto it, size it how you want, and wa la! If you want cool looking graphics, then you will have to look into skinning a windows form. ...Show All
Visual Studio Express Editions Breaking Point
I need to take this slow. 1. I have created a sql database that will allow me to input user info. 2. I have used the detail view of the database to create a form. 3. I have inserted a dataviewgrid and linked it to my datasource. 4. I have added a radio button to my form. 5. I have added two text boxes ( 1 is text the other is numeric) Now what I need to know how to do (in detail) is the following: 1. The text that I put into my first textbox to appear in my datagridview as a title 2. I need the numeric value that I enter into my second textbox to appear below it. This is a good start towards resolving my larger issue. I will ask other questions as they arrive but I have to start somewhere. Stupid! I just ...Show All
Visual Studio Express Editions NEW to prgramming/VBE
OK I'm having a hard time trying to get a program together, I thought I was clever enough to cut and paste here and there and to get the thing done. Well, I'm clever enough to see that I can do it, all the books and articles I've found aren't of much help, because I'm starting from scratch, don't care about the web and I have loads of string manipulations to do, basically I'm trying to build a custom log_files interpreter. So here is the questions: Were can I find decent documentation/books that I can source, document myself and get going THX to all that can answer or provide guidance PAOLO that I can do, it's part of my daily work, what I don't know is to then how to piece ...Show All
Smart Device Development Using Device Emulator to support non-local WinMobile users
Greetings, I'd like to use the DE to support multiple WM devices, all apart from my physical location. Ideally, I'd like each emulator image to run the same ROM image as the deployed device and have the same appearance. From the emulator's help file, it seems I can extract a run-time image from a connected physical device, so it looks like I can handle the first desired item. I've looked high and low for emulator skins without luck. Barry Bond's August 06 link http://msdn.microsoft.com/mobility/downloads/Emulator/default.aspx,%20lists is not found any longer. Lastly, I have downloaded, via Verizon & UT Starcom, the AKU 2.2 update for its XV-6700. The ROMS are in .nbf. Any development tools to make them usable with the emula ...Show All
Visual Studio Any bodies have any idea about following error
Error 2 Unknown section header E:\\TempProject\\DSLTestAgain\\DslPackage\\CtcComponents\\..\\GeneratedCode\\GeneratedCmd.h 1 DslPackage I’m install visual studio sdk 3.0 and open a DSL project while I’m start debugging I’m getting this error Hi, What I did was the following: Created a new minimal language DSL project. Copied the contents of your commands.ctc and GeneratedCommand.h to overwrite exisitng ones. Built the DSLPackage. I got the same error but on a different line (53). In my case the cause was the duplicate CR/LF characters (pasting to the forum automatically adds extra CR/LF). After I removed those the project compiled fine. So this mea ...Show All
Visual C++ Using properties/methods of Win form controls beyond scope of proj namespace
Hi all, Possibly a very simple answer - but no documentation has revealed the answer so any help would be very useful. I have a Windows forms application project with a few controls, built with the form designer. In the header file for this form (the usual "Form1.h") I have the namespace named after my project and within it, the usual managed class defining the form and its controls. My question is, if I need to access the properties and methods of these controls from beyond the scope of the namespace, how can I resolve scope to access the form and its controls Ideally this would be possible from a separate source file, but essentially the methods and properties of a control on the form must be accessible from outside ...Show All
Smart Device Development Securing SQL Mobile Connection Password (Encryption)?.
Hi All, I have a mobile application developed using the .NETCF2.0 in C#. I have a SQL mobile database that is password protected. The password will remain static and I want the password to be hard coded within the application assembly. Now I could just use a constant but the problem (from a security prospective) is that it is readable from within the assembly (I think) and in memory. I could manually encypt the password and store the result in the constant instead. I could then decrypt it at run time. Is there a better way Also, I've not done encyption in .NET whats the best way to do it using .NETCF2.0 Any guidance would be appreci ...Show All
Visual Basic FrmMain= StartupForm but with conditions....
My app. has several forms but only one main form (FrmMain) which has to shown up on application start. No big deal, eh But before FrmMain is enabled I want to check somethings in a MS-Access Database: 1. MyApp can be used by several Users 2. Every User can have several Proyects So I want on app.start to be the Main Form be visible but not enabled yet because first I need to check: - If there exist(s) users in the database or not (Table Users) - If so if this (or these users) allready have a Proyect defined (Table User-Proyects (=User-Id)) According to these situations in the foreground (active form) an auxiliary form should be shown before we can enable the Main Form. Some hints here for a VB-5'er please. T ...Show All
Audio and Video Development HVDVD_TS
What does the HV in HVDVD_TS stand for Early versions of the spec referred to both HDDVD_TS and HVDVD_TS in different places, clearly someone was confused. Subsequent versions switched to HV- consistently, which I agree is counter-intuitive. ...Show All
Smart Device Development Read sms from Inbox - WM 2003SE
Hi. How do I read sms from Inbox and "Sent items" It is most important to read from Inbox and the folders I have created under Inbox. I have almost 13.000 sms that I want to store on my computer in a txt file, html, xml file or something. I just need it to be on the computer because I soon should have a new Pocket PC. How do I read sms from Inbox/subfolders and save them(Who the sms is from, when(date and time) and the text) in a file I hope you can help, because it is very important to me that I can save all my sms and read them later when I want, on my computer. yeah,i want to kwon.at here http://www.inthehand.com/WindowsMobile.aspx , but it's not free. ...Show All
