ASI Tech's Q&A profile
SharePoint Products and Technologies Sharepoint Services 3 - Document Page Not Showing
I've been having something strange happening that I can't figure out. I have been adding a web part page to a document list, I've added about 30 so far. For some reason though, when i log in as another user that has full admin access (eaxct same permissions as myself), the files do not show up. About 10 of them show up and the rest can't be found. If i log back in as myself then I can see them again. My first thought was maybe i accidentally added them to a personalised view, but when i go into Web Part Page Maintenance it says that it is not a personalised view, and either way I am sure that i never did that. Now whenever i add some new pages they are not showing up under anyone elses login, just mine. I must be doing something stu ...Show All
Smart Device Development PlatformNotSupportedException
I have created 2 forms, one calling another. In the main form, there is a picture on it. This runs fine in the emulator. But when I deploy the application on my WM5 device, I encounter "PlatformNotSupportedException" error in 2 lines: 1. when the main form runs the InitializeComponent(), the line below encounters the error: this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); How I put the picutre into the pictureBox1 is that in the property window of pictureBox1, select the jpg (or bmp) file using the "..." button. I found that the property is set to "System.Drawing.Bitmap". 2. When I omit the picture problem, main form displays. I try to call Form ...Show All
Visual C++ fwrite in binary mode
I have a binary file that i am reading in an array and then after doing some processing i want to write it into a new binary file. The reading and the processing is working fine but writing back is not working. FILE *fptr; FILE *fptr2; unsigned short *ds; unsigned short *ds2; fptr = fopen( "C:\\abc.dat" , "rb" ); fptr2 = fopen( "C:\\abs2.dat" , "wb" ); fread(( void *)ds, totalSize, sizeof ( unsigned short ), fptr); // total size is the size of the data and is correct processds(ds, ds2); // ds is processed and copied into ds2 and works fine fwrite(ds2, sizeof ( unsigned shor ...Show All
Visual Studio 2008 (Pre-release) Xaml question
<ScaleTransform CenterX="RootPanel.ActualHeight / 2" CenterY="RootPanel.ActualHeight / 2" ScaleX="2" ScaleY="2"> How can I do something like this in xaml :) I want to create e geometry from some precalculated values so that it will be as large as a grid cell let's say. you may want to have a look at this thread : http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=890020&SiteID=1 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Questions and suggestions
Just a couple of small observations/questions from a quick play 1: Is there a reason I'm missing why Microsoft.Xna.Framework is copied local to the output app, and Microsoft.Xna.Framework.Game isnt. I could understand if both werent or both were, just a little confused why one is and one isnt. 2: From the Content Pipeline video on the XNA Team blog I would assume that Assets (Models, sounds, etc) are saved basically as resources in the exe. The reason I assume this is that the content is build when you compile, theres no mention of the files existing on the filesystem in the new xna binary format, the code for using a Model seems to imply that the Model is already in memory. Is this true If so will there be a mechanism for loading th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to access Surface data?
here is my code Surface surface = graphics.GraphicsDevice.GetBackBuffer(0, 0); uint[] data = new uint[4]; surface.GetData<uint>(data,0,4); "The size of the data passed in is too large or too small for this resource" exception will throw out when execute GetData function. How draw a picture on an surface except to use GetData SetData function Is there a way to use GDI+ function to draw something on XNA surface,or copy data from System.Drawing.Image I want to write some code to draw chinese string on screen.If GDI+ function is available in XNA,that will easy to complete. Here's the code for a working sample of this method of drawing text. using System; using System.Collections.Generic; using Microsoft ...Show All
Software Development for Windows Vista Architectu System.Transactions vs EnterpriseService
Hi, I'm a little bit confused with this new System.Transactions namespace. I was able to understand its propose, but it looks like it is the replacement for EnterpriseService (ServicedComponent) when all you want from COM+ is the transaction coordination. I'm about to start a new project and I have to decide how to architect the components. I'd like to know if is possible to use only single assemblies without all the COM+ stuffs (packages, registration, etc). My environment: .NET 2.0, Win2003, SQL 2000 and Oracle 9i. Thanks, David Hi Avner, Juval Lowy's "Introduction to System.Transactions" might be of help for your question: http://www.microsoft.com/downloads/details.aspx f ...Show All
Visual Studio Express Editions datagridview header change
I am trying to add my own header names and have been very unsuccessful at doing this can someone point the way Thanks. Imports System.Data Imports System.Data.OleDb Public Class DatabaseClass Private theConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\mail.mdb;User Id=admin;Password=;" Private theDataSet As New DataSet() Private theDataAdapter As New OleDbDataAdapter() Private theConnection As New OleDbConnection(theConnectionString) 'create our connection object Private Sub DoGetData() Dim theCommand As New OleDbCommand( "SELECT * FROM importdata" ) Dim theDataSet As New DataSet() theCommand.Connection = ...Show All
SQL Server still struggling with flat file into multiple tables
So here's the issue 16 flat files all fixed width. Some over 350 columns. Open flat file 1 extract id and go see if its in table 1, if true update table 1 with first 30 columns otherwise insert into table 1 first 30 columns. goto table 2, lookup id, insert/update next 30 columns...etc..etc..for 10 different tables So I've got my flat file source, I do a derived column to convert the dates, i've got a lookup for table 1, then 2 ole db commands, 1 for update if lookup successful, 1 for insert if lookup fails. How can I pass the id as a param into the update command so it updates where x = 'x' also I need a pointer on doing the next lookup, eg table 2, would I do this as some sort of loop . If you can help great, bu ...Show All
Visual Basic Error Message that I can't resolve...
I am fairly new to writing in VB and in reality it is actually my first true language that I am trying to learn. I am currently writing a small application for where I work that will be used internally by only a couple of people. The purpose of this project is to record and maintain records for troubleshooting calls. This is in essence a CYA (cover your *ss) ploy that also helps us maintain with compliance rules. So essentially what I did was create a small program that would refernce back to a database out on one of our servers. This was supposed to be something that I assumed would be very easy, and at first it did seem to be working properly. Now I have run into a problem that I do not have a solution for. The following is the error I g ...Show All
Visual Studio 2008 (Pre-release) MessageBox visual appearance in Vista
I noticed that under Vista MessageBoxes fade in, rather than just appearing instantaneously. Nice effect. Questions: Is this behavior theme specific Is it behavior that apps will pick up for free or does it require implementation work by app developers Will I be able to easily do this with other UI/Windows How Got samples It's not specific to message boxes. Any caption window will have an animation when it opens, closes, minimzes, or restores from minimized. The animations only happen when the Windows Vista Aero theme is being used, and there is no specific work for developers to do to get the animations. ...Show All
Software Development for Windows Vista Multiple possible issuers
Hi, Is it possible to request a certain claim, while giving the user a choice between multiple issuers For example: a relying party needs your name, and it has to be certified by organisationA, organisation B or organisation C. If it is possible, how does it look like in WS-SecurityPolicy Can you just add multiple Issuer-tags <sp:Issuer> <wsa:EndpointReference> <wsa:Address> http://schemas.microsoft.com/ws/2005/05/identity/issuer/self </wsa:Address> </wsa:EndpointReference> </sp:Issuer> thanks! Thank you for the answer. But one question about not specifying the issuer at all. Isn't it more privacy friendly that this is specified Otherwise, a user discloses information ...Show All
Windows Forms Creating a install package.
Okay, the following is what I want to learn to do. 1. I want to create an installer for my program that I have. I know how to use the built in Publisher to create an installer but I want more features. I want the user to be prompted to enter a Product key, that has to be verified. Can anyone help me PLEASE! There are several options: Create a Setup project - I'm sure there's a way to extend the functionality of a Visual Studio setup project (I don't use that, so I wouldn't really know). Use a third-party product - Installshield or Wise. It's likely that they have something. Use an open-source package - there are several: inno and NSIS come to minds (I use NSIS, which I've setup to ask for a ...Show All
Software Development for Windows Vista UAC Sheild Program Icon Overlay
I have an application and the Setup.exe and *.exe program file has a manifest added with asInvoker and uiAccess="false" The application is installed for All Users, however the Start menu icon and desktop icon for the application has the UAC shield added. However, clearly our application does not require Administrator permissions due to the manifests. Is there any tools to confirm the manifest is correct or why the shield is being displayed The manifest is shown below for the program file: <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security> <requestedPrivileges> <requestedExecutionLe ...Show All
Visual Studio 2008 (Pre-release) DLINQ question
I just finished watching the "The LINQ Framework What's New in the May CTP" presented by Luca Bolognese. The video discusses DLINQ. question #1 I am a student and just starting to learn stored procedure of SQL. Correct me if i am wrong but my interpratation to the demo is that this DLINQ prevents you from creating sql stored procedure and your database query will mix up on your c# code or the business logic of the program. is that manner ideal would it be better if the sql code or the dlinq code is in a separated file and not mixed up with the business logic code quetion #2 would this DLINQ work with other database like MySQL, Oracle, etc this is my first time i have seen a video of LINQ. please correct me if i am wrong with my interpre ...Show All
