axedeveloper's Q&A profile
Visual C++ Weird registry behavior with Win64 (AMD64)
I have a normal 32 bit application which does the following: HKEY hKey; int nCount = 0; DWORD dwLen; if (RegOpenKeyEx(HKEY_CLASSES_ROOT, "CLSID\\{<<UUID>>}", 0, KEY_ALL_ACCESS, &hKey) != ERROR_SUCCESS) { printf("problem\n"); return nCount ; } if (RegQueryValueEx(hKey, "u", NULL, NULL, (LPBYTE) &nCount , &dwLen) != ERROR_SUCCESS) { printf("problem2\n"); } return nCount ; I'm using Visual C++ 6.0 and compile it for normal 32 bit. When I run it on normal 32 bit Windows XP everything runs as it should. When I run it in debug mode under Windows XP x ...Show All
Visual Studio Is there any way to run an action when a project with my guidance package enabled is opened?
My guidance package has a tool window that I would like to show whenever a project with my guidance package is opened. I've found events for when a guidance package is enabled/disabled (or was it loaded/unloaded). I could hook up to those, but then I would need to be able to run an action when VS is opened. In any case, I can imagine that there are other good reasons for functionality like this. I believe you can register your VS Tool Window to "persist" itself so that the next time you open Visual Studio, it will load your package and show the tool window. The problem is that the Guidance packages that we ...Show All
Visual C# Why can't I use the Escape Key as shortcut?
Hello people, how are you I hope fine. I'm trying to set the Espace key (char 27) as a shortkey in a ToolStripMenuItem in the Visual Studio 2005, through the Shortcutkey property. But the VS says that: "The value of argument 'value' (27) is invalid for Enum type 'Keys'. Parameter name: value" Is this a bug Or is it not possible to do Thanks Andre I saw the post about it being by design. I think this issue wasn't evaluted well enough. There are 2 issues here. It's easy to workaround the 1st issue by trapping the escape key. But that is not all of it. The 2nd issue is the display of the ESC. How do ...Show All
Visual Studio Tools for Office Outlook Task classes & writing from access
Hi there - i have written a piece of code on a command button in access that writes values in a tasks form directly into tasks in outlook. this works great except for one thing - i can set the reminder tick box and the reminder time - these fields are under the 'taskitem' class. however there is no reminderdate field under taskitem (although the startdate and enddate objects are there) and as a consequence the date is entered as 30/12/1899 - can anyone please tell me how to write the reminder date from the access form into the field in outlook. thanks, Rhys. Total guess here: but perhaps perpahs that t ...Show All
SQL Server select from tables
hi, i have created tables and i want to use a store procedure to get information from almost all of the tables... lets say i have 4 tables - students, teachers,subjects and presence in classes. students includes - name+phone+addresas+id teachers includes - name+phone+degree+address+id and so on.. subjects includes- name+code+hours and so on presence includes- id_student+id_teacher+code_subject+date and so on now i want to create a table with all the students name , tachers name , subjects name what are in the presence table. how can i get all of that information is it possible to write in one select statement what ...Show All
Visual Studio 2008 (Pre-release) next linq release
Any comment on roughly when the next Linq release is scheduled, and what kinds of changes we can expect I would love to know as well ...Show All
SQL Server Error 1 Memory error: The operation cannot be completed because the memory quota estimate exceeds the available system memory.
I get the following error when trying to process a cube on the server. Error 1 Memory error: The operation cannot be completed because the memory quota estimate exceeds the available system memory. 0 0 It runs on a Microsoft Windows NT 5.2 (3790) with the JUNE SQL 2005 Developer release. I has 4 gigs of RAM This error comes when trying to process all sizes of cubes. At this moment I am thinking ether your patition is too big. You have 20Gb memory avaliable, I can hardly imagine the partition size that cannot process with that much memory. Try partition your d ...Show All
SQL Server I TRIED THE PACKAGE AND IT FAILS ALL THE TIME
I think I am missing something, and this something I could achieve with Enterprise Manager. How do I copy one object, lke a table, including primary keys, indexed and triggers, plus data, from one SQL Server to another, or a set of tables I am at a loss. Of I choose "Copy Data", that is not the same because the table data is copied, but nothing else, not even the primary key gets transferred. So the arriving table is --quite frankly-- useless. What do I do with a table that lacks keys, constraints, indexes and triggers . On the other hand, I don't see any click-and-shoot way to transfer the missing information for one single or a few ta ...Show All
Visual Studio 2008 (Pre-release) Major resource bug in May CTP
The following does not work anymore: Is this intentional <Grid> <Grid.Resources> <Style TargetType="{x:Type Button}"> <Setter Property="Background" Value="{StaticResource brush}" /> </Style> <SolidColorBrush x:Key="brush" Color="Red"> </SolidColorBrush> </Grid.Resources> <Button></Button> </Grid> I can confirm: Foward references are not allowed anymore in May CTP... See Tim Sneath`s list of changes for May CTP! ...Show All
Visual Studio Team System Updating Assembly Version Information
Hello, I am looking for a way to automatically update the version information for all projects in a TFS Build. I have downloaded the AssemblyInfoTask from GotDotNet to take a look at it. Although it works fine for local builds I'm not sure how to use it with TeamBuild - or if it can even be used with TeamBuild. Since the AssemblyInfo.vb (or .cs) file has to be checked out first I'm not sure how to implement this in a TeamBuild script. Has anyone had any success with getting this custom task (or any other task for that matter) to update assembly version information in TeamBuild --- Thanks, Jeff C ...Show All
Visual Basic Toolbox still does not display user controls.
My project, which has 2 user controls in it- does not display the user controls in the toolbox. Has anyone else had this problem, and/or know of a solution I have tried adding other user controls to the project, they do not appear in the toolbox. I have tried creating a new project, and it's user controls DO show up in the toolbox. If I add the user controls from the first project to the new project -THEY show up in the toolbox for that project. So it must be something tweaked out with the project right Any ideas Ok, I found the solution to the problem, though not the cause, I'll leave that up to MS: Remo ...Show All
Windows Forms How to improve Listbox performance in ADO.NET 2.0?
I have a bunch of listboxes on my windows forms with a couple of thousand records in each one of them. It takes almost about a minute to load a form in .NET 1.1 We are migrating the application to .NET 2.0 and was wondering if there is any way to improve the performance in ADO.NET 2.0 so that the listboxes are loaded faster in .NET 2.0 I tried running speed test as per: http://msdn.microsoft.com/msdnmag/issues/05/11/DataPoints/default.aspx fig=true#fig6 and was really satisfied with the promising results. Please let me know if you have general tips / suggestions to improve performance of ADO.NET Windows Forms Application in g ...Show All
Windows Forms bind DataGridView to 2 dimension array
I am writing a scientific application that needs to display a 2D matrix that is stored in a 2D array. It seems to me that a 2D array is a natural object to bind to a datagridview. However, as posted earlier this is not supported. What is the best way to bind a 2D matrix to a datagridview Is there a wrapper I can put around the 2D array or do I need to create a number of arraylists Create a class say C with 2 properties. Create a List<C> and bind the DataGridView to this List. If you use generics, you can create a generic class C with 2 properties ie.. C<T, V>. Thanks, -Dinesh Chandnani ...Show All
Windows Forms Hello there!
Hi! I want to have access to all the controls on a form. But some controls are in group boxes, tabs and other containers. on th frmMain_Load event handler i wrote this code: ... dim mycontrol as control for each mycontrol in frmMain.controls System.console.writeln( mycontrol.name ) next ... But i can only see the controls which are out of the containers. I need to access ...Show All
Visual Studio Express Editions Help please...
This type of program has been done before but I am using the subject as my first actual progam that I am making. It is a temperature conversion program that converts Fahrenheit, Celsius, Kelvin, and Newton by making a selection of what you want to convert. I finally got my program to work(figures number correctly) but I have one small problem, the program wants to run through every if statement before it finishes, no matter what the user wants to convert. I was guessing all I need is probably a few lines of code but I dont know, and I used a lot of functions(so I become experienced with using them) so if I don't need them just tell me. he ...Show All
