Gary Varga's Q&A profile
Visual C++ Function pointers and delegates
I'm trying to build a managed wrapper in C++/CLI for an existing static library written in C. I have a class where a few callbacks are needed. In the static library you have a function called "set" which registers the callback. However I'm strugling with some managed vs. unmanaged type problems. Lets say you have a callback with the following prototype: void f1proc(char *szString, int nSomeOtherData); Since I want to use String ^ instead of char ...Show All
.NET Development FORTRAN
Hi Not quite sure if this is the right forum to raise my question, but at least I hope to be pointed in the right direction. We have over the last 25 years developed software, started in FORTRAN and now mainly uses C++. We have used "the mixed language" technics in the microsoft products, to keep our old good working code. We rewrite something that works !!! Now we would like to move to the newest development platform that is Visual studio 2005. ...Show All
SQL Server Is there a way to create a dynamic Insert on Stored Proc?
Hi, I have more than 30 tables and I want to create just one SP for the Insert statement for all of my tables. Is there a way to do this or do i need to create one sp on every table for my Insert stmt. Thanks Does all the 30 tables have same number of column and column name If not, it is better to create one for each table. Even you can use Dynamic SQL to create the insert statement, you will ...Show All
Visual Studio Team System eXtreme Programming Process Template
Hi, Just wondering if anybody knows of an eXtreme Programming Process Template for Beta3 XP is being introduced across all projects in my organisation and concepts such as Iterations which have Stories which have Tasks doesn't match with the MSF Agile process (from what I can see there are 3 fixed iterations with no way of creating new iterations and setting stories under them and so on). Does anybody know of an XP process template for ...Show All
Visual Basic Groupbox Limitations?
I am writing an application to control a couple of devices that I have. All of the control code is written so I am developing the UI. One of the forms that I have put together has eight groupboxes. Two of the groupboxes are on their own. One of these groupboxes contains six buttons. Each of these buttons corresponds to one of the remaining six groupboxes. Clicking on one of these buttons causes the third ...Show All
Visual Studio Package 'Visual Studio Common IDE Package' Failed to load
I recently installed VS 2005 Proffesional and the MSDN Library. Everything was working fine till i Searched for something in the MSDN Library and i got the error: Package 'Visual Studio Common IDE Package' Failed to load in a MsgBox and i could not search MSDN for any help. Otherwise i can still use the Index and the Contents of the Library. I tried uninstalling & re-installing VS 2005 and MSDN Library and also the Document Explorer but t ...Show All
Visual Studio Express Editions sizeof(time_t)
Hi Guys, I've wasted 2 datys trying to find out the reason for the crash when VC6 dll used VC7 dll exporting C API... The reason was in disaligment caused by pretty #ifdef introduced by the developers in the VS 2005... Actually I see no reason in forcing this time_t to be 8 instead of common 4... If someone wants to use 8, so, he can feel free to use 64 bit time value explicitly... I can't but consider this define as weird and dangerous, is ther ...Show All
Windows Forms User Preferences
I'm still very new to writing windows apps so go easy on me. I'm writing a program that is basically a food journal for people doing low-carb diets. There are several things that have been asked for that should really be options and I'm&n ...Show All
SQL Server Change Column Order
How does one go about changing the column order of the data moving thru an SSIS package It'd be nice to able to do this at any point in the package for readability, but where I really need it is in the Flat File Output. I need to deliver the columns in a specific order, and I can't figure out how to do that. This seems to be such a basic question, but I can't find it in Search anywhere. My apologies if it's already been answer ...Show All
Software Development for Windows Vista Approachses for assignments
I would like to create worklist for activities. What would be the best apporach to doing this Would I impliment my own activity that creates a workitem with a URL for a user to navigate to What about getting context into the system of who the current user is and making workflow decisions based on this information Any direction in this area would be helpfull. Thanks in advance, Mardo Mardo, There are several ways to design a s ...Show All
Visual Studio Commandbars problem in Whidbey Beta2 (System.AccessViolationException)
It seems a very simple code does not work any more in Beta2. That is, Controls.Add yields a System.AccessViolationException . Here's an example (taken from a very basic addin, referencing the new Microsoft.VisualStudio.Commandbars): Dim cbX As CommandBar cbX = CType(applicationObject.CommandBars, CommandBars).Item("MenuBar") Dim cbpX As CommandBarPopup cbpX = CType(cbX.Controls.Item("Tools"), CommandBarPopup) Dim cbbX As CommandBarButton Tr ...Show All
Windows Forms how would i do this...
hey all i have a decimal number 12345678.90 is there a quick way to pull out only the 345678 thanks, rodchar Ok, then you just need to adjust the SubString method to always get the last six digits: Math.Floor(12345678.9).ToString.Substring(Math.Floor(12345678.9) ...Show All
Visual Studio Error When Deploying Application
Hi, When I deploy my win app which includes a reportViewer control I get the following message. Unable to install or run this application. The application requires your system to be updated to Microsoft.ReportViewer.WinForms Version 8.0.0.0. Any idea what this error means Terry, that didn't work for my problem of using a ReportViewer in a webform in local mode at a hosted website. By the way, your previous article, "Visual Studio 2005 ...Show All
Visual Studio Slow Performance
Hi, Recently I experience a slow performance from Crystal Report. I just updated my VS2003 to latest VS2005 last week. One of my reports was very slow to load since then. So I created a new small project. It only has one CR with 26 tables, 45 formula fields and several empty sub-reports on the main report. The attached codes show how I call my new Crystal Report. First I set the text of all 45 fo ...Show All
Windows Forms Need a Thread... I think
Hi folks. I've written Windows Form application that copies files. I've noticed that when I give it a large number of files, it stops responding until the copy is complete. How can I put the copy method into a thread so the main gui remains usable Additionally, as the thread copies, I would like to send updates to the Form to show what file it's currently copying and increment a progress bar. I gather a thread (in managed C++) is what I need - c ...Show All
