DarkDragon03's Q&A profile
Visual C++ C file in C++ /clr project
I want to use a file with a .c extension in a /clr WinForm project. I get an error that the file cannot be compiled with this option. I thought that putting __nogc keyword on top of source code in that file will orient the compiler but it did not help. What is an acceptable way of making such a hybrid project. I downloaded this Winsock demo file from a disk, it is quite old but it works fine when I tested it separately. Is it possible to include this file in a /clr project and call functions from that file that I need Or I have to make a DLL out of this file and call functions from there My OS is Win2K. Thanks. What does that ...Show All
SQL Server print blank page
i export my report to pdf and its leaving one blank page with every alternative page is there any setting thanks Make sure your layout, pagesize and margins all agree. Also, search this forum. This topic has been addressed several times in the past. ...Show All
Visual C# Convert from string to DateTime
I have a problem to convert string into DateTime. "20060425185231" like "yyyyMMddhhmmss" and i want to convert it to a DateTime. I know that i can convert from string if i use this sting "MM/dd/yyyy hh:mm:ss" but isn't there any easier way to convert. Elseway i have to convert string to int and then split it up in char array, and then put it together again. There's no way to convert this. Your easiest bet is probably to do some string mashing to insert the slashes, then do the conversion. ...Show All
Visual Studio 2008 (Pre-release) Are drag-and-drop operations supported in WBAs?
Are drag-and-drop operations supported in Web Browser Applications I have tried to drag and drop a file from the desktop to an element, but it seems it is not working. Is it a security restriction Nevermind ... I was trying to see if it's possible for a simpler way to open files from the local computer: 1. User drops a file onto an element. 2. Initialize OpenFileDialog's InitialDirectory and FileName with the file's path. 3. User clicks OK on the OpenFileDialog. However step 2 is not possible due to security restrictions so step 1 doesn't matter anymore. ...Show All
Visual Studio Team System TFS Clients other than Team Explorer?
We are currently using TFS as our source control solution for .Net projects and it works great. However, our install team wants to use TFS to host InstallShield projects and a bunch of install binaries. I want to host these files as flat files. Primarily, my question is How do I host flat files (non-dotnet files) on TFS I see that there is a open-source project, TortoriseVSTS, in action. However, it is only in planning stages. Are there more ways to check-in files to TFS other than Team Explorer Is there any way to check-in a bunch of files into TFS from Team Explorer What options do I have Thanks, Team Explorer doesn't ha ...Show All
Visual Studio Team System .Net Runtime 2.0 Error
Hi all, I keep receiving these errors, approximately once an hour, on our Team Foundation Server machine. We have a clean build of Team Foundation Server and SQL running a single-server installation of Team Foundation. Ever since we installed it we have been getting the following error: Event Type: Error Event Source: .NET Runtime 2.0 Error Reporting Event Category: None Event ID: 1000 Date: 12/12/2005 Time: 10:31:57 AM User: N/A Computer: DEV-TF Description: Faulting application w3wp.exe, version 6.0.3790.1830, stamp 42435be1, faulting module webengine.dll, version 2.0.50 ...Show All
Windows Forms Cross-Thread Help, I DONT GET IT!
I know this has been asked a million times, but I just cant seem to grasp the concept here. Could someone please tell me how I might proceed in resolving the following Cross-Thread situation I am using the SerialPort control on a form, when new data comes in I run a routine that will add a new record to form. The simple problem is that I have BindingNavigator on my form and it will not update it's record counter when I do this. Therefore, I am trying to simply insert a BindingNavigator.Refresh method into the SerialPort DataReceived Event. This is where I get my cross-thread error (as one would expect). I hate to appear so helpless ...Show All
Visual C# Form Background
Ok. I know I have asked this question before, but I found myself working on another task so I need to ask again. What I want is for my forms background image to exceed the form borders, so that the background image is seen and not the form. For example, Windows Media player, notice its soft bevel edges. Like the background image is covering the form. Can someone explain throughly on how to do something like that Thank you. This isn't done by stretching the image beyond the size of the form but by making the image rounded and then using the transparent color of the image to hide it. 1. Create the image with the rounded edge.  ...Show All
Visual Studio Team System How do I use multiple rows per test?
Suppose I have a test that performs the following: 1) Log in 2) create an order 3) add 3 items to the order 4) checkout 5) logout I created my test and did the data binding and when I run it, I get the same order three times, always the first row in the database. I would like to be able to be able to get a new record each time I add an item to the order. What am I doing wrong Thanks Hello, I think that what you're looking for is a data-driven unit test. With these kind of tests, data will be retrieved from row(s) of a data source, and this data will be availabe from some propertie ...Show All
Visual Studio Crystal Reports in distributed environment
I'm writing a windows form application, and using remoting for communication between server and clients. But report document cannot be serialized and send to clients over the network. Could anyone suggest some ideas how you handle crystal reports in distrbuted environment Thank you very much!!! Hello, Here is a link to a walkthrough for exposing reports as a web service. This is how our developers envisioned using reports in a distributed environment with the Windows Form Viewer. http://www.businessobjects.com/products/dev_zone/net_walkthroughs.asp Keith - Business Objects ...Show All
SQL Server modify stored procedure
In sql server 2005: If you right click on a stored procedure and select modify the word “create” is changed to “alter” everywhere in the stored procedure: Can anyone tell me the reason behind it Thanks That's becaue you can only create a stored procedure once (unless you drop it first), so if you want to modify an existing sp, then you need to use alter, which will alter the syscomments entry for the stored procedure to the new definition you have after the alter statement. However, the sp will still be stored as a create procedure statement, SQL server handles these changes behind the scenes. So ...Show All
Visual Studio Determine location of common folders?
Does MSBuild provide any way to discover the location of common folders on the current system I'm specifically thinking of the "Program Files" directory which has different names in different localized versions of Windows. NAnt has a convenient <sysinfo/> tasks that loads all sorts of local system information into predefined properties, including the name of "Program Files". Anything like that in MSBuild is there a list of all predefined properties by msbuild I need a path to COMMON_APPDATA later maybe to other system locations how can access them from msbuild ...Show All
Smart Device Development conman
Hi, I'm using VS 2005 beta2 and when i try to make a mobile applications i get follow deployment error when targetting the emulator as well as my iPAQ : Error 1 Deployment and/or registration failed with error: 0x80070020. The process cannot access the file because it is being used by another process. Strange thing here is that when i click to continue the app seems to work on the emulator and iPAQ. ( overwrites ) I find out that when i close the app running on the emulator via settings menu and restart again solves this thing. Just closing your app with x isn't enough. Guy Sometimes, I simply clo ...Show All
.NET Development How to get all SQL tables at once
Hi all.. I have a database running on SQL Server. It has a lot of tables that I need to load into a dataset (all at once) so that I could work with the in memory data. How can I do it using a SqlDataAdapter or other object if this is possible I could load it one by one but it is a very tedious work (to load not only data, but also relationships). Thanks Jaime I wouldn't do that. A database is better suited for doing filtering/sorting than in-memory storage like a datatable, which will result in slow code and a memory hog. If you really really want to, you can fetch the meta-data first from sqlserver, using the INFORMATION_ ...Show All
SQL Server Package Configuration for Oracle Connections
Hi there, I created some configurations for my package as Jamie described in http://blogs.conchango.com/jamiethomson/archive/2005/11/02/2342.aspx for my Connections. I use ADO Connections as well as OLEDB Connections for Oracle (MSDAORA). Everything works very fine, until I store passwords in the file. Yes I know, I shouldn't, but the main idea was to keep the machine-dependent data in an external configuration file, so you don't need to re-build your package if you want to put it onto another machine. This scenario is only possible, if the passwords are the same for the two machines, but in my case the passwords are different (even the user ...Show All
