dbeau's Q&A profile
.NET Development RSA decryption problem, wrong providerversion
Hi, I am currently trying to decrypt an RSA encrypted file. The file has been encrypted using 4D (www.4d.com) code. I have both the private and public keys. But I can't seem to get the file content decrypted. So far all I get is a "providerversion" error. Any help on this issue is highly appreciated. The code looks like this... public static void AssignParameter() { const int PROVIDER_RSA_FULL = 1; const string CONTAINER_NAME = "SpiderContainer"; CspParameters cspParams; cspParams = new CspParameters(PROVIDER_RSA_FULL); cspParams.KeyContainerName = CONTAINER_NAME; cspParams.Flags = CspProviderFlags.UseMachineKeyStore; cspParams.ProviderName = "Microsoft ...Show All
Windows Forms monthcalendar fires on each monthly scroll
I'm trying to allow the user to pick several dates from the monthcalendar, and have these dates show in a listbox as each is picked. Clicking a button after all of the picked dates have been collected will then move the listbox dates to a column in datagridview. My problem is that the code allows duplicate picks into the listbox, and also fires new [& double duplicate] dates into the listbox during the scroll. I want to disallow pick of any/all duplicate dates. I've solved the duplicate date pick with: If ListBox4.Items.Contains( CStr (e.Start.Date())) Then 'leaving this line blank causes "nothing" to occur, and removes duplicates...tho still fires on monthly scroll Else ListBox4.Items.Add( CStr (e.Start.Dat ...Show All
Visual Studio Express Editions Where are the MessageBox classes?
I want to able to display a message box. Looking at the library, the related MessageBox classes are in the System.Windows namespace. Looking at my available references, I have System.Windows.Forms but no System.Windows, which seems a bit odd. Putting "using System.Windows" in my code doesn't help me. Do I have the capability to display a message box somewhere or do I have to download an SDK If I have to download an SDK, which one in particular And if the SDK is really large, is there a way I can download just the library that has the Message Box stuff Okay, I just realized the difference between the Message Boxes in System.Windows namespace and System.Windows.Forms namespace: System.Windows N ...Show All
Visual C# C# How do I change the Image on a ToolStripButton?
Hi Everyone, I am building an application using ToolStripButtons as the main user interface. I want to change the image displayed on a button when it is pressed. The idea is to show an 'Open' & 'Close' image. I have the two image files registered in the Solution Explorer. It all looks simple enough, but when I run my code, although the TEXT changes, the image doesn't. Am I missing something My code is: private void tsbtnAcquireData_Click( object sender, EventArgs e) { if (AcquireFlag == false ) { AcquireFlag = true ; tsbtnAcquireData.BackgroundImage = QuickView.Properties. Resources .Close; tsbtnAcquireData.BackgroundImageLayout = ImageLayout .None; tsbtnAcquireData.Text = "C ...Show All
SQL Server Cannot create cached copy via report manager
If i use report manager to execute a report from a cache by storing a cached copy every 30 min, it keeps on complaining that "Credentials used to run this report are not store" whereas I have already stored the credentials in the shared data source. The weird part is, if I use SQL server management studio to do the same, it works. After checking that option in the management studio, if I again use the Report Manager and got to "Execution" property of a report, the "Cache Temporary......" is checked correctly but again I see a red error message with the same lable "Credentials used to run this report are not stored". However, when I run the report, it works because every subsequent report execution ...Show All
Visual Studio hide a field when it has a certain value
Hi, I have a datetime field which only display hh:mm. I want to hide this field when the value is 00:00. Can someone give me example on how to do this Seems there are no events on fields when they are displayed, but maybe with a formula thx, Wilfried ...Show All
Visual FoxPro Why my VFP exe file cannot be launched?
I complied my program under VFP6 into an exe file in the program folder. But it cannot be launched. I believe there is nothing wrong with the code, because I just made a minor change. The funny thing is that if I copied the file to other folders on the same drive, it works! And even more wear is that some old version VFP exe files could not be launched from within that program folder, either. I have to copy them out to test. It only happens to VFP exe files. Other exe files are OK. It did the same with VFP9. Any idea what could be the problem I assume its your application (EXE) not VFP.EXE which u have complied is not working from a folder, but if u copy it to another folde ...Show All
Smart Device Development DataGrid with Decimal values: Not showing correctly
Hi to everyone, I'm a .Net (& CF) newbie. I'm having problems with a datagrid bound to a collection of BindingList<Product>. Product has one decimal property type which doesn't get displayed correctly once I deploy the application to the device. The things works correctly if run in the emulator. I've modified the format property of the column holding the decimal value, and set it to "N2". This brought no luck. Also tried to set a new culture info, still no luck. The value of "0.52" is displayed as "52.00" on the device, while in the emulator is displayed as "0.52". What am I missing Thanks for you help As you already know it has nothing to do with DataGri ...Show All
Visual C++ Can we use IInputObject interface in Visual C++ 2005?
I have "shobjidl.h" included, but "Error 1 error C2787: 'IInputObject' : no GUID has been associated with this object" always comes out while compliling. What else do I need to do to use IInputObject interface in my application Thank you for your answer. I have another question about this: What if I use the following macro: BEGIN_COM_MAP(CWhatever) COM_INTERFACE_ENTRY(IInputObject) END_COM_MAP() So I should write the bold part myself ...Show All
Visual C++ any ideas to reduce log file size or make log file size managed?
Hello everyone, I found the log file size is becoming larger and larger. Any ideas to reduce the file size or make log file size managed, for example, keep the log file be fixed size or some other policies Any reference tutorials or open source samples to recommend thanks in advance, George This thread is off-topic. Please limit your posts to C++ language issues for which this forum is intended. For assistance finding the right forum, you can visit http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=881&SiteID=1 . ...Show All
Smart Device Development Termination process ( Null handle )
hi, DWORD CKillExeApp::IsProcessRunning( char * pname) { char* szExeFile = new char[MAX_PATH]; PROCESSENTRY32 proc; proc.dwSize = sizeof(PROCESSENTRY32); HANDLE lTlhlpHndl; lTlhlpHndl = CreateToolhelp32Snapshot(TH32CS_SNAPALL,0); if(INVALID_HANDLE_VALUE != lTlhlpHndl) { PROCESSENTRY32 lEntry; BOOL lRetVal; memset(&lEntry,0,sizeof(PROCESSENTRY32)); lEntry.dwSize = sizeof(PROCESSENTRY32); lRetVal = Process32First(lTlhlpHndl,&lEntry); while(lRetVal) { WideCharToMultiByte(CP_ACP, 0, (wchar_t *) lEntry.szExeFile, -1, szExeFile,20, NULL, NULL); if (strcmp(pname,szExeFile) == 0) { delete[] szExeFile; return lEntry.th32ProcessID; //return processID from here.. observe in debugging } lRetVal = Process32Next(lTlh ...Show All
SQL Server limit amount of memory used
Is there a way to limit the amount of memory used b a single report. We're using a fairly small server and the larger reoprts are bogging it down. Can we limit the amount of memory taken up by the larger reports so only they run slow Unfortunately there isn't a way to set memory limit per report. If you could use snapshots, consider scheduling them at off peak hours. ...Show All
Visual Basic Browse for Folder Dialog Box
I've been looking around the internet and I found a few pieces of sample code that uses SHBrowseForFolder, but I have no idea how to use it, or how to tweak it. I'm looking for something that hopefully VB .NET can provide, and hopefully is a little less verbose. Basically, I just want to browse for a folder in one of those windows dialog boxes, and when the user presses OK, the program will set a textbox's text to the selected path. The last time I did classroom VB programming was 5 years ago, back in HS, and we were using VB6 back then. If anybody can shine a light on this issue, I would greatly appreciate it! Sure. Try this: Dim theFolderBrowserDialog as new FolderBrowserDialog() the ...Show All
Windows Forms Control Question!!! Help!!!
Ok guys i need your help. I have a panel control with a textbox inside, next to the panel there is a button. Now what i want, and i don't know how to do it, is when i click at the button i want that another panel show under the first panel, but exactly like the first panel with a textbox inside and a button next to it. Thanks Merovingio. Draw a large panel on the form. Put a smaller panel and a button on it. Put a textbox on the smaller panel. Select the large panel, Ctrl+C, Ctrl+V. Drag the copy below the first panel and set its Visible property to false. Double click the button in the top panel and write this code: private void button1_Click(object sender, EventArgs e) { panel3.Visible = true; } ...Show All
Visual Studio System.Runtime.InteropServices.COMException (0x800003E5) in Crystal Report (CR 11 and VS2003)
hi forum i am getting the following Exception System.Exception: Load report failed. ---> System.Runtime.InteropServices .COMException (0x800003E5): Failed to open report. at CrystalDecisions.ReportAppServe r.ClientDoc.ReportClientDocumen tClass.Open(Object& DocumentPath, Int32 Options) at CrystalDecisions.ReportAppServe r.ReportClientDocumentWrapper .Open(Object& DocumentPath, Int32 Options) at CrystalDecisions.ReportAppServe r.ReportClientDocumentWrapper .EnsureDocumentIsOpened() --- End of inner exception stack trace --- at CrystalDecisions.ReportAppServe r.ReportClientDocumentWrapper .EnsureDocumentIsOpened() at CrystalDecisions.CrystalReports .Engine.ReportDocument.Load(String filename, OpenReportMethod openMet ...Show All
