Gagandeep Singh's Q&A profile
SQL Server Adding Externall DLL functions written in Visual C++
Hi, I'm trying to add exernal functions defined by a third party in a dll. They developed the dll in Visual C++ and is provided as is, with very little additional info about the code. The dll is tested and can be integrated into an application developed with VB.NET but no other experiences are available. I tried to add the functions to SQL Server 2005 Express edition but on attempting to CREATE the ASSEMBLY i get the following error: CREATE ASSEMBLY for assembly 'ThirdPartyDll' failed because assembly 'ThirdPartyDll' is malformed or not a pure .NET assembly. Unverifiable PE Header/native stub. No rows affected. (0 row(s) returned) @RETURN_VALUE = -6 Finished running [dbo].[ThirdPartyDl ...Show All
.NET Development Bad Data Error with Decryption
I'm using TripleDESCryptoServiceProvider to encrypt and decrypt Xml files that are generated on the fly in two different places. In one part I'm allowing a user to download file, an XmlWriter writes to my CryptoStream which writes straight to the Response.OutputStream. Before any writing I call the following Response.Clear(); Response.AddHeader("content-disposition","attachment; filename=myXml.xml"); Response.ContentType = "text/xml"; Response.BufferOutput = true; The browser prompts for download, and everything is fine. I can then upload the file and have an XmlReader read from my CryptoStream which reads from FileUploader.PostedFile.InputStream and everything works fine. Now in the other place, I have an XmlWriter write to my Cry ...Show All
Visual C++ problem while compiling VC++.NET using 2005
Hai everybody, Today only i have installed VisualStudio2005. Following error is coming while compiling. "Project : error PRJ0003 : Error spawning 'resgen.exe'." Just i have taken windows application from wizard and compiled it. It results above error. Could u please let me know the cause of error Regards, Ravindra Take a look at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=74805&SiteID=1 Hope this helps! Thanks, Ayman Shoukry VC++ Team ...Show All
Windows Forms POPUP menu accessibility
Hi, I think I'm in the wrong forum...but anyway... I want to access a popup (window.createpopup) menu with the keyboard...Is that possible I read that you can't get the focus on a popup... The type of popup that I have is the first one on this page: http://msdn.microsoft.com/workshop/samples/author/dhtml/popup/usingpopup.htm ...Show All
Smart Device Development message "project creation failed"
Hi, I want to write a Smart Device DLL using Visual C++ 2005. However, when I try to create a C++ project using the "MFC Smart Device DLL" template, I get an error back saying "project creation failed". I get the same error regardless of which type of C++ Smart Device project I try to create, which makes it difficult for me to write any native application for a smart device. I've searched the forum and MSDN for information about this type of error, but haven't been able to find anything. Any ideas about what the problem might be and how to fix it I'm using Visual Studio 2005 Standard on Windows XP SP2. Thanks, Phillip You may be using IE7 or Vista, this had the problem, we have fixed ...Show All
Internet Explorer Development IE7 and page-break-before
I have some code that uses page-break-before: always that works fine in IE6, but in IE7, the page-break-before is ignored. Was there a change in this behavior that I have not seen documented I also am having this issue and was unable to get the solution provided above to work. I am using the page-break-before style within a table. stOutput = "<table width = 100% style='page-break-before:always' border=0 cellpadding=4><font size = '1'> <tr><td style='font-weight:700;font-size:20' align='center'colspan='12'>" & left(stclient,5) & "     " & stClientName & " &n ...Show All
Visual Studio Team System Nickname for a Build?
Hi -- I'm wondering if there is some way to give a nickname to a build. For example, I've got a build whose name is: Main Build_20060922.1. I'd like to be able to either change this, or add to it a tag such as 1.7RC1 so that its easy to see that this build is the first release candidate for version 1.7 of our application. Is there a way to do this Terry. There is no out of the box way to do this. You could probably use the UpdateBuildNumberAndDropLocation web method ( http://msdn2.microsoft.com/en-us/library/microsoft.teamfoundation.build.proxy.buildstore.updatebuildnumberanddroplocation.aspx ) to change the actual build number (name) to "1.7RC1". If you're unsure of how to get the BuildUri for this method, ...Show All
.NET Development Do I need to Upgrade to .Net Framework 2.0
Hello!, We are using Visual Studio.NET 2003 with .Net Framework 1.1. The server is windows 2003 server SP1. I want to know If we have to upgrade to VS.NET 2005 and .Net Framework 2.0/3.0. If yes, how do I do it. VS.NET 2003 works fine with our needs, but I don't see much of VS.NET 2003 nowadays. Please suggest. Thanks, Krishna. the second question of how to migrate to VS 2005 is a valid question. Please post a similar question in Visual Studio Setup and Installation forum. I would move this thread but I see value to creating a new one. ...Show All
Visual C# How to ... ? work with MS Excel
Good afternoon. How to unload data in the called fields (i.e. cells we set to it a symbolical name (Insert-> Name->Create in Excel) to not become attached to concrete numbers of lines and columns) or In what it is better to create reports So that the user could change names in caps of tables and other static information.. In patterns it (is desirable) Thanks. ...Show All
SQL Server Problem with slowly delete many filtered rows in table.
I use cursor for delete 20 milions rows from one table, but it's very slowly. I want use delete rows in a non-resource consuming manner. I don't need from transaction log, but don't know how turn off it. Please help me! 10x Hi, maybe I am wrong but do you this this could work Delete MyTable where exists (select * from OtherTable where OtherTable.MyTable_ID = MyTable.ID) ...Show All
.NET Development How increases the CodeCompileUnit in method to the code file in
Hi all, I'm developing a designer.I want to use CodeCompileUnit to produce a method code,then increases these code to the code file appropriate position(Looks like the dissimilarity which in vs does),ask how I should do Also or generates CodeCompileUnit by code file,how does that do -thanks The CodeGeneratorOptions class has a property on it called VerbatimOrder. This should allow you to organize your ouput in the way you want. At this moment we do not have plans to support Parse. Thanks. ...Show All
SQL Server PAE, AWE and pagefile
Can you please consider the following scenario: Windows Server 2003 Enterprise Edition (32-bit) SQL 2000 Enterprise Edition Server with 8GB memory 1. If we enable /3GB and /PAE, the server can see and use 8GB memory, OS has 1GB, applications can use the remaining 7GB, can install 2 instances of SQL with a max server mem set to 3GB each, SQL should be able to allocate memory from the upper 4GB RAM. (True / False) 2. We only need to enable AWE if any single instance need to cache more than 4GB of data so we could for example configure one instance with AWE and set the max mem to 5GB and set the second instance to use 2GB max . (True / False). 3. 32-bit windows server OS can support a maximum of 4GB virtual memo ...Show All
Visual Studio 2008 (Pre-release) WME preview in WPF Control
Hi all, Why I am trying to do is to display the preview output of Windows Media Encoder (WME9) in a WPF Control. This is done by passing a HWND to the WME library - so this was easily achieved with Windows Forms by passing the Handle of a Panel, for example... I know that I could use a HwndHost to embed a Windows.Forms.Panel in my WPF app, but the restrictions implied (always on top) are too strong for me. I've read here and here about ways to use a WPF Image Control and refresh its Source property by using the Windows.Interop.Imaging conversion routines. Last step for me : understand how to create a BitmapSource object from the HWND (or just an allocated IntPtr ) passed to WME... Thank you very much for your help ! Thoma ...Show All
Windows Forms change not reflected in the underlying data object
This is a basic question. Maybe there is a simple solution, but I just cannot find it. I have a TextBox which is bound to a data object's property. This data object implements IEditableObject interface. So this is a two-way binding . The data can be shown in the GUI control and the changes made through the GUI control will be reflected in the underlying data object. The code to bind is shown below. nameTextBox.DataBindings.Add("Text", myObject, "Name"); But the trouble is that I have to press Tab key to leave the TextBox before the changes can be reflected in the data object. If I just change the text from "Name" to "Name 2" , and then press the Save button without pressing the Tab key, ...Show All
Visual C++ compiliing a win32 vc++ 6.0 into win64 application
hi, i got my existing application in vc++6.0 which is win32 application. now i want to make my existing application into win 64 application. in vs.net editor i have the option of compiling to win64 app. but using vc++ 6.0 how can i compile into win64 application.because it support only win 32 development. can any one help regarding this. Regards Baji Prasad.B AsianCERC Information Technology Limited Bangalore India. You should upgrade to VC2005 and convert the project. A few adjustments and changes may be required to your project, as well as any libraries it depends upon, be wary of that. In VC2005 you will be able to compile for x64. ...Show All
