IgorP's Q&A profile
Visual C++ help!!
hi i really need help on this bcz some how i find it hard and im clueless ** write a program that prompts the user to input a positive integer. it should the output a message indicating whether the number is a prime number. plzzzzzzzzzzzzzzzzzzzz help me asap Most people on this forum are unwilling to do your course work for you. What they are willing to do is to help you answer specific questions you have about some code. If you don't understand the question I suggest talking to who ever is giving the course. He or she should be able to explain in greater detail what is expected. ...Show All
SQL Server What is necessary to create SDF-Files on desktop legally?
I want to write a PC application that prepares a SQL Server Mobile Files (.SDF) and sends it to a PocketPC. I get this error message: "SQL Mobile usage is restricted on this platform. To use SQL Mobile, you must install SQL Server 2005, Visual Studio 2005, or the Tablet PC SKU" If I install "SQL Server 2005 Express" the error message disappears and everything works fine. Question: Is it allowed to create SDF-Files if "SQL Server 2005 Express" is installed or is it necessary that my customers buy "SQL Server 2005" Thank you very much for your answer! I want to write a software for taking orders with Pocket PCs. A server application on the PC should store all the data in a database. The PC sends custom ...Show All
Visual Studio 2008 (Pre-release) Passing WindowsIdentity between services for use with Azman
Hi all, The following scenario: a client connects to a service passing its WindowsIdentity (WI), e.g. domain\user, using wsHttpBinding. The service uses the WI for authorizing using Azman. The service depends on another service (which could also be called by other clients in different scenario's). The second service also has to authorize the WI of the initial client (domain\user). client --> service 1 --> service 2 | | AzMan AzMan Default, wsHttpBinding passes the WI of the 'intermediairy' service (the first service called, e.g. domain\network service) to the second service. This way the second service authorizes the service (domain\network service) and not the initial caller (domain\user). ...Show All
SQL Server how can i select numeric columns only?
hi all, how can i select numeric (int, money, numeric, etc) columns only from syscolumns. i need to run a sum() aggregate on all numeric columns thanks, joey Good catch. At some point, it might just be easier to explicitly list the types. A not null precision is supposed to indicate numeric, but it includes datetime and char ( ). The test for xtype = xusertype eliminates the user defined types. There are only 25 total, so making an explicit list would not be difficult. The test for precision only eliminates 3 types. Using xprec and prec helps. Here's another cut: Select * from systypes where xtype = xusertype and xprec is not null and prec is not null And collation is null and name not like '%time%' and nam ...Show All
Visual C++ Hexadecimal Representation of an object?
Hi, I would like to get the hexadecimal representation of an object and display it as a String, how would this been done using C++ .Net (VS 2003) Thanks! Well yes, there are ways to do this through the marshalling classes. I've only done it in VS2005 (.Net 2.0), though. I haven't got 2003 installed now, so I can't really be of much help with an approach for that platform. My suggestion, however, is that you try searching for serializing solutions. Those are often made up by functions which retrieve the binary representation of an object. ...Show All
Software Development for Windows Vista Where can I download matching pre-release of Microsoft Visual Studio Code Name “Orcas” Development July CTP?
Hi guys, Can you tell me where can I download the matching release of Visual Studio Orcas for Windows SDK July 206 CTP On the download page of Windows SDK July 2006 CTP , the overview said: " There is no matching pre-release of The Microsoft Visual Studio Code Name “Orcas” Development Tools for the July CTP " Can you tell me when it will be available to download Since there is no Visual Studio "Orcas" CTP for this July 2006 CTP release, I can't use Visual Studio 2005 to code and targetted for Windows Vista anymore. The Development tools for the .NET Framework 3.0 RC1 are live now on Microsoft.com at http://www.microsoft.com/downloads/details.aspx FamilyId=935AABF9-D1D0-4FC9-B443-877D ...Show All
.NET Development CLRProfiler crashes aspnet_wp
I'm trying to use the CLRProfiler to profile an ASP.Net application. Somehow, it's gotten into a state where it crashes aspnet_wp. Running the same app without profiling works fine. The event log entries when it crashes are: Event Type: Error Event Source: .NET Runtime 2.0 Error Reporting Event Category: None Event ID: 1000 Date: 12/7/2006 Time: 12:46:25 PM User: N/A Computer: AFORS1 Description: Faulting application aspnet_wp.exe, version 2.0.50727.210, stamp 45063b16, faulting module profilerobj.dll, version 0.0.0.0, stamp 436a3905, debug 0, fault address 0x00006860. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp . Data:.. [clipped] Followed by: Event Type: Error Event Source: A ...Show All
Windows Forms Delegates, frozen form and threads
Hi All I am developing an example that simulates a loading data process through delegates.It begins with delegate definition and a piece of code called doTask. // Delegate pointer to a doTask function public delegate ArrayList delTarea (); // Delegate var delTarea dTask = null; // doTask function private ArrayList doTask() { ArrayList list = new ArrayList (); int count = 10000; int step = 100; while (count > 0) { lista.Add(count); System.Threading. Thread .Sleep(step); count -= step; } return list; } After that, I generate a button ev ...Show All
Visual Studio Express Editions Visual Studio C++ Express 2005 builds send my monitor nuts
I'm running XP Home + SP2. Video adapter is NVidia GeForce 4 MX 440. Visual Studio C++ Express 2005. My monitor goes into a blackout/clicking frenzy due to resolution changes it believes exist during any build. This happens every time "Compiling..." appears in the Output window, and when "Linking..." comes up in it. This slows down my builds a lot, plus I can't use the machine for other tasks while all this is going on. The resolution appears to switch to some very low value, and the cursor appears as a fairly large white square on this black background. The problem lies somewhere in my Windows setup/registry. I know this because: a) It isn't Visual C++ 2005 Express itself - this behaviour doesn't manifest ...Show All
Game Technologies: DirectX, XNA, XACT, etc. So... What is XNA then?
So XNA then is the next step of the DirectX API for .NET languages (previously called Managed DirectX), is just a new technology completely different that will be shiped in a separate way of DirectX or is the real way in which DirectX 10 will move, adding an "unmanaged" API for the past contents using Directx 8 and 9 Yes, ok, thanks. But the problem is that I did not post my question correctly. Till now, i had the conception that Managed DirectX was just a layer of Managed code for .NET languages (such as C#) to access the machine code of DirectX (from 8.1 to 9.c). Now you say that XNA is a complete new form of it because it uses the runtime of .NET 2.0 and is completely managed code , so I thought that XNA is actually the ...Show All
Visual Studio Express Editions creating .exe program
i have created a software in VB but when i publish it in my desktop to get the setup file its in application-manifest format and not exe how can i make the program a exe program Well, its confusing to me.... I do not understand what are you trying to do by publishing it on desktop and trying to get setup file. I think to get setup file, you need to create a setup project, and you need to add the output of your project to the setup project. You need to check what type of output you are generating with your application. It could be Class Library (dll) OR could be Console/Windows form application (exe) ...Show All
SQL Server How to send long string using SqlContext.pipe.send(strString)?
Hi, I have a string almost 11006 length.. when i try to send back from SQLCLR procedure it says cannot send .. here is Exception Text " Message length 11060 exceeds maximum length supported of 4000." Max limit to send a string using pipe is 4000 How I can send a string which is large in size than 4000. Thanks SqlPipe.Send(String) sends back a message, not data. It is limited to 4000 characters because CLR procedures use Unicode. Send is in effect doing a T-SQL print statement which truncates strings that are too long. It meant to be an informational message for the client. If you are trying to send back a string as data from a CLR stored procedure one thing you could do is to add an output para ...Show All
Visual Studio Team System Project Output Directories in Team Build
Most of my VS projects have the output directory defined in the project settings as /bin, however when I run a Team Build, no bin directories are created, there are just obj directories. Why is this and can I change it because in some circumstances (like building a windows service) some of the output is not copied to the obj folder, it is copied to the Binaries folder. Removing the $(OutDir) property from C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets will cause the output for every project to go to its "normal" location. (e.g. ..\< MyProject >\bin\< Configuration >) However this hack prevents code analysis and unit tests fr ...Show All
Visual C++ I can see the .dsp by windiff, but in vc I can not see the content of .dsp, how can I see the content and edit the .dsp directly
I can see the .dsp by windiff, but in vc I can not see the content of .dsp, how can I see the content and edit the .dsp directly in vc or other tool I appreciate your help. Hello Re: I can see the .dsp by windiff, but in vc I can not see the content of .dsp, how can I see the content and edit the .dsp directly Such questions are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 For such issues please use an appropriate newsgroup, potentially one at http://msdn.microsoft.com/newsgroups . OTP Thanks Damien -- ...Show All
Visual C# Regex to split a string
Hi Guys, I am currently working on ripping some information from a text file. I am trying to use regex to split up some strings. I.e. text file has this line Serial Number .............................. ABC123456AB I need to just get the "ABC123456AB" part. So far I have not been able to work out the regex for it. I would like to search for " Serial Number .............................. " and return just the AB123456AB part. Cheers Wilson Hi, try it with the following regexp: text = "Serial Number .............................. ABC123456AB" ; Match match1 = Regex .Match(text, "( <=Serial Number\\s+\\.+\\s+).*" ); Andrej ...Show All
