cobolisdead's Q&A profile
Visual Studio Problem with Conditional Import inside VS
Hello I have a .targets file that supports multiple platforms, and has 3 elements like this: <Import Condition=" '$(Platform)' == '...' " Project="..."> When I build using msbuild.exe and specify /p:Platform=... it works ok for all platforms. When inside VS, it always imports the first one, regardless what Platform I choose. I also have a dummy Platform called "BuildAllPlatforms" that invokes the msbuild task for all platforms, and that works ok in VS. If instead of the import, I literally replace the import, and add the condition to every target, propertygroup and itemgroup, it all works ok. Is this a bug in VS I'm using RC1. Regards, ...Show All
Visual C++ [c++/CLI] create a wrapped managed dll for purely unmanaged code
Hello, I am trying to create a dll that internally uses managed types but exposes a plain unmanaged interface. (vs2005 beta 2 - c++/CLI) All the managed stuff shall be "wrapped out of sight". So that I would be able to use that dll from pure unmanaged code (for example inherit from classes in that dll) that has no /CLR flag set. Is something like that possible. I heared something called ManWarp tried that approach. If it is possible, how can I do that. Maybe there is a small litttle sample project around Use #pragma unmanaged. Write a function that uses your managed stuff and exposes its name via extern "C" either witj declspec exp ...Show All
SQL Server Keep getting Virtual Memory errors
Hello, I am wondering if there is a way to solve a virtual memory error We randomly get the following error when trying to run sycn over the http websync. Some clients have 512 MB running sql express, others are full instances that have 1.5 GB. The merge process could not allocate memory for an operation; your system may be running low on virtual memory. Restart the Merge Agent. Is this the error thrown by the merge agent At the subscriber Do you suspect a memory leak anywhere ...Show All
Windows Forms Some interested problem
Hi, I have installed my application to Laptop IBM R40e. When I installed it I was connected to the lan. After it I run my application and it worked perfect. After it I took laptop to client to show my application. There I have connect display to laptop. After the XP have found display I have tryed to run application and on some step it sent me to debugger. Why And how can I solve it Thank's Alexei Hi, What do you mean I have install all updates of software and drivers that can be used by display adapter and the application runs fine. Thank's Alexei ...Show All
Visual Studio Team System Strange exception when running tests
When I tried to run my tests I have this strange error: Managed Debugging Assistant 'LoadFromContext' has detected a problem in 'C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\vstesthost.exe'. Additional Information: The assembly named 'Microsoft.VisualStudio.QualityTools.ExecutionCommon' was loaded from 'file:///C:/Program Files/Microsoft Visual Studio 8/Common7/IDE/PrivateAssemblies/Microsoft.VisualStudio.QualityTools.ExecutionCommon.DLL' using the LoadFrom context. The use of this context can result in unexpected behavior for serialization, casting and dependency resolution. In almost all cases, it is recommended that the LoadFro ...Show All
Visual Studio Unspecified error when doing Get Latest Version
When I do Get Latest Version from within Visual Studio on a complete solution or project I get the following error: Unexpected error encountered. Error: Unspecified error. File: vsee\lib\path\cvapipath.cpp Line number: 2459 When I do Get Latest Version on an individual source file, it works correctly. When I do Get Latest Version on a project from within the VSS client, it also works correctly. I got the following setup: Visual Studio 2005 Team Edition for Developers. Visual Sourcesafe 2005 C# solution containing services, web services and libraries. Patrick Patrick, After following the instruct ...Show All
Visual C++ calling a WINAPI function from a managed main creates linker error
OK, here is the latest saga from this newbie: Whenever I try to call EnumDesktopWindows or GetWindowsText the linker vomits out the following: LocateWindow.obj : error LNK2028: unresolved token (0A00000D) "int __stdcall EnumDesktopWindows(struct HDESK__ *,int (__stdcall*)(struct HWND__ *,long),long)" ( EnumDesktopWindows@@$$J212YGHPAUHDESK__@@P6GHPAUHWND__@@J@ZJ@Z) referenced in function "public: void __thiscall LocateWindow::setPopulateWindowArray(void)" ( setPopulateWindowArray@LocateWindow@@$$FQAEXX Here is the code: (Yeah, its ugly. I am coming at this slow so I get as much of the concepts down as I can) // LocateWindow.cpp : main pr ...Show All
SQL Server Change the order of columns
By mistake I misplaced the order of my primary keys in some tables and I just dont find the way to move them to the top of each table. This must be something easy. and its ugly to see primary keys on the foot. If you are using the management studio, right click on the table in question and select "Modify" from the context menu. In the work area click the area to the left of the column name you want to move and drag it up or down to its new location. ...Show All
Visual Basic Display a value in Binary
How would I display a number in binary format. I looked through the help files and only found how to display in hex format. I am making a small bitwise calculator for personal use and need to display value in binary format. Thanks. http://support.microsoft.com/default.aspx scid=kb;en-us;109260 ...Show All
Visual C# RTC Client API - How to send # and * in uri?
I'm trying to send a call to "#98" using oSession = oClient.CreateSession(RTCCORELib.RTC_SESSION_TYPE.RTCST_PC_TO_PC, "", oProfile2, 1); //oSession = oClient.CreateSession(RTCCORELib.RTC_SESSION_TYPE.RTCST_PC_TO_PHONE, "", oProfile2, 1); oParticipant = oSession.AddParticipant(strRemoteURI, "Dummy Name"); in strRemoteURI, it works fine for SIPs and phone numbers WITHOUT the "#" and "*" characters. How can I connect to a nuumber like "#98" or anything with an "*" in the uri I tried sending %23 instead of "#" and %2A instead of "*", but it di ...Show All
SQL Server Solution Explorer in SQL Server Management Studio
Am I just out of my mind or does the solution explorer only list files in the order they were created Is there any way to sort the list I'm trying to manage a database as a "solution". It has over a hundred or so procs. If I can't alphabetize the list it is of no use to me since it's impossible to find a specific proc when they are not sorting in any logical way. (Please keep in mind there are multiple developers working on this "solution" so the list if effected by all of them.) I am trying to maintain some version control over the procs using VSS but it looks like I have to use a "solution" and "projects" to do that ...Show All
Visual C# Changing the Default Unhandled Exception Dialog
Hi Everyone, Is it possible for me to customize the default dialog that pops up when .NET encounters an unhandled exception Thank you. You'll want to have a read through the following: http://msdn2.microsoft.com/library/system.appdomain.unhandledexception.aspx The default behaviour changed between .NET Framework 1.X and 2.0. What version of the Framework are you running your application on An unhandled exception means that your AppDomain (and hence your application) is going to get torn down. If you're running in the default domain (i.e. haven't created any child domains), I don't believe th ...Show All
Smart Device Development error: 0x80070003 - problem deploying cf 2.0 programs to the device emulator
Hi! I am working with visual studio 2005 beta2 and compact framework 2.0 beta 2. I have troubles deploying a program to the device emulator. I'm getting this error: Error 1 Deployment and/or registration failed with error : 0x80070003. Das System kann den angegebenen Pfad nicht finden. Conman HelpText System I installed the dma patch for the emulator, but the error remains Any hints THX! Hi again I was able to solve this problem I simple deinstalled everything (all addons, VS2005 Beta, .net framework .....) and installed it again now its working! Norbert ...Show All
Visual C# Where is "Add Inherited Form" in Beta 2?
Hi, all! I've just downloaded and installed Visual C# Express 2005 Beta 2. I can't find "Add Inherited Form" menu which existed in Beta 1. Is it gone now or is it just only my problem Thanks. Sam Anson, I'm using the C# Express Beta 2 and use form inheritance quite a lot. If you intend to build an application framework that is usefull and reusable, form and control inheritance is a must. IMO, it is very annoying to miss the inherited form and inherited control templates. Best regards, Benny Tordrup ...Show All
Visual Studio Team System Custom Process Template Plugin
Hi, I create my own plugin to include in the process template but I don't know how to do the following task and I need help. I want to let the user decide witch folders/files to add/remove in the document library by selecting them in the wizard page at team project creation time. So my question is: Is there a way to do this in a Process Template Plugin If yes could you give me an example Thank you! Eric You would be using the SharePoint Web Service interfaces to create Document Libraries and to push documents to those libraries. Take a look at the SharePoint SDK to get started. ...Show All
