Predator14567's Q&A profile
Visual Studio 2008 (Pre-release) LINQ and webservices
Hello Today I have scenario where my web application don't have access to the sql db, but instead it sends its sql query as a string to a webservice which have access to the sql db. The webserivce then performs then sql query and return the result as xml. So will LINQ be able to handle cases like this Since i cant drag and drop the tables from the db, maybe there is some way it could instead ask the webservice that then returns all tables and there rows, and that way I would be able to use the LINQ syntax, which i really love. Best Regards Mads Baed upon what has been said I am assuming that I could not simply hook into DLINQ's DB calls and re-direct the SQL via a web service (IE I don't want it to se ...Show All
SQL Server Executing an asp page from sql server.
Hi; I don't know if this is the right forum, if not please move it. I have an asp page using fso etc to create txt files on server. I want to call this asp page from sql server for example a table is updated. I mean I want to execute or call this file inside a trigger so a table is updated sql server will execute that asp page and create the text files i needed automatically. Any help will be appriciated. Thanks... Assumption : Using SQL Server 2000 Yes.. As Jens K. Suessmeyer suggested you can convert your logic on Triggers itself. If you don't want to write the code on SQL Server then you can write those logic as components (ActiveX DLL - just copy paste the VB script from ASO) and y ...Show All
Smart Device Development Mobile 5 SDK for Pocket PC install hangs
Tried for hours to get Mobile 5 SDK for Pocket PC to install. The original problem was that my McAffe was stopping various scripts from executing. The install hung after McAffe stopped the scripts. Then, after I turned off the McAffe script analyzer, the SDK tried to rollback and attempt another install, but those installs eventually hung. By "hung" I mean the install wasn't using disk or CPU, there was nothing after the word "status" above the "progress indicator", and the "progress indicator" didn't progress. The "remove" option also hangs. Help Cool! I created a Device Application project and it drew a device in the Forms Designer window. I guess everybo ...Show All
Visual C++ COM/ATL App Method Return/Pass defined types
Alright, I am not by any means an expert C++ programmer, so please bare with me. I have created a com object that will be implemented within C#, the reason for this com object is to create a persistent object of another library. My situation is this. I have the complete com object created, but would like to add additional supporting features, i.e.: An object that is defined within the C++ com object, such as a struct containing an int, a wchar_t*, and a boolean value. I would like to be able to utilize the object type from within C# to store the object rather than have a new object type in C#. I have seen this done in many cases, but just have no clue where to find such direction for supporting this. I would also like the come objec ...Show All
Visual C++ Import Native C++ dll in Managed Project
I have some code which needs to be native that I am trying to include in a managed c++ project via a pluggin. It can't be added to references. The syntax for loading it manually, [DllImport("ArmWrp.dll")], is fine, but the functions cannot be found. Here is the simple pluggin, it is compiled with the unicode setting: // ArmWrp.cpp : Defines the entry point for the DLL application. // #include "stdafx.h" #ifdef _MANAGED #pragma managed(push, off) #endif BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, &nb ...Show All
Visual Studio Page Number -- Too simple, but I can't figure it out
How do I put page numbers on a report. I get this error: The Value expression for the textbox ‘textbox1’ refers to the global variable PageNumber or TotalPages. These global variables can be used only in the page header and page footer. C:\Documents and Settings\john\Local Settings\Application Data\Temporary Projects\WindowsApplication1\Report1.rdlc I can't figure out how to create page head or page footers. I tried the table report item and put the page number in the header, but I get the same error. When you open the report in the designer, to the left of of horizontal ruler (or top of of vertical ruler) you should see a small square box. Click on it, this is a way to select the re ...Show All
SQL Server Cannot connect to AS2005 remotely using SSMS or BIDS
I really need help to understand why I can't connect to SSAS from a remote machine running SSMS or BIDS. Following is my setup: SQLServer 2005 on a development server Server Name: SQLWIN-1 Named Instance: SQLWIN1 If I am running management studio locally from the server machine I can connect to SSAS fine. However, when running from a remote machine the connection fails with the following errors: TITLE: Connect to Server ------------------------------ Cannot connect to SQLWIN-1\SQLWIN1. ------------------------------ ADDITIONAL INFORMATION: A connection cannot be made to redirector. Ensure that 'SQL Browser' service is running. (Microsoft.AnalysisServices.AdomdClient) ------------------------------ No connection could be made becaus ...Show All
Windows Forms outlook express 6 help need to close
I have installed a e mail backup program called e mail backup guardian, in order to restore a backup, it tells me to shut down outlook express from running,I do not know how to do this. I need to retrieve mail that was missing when I opened up OE, do not know how it got wiped out, the other 2 mail programs were ok. I have a backup file from this program but am unable to wirk it because I cannot shutdown outlook express from running. Sorry but this is a development forum and not an outlook support group. Therefore I have to suggest to you to repost the question in the appropriate newsgroup: www.microsoft.com/communities thanks! ...Show All
Visual Studio Team System Is it possible to set recursion to false?
Currently when automation script is run, an item is duplicated and incremented in subsequent runs. Is it possible to set recursion to false Thanks Test consultant Thanks for the reply. I was under the impression that there is a property in web test. Each time the test is run, it is expected to add only one item to the shopping cart and create a ‘virtual request’. However on first run it created 2 instances of the same item in the ‘virtual request’. On second run, there were 3 instances. Test Consultant ...Show All
Visual Studio Express Editions C# almost double as fast as VB.NET?
Check this out: C# code: using System; class SpectralNorm { // // // // Var Def // static DateTime startTime; static DateTime stopTime; static TimeSpan elapsedTime; static long elapsedMS; static void Main(String[] args) { startTime = DateTime.Now; int n = 1000; if (args.Length > 0) n = Int32.Parse(args[0]); Console.WriteLine("{0:f9}", new SpectralNorm().Approximate(n)); stopTime = DateTime.Now; elapsedTime = stopTime.Subtract(startTime); elapsedMS = (long)elapsedTime.TotalMilliseconds; Console.WriteLine("Elapsed Time: {0}", elapsedMS); Console.ReadLine(); } double Approximate(int n) { // create unit vector double[] u = new double[5000]; for (int i=0; i&l ...Show All
.NET Development Getting the calling assembly name in the client library
A client library ( ClientLib.dll) class has a method to derive the calling assembly name as string applicationName = Assembly.GetEntryAssembly().GetName().Name; If the above library is referred in Win app or other library, the applicationName is set to calling (entry) assembly name. But when above client library is referred in the webservice assembly (WsAssembly.dll), the entry assembly name is null but the executing assembly name is client library name(ClientLib), ideally I want the applicationName set to WsAssembly. Any ideas on deriving the calling or entry assembly name both for web applications and windows application is appreciated. Thanks Srik Appreciate your response Rodrigo, GetCallingAssembly() ...Show All
Internet Explorer Development unable to find Microsoft.VC80.DebugCRT
I get the following error when I compile the ActiveX DLL in Debug mode in the stage where the compiler attempt to register the activeX DLL: Activation context generation failed for "C:\Projects\xxx\AteCtl\Debug\AteCtl.dll". Dependent Assembly Microsoft.VC80.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50608.0" could not be found. Please use sxstrace.exe for detailed diagnosis. Later on if I tryied to use the DLL and get the same error. I managed to make it work by copying the VS debug redist to the application folder and to the debug folder. If I compile in release it works. My project has embed manifest to True. I'm usin ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem with Designer and using Events
Hello. I'm trying to create a game component which has some properties that generate events, like this: private float positionX; [ DefaultValue (0)] public float PositionX { get { return positionX; } set { positionX = value ; PositionChanged( new MainCharacterEventArgs ( this )); } } "PositionChanged" is an event that I would like to generate everytime the character changes position... The problem is, when I use this Component with the designer, it always gives me this error: Object reference not set to an instance of an object. Hide at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value) at System.ComponentMod ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Multi-core programming
Will the XNA Framework allow assigning threads to specific cores on the 360 Or more generally, how will XNA Framework interact with the 360's cores and hardware threads twospoons wrote: Wouldn't that be rather 360 specific In the regular .net framework you can set affinity and priority on a thread, isn't that sufficient But that doesn't target a specific core, which would be useful. ...Show All
SQL Server Get week number with changed @@datefirst question
I want to get the week number (according to ISO rule i.e. if most of the working days fall in the JAN set it to as week number 1). I know one stored procedure is available at MSDN to achieve this task. It works fine for me if the @@datefirst is set to 1 (i.e. Monday) but i have a strange requirement of calculating the week number according to ISO rule but the start date of week can be any day for example Saturday. When I try to run that procedure with my unique criteria I get wrong week number for some years Can any one tell me the more generic solution Your help is appreciated thanx thannx for your support... I had a breif look to your link but I think it is not the generic code as it is hard coding the day name (i.e. th ...Show All
