Keith Dorken's Q&A profile
Visual C++ Confused about function prototype signitures from C++/CLI to C#
Hi, I'm trying to write a C++/CLI wrapper class that wraps up a bunch of native C/C++ legacy functions in a new class that any .NET language can use. I've come across some confusing problems with regards to function signatures. For example, say I have a function written in C++/CLI like public ref class LegacyCode { public: static void function1(int ^%year, int ^%month) { // do stuff like calling the equivalent legacy function } } How do I call this function from something like C# public class CSharpDriver { public DoIt() { int myYear; int myMonth; // Call legacy function through wrapper to get the current year and month function1(out myYear, out myMonth); } } ...Show All
.NET Development XslCompiledTransform load large xsl file throw application exception
Hi, Unhandle application exception (w3wp.exe) being throw when the xsl file contains over 2000 lines. The same xsl file is being used with 1.x's XSLTransform class without problem. Does anyone have similar problem Ray It appears the link to the fix for XslCompiledTransform is broken. Can you re-post it I ran into the same problem. Thanks. ...Show All
.NET Development how to the content place holder when using Master pages
I had a problem with Cotent place holder, can I resize it or place it proper way is there any way to do this pls reply................ The location of the Content place holder is determined by the master page being used. These controls can be located like any other controls on an ASP.Net page. Use the properties of the tag within the Master page to control the CPH. If you have any other questions or would like an example let me know, Tomas ...Show All
SQL Server How do you backup a database using sql server 2005 express???
I know there isn't a backup feature but I was wondering if there was a way to back up a database Thanks!!! For those who are interested have a look at the following post, http://www.virtualrealm.com.au/blogs/mykre/archive/2006/09/01/SQL-Agent-for-SQL-Server-Express.aspx I have found a codeproject system that simulates the Agent.... ...Show All
Windows Forms launch condition to check for available disk space
I am trying to add a launch condition to check for available disk space before uses can install my application. I tried to use the PrimaryVolumeSpaceAvailable Property but it looks like it has no value at launch. I also wanted to check the processor speen so I used a registry search to HARDWARE\DESCRIPTION\SYSTEM\CentralProcessor\0 to get key '~Mhz' , its returning the correct value but with a #, I wanted it to return an integer so I can use it to set my cpu speed launch condition. Please help The reason I need to check for disk space is sometimes the application ships with a sql databse which will need to be restored , so I want to make sure that the space for the database is catered for before ...Show All
Game Technologies: DirectX, XNA, XACT, etc. texture problem
Clearly, HLSL has decided to kill me. I hope it doesnt accomplish that....lol anyway, heres the problem. I make one triangle, positioned at: X Y Z -0.5f 0.5f -2f 0.5f 0.5f -2f -0.5f -0.5f -2f and set a texture to it, with coordinates: X Y 0f 0f 1f 0f 0f 1f respectively to the vertices now, heres the shader im using: http://ccc.domaindlx.com/DSRPG/uploads/Pictures/SimpleMapEffect.fx and i get this WTF thing...it first looks like this when i run it(btw, its not a full screen app, i just copy pasted only the window's inside part from the screenshot). http://ccc.domaindlx.com/DSRPG/uploads/Pictures/wtf_0.png but then after about 2 second it just flashes (the triangle) and starts looking like this: http://ccc.domaindlx.com/DSRPG/upl ...Show All
Visual Studio 2008 (Pre-release) ScaleTransform issues
I've created this sample in XamlPad to try to workaround some issues I'm facing when using ScaleTransform. The problems I've found are: 1. Because I'm using RenderTransform, the border has some issues with items which are in front in terms of ZIndex. Is there any way I can solve this in XAML - I know I can try changing the ZIndex property for the items in the listbox when they are selected, but I'm trying to do everything from XAML. - I don't want to use LayoutTransform (which would solve this issue) because I don't want other items in the listbox to move around when the Selected item changes. 2. Moving around with the keyboard inside the ListBox does not seem to work correctly. Is there something wrong with my code ...Show All
Windows Search Technologies WDS 3.0 RTW - Have to reinstall filters
I found that after the install of WDS 3.0 RTW, I had to reinstall my pdf and other filters to get WDS to see them. Interesting - thanks for the feedback. It sounds like the install failed to register the existing IFilters with WDS. Which IFilters did you have to reinstall It may be possible to make sure this doesn't happen in future versions. Paul Nystrom - MSFT ...Show All
Windows Forms How do I package a Hotfix in my installer?
I have a hotfix from Microsoft that is required for my application to work properly. How do I add it to the installer package I am using VS 2005. The hotfix in question is: http://support.microsoft.com/default.aspx/kb/913177/ Jonathan Allen Another approach would be to create a bootstrapper package and install it using the bootstrapper. You can use Bootstrapper Manifest Generator to create the bootstrapper manifest files needed to add it to Visual Studio. http://www.gotdotnet.com/workspaces/workspace.aspx id=ddb4f08c-7d7c-4f44-a009-ea19fc812545 ...Show All
Visual C# string to hash
TextBox1.Text.GetHashCode(); I get the hash code but I can't convert it back to string. How can I do this you cannot get value from hash. Defnition by wikipedia: A hash function (or hash algorithm ) is a way of creating a small digital "fingerprint" from any kind of data. The function chops and mixes (i.e., substitutes or transposes) the data to create the fingerprint, often called a hash value . The hash value is commonly represented as a short string of random-looking letters and numbers ( Binary data written in hexadecimal notation). A good hash function is one that yields few hash collisions in expected input domains. In hash tables and data processing , collisions inhibit the distinguishing ...Show All
SQL Server Delete one of the duplicated row
I have many data in a table in which some rows are duplicated. How can I, for all duplicated rows, delete the extra rows and leave only one You may assume checking one column is enough to tell if a row is duplicated. Thanks Please look at my reply in the thread below for some solutions. You can do this with a single DELETE statement and batch it using SET ROWCOUNT or TOP clause if you have large number of rows to delete. And if you don't have any primary key or unique key on the table then you can use a cursor based approach. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=666011&SiteID=1&PageID=1 ...Show All
Visual C++ what dlls to include
hey all, i recently made (or configured to my liking) an opengl project. when i try to use it on another computer, it tell me i am missing whatever dll(like glu.dll and others i dont know). and when i do get thoughs dlls with the .exe, it opens and then crashes! can any body tell me why and cna you give me a list of dlls i need i am using the header files: glu.h, gl.h, and glut.h thanx, jt oh sweet thanx i found depends. turns out i was right. i put the ones i need with it. ok now to my big problem.... why dose it crash on my other comp ...Show All
Visual Studio Express Editions using VBE across a LAN
Hello! What I have done so far I have just taught myself some VBA where I produced a module inside Excell on my own P.c that displays some statistics from an SQL database held separately on on a server on the LAN (Using a connection string to the SQL Database ) T he Excell file is in use also by other people in my company who have it locally and produce the statistics and reports thanks to the connection string that I refer to above to the remote SQL database. (It works quite well but managing data and displaying the results in a worksheet are quite like knitting jelly) What I want to do next I want to move on and learn VBE and I am wondering about something which is ; I know that I can probably u ...Show All
Visual Basic Help with Opening text files and pictures in the WebBrowser.
I have been making a web browser. I made a menu, which has File > Open. It should open the Open Form form. In the Open Form from, there is a combo box and three buttons (ok, cancel, and browse). I would like to know HOW to get the URL in the combo box to load in the WebBrowser when I press Ok. I also need to know how to get a OpenFileDialog box to open when I press Browse, and then when I press the ok button (on the OpenFileDialog box), the combo box diplays the URL so that I can open it in the WebBrowser. I have tried DESPERATLY to find a solution!!!!! Any help is apreciated. THX, FSPILOT2006 fspilot2006 wrote: I would like to know HOW to get the URL in the combo box to load in the We ...Show All
Windows Search Technologies No Search Results On Intranet
Hello everyone, Our intranet site runs Microsoft Windows SharePoint Services 2.0 on our SBS 2003 Server. I have downloaded WDS and the .adm file and added to group policy. Under the Group Policy Search Setting I have set the Primary intranet search location to Intranet,http://oursite/_layouts/1033/searchresults.aspx SearchString=$w When i search for files/documents all these come up normally on the network. But when i click on the intranet tab, and search for a document the IE browser opens and displays a 'Search Results' page. This page displays Search Results Search for items containing: ********* List Items No items were found matching your query ...Show All
