SnowJim's Q&A profile
Visual Basic Using virtual function in VB.NET from C++ DLL
Hi, I'm running into a problem when trying to use class interfaces from this library called Audiere. The library was written in C++ as virtual functions that were COM compatible. To use the interface you call a function in the DLL that returns a pointer to the interface (Factory ). They are bindings for Purebasic and Delphi that use the interfaces directly. I made a binding for the D language using interfaces that inherited from the IUnknown int ...Show All
Visual C# typedef-equivalent for shared tentative types?
(This topic has been touched on here and here .) Use case: Developers are working concurrently on a system where some details of the implementation remain unsettled. One of the details is whether a particular Id will be a string or an integer. We can write: using PlantId = Int32; using AnimalId = String; class Plants : List<PlantId> {} class Animals : List<AnimalId> {} void useList(Plants p) { PlantId firstPlant = p[0]; TextBox1.T ...Show All
Visual Basic How to make slideshow transition with Picturebox
You've seen those fancy wipes, fades, cut and swirls in slideshows... now, how do you do it with the Picturebox Yes, that's because the picture box is not designed to be moved like that, and it's very existence adds overhead. And yes, Windows Forms have a double buffer mode that gets rid of the flicker, when you draw the bitmaps yourself. So, you're right, that's one way in which the new framework h ...Show All
Visual C# passing arrays to unmanaged functions - best way ?
The situation is the following: I've got the unmanaged function void cblas_zaxpy( int N, DoubleComplex* alpha, DoubleComplex* X, int incX, DoubleComplex* Y, int incY); [StructLayout(LayoutKind.Sequential)] struct DoubleComplex { public double real;public double imag; } form > atlas.dll < (in the original definition the pointers are void* ). The function calculates B = B + alpha*A for complex n ...Show All
SQL Server Parent Child Relationship
I created a parent child relationship in SA 2005. It works great, except when adding it to the cube and browsing it. It shows the ID instead of the Name attribute. How do I make it show the name attribute Thanks in advance, Mardo Suppose you have the following columns in your table: ID - Integer. Primary key column of your table ParentID - Integer. The id of the parent object. Name - String. The name of the object identified by I ...Show All
SQL Server SQL Mobile Installation Problem on Device
I have been unable to properly install SQL Mobile 2005 on my armv4i windows CE 5 device. Below is a summary of what I have found and done. Any help in resolving my issue will be appreaciated. Thanks in advance for your help. Symptoms: No errors occur during installation of SQL Mobile on the device via cab files (either deployed through VS2005 or manually copied and installed on the device) SQL Mobile 2005 appears to be instal ...Show All
Windows Forms Setting the Connection String Just Once
I have Midi application that requires just two different connection strings, one for my dev environment and one for production. The main form is frmMain. The main form has a function that detects whidh connection is sucessful. This is called in&nb ...Show All
Visual Studio Team System How to spawn Team Explorer
Is it possible to launch Team Explorer client from a web page Something like URL to link from Team Project Portal. Preferably pointing directly to the related project. obs.: I've tried to do that using a script with shell command, but my users have VS2003 installed in their machines too, and in some cases it gets launched instead of VS2005 (when running DevEnv.exe). Thanks, Max You could tweak "Content ...Show All
Visual Studio How to display "ADD Webreference Dialog Box" programmitically
Hi, Can anybody please tell me how to display "ADD Webreference Dialog Box". We are trying to display it using "AddWebReferenceDlg" of Interface "IVSAddWebReferenceDlg" but Dialog box is not coming up. Can anybody please let me know if their is another method to display the dialog box. any example/Sample code wud be helpful. Thanx in advance. Regards Kiran ...Show All
Visual Studio Vertical Multi-page Crosstab
I am trying to make a Crystal Report from a customer table. My report should display the customer information for each year in separate columns, like below: year=2003 year=2004 ... SummarizedField1 SummarizedField1 ... SummarizedField2 SummarizedField2 SummarizedField3 SummarizedField3 ... ... ... ... note: "year" is a Row field and Field1,... are Summary fields. The CustomerTable fields are like this: <ID#, year, Field1,Fi ...Show All
Windows Forms Progress Bar fill out
I have tried to show a progress bar within the fill out process of a Table.Since i am filling the table from a clase not in the form, i don´t know how can I show the ProgressBar. I have just tried to define the ProgressBar a ...Show All
Visual Basic Splash Screen Problems
Using VS 2005, I am using the splash screen facility within VB and within the code, having it run some general maintenance. The main exe has 5 different screens which can load depending on the command line parameter. The problem I'm experiencing (and having a lot of feedback from users) is the correct screen loads, the splash screen unloads but rather than return focus to the correct screen, the application on screen before the program was laun ...Show All
Visual Studio Express Editions Problem isolating COM reference...
Warning 1 Problem isolating COM reference 'MSWinsockLib': Registry key 'HKEY_CLASSES_ROOT\CLSID\{248dd896-bb45-11cf-9abc-0080c7e7b78d}\Implemented Categories\{0DE86A52-2BAA-11CF-A229-00AA003D7352}' was not imported. EB_Launchpad how can i resolve this warning/error http://msdn2.microsoft.com/ms228225.aspx ...Show All
Visual Studio 2008 (Pre-release) save canvas to image?
Hi all, question... does anyone know if it is possible to save the visual state of a canvas (or some other such visual object) as an image (then save to harddrive). I'm basically creating a very simple photoshop-like program (with Canvas as the place where a composition of images and shapes are shown). I would like to be able to save this composition down to the harddrive, as a jpg, or tif, etc... I've done this with GDI+ in the past.& ...Show All
SQL Server Work tables/bookmark lookups
I notice that SQL Server 2005 creates worktables where SQL 2000 does not. Often these work tables appear in STATISTICS IO, but they show a 0 scan count and 0 logical reads. These worktables often appear to be substituted for bookmark lookups. Has the optimizer decided to use worktables instead of bookmark lookups (often resulting in a higher cost plan) Sharon Hi Sharon, ...Show All
