hghumphrey's Q&A profile
Visual C++ Calling a new managed DLL from an old Visual Studio 6.0 behemoth
Our company has several very large projects using Visual Studio 6.0, and I'm creating a new .NET module that will be used with newer .NET products as well as the behemoth dinosaurs. Converting the old products to use Visual Studio 2005 is not an option right now because of time. Is it possible to create a DLL in Visual Studio 2005 which primarily uses managed code that can be used by a Visual Studio 6.0 application If so, how It appears like I can export functions that can be called from a 6.0 app, and I've read articles on how to call managed code from unmanaged code, but I'm not sure how to instantiate ...Show All
Windows Forms "Click Once" queries
Dear All, I have a few questions regarding Click Once: 1. Does it support Non .net Active-X Controls in WinForms 2. Does it allow pre-compliation 3. Is there a way to delete the previous cache automatically 4. Does it use IEExec in the background & ...Show All
Visual Basic checking properties of folders
Hi all, I am trying to run some processes to tidy up our SAN storage. A couple of the things I am struggling with are : 1) Checking the security of the folder properties to check who the owner is 2) Checking the security of the folder to check if "Inherit" is ticked 3) Search a text file for specific text I already have a process to run SETACL to fix ownership and permissions, however this will run regardless. What I want to do is first check the Ownership and permissions before I run the process. With regards to the 3rd point, the SETACL pipes the results to a text file, so I wa ...Show All
SQL Server Troubles with XML Bulk Load
Hi: I have the following xml file: <countries> <country> <code>004</code> <description>Spain</description> <iso2>null</iso2> </country> </countries> i need that when i'm doing the bulk load the value of iso2 element would be stored at BBDD like null value and not like 'null' string. somebody could help me Bulkload does not support this type of transformation. You could either transform your data before bulkloading so as to remove those elements that are null, or you could bulkload into a temp table, a ...Show All
Windows Forms How to retrive new file from Directory/Subdirectory
Hi, I want to flash a message when sombody copy or create any new file in a perticular directory/sub-directory in vb.net. Right now I have to check each and every directory/sub-directory to find out any new file. how can I dot that. And I have to scan directory remotly. b'coz the data/ directory is stored on Unix server. Thanks manoj ...Show All
Visual Basic converting a buffer value
I am trying to add a 16bit value to my buffer. I have: b(132116) = Convert.ToUInt16(tbHP.Text) where: b is my buffer array tbHP.Text is the numeric value to add to the buffer. The error I get says an arithmetic overflow occured. I am guessing this is because it is trying to set a 16bit value to an sbyte. I don't know how to correct this. Any ideas Troy, Is the buffer a byte buffer You didn't specify the datatype. Again, you cannot add anything larger than an eight bit entity to a byte buffer - ever.... there are a million ways to do this. dim a as ushort = Convert.ToUInt16(tbHP.Text) ...Show All
Software Development for Windows Vista Lab exercises for Beta 2
Are the lab exercises available for Beta2 Or will the Beta1 lab work with the January CTP Thanks Yes, the labs are available. See http://msdn.microsoft.com/workflow and download from the downloads box on the right. No, the Beta 1 labs don't work with the Jan CTP of WinFX. Regards, Paul ...Show All
Software Development for Windows Vista How to creat a filter with multiple inputs?
Hi, I am trying to create a directshow filter which has 2 input pins and 1 output pin . I have added the pin details to the array of AMOVIESETUP_PIN's, and I have changed the umber of pins in the AMOVIESETUP_FILTER structure. Override the GetPinCount,GetPin. class CAudioSwichInPlaceFilter : public CTransInPlaceFilter ,public ISpecifyPropertyPages ,public IAudioSwControler { public: CAudioSwichInPlaceFilter(TCHAR *tszName, LPUNKNOWN punk, HRESULT *phr); virtual ~CAudioSwichInPlaceFilter(); public: DECLARE_I ...Show All
Windows Forms Opening a form in design view causes a CC checkout
Hello, Is there anyone here that uses Clear Case integration with VS .NET I'm having a problem that causes a immediate checkout when I open a form in the designer. Does anyone know why double-clicking on a form.cs file in the Solution Explorer causes that file to be "touched" Is there a way I can turn this off so that I can view the visual representation of the form without changing the file attributes to read/write I believe that is why the file gets checkout of Clear Case, because when you edit a locked file, it will unlock it and check it out. But I need to view the design without unlocking the file. Thanks ...Show All
Windows Forms DataGridView Problem
In my data grid view control have two columns (Column A and B) When I edit A column and press enter to end edit, the control will goto next row of column A. This is a problem that I want to goto column B when I finish to edit column A. But I don't know how to do it.... Please help me No body know how to do it Is DataGridView limitation ...Show All
Visual Basic Datagrid Scroll Down Event
Sup everyone.. I got a datagrid in my form. When it reaches certain number of rows the vertical scroll bar will appear. Im trying to implement a down button, that when clicking on it, the datagrid scrolls down certain number of rows just like if I was clicking on the verticall scroll bar. How can I implement this What event has to be used Dim ctl As Control, scrollCtl As VScrollBar For Each ctl In DataGrid1.Controls If TypeOf (ctl) Is VScrollBar Then scrollCtl = ctl With scrollCtl If .Value < .Maximum Then .Value += 1 DataGrid1.CurrentRowIndex += 1 End If End With E ...Show All
Visual Studio Express Editions SQL server with VB express
Hi all I have a VB project going, which I am using with an integrated SQL database. I have set up the database, with a table, and a form to enter the data, but I can't work out how to get what I type in the text boxes to be inputted intot he database. I have a button on my form that VB created for me, but I dont know the code to get it working. Any help would be greatly appreciated. Thanks in advance, Check that the property "Copy to Output directory" of the dataset .xsd file in the solution explorer is set to "do not copy". For some reason the default is to work on a copy of the database so it looks like yo ...Show All
Visual C++ How to install a Debugger Visualizer for a C++ object in Visual Studio 2005?
How to install a Debugger Visualizer for a C++ object in Visual Studio 2005 I could happily and successfully follow the tutorial for creating a Debugger Visualizer in Visual Studio 2005 Beta 2 in C#. But there was no information about creating such in C++. How to do it What I mean by creating such in C++ is having an object in a C++ application visualised by a Debugger Visualizer (written in any language). Besides, I'm sure it's possible, becuase Debugger Visualizers is such a great invention and such a large step towards the future of programming, that it would be a terrible waste to not implement it ...Show All
Visual Studio can i assign diffrent label to an item?
in the source safe help,it say: --------------------------------- If you assign a label to a version that already has a label, or if you assign a label to an item that already uses that label for a different version, the old label is replaced. In either case, VSS issues a warning before replacing the old label. --------------------------------- but,if i want to assign diffrent label for diffrent version to an item,can i do that if can,how can i do If you want to avoid the dialog use the -I-Y option, but make sure you test your command lines first. The -I- will apply to ALL the possible dialog queries. ...Show All
.NET Development "Access is denied" errors from CounterSample.Calculate (new with RC1)
With the RC1 build, I am seeing a new problem that I haven't been able to find a solution to. We have a WinForms app that uses a remote object hosted in a Windows NT service. The service runs as the Local System account. We are sampling performance counters and logging results in the remote object. Because Local System doesn't have the right permissions to read the performance counters (which may be on a remote server), we pass credentials to the remote object. Before it accesses the performance counters, it impersonates a user with the correct permissions. This all worked well with 1.1 and Beta2. But with RC1 it throws an exception whe ...Show All
