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

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

zoujing

Member List

Geir F
Jamie Thomson
kasmatt2000
gfe
MartySeed
davco
mEt
Ather.
Florent SANTIN
orlop
Raoul_BennetH
shankar ramachandran
4B7
Greenwu
ANTRASOFT
hieu.nguyen
Pavel Nechai
Alastair Q
Carsten Kanstrup
dbaf
Only Title

zoujing's Q&A profile

  • Visual C++ Big loss in performance when using wrapper for unmanaged code

    I have followed the general outline by MVP Brian Kramer when developing a wrapper for Rick Wagner's C++ version of the Mersenne Twister. But to my utter disappointment the performance of the code was quite week. The native code running in a win32 console application was able to produce 300 000 000 million random integers in just over one second, but my wrapped version running in an CLI console application took about 6-7 seconds to produce the same amount of integers. This was absolutely not what I have hoped for. Performance is of the utmost importance in the part of my application where I will run the Mersenne Twister. I know that is it not advisable to run my wrapper code in a loop, but I really have to do that in my application due t ...Show All

  • Visual Studio Express Editions Listbox Help plz

    How do I hide a url address in a listbox and change it into a name For example i want a user to click on the name (eg. Radio 1) in the listbox without giving out the full address, which then plays through media player. Im using visual basic 2005 express edition. Here's a completely different approach: Public Class Form1 Private Class MyListItem Public mText, mUrl As String Public Sub New(ByVal txt As String, ByVal url As String) mText = txt mUrl = url End Sub Public Overrides Function ToString() As String Return mText End Function End Class Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ListBox1.Items.Add(New MyListI ...Show All

  • Software Development for Windows Vista Developing on Vista - things to look out for?

    I should be getting my sticky little hands on Vista next week, it seems. Whether I should or not is another matter. Are there any articles on things to look out for from the point of view of a developer running Visual Studio 2005, such as security (i.e. not having Admin rights), or could somebody give me a quick rundown of the major issues The biggest issue with VS is that you might need to run it elevated. For example, if you are developing a shell extension, VS will automatically register the COM object during the build process, which fails because you don't have permission to modify HKLM. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. componete becomes a property of another component

    in the video of the video of presentation of componetes “Game Components Dem " minute 9, the presenter writes “Spinner” and componete becomes a property of another component. When I do it in my component I cannot accede, to the object, of that form so that To hooking up properties that are GameComponents, you don't need to do anything special. There's a bug that doesn't allow design time assignment of GraphicsComponent based properties, though. ...Show All

  • Software Development for Windows Vista entry in workflowinstance table missing

    Hi, We are very new to WF and trying to implement state workflow in one of our applications. We feel that the workflow instance persistance is not stable in workflowinstance table. The entry for some workflow instances automatically moves out from workflowinstance table. So we are getting "workflow with id xxxxxx not found in state persistence store" error message. Am I correct to say that, the record will be deleted from workflowinstance table only after the termination even is fired This is not a new behavior. SqlworkflowPersistenceService always behaved like this and there is no switch to this off. Only option is to  create a custom persistence service which wil ...Show All

  • Windows Live Developer Forums Sending an Invitation for an Activity from a managed Add-In

    Hi, I wrote a Messenger AddIn in C# which is working fine. I also implemented the Activities SDK to collaboratively watch video. My question is how do I send and accept an invitation programmatically from the AddIn. I cannot change the AddIn to a 3rd party Bot environemt as I already implemented most of the functionality in managed code. I feel that the AddIn API and the Activity API can be used in conjunction. Any help is highly appreciated! Thanks, Janakiram Hi J-Thread, Thanks for the reply! It is working. I am able to launch activities like Hexic. But I am on a test setup that runs on the MSGRP2P.xml. What AppID should I use there for these test activities that are hosted on the l ...Show All

  • Visual C# Problem With Signed Byte Support In C# To Match Java Generated Hash String

    Right now I'm leaning towards that this is a issue dealing with Java having the byte type being signed and in C# byte by default is unsigned. I'm led to believe that this is what's preventing me to match any MD5 hash generated by Java regardless of what encoding I use in C#. For example this Java code as seen here: string pswd; public String getPswd() {return pswd;} public void setPassword(String passwd) { MessageDigest sha = MessageDigest.getInstance("MD5"); byte[] tmp = passwd.getBytes (); sha.update(tmp); pswd = new String( sha.digest()); } public static void main( String [] args ) { Encrypt e = new Encrypt(); String psswd1 = "ididnot"; e.setPassword( psswd1) ; System.out.println( ...Show All

  • Visual Basic Adding a sheet from a template in Excel

    Hi, Lots of references on how to use Excel from VB .Net, can get most of it working but cannot get Excel to add a new sheet to a workbook from a template. Looked on MSDN and found details on the sheets.add() method but it does not give examples it just says "you can add a sheet from an existing template" but does not say how...sigh. http://msdn2.microsoft.com/en-us/library/microsoft.office.interop.excel.sheets.add.aspx Here is the example I am taking apart to attempt this: Public oexcel As Excel.Application Public obook As Excel.Workbook Public osheet As Excel.Worksheet Sub Main()       Try 'create new excel application  oexcel = CreateObject("Excel.Application")  oexcel.Application.DisplayAlerts = False ...Show All

  • SQL Server Can I install RS2005 in machine with SQL 2000 + Visual Studio 2005?

    Dear All, I am new to Report Server and keen on trying Report Services. My machine is installed with SQL 2000 and Visual Studio 2005. Can I install RS2005 and access SQL 2000 as data source in my machine Must I install SQL 2005 In the production release, do we need install RS2005 in production (Production is installed with SQL 2000) or we just publish developed reports in web server, will be OK Thanks in advance! Haihong In addition to what Jens said, VS 2005 also contains the new Reporting Services "ReportViewer" controls which can be embedded into Winforms and Webforms applications and work in server mode (with a report server) or in local mode (without a server). More information specifically on the Repor ...Show All

  • Smart Device Development MD3DM mesh.Intersect

    Hi I am currently developing a project in c# and my focus is on manipulating a mesh of a human body, I need to get the point of intersection on the mesh from a ray using MD3DM. What I will eventually get it to do is highlight the selected area with a colour or image of some sort. From what I understand Mesh.Intersect() would allow this to be possible but this is not available in MD3DM. How do you suggest I go about getting the point of intersection on the mesh using MD3DM I am already using a bounding box, but this is just allowing the user to differentiate between the mesh and other areas of the screen and is not detailed enough for what I am trying to achieve. What would be the best approach I am doing this for my ...Show All

  • Windows Live Developer Forums Dynamic Map Width

    I swear that I have seen the answer to this, however now that I am looking for it, I can not find it anyware. I need to be able to use a width of 100% on my map. However, when I do, the map returns "upper left" and "bottom right" coordinates like it is only 100px wide. Does anyone know how to use a 100% width and get correct coordinates Any help is greatly appreciated. --Erick_the_Redd Yep i'm working in DotNetNuke so i know what your talking about. Haven't finished this part yet but you can work out the position of the map div on the page using this (IE only currently) function GetPos (obj) { var Pos = new Object(); //todo: fix firefox hardcod ...Show All

  • SQL Server Memory Allocation Error with XMLA Script

    Hi All, I am attempting to execute an ALTER cube script against my analysis services database. When it executes I receive the following error: Memory error: Allocation failure : Not enough storage is available to process this command. My server is running Windows Server 2003 and has 3.5 GB ram. I am tempted to tweak the memory settings in AS2005, but I was wondering if someone has already dealt with this problem. All help appreciated. Thanks, Sally Thanks for the response, Edward. I restarted the Analysis Services service and a few others, and I was able to execute the script. I would have overwritten the database, but I did not want to have to reprocess the cube. Since I kn ...Show All

  • Visual C# Excuting Script

    Hi All, Please help me,i want to know how excute an VBScript in the C#.net Thanks in advance Hari Krishnan.M You can use the WebBrowser control. You must embed the script into an HTML page, and load that page into the WebBrowser (this can be done either navigating to the file containing the page, or setting DocumentText property). Once the page is loaded (you can wait for the DocumentCompleted event, or check IsBusy), you can call your script using the method InvokeScript() . There is also a way to share objects between the application and the script ( WebBrowser.ObjectForScripting ). HTH --mc ...Show All

  • Visual C# Bit Fields

    Hi all I am trying to convert code that being written in C++ to C# and I found that structure that using a property in C++ called "Bit Fields" and I didn't found it in C#, is there any way to convert it to C# thx all typedef struct _tagCPB { unsigned short DialMode :1; unsigned short LineToPBX :1; unsigned short TriggerMode :1; unsigned short DetectRoaringRemoteHangUp :1; unsigned short DetectBusyRemoteHangUp :1; unsigned short DetectRemoteHangUpWhenRecording :1; unsigned short DetectRemoteHangUpAlways :1; unsigned short StopOperationRemoteHangUp :1; unsigned short MonitorDTMF :1; unsigned short MonitorEnergy :1; unsigned short DetectVoltReverseRemoteHangUp :1; unsigned short DetectSilentWhenRecording :1; unsigned short LearnPuls ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Problems with bumpmapping in XNA

    I've take sphere from 3ds max and export it via kwX to .X format ( with "export Tangets" and "Export normals" on ). Then i'm using this shader to get a bumpmapped sphere: //--------------------------------------------------------------// // Point light //--------------------------------------------------------------// struct VS_POINT_LIGHT_INPUT { float4 vPos: POSITION; float3 vNormal: NORMAL; float3 vTangent: TANGENT; float3 vBinormal: BINORMAL; float2 vTex0: TEXCOORD0; }; struct VS_POINT_LIGHT_OUTPUT { float4 vPos: POSITION; float2 vTex0: TEXCOORD0; float3 vToLightTS: TEXCOORD1; }; float4 vLightPosition; VS_POINT_LIGHT_OUTPUT PointLightVS( VS_POINT_LIGHT_INPUT ...Show All

©2008 Software Development Network