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

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

amberBC

Member List

lfarzati
ron nash
MikeTennor
Ed_Zero
Alfitsi
ifaber
engineer Ahmad
vdv_phuong
NewWorld
js123
ernieracer
Fogel
Learning VB
Daltongr419461
knowledge
LadyReader
Steve Jensen
Raman_HP
Dan Imbrogno
Fabrice MARGUERIE
Only Title

amberBC's Q&A profile

  • Smart Device Development Update with a Guid ID

    customerID =Guid.Equals(lvCustomers.FocusedItem.Text); I wan to make a updatate statment using a Guid.Updating with a int works great but not when the data is a Guid. Any suggestyions Have a nice day. Guid.Equals isn't a static function, is it It's an instance method I thought ...   either way, you likely need to cast the text value as a Guid before comparing in order to achieve reliable results.   you're setting your customerID equal to the bool result of the Equals method ...   maybe you want:   bool idsMatch = customerID.Equals((Guid)lvCustomers.FocusedItem.Text); ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. 3D picking with the mouse combined with a moving camera...

    Hi all, I'll get right to the point. My camera is defined using the following code... cameraworld = Matrix .CreateTranslation(xplane, yplane, 0) * Matrix .CreateScale(zoom) * Matrix .CreateRotationZ(angle); view = cameraworld * Matrix .CreateLookAt( new Vector3 (0, 0, 100), Vector3 .Zero, Vector3 .Up); projection = Matrix .CreatePerspectiveFieldOfView( MathHelper .ToRadians(45), ( float )graphics.GraphicsDevice.Viewport.Width / ( float )graphics.GraphicsDevice.Viewport.Height,1.0f, 1000f); effect.View = view; effect.Projection = projection; I've also got code to allow me to place objects in the game world, after unprojecting the mouse points and finding the point of intersection with my XY plane. Only probl ...Show All

  • Visual Studio 2008 (Pre-release) Weird image loading/saving dpi-related problem

    Hello,   I am trying to generate thumbnails from files located in certain folder and save those thumbnails into other folder as jpegs. Everything works nicely and rather fast, but I bumped into one strange issue.   Most of my jpegs have internally set DpiX=DpiY=96 - and these behave nicely.   Problem is that some images have DpiX=DpiY=144 (or some other values). PixelWidth and PixelHeight are correct in all these images, but Width and Height properties are not - they are taking into account dpi values.   Getting thumbnails of these images is not an issue - I am using DecodePixelWidth or DecodePixesHeight on BitmapImage object to get them and it works very well. Unfortunately, when ...Show All

  • Office Live Development Web site user authentication and Data Sharing

    I'm building a workspace application for my client base to use in their own Office Live sites. It holds extra data for my clients' projects that are associated with particular opportunities. For example, the workspace includes XML parts lists and JPG design images, each referencing an Opportunity ID in the WebBCM. This works nicely in-situ - I have a Dashboard for this workspace that allows me to select the relevant Opportunity and show the associated design images and renders the XML parts list through XLST. What I'd now like to do though, is for my clients to be able to share the images with each customer. The customer should only be able to see the images that are relevant to them. I may want to add other data from other lists too ...Show All

  • SQL Server Denying access to a whole dimension

    In AS2K dimension security I could deny access to a whole dimension using the 'Fully Restricted' setting on a role. In AS2005 I can't see how to do the same thing - the only thing I can do is to deny access to every member on every attribute but even then I still see the dimension name in the metadata. BOL suggests it is possible but its descriptions of the UI must have been written before RTM and don't bear much resemblence to the current situation; I've also had a go at setting some of the properties on the permissions object in the XMLA definition of my cube but they don't work either. Is this feature still available If not, can we have it back Chris Hi Radim, I have no idea whether Connect is closed to new users - it seems ...Show All

  • .NET Development HowTo: Forms Authentication with WebService for database access

    I have an ASP.NET 2.0 application that uses a WebService for all database access (SQL Server). Now I have to implement a login page that uses Forms Authentication. I just did a test application, without a web service, that uses the Login control and all the 2.0 built in functionality and it works perfectly out of the box. Now I need to do the same thing using the web service, including role management. How much of the new functionality will I be able to use To do the actual authentication, is there an API to access the SQL Server aspnetdb database How do I handle roles Can I build the GenericPrincipal on the web service and pass it back to the application Are there any examples of doing this Any id ...Show All

  • .NET Development Easy way to combain VB.NET and C#

    Hi, Is there an easy way to do that Can there be a solution with a vb project and a cs project or one must be compiled to a dll before Hi, yes - you can create a new solution, containing both - some C#, as well as some VB projects. A C# project can reference VB projects and vice versa. No need for precompiling. Andrej ...Show All

  • Windows Forms STA and threadpool problem

    Hello, I have a Windows Form project which i tried to merge with a console project that uses Thread pool. After i did that i got a messege saying: "WaitAll for multiple handles on a STA thread is not supported." OMG someone please help me! this is an emergency beucase i must use the ThreadPool. anyone has an idea sorry, i solved the problem but i have another one related. everytime the project starts becuasei merged the console application project and the windows forms project, i get 2 screens opens. the console and the win form. anyone has an idea how to disable the console in the background I dont send output to the console (at least not when the application is s ...Show All

  • .NET Development how to save file to xmlserializer?

    Hi, I've been working on my project using C# windows application. I'd like to know how can I save information to disk. In this case, I want to save when user clicks save button; private void m_SaveButton_Click(object sender, EventArgs e) { XmlSerializer serializer = new XmlSerializer(typeof(Person)); using (FileStream fs = new FileStream("C:\\Documents and Settings\\Ken\\My Documents\\Visual Studio 2005\\Projects\\ListView2\\ListView2\\list1.lvx", FileMode.OpenOrCreate)) { serializer.Serialize(fs, persons); } } If I do that, I get exception. I'd like to know how should I save information using xmlSerializer. Thanks for help. Please p ...Show All

  • Software Development for Windows Vista How DirectShow pins negotiation and connection process?

    In both pull and push transport methods, how output pin from upper stream (source) filter and input pin from downstream (destination) filter negotiation with each other for connection Would someone please explain for me I have idea that have to deal with the AM_MEDIA_TYPE structure but I configured both upper stream and downstream filters have same value for “majortype” and “subtype” and they still not connect together. What else should I look for Thank you in advance for your time. Look also at the allocator negociation & decide buffer size. In case of difficulties, I "instrument" the methods to get values exchanged and understand where the problem comes from precisely. ...Show All

  • Software Development for Windows Vista About GetClientRect in AERO

    I use GetClientRect function to retrive the coordinates of a window's client area and then draw a bitmap into client area in WM_PAINT callback function. But when AERO is enabled and the minimized main window is restoring, the bitmap is presented before the main window being restored. It is no problem when AERO is disabled. There is a slow animation when a window being restored in AERO. How to detect the animation is over Or, should I try another way Don't call SetWindowPos() in WM_PAINT, that's asking for recursion death. The *only* thing applications should do on WM_PAINT is BeginPaint()/paint to ps.rcPaint/EndPaint(). ...Show All

  • Visual Basic Can you mame your own attributes, or whatever they're called?

    I'm new to VB, and I was wondering, when you click and drag a button or something on to a form, and it has properties or attributes, or whatever, like button size, what it says, etc. Can you make your own field for something like that Thanks. A control such as a button is a class. Some classes are inheritable which means you can use these as the basis of a new control inheriting all there functionality and then adding to it. For these you can add or modify the existing class functionality. For these you can add your own properties, methods and you could create you own attributes but for what you talking about its probably more likely to be methods and properties you'll want to add. I'd probably loo ...Show All

  • SQL Server How to deal with User!UserID in Data-Driven Subscriptions

    First a bit of background. We use the Windows-logon to authenticate en identify the user. With this logon we check within most of our reports what a user is allowed to see. Depending his level or geographical location he is allowed to run reports on one to all sites. He can selects the sites from a Multiple Select box. This works fine. Now, we want to use data-driven subscriptions, I understand why we can't use this parameter, but how do you people deal with this kind of configurations. I would prefer not to 'double' the reports in a normal and a subsciption version ..... Markus, I've send a mail to Brian and hope to hear from him. I'm using the UserId as a parameter in a query that resu ...Show All

  • Visual Basic Fileget

    Hi, i am using fileget to read a file, but i am going the following error: System.Security.SecurityException was unhandled Message="Late bound calls to file system methods in the Visual Basic runtime are not permitted." my code is the following: Public Structure rec <VBFixedString(4)> Public icount As String <VBFixedString(48)> Public iTellerID As String <VBFixedString(48)> Public iTellerName End Structure Public myrec = New rec Dim iFr As Short iFr = FreeFile() FileOpen(iFr, "day_08.log" , OpenMode.Binary, OpenAccess.Read) FileGet(iFr, myrec,1) FileClose(iFr) What i am doing wrong Please help. Is this a text ...Show All

  • SQL Server Jump to Url

    I use the "jump to url" in a report that links out to a page on our company intranet. Our internal users have to use http and an external user needs to be routed to the site w/ https. How can I account for this in a report You could use an expression for the URL and look at the global "UserID" Based on that UserID, you should be able to determine if the user is internal or external, and set the URL appropriately. HTH BobP ...Show All

©2008 Software Development Network