Chris0144's Q&A profile
Visual C++ C++ declaration of Large number Variable type
I want a variable to hold a very large numbers (10 bytes, 80) bits and looks like this in decimal 1208925819614629174706176 (25 digits) how do I declare this as a varaible in the begining Plus I am also using pow(,) function and it keeps throwing up an error. James ( james2003g@hotmail.com ) ok! forgive by naiveness, but what GNU do. went onto the site and read it. but I can't quite understand what it doesn't. Is it some kind of library that I can add into my complier. I have Microsoft Visual Studio 2005, which it doesn't mention as an option. There are very few instructions on the page! Is there no other way Does C++ only count up to 64 bits I was hoping to start off with 80 bits, then move onto higher ...Show All
Visual Studio 2008 (Pre-release) Definition of PrimarySelectionAdornerProvider
Hi, I have read the article at http://blogs.msdn.com/subhagpo/archive/2006/06/15/633663.aspx and have take a look at PrimarySelectionAdornerProvider and the Extension but I do not find where this class are defined. I have installed the Cider June ctp with VS 2005. What is the assembly to reference and the namespace for use this classes -- Andrea Thanks Jim Now I get it. Your Cider classes are only for design time features of custom controls that will function within Cider/VS. That's a pity as there is a lot in those classes that would be useful and would be better than the very complex standard adorner techniques. You can't even build the standard adorners in XAML eg with EID. Anywa ...Show All
SQL Server How to order by member key?
Hello, I ran into another issue as to I would like to order the [Week Name] by the Member Key. Currently, the LastPeriods() is returning "Week of 12/25/2006", "Week of 12/17/2006" instead of "Week of 1/22/2007" because it is order by Member Name instead I would like to order by Member Key. Can anyone help me with the code below so the LastPeriods() is indeed the last 3 week (order by Member Key) instead of by Member Name SELECT { LASTPERIODS (3, TAIL ( nonempty ([Week].[Week].[Week Name]. Members )).Item(0).Item(0) ) } ON COLUMNS FROM [GMDSummary] Much Appreciated! -Lawrence If the [Week Name] attribute has it's "Order By" property set to " ...Show All
Software Development for Windows Vista Signing a personal web package (Sharepoint Designer 2007)
Hi all Could someone please (let me know how to go about/point me to any docs on) "signing" (for someone to be able to trust the content) a personal web package generated by using the "export" option inside Sharepoint designer 2007 I could not find a relevant place inside the menu options. Am I missing something Thanks in advance. Best regards Subbu Question related to Sharepoint 2007 should be posted at http://www.microsoft.com/office/community/en-us/FlyoutOverview.mspx#15 . ...Show All
Visual C++ separating high and low 32 bits in a 64 bit interger
Hi, Can anyone help me to separate the high 32 bits and low 32 bits of a 64 bit integer into 2 new intergers Thanks in Advance inline unsigned long HILONG(__int64 value) { return (unsigned long )(value >> 32); } inline unsigned long LOLONG(__int64 value) { return (unsigned long )(value & 0xffffffff); } ...Show All
Visual C# Intellisense
Hi I made a reference to a class library in my project , but i cannot see it's members through intellisence. Is it because it's a console application Does intellisense work in console pplications BTW - the project compiles OK, and runs as expected. it's just that intellisense does'nt work. Any ideas TIA Hello All. LongJohnSilver: Since you say that the project will compile and run, and that Intellisense does not report members of the class library, I'm assuming that you're using fully-qualified names to access the classes in the library. Just to double-check, you have added a reference to the library and have included a using statement to make the namespace of the library visible H ...Show All
.NET Development IDumpable and IBindable
Hi all, Can someone tell me what namespaces contain IDumpable and IBindable interfaces I can't seem to find either one in the .NET framework documentation. Thanks in advance IDumpable looks like a BizTalk interface (namespace Microsoft.BizTalk.ParsingEngine): http://msdn.microsoft.com/library/default.asp url=/library/en-us/sdkmref_bts/html/T_Microsoft_BizTalk_ParsingEngine_IDumpable.asp IBindable doesn't appear to come from Microsoft. Thanks. ...Show All
SQL Server Why is there a 256 JOIN Limit in SQL Server 2000/2005?
Hi, Does anyone know why there is a 256 JOIN limit in SQL Server 2000/2005 Are there any plans to raise this limit (or do any add-ins exist to raise this limit) Thanks. BTW, a separate question -- is there a limit to the number of rows a SQL Server 2000 database table can have What about SQL 2005. Thanks. Rows per table is limited only by how much space you have. I have seen multi-terabyte databases run quite efficiently (ok, only once, and the folks who ran it were really smart) One thing you really need to watch for is how many bytes you have in a row - you can only have 8060 bytes which is how wide a memory page is. There are formulas for calculating this, but you can get a very rough ...Show All
.NET Development Detecting foreign key constraint errors
When trying to delete a record that is referenced in another table as a foreign key I get a SqlException. But this exception can be thrown for many other reasons, so how can I differentiate between errors due to foreign key constraint and other types of errors thanks. Try this Try Catch ex As SqlException If ex.Number = 547 Then MessageBox.Show("Record cannot be deleted or changed as it is being used somewhere else") End If End Try ...Show All
Visual Studio Express Editions Showing "1 000" instead of "1000" in textbox.
OIkai, this might be very simple, but I have a textbox with "1000000" in it. And I want it to be shown as "1 000 000". There must be a way to get the data out and change it, and then put it back in the textbox again. Anyone know how And question 2, I found a old vb6 code: If KeyAscii > 26 Then If InStr("0123456789", Chr(KeyAscii)) = 0 Then KeyAscii = 0 Its for making a texbox accept numbers only, but it keeps giving me error on KeyAscii. How can I make it work in vb exp You are probably getting the Change event to run over and over. Note the use of the "busy" variable in the code sample I gave. ...Show All
Visual Studio Team System Error Checking Out -- Invalid object name 'dbo.func_ComputeEffectiveMappingsEx'.
I receive the error below in the event viewer when trying to check out of TFS Source Control. I haven't been able to find anything on function dbo.func_ComputeEffectiveMappingsEx that the error reports on. Thanks. Crosspost from here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1170352&SiteID=1 Event Type: Error Event Source: TFS Version Control Event Category: None Event ID: 3000 Date: 1/30/2007 Time: 5:20:08 PM User: N/A Computer: TFS Description: TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for t ...Show All
Windows Forms newby textbox . question
i have set my textboxes to only allow one instance of "." my problem is that if i have already typed something that contains a"." when i tab over to the textbox that already contains a "." the text highlights but if the first character i type is a "." it won't do anything. i want to delete all the selected text and replace with the new text. all other keys work fine but since i limited the textboxes to only allow one instance of "." it won't do anything. i need to some how make it replace all the selected text with "." when i press the "." key Thanks Try this: Private Sub TextBox1_Enter(ByVal sender As Object, ...Show All
Windows Forms Sort columns in datagridview
Hi all. Does anyone know how to sort the order of columns in a datagridview. My datagridview is using a datatable as datasource. This datatable contains columns "A","B","C","D". I want my datagrid to display the columns in another order. I Want column1 = "B", column2 = "C", column3 = "A". Anyone Lars When you change a DisplayIndex value subsequent values in the DataGridViewColumnCollection are modified to ensure uniqueness of all of the DisplayIndex values. Therefore populating the DisplayIndex values in the DataGridViewColumnCollection from the last DisplayIndex value to the first avoid this problem. A code snippe ...Show All
Visual C# get nmea string
Hi, I am working on a gpsdevice enad i wanted to get nmea string, i know that i must creat file with the fonction CreateFile and give the return handle to ReadFile but i don't even knwo to invoke it and how to get from it because it return bool variable. Please help!!!!!! This the code that used for create file: //Flags private const uint GENERIC_READ = 0x80000000; private const uint FILE_SHARE_READ = 0x1; private const uint CREATE_ALWAYS = 2; private System. IntPtr handle; public bool Open( string FileName) { // open the existing file for reading handle = CreateFile(FileName, GENERIC_READ, FILE_SHARE_READ, 0, CREATE_ALWAYS, 0, System. IntPtr .Zero); if (handle != ...Show All
Visual Studio VS.NET C++ Debugger no longer loads DLL symbols when we attach to the host process.
We've notice a problem recently whereby attaching the debugger to our host process no longer allows us to debug our DLLs. Repro: set a breakpoint in DLL then go to Debug-menu->Processes and attach to the host process. Result: the DLL's breakpoint is now shown with a ' ' (question mark) in it, indicating that the symbols were not loaded. This used to work OK, so we are wondering: what has changed Also, how do we fix this Hi, The PDB file has to match up with the DLL, otherwise VS will not load the PDB. This means that if you re-built the DLL and deployed it but didn't copy over the new PDB it will not load. Any post-processing of DLL after the build could cause it not to be loaded for t ...Show All
