jhknys's Q&A profile
Windows Forms Error there is no value at index n
For counter = 0 To Integer .Parse((mJVGrid.Item(counter, 2)) - 1) If Not mJVGrid.Item(counter, 2) Is Nothing Then If Not mJVGrid.Item(counter, 2) = 0 Then debitTotal += Integer .Parse(mJVGrid.Item(counter, 2)) Else debitTotal += Integer .Parse(mJVGrid.Item(counter, 2)) End If End If Next ------------------ there may be some empty rows in the datagrid. i want to add datagrid rows value but the last row alway empty in my case i dont know wat is the problem...in the above code i want to sum the integer value if there is no value in some row check the next row ..... Ok, I hadn't really paid attention to the rest of your code. What is this loop doing exactly : ...Show All
Windows Forms progressbar during loading a bitmap
Hey I would like to load a huge bitmap (about 200MB or even more). For this I use the known statement: System.Drawing.Bitmap bm = new System.Drawing.Bitmap( filename ); This runs well but is there any possibility to show a progressbar during the load process Thanks ...Show All
SQL Server Page Break Problem
Using SSRS 2005, I have a simple "letter" report that has a page header and body. The body has a single table and I have set the "page break on end" property to true, but the report ignores that setting and prints the report as one long letter. I'm sure I'm just missing some very simple point, but cannot figure out what it is. Any ideas Thanks. ...Show All
Visual C++ Acessing vb components (COM) from visual C++
I look for suggestions how to acess vb components (COM) from Visual C++ (Visual Studio 6.0). Have a look for BSTR ,VARIANT stc in MSDN.and have a look on the Following link for more details .A Step by Step Guide to Programming in Multiple Language http://mattandjess.net/c++/index.html Thanx ...Show All
SQL Server Accessing Reporting Services from a machine which is not the server
Hello, I plan to install MS SQL Reporting Services 2000 (later probably 2005) on the same server as where the MS SQL Server 2000 database is stored. However, the developers (people designing the reports) will not have physical access to this server (it is stored in a different office). Remote Desktop is possible though, if no other solution exists. Are the developers able to use the Report Builder on every machine or is a single license needed for each developer workstation Or, in other words, what needs to be installed on a computer in order to create different type of reports Any comment on what is best or a link is appreciated. Thank you in advance! Best regards, Michael Fuchs ...Show All
.NET Development Decimal.TryParse failed in da-DK culture.
I have this code that always return zero whenever i passed 1,000,00 in a da-DK culture or en-US culture. It works with amount less that 1000 like 99,99. but always returns 0 when greater than or equal to 1000. Decimal separator is ",". I suspect its because the decimal and thousand separator are the same. Thread.CurrentThread.CurrentCulture = new CultureInfo(Thread.CurrentThread.CurrentCulture.Name); Thread.CurrentThread.CurrentCulture.NumberFormat.CurrencySymbol = ""; Thread.CurrentThread.CurrentCulture.NumberFormat.CurrencyDecimalSeparator = ","; Thread.CurrentThread.CurrentCulture.NumberFormat.CurrencyGroupSeparator = ","; Thread.CurrentThread.CurrentCulture.NumberFormat.CurrencyDecimalDigits = 2; Thread.CurrentThread. ...Show All
Visual C# metadate setting with toub.mediacenter.dvrms.dll, having major problems.
i am trying to set two metatags in .wmv files. they are WM/MediaClassPrimaryID and WM/MediaClassSecondaryID. I know that these tags are GUID's, not not strings. I took toub's dvrms metadata editor and modified it to allow GUID by adding public static void SetMetadataItemAsGuid (IDictionary items, string name, Guid value) { if (items.Contains(name)) { items[name] = new MetadataItem(name, value, MetadataItemType.Guid); } else { items.Add(name, new MetadataItem(name, value, MetadataItemType.Guid)); } } i am calling this and trying to add these tags in my code by this code Guid Prim = new Guid("DB9830BD-3AB3-4FAB-8A37-1A995F7FF74B"); Guid Sec = new Guid("BA7F258A-62F7-47A9-B21F-4651C42A0 ...Show All
Visual C++ warning C4172
Hi all! I have a problem with the following code extract: ref class cVector2 { public: cVector2(); cVector2(float pX, float pY); public: static cVector2% operator+( const cVector2% pV1, const cVector2% pV2 ) { return *gcnew cVector2( pV1.fX + pV2.fX, pV1.fY + pV2.fY ); } // END OF operator+() private: float fX,fY; }; // END OF ref class cVector2 The line return *gcnew cVector2() in operator+() , generates the following warning: C4172: returning address of local variable or temporary I don't understand why. This code looks correct to me. I am still a beginner with C++/CLI so it is difficult to say if I am wrong or if the compiler is wrong! Let me know what you think. Thanks, Antoine Clappier ...Show All
SQL Server Excel 2007 Compatibility with ProClarity 6.2
When installing the ProClarity plugin for excel, it prompts that it looks for Office 2000 and greater.. I currently have Office 2007. To go over this I installed Excel 2003 along with my 2007 installation. Do you have an idea how to use the plugin over Excel 2007 I do not know if this is good enough but you do not need ProClarity's Excel export(Business Reporter),plugin, tool. You can connect directly to SSAS2005 from Excel 2007. The future of this ProClarity plug-in is questionable. Edit: I understand that a 6.3 release of ProClarity Analytics will be delivered soon. This is the last version. After that you will see ProClarity in Performance Point Analytics. Regards Thomas Ivarsson ...Show All
SQL Server “AcquireConnection method call to the OLEDB Connection Manager for SQL Server failed” Error
I have an SSIS package which takes input from Flat file and transfer the data to SQL Server using OLEDB Destination Data Flow Item. The OLEDB Connection Manager used for the destination is configured to use SQL Server Authentication for the user ‘sa’. The package works fine without enabling the configurations. But when I enable package configuration and save the configuration of the various connection managers in an XML configuration file and then run the package it gives the following error in the validation phase: [OLE DB Destination [21]] Error: The AcquireConnection method call to the connection manager "<Connection Manager Name>" failed with error code 0xC0202009. And after the validation phase is comp ...Show All
SQL Server Upper level members are not adding up correctly in SSAS - revised
I have created a cube in SQL 2005 / SSAS but am having a problem with the upper level members. It seems that these members are not rolling up correctly. The cube contains daily data, if I look at the monthly values, these are not correct. That is, the sum of the daily values do not add up to the monthly values calculated in the cube. The monthly values should be a simple sum of the daily values. At first, I thought it may be a rounding issue but the differences between the values pulled from the cube and the manual sums are too large. In the FACT table, the measures have the data type of real. I have verified that the numbers in the FACT are indeed the #s loaded into the cube, i.e. if I pull data at the lowest level of all the dimension ...Show All
Visual Studio Express Editions A load of errors I don't understand...
Hello. I get the following errors when trying to build a program that uses Winsock: ------ Build started: Project: Winsock, Configuration: Debug Win32 ------ Compiling... ws-util.cpp main.cpp Generating Code... Linking... main.obj : error LNK2019: unresolved external symbol _WSACleanup@0 referenced in function _main main.obj : error LNK2019: unresolved external symbol "int __cdecl DoWinsock(char const *,int)" ( DoWinsock@@YAHPBDH@Z) referenced in function _main main.obj : error LNK2019: unresolved external symbol _WSAStartup@8 referenced in function _main ws-util.obj : error LNK2019: unresolved external symbol _WSAGetLastError@0 referenced in function "char const * __cdecl WSAGetLastErrorMessage(char ...Show All
.NET Development IoCompletion handle
Hi. I'm not sure this is a right topic for that section. I have a problem with growing number of IOCompletion Threads. In our producion environment we have from time to time ExecutionEngineException. I was trying to understand what is going on and started from analysing DUMP file. I found that there are more than 1000 thread doing IOCompletion operation: 103 76 528 084fe878 880b220 Enabled 00000000:00000000 0014d518 0 MTA (Threadpool Completion Port) the stack of the each of them is: 0:044> ~103e k ChildEBP RetAddr 0e4af0f8 7c90e31b ntdll!KiFastSystemCallRet 0e4af0fc 7c80a746 ntdll!ZwRemoveIoCompletion+0xc 0e4af128 79f2f30a KERNEL32!GetQueuedCompletionStatus+0x29 0e4af194 79ecb00b mscorwks!ThreadpoolMgr::CompletionPo ...Show All
Windows Forms Need help with textbox
Newbe to Visual C++ 2005 Express. This is a very basic question. Sample code or a link to a tutorial would be much appreciated. A user is to enter several 8 bit hex numbers, each in a seperate textbox. 1) How do I mask the text box to only accept hex numbers. 2) How do you assign the value they enter in each box to a variable, so I can perform numeric operations on them. Thanks. Anyone If a hex value like 7E is entered into the text box, it is a string of text and cant be assigned to a long. How can I convert this to a number so I can perform some math on it Thanks. ...Show All
.NET Development VB6 Library import / tlbimp problem on x64
I have a VB6 DLL (with a class called PiWorker) that I need to import into a .NET 2.0 RCW. This works fine on x86, but I need to do this dynamically at runtime across a mix of x86 and x64. It doesn't work on x64. I am able to run VB6 applications fine, so this isn't just a VB6 runtime issue. I use the following code to load the library: Object typeLib; LoadTypeLibEx(typeLibraryFile, NativeMethods . RegKind .None, out typeLib); . . . TypeLibConverter converter = new TypeLibConverter (); ImporterNotifySink notifySink = new ImporterNotifySink (); AssemblyBuilder asm; Version asmVersion = new Version (1, 0); TypeLibImporterFlags flags = TypeLibImporterFlags .PreventClassMembers | TypeL ...Show All
