Software Development Network Logo
  • Visual Studio
  • Visual FoxPro
  • Windows Forms
  • Visual C#
  • VS Team System
  • SQL Server
  • .NET Development
  • Microsoft ISV
  • IE Development
  • Audio and Video
  • Windows Vista
  • Smart Devicet
  • SharePoint Products
  • Visual C++
  • Game Technologies

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

Lampkin

Member List

rod_r
RaghavendraPrasad
Participant
Daniel Tomasini
Rafer
MisterMoon
Jamie Thomson
Christopher Bernholt
MikeGB621234
Barger
_M_
Callavin
djmikke
DeonCadme
_jade_
me113
Hoodwinked
ahrio
old mpipe
Bandile
Only Title

Lampkin's Q&A profile

  • Visual C++ Compile error within code in #ifndef

    This is probably just me missing something obvious, but .... I've got a VS C++ program with a section of code patched out via an #ifndef NAME.... #endif section. The NAME is defined by a /D option on the command line (which appears correctly looking on the Properties page). Within the editor, the correct section of code is grayed out, so the editor at least is handling the #ifndef NAME correctly. However, when the application is built I get a compile error on one of the lines inside the #ifndef section -- it looks like the compiler is either ignoring the #ifndef or somehow the NAME has become un-defined. (I did do a search for NAME within the entire solution, and it is never #undef'd.) Changing it to an #if 0 compiles as expected. Any thou ...Show All

  • SQL Server Sql Connection errors

    I dont know why but.. I keep getting an sql error here.. private void button1_Click(object sender, EventArgs e) { SqlConnection sqlcon = new SqlConnection( @"Server=(local)\sqlexpress;Integrated Security=True;" + "Database=mydb" ); sqlcon.Open(); } this is the erro that I keep getting.... {"Cannot open database \"mydb\" requested by the login. The login failed.\r\nLogin failed for user 'XLORDT\\xlordt'."} now.. Im using sqlexpress the one that comes with visual studio.. what do i need to do to fix this For sqlExpress what I have is.. "Server Configuration Manager" and... "Server Surface Area Configuration" I check both of them.. and I cant se ...Show All

  • .NET Development What Privilege Do I Need for Low-Priv Server to Listen on Port?

    I am trying to follow Keith Brown's recommendations in his book "The .NET Devloper's Guide to Security". I have created a server app using HttpListener. The server app runs fine when logged in as Administrator, but when I created a user account and assigned to the Users Group I get an "Access Denied" on the listener.Start() method. I am not sure how to determine what level of security I need to perform this operation. Thanks M.D.A 5 is equivalent to ERROR_ACCESS_DENIED in Win32, or the code part from E_ACCESSDENIED (which is just an HRESULT wrapper for ERROR_ACCESS_DENIED).  My guess is there's some system permission the user must possess in order to open an HTTP liste ...Show All

  • Software Development for Windows Vista Windows Service Running Word via DCOM

    Hi everyone, I developed a Windows service which uses MS Word to generate documents. I call Word using DCOM / OLE. Up to now it worked pretty well. I tested the service on Windows Vista (Beta2, RC1, RC2) and it doesn't work anymore. Opening a Document in Word crashes with varying error messages. Office 2003 sais somthing like "Not enough memory". Office 2007 sais something like "type mismatch". I guess it might have to do something with the Session 0 isolation in Windows Vista. As services in Vista now have an own session. But I guess Word has problems with it's screen. In older Windows versions, Word worked "in the dark". When I run the service as console everything works fine. Anyone an idea w ...Show All

  • Gadgets Flyout content offset to the left.

    I'm writing a gadget and I get a strange behavior for my flyout. Sometimes all the content of my Flyout is offset by about 35 pixels to the left. The question here is why it's doing that only sometime (1 every 4 time maybe), not always. I'll continue to investigate the case, but I was wondering if any gurus had an idea why it's doing that erraticaly (at least, from my point of view). Here's a snapshot to show you a bit about the problem. You can see that the background is a bit too much on the left (and start repeating at the right), as well as the content : http://img177.imageshack.us/img177/5208/buggygadgetey0.th.png Thanks in advance. Make sure you do a 'style="position:absolute&qu ...Show All

  • Visual Studio Express Editions Changing bytes to Kbytes / Mbyts / etc

    I have a program that downloads a file from net and it shows progress in progress bar and in a text box.... the problem is...it shows the data in Bytes....i wanna know how can i convert it and make it show in all others like Kbytes Mbytes Gbytes TBytes ( well maybe not Tbytes ;p ^^ ) thx ahead. 8 bits = 1 Byte 1024 Bytes = 1 Kbyte 1024 Kbytes = 1 Mbyte 1024 Mbytes = 1 Gigabyte 1024 Gigabytes = 1 Terabyte This is plain math now... 3265Kb = Mb 3265 / 1024 = 3,18Mb Did you get it now Best regards. dp ( www.webhostservices.biz ) ...Show All

  • SQL Server Major flaw with Reporting Services!

    There seems to be a major flaw with Reporting Services that will give huge problems. RS can't support subreports when it is generated in Excel. As you know all reporting, almost all of them are dumped in Excel format. I really hope someone fix this huge flaw to this software. I wouldn't recommend RS to anyone if I have known about this problem earlier. This problem is huge, for me at least 75% of the problem. Do you know when patch or fix or whatever will be available so people can generate subreports in excel I would really hope Microsoft put out just a patch, instead of a release so that it will be available soon to everyone. This is crazy! Enkh. I would really hope that you guys fix this prob ...Show All

  • Visual Studio Tools for Office Outlook 2007: How to stop progress bar in view window?

    It seems like in Outlook 2007 if you create new folder, then after you first select it you'll progress bar on top of the view (right above the fields list). It won't stop until you switch folders. Is any way either not to show it at all or stop it programmatically Hi. Since the question is about the Outlook object model, I'll have to defer to one of the Outlook forums. You will probably get a better response if you post at http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.office.developer.outlook.vba&lang=en&cr=US . -Aaron ...Show All

  • Visual Studio Font size in diagram

    Hi, i set up an diagram with crystal reports and Visual Basic 2005. Everythink works fine, but I got in trouble with a font size property of the so called "datalabel". I did not find the property where I can set the fontsize to a smaller one. Can anybody help me ...Show All

  • Visual C++ Word at caret - winapi - richedit

    Hi. Can anyone tell me how to get the word at the caret in a richedit I tried looping back to the last space but I couldn't get it working. For reference, please use this forum for C++ language issues. Win32 questions can be asked here: http://msdn.microsoft.com/newsgroups/default.aspx OTP ...Show All

  • SQL Server Auto export to Excel

    Is there a way to export directly to an excel .csv file when the report is run without having to preview the report first and then click the export icon I want to be able to schedule a report to run and have it go directly to an excel .csv file. You can use the file delivery subscription. This allows you to automaticly create a csv file at a UNC path. See http://msdn2.microsoft.com/en-us/library/ms157386.aspx for more information. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Displaying a Blender x exported model

    I create a simple cube in Blender. I assign a uv-mapped texture to it. I create a .x file of the model. I start the XNA tutorial on loading and displaying a model. So far everything goes as expected. The tutorial model displays fine. I copy the model and texture to my game-dir, add the model to the content pipeline. So far, so good. I modify the code to display my model, run the code and there I get confused: The screen is blue. The code is able to find the .x file and to locate the texture. That I have tested. There are no compile errors about the .x file. Furthermore I have the most recent .x file exporter for Blender I could find. I also played with flipping the normals in all ways I could think of. No result what soever. Un ...Show All

  • SQL Server different colors for a matrix

    Hi. I have a matrix containing 3 row groups and 2 column groups and of course a detail area. I want to show the detail area in different colors according to the row number.For example 1. row -->blue 2. row -->green 3. row -->blue 4. row -->green 5. row -->blue 6. row -->green and so this goes.... I used the =IIF(RunningValue(FieldName, CountDistinct, "matrix1") Mod 2 , color1, color2) for the detail's backgroundColor property But it didn't work as I want.This caused a result like this: 1. row -->blue 2. row -->blue 3. row -->blue 4. row -->green 5. row -->blue 6. row -->green ....... And I didn't understand how it works. How could I do this.Which group name should I use in th ...Show All

  • Windows Forms Validated event close button

    In window form application for controls (e.g. textbox) I have implemented validating event and validated event for validation. But these events doesn't invoke for current selected textbox control when I click close button ("X" )on top of Window form. How can I force to invoke it when user click on close button. Thanks Hi, try calling ValidateChildren method on your Form_Closing event: private void Form1_FormClosing( object sender, FormClosingEventArgs e) { if ( e.CloseReason == CloseReason .UserClosing) { e.Cancel = !ValidateChildren(); } } Andrej ...Show All

  • Visual C# Dictionaries, Classes and Properties

    Hello, I am actually using the XNA framework for this app, but this question doesn't really relate to XNA all that much, more just the C# language. I have a dictionary array containing instances of my Sprite class. My sprite class has a position property, which is a Vector2. I use get, and set with my property of course. Now, i get an error when I try to do this: sprites["mysprite"].Position.X = 100; yet, it is fine when I do this: sprites["mysprite"].Position = Vector2.Zero; The error is: Error 1 Cannot modify the return value of 'Disasteroid.Sprite.Position' because it is not a variable Can I get and set child properties of my position property I have seen code snippets that do this. Here is my code: I have a dictionary array called ...Show All

©2008 Software Development Network