Mateusz Rajca's Q&A profile
Visual C++ error C3641 - invalid calling convention
Hi all, I'm new to VS2005 C++ / .NET and I've inherited some code that requires porting to VS2005 C++ .NET. I get the following error when compiling with clr/pure: error C3641: 'CWThread::Redirector' : invalid calling convention '__stdcall ' for function compiled with /clr:pure or /clr:safe The relevant offneding class code is: //The method to cast the inheriting classes Run method to the required type. static DWORD WINAPI Redirector( LPVOID Arg ){ CWThread* ThreadPtr = (CWThread*) Arg; return ThreadPtr->RunWrapper(); } //Wrapper method for the Run method DWORD RunWrapper( void ){ TVoidPtr ResultPtr; //Call the run method R ...Show All
Windows Search Technologies CAN SOMEONE HELP PLEASE? WDS STILL NOT WORKING
Hi Everybody, It's getting very frustrating that WDS Beta 2 is still not working for me. It only works from within Outlook 2007 beta 2 technical refresh 2, but i always get " NOTHING FOUND " from the normal Search Deskbar.This while i basically went through all possible settings 100 times and installed, deinstalled and reinstalled the product multiple times, the last two weeks. Also if i install another search engine, like your friend Google or Copernic, it works instantly. Something must be broken somewhere, but everything else on my computer is working fine and actually it's quite a fresh install. Can somebody please make a point about this and help me out Am i the only one with this problem, i can't imagine. Sure, ...Show All
Visual C# Copying Files
Hi Everyone, I needed a little help with copying a certain file type from one folder into another. For instance copying all the .dll files from one folder into another . All help is appreciated I know i can use the System.IO.File.Copy to do it but how do i specify just a certain file type not a file Agent00 wrote: Hi, Does anybody know why I can't copy/move files from "Temporary Internet Files", but I can for other folder Thanks in advance Jason This thread was marked as complete, you might want to post your own thread with that question ...Show All
Visual Studio Generate documentation under .Net 2.0?
I really need to generate some documentation under .Net 2.0. I know that this issue has been raised in a previous post few month ago, but no explicit solution has been provided. Also the NDoc project seems dead (as suggest the broken wiki). Does anyone has a practical (even minimal) solution to generate documentation for .Net 2.0 Thanks in advance, Joannes Hi All, If you haven't already seen this, here is the hyperlink to the latest NDoc05 Beta on sourceforge: http://sourceforge.net/project/showfiles.php group_id=163095 Hope this helps, Kind regards, Frank M. Palinkas MCP, MCT, MCSE, MCDBA, A+ Microsoft Registered Partner Senior Technical Communicator & Web Accessibility Desig ...Show All
Visual Basic Backgroundworker?
Does anyone know how to add a backgroundworker to this class This is my main form's code below. I want the user to click the btnImport_Click button and not freeze up the form. Imports System Imports System.IO Imports System.Windows.Forms Public Class Form1 Inherits Form Dim ds As DataSet Dim bs As BindingSource Private Sub btnImport_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnImport.Click 'verify a file was choosen If ComboBox1.Text = "Select a file..." Then MessageBox.Show( "Please select a file from the drop down box." , "Try again..." ) Exit Sub Else Me .Cursor = Cursors.WaitCursor ...Show All
.NET Development export to excel
how can i export the data from gridview to excel file without do any looping by using .net framework 1.1. If my data is too large it is posible to export so there solution is convert it to xml first then transfer the xml to the excel mode can you show me some of your code currently im using SQL server direct covert to excel by using looping method, its very slow. thanks ...Show All
Visual Studio Team System XML Schema definition
I have tried to access the XML schema definiton so I can make changes to my template and I am getting a "not found" error for http://schemas.microsoft.com/VisualStudio/2005/workitemtracking/typedef What's up Hi mariso, The url that you are trying to get is just the NAMESPACE of the xml schema...not the REAL URL page where you can see the valid content....else...u can try the recommended url from Subodh Sohoni Thanks, Kathir ...Show All
Visual Studio 2008 (Pre-release) How to bind values to the Grid in WPF?
I have created a Grid object and added column and row definitions to the Grid. I want to bind the data for the grid columns. Is there any way to bind the data for the Grid as like normal VS .Net 2003 (i.e. DataGrid1.DataSource = ds) If it is not possible in WPF, how can i bind the values to the Grid in WPF. OTHER IMPORTANT Thing is I want to create a DataGrid which is to be good look-and feel (Which should not be like normal WinForms grid, instead it should be good style as with moulded borders, using nice colors, and should also perform event handling.(such as mouse move, mouseover,dragover..) It should also allow us to add any type of controls(such as Calender control, dropdownlist, popup menus, context menus). It also ha ...Show All
Smart Device Development Using Device Emulator to support non-local WinMobile users
Greetings, I'd like to use the DE to support multiple WM devices, all apart from my physical location. Ideally, I'd like each emulator image to run the same ROM image as the deployed device and have the same appearance. From the emulator's help file, it seems I can extract a run-time image from a connected physical device, so it looks like I can handle the first desired item. I've looked high and low for emulator skins without luck. Barry Bond's August 06 link http://msdn.microsoft.com/mobility/downloads/Emulator/default.aspx,%20lists is not found any longer. Lastly, I have downloaded, via Verizon & UT Starcom, the AKU 2.2 update for its XV-6700. The ROMS are in .nbf. Any development tools to make them usable with the emula ...Show All
SQL Server Trouble with IF statement
Ok, I'm about to pull all my hair out. This is quite an easy query but it's not working. IF ( SELECT @@VERSION ) LIKE 'Microsoft SQL Server 2000%' BEGIN SELECT * FROM msdb .. sysjobschedules END IF ( SELECT @@VERSION ) LIKE 'Microsoft SQL Server 2005%' BEGIN SELECT * FROM MSDB .. SYSJOBS END This does not work either: IF ( SELECT @@VERSION ) LIKE 'Microsoft SQL Server 2000%' BEGIN SELECT * FROM msdb .. sysjobschedules END ELSE BEGIN SELECT * FROM MSDB .. SYSJOBS END Nomatter what SQL Server version I use to run the script, it runs the complete script as if there is no IF statement Does anyone see what I'm doing wrong here Thanks! Worf you need an extra sp ...Show All
.NET Development FtpWebRequest.EnableSsl
The code works with request.EnableSsl = false but does NOT work when request.EnableSsl = true I access a remote server running Windows Server 2003 Standard x64 Edition Service Pack 1 I receive an error message: 500 'AUTH TLS': command not understood I'm using the MSDN sample code to list files on server. I have added the following code to the sample: request.UsePassive = false; request.EnableSsl = false; request.Credentials = new NetworkCredentials("actual username", "actual password"); I have replaced dummy values in the code below for username, password and ip address Again, the code works with request.EnableSsl = false but does not work when request.EnableSsl = true I would also appreciate any insig ...Show All
Visual Studio Express Editions Show what is going on faster
When I have a program doing something that takes a few minutes, I like to show them the status, so they know that it is not locked up. The progress bar is a pretty good solution, if you know how many 'things' there are. The label and text or even button text works, but slows the program down quite a bit when it is refreshed. A very unique solution I have found is to create a new window form. Remove all the buttons from it, lock it into the top view (always on top), and resize it so it JUST shows the title bar. Make it invisible. Now, when you need it, call it as shown: dim fr as new formname fr.show fr.text = "Loading record " & record & " of " & totalRecords fr.refresh Update it when y ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Screen dimensions for the 360
I'm wanting to port my XNA Beta 2 games across to the 360 but before I start I have a couple of questions about the screen resolution. I'm wanting to be able to support standard def 4:3 and 16:9 as well as high def 4:3 and 16:9. Now, for the aspect ratio, I'm assuming I can just create a project matrix with the correct ratio, like: Matrix.CreatePerspectiveFieldOfView(MathHelper.ToRadians(45.0f), 16.0f / 9.0f, 1.0f, 10000.0f); ...for a 16:9 ratio. But, what resolution would I have to set the screen to for the standard def and high def I'm assuming that it defaults to a standard def resolution but I'm not sure what or even how to go about changing it. Please help. 1280x720 and 1920x1080 are 16:9 resolutions. ...Show All
Visual Studio 2008 (Pre-release) Using Microsoft.Expression.DesignSurface.dll
Hi. Am I allowed to reference Microsoft.Expression.DesignSurface.dll in my project I'm trying to create some PowerPoint like application. The end-user should be able to place and drag elemets on a canvas. I found the framework Adorner implementation problematic for such uses (mouse and performace issues), and I'd like to use the Blend implementation, which includes rich model for it. Thanks. ...Show All
Visual Studio 2008 (Pre-release) RC1: Parsing issue?
When I try to open a page in Cider, I get a parsing error from my main application XAML. Here's the error: Error 1 Value '/Library;component/Skin/Default/SkinStyle.xaml' cannot be assigned to property 'Source'. C:\...\App.xaml 8 29 Here's the XAML: < Application x:Class = " App " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " > < Application.Resources > < ResourceDictionary > < ResourceDictionary.MergedDictionaries > < ResourceDictionary Source = " /Library;component/Skin/Default/SkinStyle.xaml " /> </ ResourceDictionar ...Show All
