jcoburn's Q&A profile
Visual C++ dllexport and function templates specializations
Let's say I have the following template function: Template <typename T> void Fun(T t); I'd like to be able to implement some specializations of Fun in a first DLL (DLL_1), some other specializations in a second (DLL_2), and still some other in a third (DLL_3), but DLL_2 and DLL_3 may make use of specializations implemented in DLL_1. So in DLL_2, Fun<T> may be both imported and exported, depending on T. I somehow managed ...Show All
Visual C++ ultra fast binary writes
Hello, can anyone please help... This is a bit of a general question. My C knowledge is limited to the K&R book. I have used the fsutil tool on windows xp and noticed that the command: fsutil file createnew c:\$delthis.bin 1234567890 which creates a file over a gigabyte in size is extremely fast - it takes about a second on a PIII 800MHz with 256MB memory. This seems to be amazing given that it zeros the whole file, rat ...Show All
.NET Development How to get Dictionary<Tkey, TValue> entry information through reflection?
I have been working on some code that probe through the entries of a generic dictionary Dictionary < TKey , TValue > , using reflection. Unlike working with Hashtable, it's not easy to find out the entries' key and value information. Here is the code depict the problem. Suppose I have a class hold two fields: public class MyClass { Dictionary < string , DateTime > m_dateTimeDictionary; ...Show All
.NET Development Creating an instance of the COM component with CLSID
Hello, Please can someone assist me with the following issue that I have with COM Interoperability. I am using the new .NET 2.0 Framework. I have created a production capture web application which allows our operation staff to capture production into our ERP system through a web interface which is quick and provides all the necessary data verification. I access the PROTEAN ERP environment using the system API’ ...Show All
Visual Studio Team System Error code is 26403
I get a very generic message during the upgrade about the source possibily being corupt. --------------------------- Microsoft Visual Studio 2005 Team Foundation Server Setup --------------------------- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 26403. --------------------------- OK --------------------------- I checked the in ...Show All
.NET Development How to give an exe the permissions it wants
I'm trying to write a c# CGI app. When i simply use Console.WriteLine to output my results, everything is fine. But I want to use HTMLTextWriter and when I do, I get the following error below. When I run the program in a console it works fine, but not when I access it from a browser. The directory has read/execute permissions for the IIS user account, and I've explicitly stated [ AspNetHostingPermission ( SecurityAction .Demand, Lev ...Show All
Windows Forms Double Click between Datagrid Columns to Expand Column
How does the datagrid know to expand the width of the column to the length of the content (text) in the column. I would like to programmatically mimic this behavior. My app allows the user to select the column that they would like&n ...Show All
Visual Studio Tools for Office Installed OutLook 2003 Add-in not available to "All Users"
I need the Add-In to be available to all users on a machine. I'm working from MSDN documents "Deploying Visual Studio 2005 Tools for Office Solution Using Windows Installer (Part 1 of 2) & (Part 2 of 2). I'm using the example in (Part 2 of 2), page 11 verbatim. /assemblyName="OutlookAddin.dll" /targetDir="[TARGETDIR]\" /solutionCodeGroupName=" MyCompanyName .OutlookAddin" /solutionCodeGroupDesc ...Show All
Visual C++ VCBuild and custom target platform
Hi, Here is the point: I have a C/C++ project under Visual Studio and I want to add my own new target platform; This platform is very similar to Win32 in term of settings but I want to launch another compiler for C and C++ files and another linker for .obj. What's the complete process to do that How can i create a new target platform and reference it to Visual Studio How create custom task for VCBuild and reference it for Visual Studio ...Show All
Visual Basic Please Help! Fix my VB Code
I am using using the VB project available at: http://www.developerfusion.co.uk/show/1910/1/redir/ I downloaded the Visual Studio File and run the file from Visual Studio.NET 2003 (it upgrades automatically). After that I built the solution, type text in the text box and press the button- I don't hear the voice reading the text. The other buttons just start an application; it suppose to speak what application is being launched. Wh ...Show All
Visual Studio Project.Build (string[] targetNames, IDictionary hashtable)
This code isn't working as I expected. Actually it doesn't write anything. This test is simple form of full test. In full test I used my own task that had [Output] attribute on property used for output. It didn't change anything. Engine engine; Project project; IDictionary hashtable = new Hashtable (); string documentString = @" <Project xmlns='http://schemas.microsoft.com/developer/msbuild/2003'> ...Show All
Windows Forms developing big database driven applications...
Hi, I have to manage a sql database with some tables and some tens of fields... is it good programming and good for performance to select, insert, delete, etc... fields the same way I would do with simpler/fewer db/fields Thanks ...Show All
Visual Studio Express Editions Registering DLL with VB .NET Express Edition
I may have asked this before, but I don't think I got an answer, and I just reinstalled my OS, so I don't have any of my old stuff. I made a DLL in VB Express edition, and I need to register it with COM. I tried regsvr32, but it said something like "The DLL was loaded but the DllServer entry point could not be found". I made a DLL in Visual Studio awhile ago, and I seem to remember that there was a check box that said "register ...Show All
Visual Basic Focus not setting on text box
I have a sub that goes off when a tab selection is changed. The only part of it that doesn't seem to work right is the part that sets the focus on the text box. It seem to be a trivial thing to do but I can't seem to get it to work. I have other focus objects which work in other places but this one doesn't seem to want to work. I know the Text boxes are correct and do not get any errors. I have walked though the code in ...Show All
Windows Forms Deployment of and IE Toolbar
Hello all. I've been having problems for about a month now trying to get an app deployed correctly via Studio .Net 2k3's deployment project. I created a setup project within my solution. I have 3 dll's that have to be registered in ...Show All
