nagarajan1948's Q&A profile
Visual Studio Express Editions The Guess Number Program
I have just write a program to guess number from 1 to 1000. My problem. what source will i write to command the program for y or n if the user input 'y' the game continue and if the user input 'n' the game discontinue Please ask questions of this nature in the newsgroups rather than on these forums. This particular forum is intended to address issues with VC++ Express Edition, not to teach folks how to program in C++ ...Show All
Visual C# Why cant I see ConfigurationManager class in System.Configuration ?
Im building a windows service project. I have the System.Configuration namespace imported, but I can not see the ConfigurationManager class. Even if I view the System.Configuration namespace with the object browser, its not there. ideas ...Show All
Visual Studio Team System Plans for sharing project amongst team
Hello, I just tried importing my work database schema of tens of thousands of objects which went through within minutes, so well done on making the import a lot faster! I was curious as to whether a question I asked a while back has been reviewed. Basically I would really like our team to use data dude for our development, however we all have Team Developer licences (bar a couple of us who have Team Suite licences) and upgrading everyone to Team Suite or switching everyone to DBPro is not an option. All developers develop their own stored procedures, we have no 'Database Professional'. Therefore in order for us to use data dude projects, we would like to know if the scenario below is possible: 1) We have one designated 'Database Prof ...Show All
Visual C# Small size image load huge memory?
Hi I write C# app has a PictureBox Control load image which formats in JPG, 9MB size, 1998px*2000px. When the app load, the memory increase ~300MB. I guest that the JPG format is converted to BMP. Am I right If it is, how can we handle this issue Thanks for any read and reply! MA. A bitmap 2000x2000 pixels would weigh about 16MB in a 32bpp pixel format, so this only accounts for a small portion of the 300MB. There must be some other reason for the memory increase you are reporting. Anyway, it doesn't matter how small the image is on disk, it will have to be decoded to some uncompressed format in order to put the pixels on the screen. This is true of any compression. HTH --mc ...Show All
Visual C# Using C++ class in C#, a weird problem!HELP!
I am using some C++ class in C#. Below is what i did: 1. write a C++ class Unmanaged.h class Unmanaged_Class { public: Unmanaged_Class(); int methodToBeCalledInUnmanaged(int data); }; Unmanaged.cpp #using <mscorlib.dll> #include "Unmanaged.h" Unmanaged_Class::Unmanaged_Class() { } int Unmanaged_Class::methodToBeCalledInUnmanaged(int data) { return data++; } 2.write a managed wrapper class Managed_Wrapper.h #using <mscorlib.dll> #include "Unmanaged.h" using namespace System::Runtime::InteropServices; using namespace System; namespace Managed_Wrapper { public __gc class Managed_Wrapper_Class { public: Managed_Wrapper_Class(); Unmanaged_Class * pInner; int CallUnmanaged(int data); }; } M ...Show All
Visual FoxPro program starting problem, grid problem
Hi I have several beginner questions for VFP 8.0 1) Where should I put the READ EVENTS method so the main form will show itself instead of showing the fox pro main window 2) When executing SQL simple select statement for filling a grid, it fills the grid inside the form, but firstly it shows the result in a grid outside the main form. How to show result only in the grid placed on the form Deni Atanasov wrote: I making this so complex cuz iam beginner:(( Why u define form,grid and buttons And where i must put your code, maybe in main.prg or smth like that Do yourself a big favor and go to http://www.hentzenwerke.com/catalog/fund6.htm and get a copy of Fundamentals: Building Visu ...Show All
.NET Development About SmtpMail.Send() Method
Hi all, This is Hari, In my application I need to generate a report for different people and send it through mail as attachment, and my approach to this task is I will generate a report for single person ,And send it to his Mail ID and then I will delete the report and generates next person’s report and send it. To send the report I am using SMTP server. I am able to send the mails if all the mail ids are correct, if the mail id of a person is incorrect in between I am able to handle the exception but I am not able to delete the report of that person the error I am getting is "Internal system error. Access to the path.... "Even I am not able to delete the file manually .How can I come out of this plea ...Show All
SQL Server How can I format the Date in the SQL Table using a SQL query
Hi I have a SQL table that contains date in this format :- 2006-07-02 16:20:01.000 2006-07-02 16:21:00.000 2006-07-02 16:21:01.000 2006-07-02 16:22:00.000 2006-07-02 16:22:02.000 2006-07-02 16:23:00.000 The date above contains seconds that I dont want, how can I remove those seconds so that the output looks like :- 2006-07-02 16:20:00.000 2006-07-02 16:21:00.000 2006-07-02 16:21:00.000 2006-07-02 16:22:00.000 2006-07-02 16:22:00.000 2006-07-02 16:23:00.000 Your help will be highly appreciated. Hi, thanks for the reply Here is what i have tried UPDATE [dbo] . [Date_Test] SET Date = SELECT DATEADD ( s , - DATEPART ( s , Date ), Date ) and Im getting the following err ...Show All
SQL Server Silly question about BIDS
Hi guys, When you get an warning from, i.e, OleDb Destination you see an exclamation mark in yellow and then, when you move the mouse over you can't see never the whole message (If long) Is there any way to see the entire tooltiptext Thanks in advance and have a good weekend! Good question, When that happens to me I go to the advanced editor of the component, some time it shows up there. If you execute the package in debug mode; the warning will show up in the progress tab and in the logging table/file if logging is enable. But to be honest it would nicer if you could see it right in the tooltip Rafael Salas ...Show All
Visual Studio 2008 (Pre-release) Building forms depending on Metadata
Hi all, I want to build forms, that change their layout depending on metadata. This includes also custom fields and so on. In Asp.Net I could achieve my goal with custom controls (override Render). Since I cannot see anything like that in wpf, I was wondering how this task could be solved I'd be very very glad for an answer! Best regards Peter Ok, let's say I have a form that the user can enter some info. But it can be possible that there are custom-fields that needs to be rendered. The metadata would then describe what custom-fields and of what type the custom fields are and so on... In Asp.Net I was able to achieve this with custom-controls that used the render-method. But how can I achieve ...Show All
Visual Basic For varying hardware, what is the best way to create and implement a common interface.
I'm in the very early planning stages of an application that will use varying types of the same hardware (let say for example sake, a sound card). I want the code to be as contained, modular and maintainable as possible. In the GUI, I want to be able to create one generic object and have that object talk to specific classes for the card specific code. In other word I don't want the GUI code to change. I think I've found a way, but I am wondering if it is the best way. So the question is, is there a better way Also can anyone recommend books and or web sites that provide tutorials on a architecture that I want Thanks '//not actual code...just for illustrative purposes only// '///////////////////////////// class form1 dim soundCard as ...Show All
Visual Studio Express Editions Playing Media Files
Hi I am making an application that uses the WMP COM Control and I want the user to be able open a file to play (WMA, MP3, etc...) Any Help Please. Cameron Hi CazaD, There is a great lesson on using the WMP COM at www.learnvisualstudio.net (membership is needed), but is the file that you want the user to be able to play one of your files that you are sending with the application or is it on the local machine hard drive etc. Try something like sndplay.URL = [textbox1.text]; I have used sndplay as the name of my WMP COM object and the textbox is displayed above my player on the form, the URL should be a full path for example C:\WINDOWS\media\tada.wav Hope this helps Scott ...Show All
SQL Server database owner is needed
hi, on 1 of my servers (actually, the dev. server I have setup up here at home), I must included the database owner everytime I select something or make a db call. for example select T.foo from K inner join T on T.id = K.id must actualy be written like: select dbo.T.foo from dbo.K inner join dbo.T on dbo.T.id = dbo.K.id or else it wont work what did I do wrong for this database owner thing to be a "must" when writing queries on this server. spec: sql 2000 sp4 What do you get on the server that requires dbo. when you execute: select suser_sname(), user_name() Also, for some object where you have to enter dbo. for the object, execute: select * from sysobjects where name = '<name>' selec ...Show All
SQL Server System.OutOfMemoryExecution. Why?
When I do "preview" , after I while I have this error: System.OutOfMemoryExecution Anybody can help me Thanks Can you give a bit more details How much available memory does the machine have when you try to preview How much data is in the report How many rows go in and how many rows go out Does the report render if you publish to the server and view there Do you receive a callstack Thanks, Donovan. ...Show All
Architecture Real Time Locationing
hi all, i'm begining project that use the real time locationing , but i need to know can i get the hardware required for the real time location and i will be responsible for the software managing that hardware, and if i can't get that hardware , can i make it ( i mean Is that feasible to be made ) , please reply to me as fast as you can, Best Regards John Nabil. ...Show All
