Software Development Network Logo
  • Visual C++
  • VS Team System
  • Game Technologies
  • Windows Forms
  • Microsoft ISV
  • Smart Device
  • Windows Live
  • .NET Development
  • Visual C#
  • Visual J#
  • Visual Studio
  • VS Express Editions
  • Windows Vista
  • Visual Basic
  • Visual FoxPro

Software Development Network >> TimFroglich's Q&A profile

TimFroglich

Member List

Kieme Ile
evans
Jimmyh
SergioX
JonnyDeep
Saran.T.
antcv
rishimishra
jagphysics
Ryan Powers
billwhelop
adman666
curtmack
UKChris
Fyodor Golos
fleacricket
m.delara
partha mandayam
ph23ms
MightyDubCats
Only Title

TimFroglich's Q&A profile

  • Software Development for Windows Vista Direct3D Screenshot

    Does anyone know what Direct3D functions I should look at if I wish to be able to take a screenshot of the desktop. I don't really care to get the contents of my application but rather the entire desktop as it is presented to the user. I know how to get the render target surface for my own application, and to get it's data into a bitmap file. However, I want to get the render target surface that represents the desktop (perhaps I should mention that I'm wanting this for Vista, since the DWM is a Direct3D application) Please see my previous posting inthe DirectX 101 forum here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID= ...Show All

  • Visual C# typedef in C#: Visible in separate projects

    I saw that you could get around the absens of the C++ typedef feature by using: namespace NameSpaceCS {   using Handle = System. Int64 ; or using Handle = System. Int64 ;   namespace NameSpace CS {   But this is only visible in one file. How do you make it visible in other projects. I have added the reference and the  using NameSpace CS ; in my other project but it still seems to be out of scope. The methods in the other project I can use thogh. It's just the typedef replacement that's out of scope. Somebody suggested I should use a property which returns a member of a struct. ...Show All

  • Visual Basic Checkbox checked, button click

    I have a botton1 and a checkbox1. If the checkbox is unchecked my button would open a "OpenFileDialog1". If the checkbox is checked then my button should open a FolderBrowserDialog1. I do not know the code and i tried the IF Statement but do not know how to set the code, can someone show me the code If checkBox1.Checked Then     If folderBrowserDialog1.ShowDialog = DialogResult.OK Then         ProcessFolder(folderBrowserDialog1.SelectedPath)     End If Else     If openFileDialog1.ShowDialog = DialogResult.OK Then        ...Show All

  • SQL Server define Value Labels in a Result Set?

    Is there a SQL statement that I can use which allows me to set value lables in a result set For example, if a table has a gender variable with values of 'M' & 'F', can I write a sql statement which creates a result set that changes these to 'Male' & 'Female' so that everything I do with the result set shows the new labels (but does not change the underlying M/F values in the orginal table I do not want to create a new table, but rather display the M/F values as Male/Female when I access the result set in an application (such as Report Services). Thanks for any advice you can give. Ed Sloat you mean values change not la ...Show All

  • .NET Development Can 1.1 and 2.0 framework coexist on the same box?

    I'm trying to get my legacy asp.net (1.1/C#) apps to play nice with future 2.0 development. I can get either the 1.1 stuff to run or the 2.0, but not at the same time.  If the 1.1 apps are working the 2.0 work returns errors that tell me that the frameworks are trying to use the same process and that this can't work. If the 2.0 app works then the 1.1 error out. I suspect that this is an IIS configuration issue, but being weak in iis I can't seem to find a solution. I was advised to look at the App Pool for the individual web apps on by server.  The 2.0 apps show as belonging to the 2.0 pool and the 1.1 apps go to the default poo ...Show All

  • Visual Basic Best practice for reusing inherited class heirarchy? (i.e. Reference, Link, etc.)

    Lets say I have a series of classes that I'll reuse in several projects: BaseForm inherits Form (BaseForm.vb) BaseForm_Exercise inherits BaseForm (Baseform_exercise.vb) I see a couple of ways to bring these into a project: -Link the individual .vb files (so I have to include both of the above even if I only need the BaseForm_Exercise b/c it depends on the other.) - Include a Project (MyReusedClasses) that contains all of the classes that I might be reusing. This option is a lot more organized and easier to add to a new project, BUT it means that I'll have to distribute an extra binary of MyReusedClasses.exe (or .dll) Am I missing something ...Show All

  • .NET Development .Net remoting singleton class Issue

    Hey, We have a website that is in asp and the website basically encrypts the credit card info and then through remoting the information is passed to a different server where it gets decrypted before reaching mainframe. We have used Singleton class for decryption for better performance but it looks like the decryption process fails once in a while when multiple web requests tries to access the decrypt what I mean is as the load is increased the decryption fails. How can I resolve this issue. Any help will be appreciated. Thanks in advance. Remoting doesn't do any locking for you, even if it is a singleton, so it is possible tha ...Show All

  • Visual Studio Automatically Generating a Crystal Report to PDF

    Hi Guys I need to think up a way to automatically generate a few reports. It is sales figures that i get from a production system. I got the reports, I just need a way for it to be automatically generated and emailed off to a certain email address. So far I had no Luck. Just cant think of a way to do this. All I need is a way to do this whole process without user intervention, hence automatic. I got reports that is needed so its just a matter of getting a way for the reports to run automatically. I got the code that can export it to pdf and probably can get it to be emailed. just need something that will do the automatic ge ...Show All

  • SQL Server SET RECOVERY SIMPLE generates error

    I've come across several references indicating that the recovery model can be set to simple by using the following sql statement: ALTER DATABASE dbname SET RECOVERY SIMPLE However, all I get is the error message below. What is the correct syntax Msg 102, Level 15, State 1, Line 1 Incorrect syntax near '.'. Msg 195, Level 15, State 7, Line 1 'recovery' is not a recognized SET option. according to the thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=267949&SiteID=1 you receive this error when call "ALTER DATABASE dbo.dbname SET RECOVERY SIMPLE" Please try &qu ...Show All

  • Visual C++ Can't seem to compile even simple practice coding, maybe because i turned off XP services

    I'm new student learning C++, and with this express Beta2 version I can't even seem to compile the simplist of coding; and it claims that there is no executable batch to debug. I'm think it is because I turned off alot of Windows XP services for security reasons, and some of it is needed to run Visual C++ correctly. Could some one please point out what services are needed for Visual C++ Beta2 ...Show All

  • Visual C++ Cannot instantiate abstract class

    I have a WIN 32 program, which I tried moving to .NET and I'm having tons of troubles.... I always get the same error (cannot instantiate abstract class), as these pure virtual functions are not defined...stadafx(0).cpp I gave the implementation of all the Virtual Functions, still the error is the same...no matter what I do it doesnt go away... If you want I can post my WIN 32 code....which works no problem.... Really appreciate for the answer... Harsimrat You don't have to post all the code. Could you post a small sample reproducing the error so that folks on the forum could help you ...Show All

  • SQL Server C# CLR best practice example

    Folks - had a look around Google and no surprises, but never found what i was looking for. I want to see a real work best practice C# Stored Procedure for Sql 2005 (express is what i am using, but don't mind the Sql edition). Almost everything i see is a "select * from table" which to be honest was my first stored proc many years ago - everything since has been fairly detailed. I ask as i am sceptical, after years of trying to STOP building Sql queries in code (as it's hellish!) that the CLR technique really makes any kind of a diffence. If someone has found that it HAS i'd love to hear about it. The thought of: SqlComman ...Show All

  • Windows Forms Only Allow 2 decimal places in a textbox.

    I have a textbox which contains interest rate. (e.g. 89.56, 100.00 etc) How do I disallow user type in more than 2 decimal places. (user cannot type in 89.5678 or 80.876876967896) Thanks! I don't care if my messages get voted on or not, but it's a flaw of this site that often, the right answer does not get marked right. The answer I gave you solves the problem you're describing. ...Show All

  • SQL Server Printing Blank in Landscape

    I've a report which is quite wide, and I'd like to print it in landscape.  In using the ActiveX control to change the print settings, the Preview looks great in Portrait, yet when I change it to landscape I get 8 pages of blank. If I change it back to Portrait, I get an error saying there was an error rendering the report. Has anyone had any luck with this Thanks. How can I get September build I did not find any hotfixes on September or later on MS download center. ...Show All

  • Windows Forms Visual Studio 2005 Service Pack 1

    What I want to know is when can we expect the desperatly needed service pack 1 for Visual Studio 2005 I've had so many errors so far when working with the Windows Forms designer, it is not only VERY frustrating and wasting my valuable time, but, it is also embarrsing when my projects and clients are being delayed because of a low quality tool. I expected higher quality standards from Microsoft! Don't get me wrong, I love .Net and especially version 2. It's just getting so frustrating to experience these errors in Viusal Studio and then red about them on the web to find out that I'm not the only one experiencing them and nothing is bein ...Show All

©2008 Software Development Network