haryindsfjdbf's Q&A profile
Visual C++ How to read file as BYTE array into program?
I want to rea .cer files into program, but it looks I need read it as Byte array into program. Does anyone know how to do it, could you give me a sample if possible. Thanks a lot :-) But there is a function defined as following: PCCERT_CONTEXT WINAPI CertCreateCertificateContext( DWORD dwCertEncodingType , const BYTE* pbCertEncoded , DWORD cbCertEncoded ); pbCertEncoded [in] Pointer to a buffer that contains the encoded certificate from which the context is to be created. cbCertEncoded [in] Size, in bytes, of the pbCertEncoded buffer. I need BYTE * type to pass the parameter. I also need DWORD data to pass the size of pbCe ...Show All
Community Chat Microsoft and its 'new' Halo: Wars RTS Game, and Derelict Studios
Well, as most have probably heard, Microsoft has come out with a 'new' Real Time Strategy game called Halo: Wars, a game to be made for the X-Box 360. I quote 'new', because it is not a new idea, nor shall all the credit go to those people who work in Microsoft. A Modification for the game C&C Generals, called Halogen, was a mod in the works for approximatly 3 years, where people from the community pitched in numerous hours of work and labour for the good of the community, and a playable release was soon to come for those of us desperate to download it. Microsoft came in close to before the release and forced the memebers of Derelict Studios to close down Halogen and halt all progress on the game, and close down the ...Show All
Visual Basic Executing System Stored Procedure in Windows Forms App
I'm new (very new) to stored procedures and I'm having difficutly executing the sp_addumpdevice system stored procedure to backup a database. I've put the following code in a button click event handler: Private Sub btnDBBackup_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDBBackup.Click USE master EXEC sp_addumpdevice 'disk', 'FIRM_Backup', 'C:\MSSQL\BACKUP\FIRM.Bak' End Sub The problem I'm having is Intellisense is telling me that "name 'USE' is not declared" and "name 'EXEC' is not declared." Can anyone assist a stored procedure novice with getting this working Thanks in advance for any assistance! Tony That helps tremendously! Thank ...Show All
Visual Studio Team System Controller ,agents
Hi all this forum has really helped me a lot in learning this fantastic tool VSTS which has a lot more to explore... well till now i was doing webtesting and load testing on my computer which acted as the controller,after the load test i use to get a red cross on the parameters like Memory,Processor under my computer Name.so that tells the performance of the run module on my machine...Right now my question is is this result that comes with my local machine actually helpfull i mean to say should i just by getting results about my computer performance tell the developers to improve on the parameters having red cross after that load test run. or should the server act as my controller ,also i would like to mention that we have a ...Show All
Visual FoxPro Beginner in Foxpro (version 7) - need help in input/print on chinese character
hi, i am beginner in this software can anyone share with me, how should i go about inputing and printing of chinese character using version 7 or can someone direct me to some useful links for self learning would appreciate on any help. thanks u have to set the code page for the table to unicode. and try this link http://msdn.microsoft.com/library/default.asp url=/library/en-us/directx9_c/Installing_and_Using_Input_Method_Editors.asp ...Show All
SQL Server New to IS -- please help me!!
Hi i am new to IS and I have been trying to use conditional split but cannot get the syntax to work. Can someone please tell me where i can find a syntax guide or samples especially on how to make the datetime funnction and maths function work. And, am I correct that the syntax is not as simple as they look in the conditional split transformation editor thanks!!! thank you darren. ok basically i am looking for the logic of the syntax. For example when i typed SUBSTRING(firstname,1,1) == "A" into the conditional split editor column, the parser can recognize this because the syntax itself is correct. Now, what is the syntax logic behind date / time and math functions Do ...Show All
.NET Development Executing DOS command from vb.net webservices
Hi, I've created a web service to execute a simple DOS command. here is my web service code Dim strbatFilePath As String strbatFilePath = "e:\gems\Dev\Supplier\cmdr.bat" Dim fs2 As FileStream fs2 = New FileStream(strbatFilePath, FileMode.Append) Dim sw2 As New StreamWriter(fs2) sw2.WriteLine("copy e:\gems\Dev\Supplier\dir.log e:\gems\Dev\Supplier\reuters") sw2.Close() Dim objProcess As Process objProcess = New Process objProcess.StartInfo.FileName = strbatFilePath objProcess.StartInfo.CreateNoWindow = True objProcess.StartInfo.UseShellExecute = False objProcess.StartInfo.RedirectStandardOutput = True objProcess.Start() objProcess.WaitForExit() objProcess.Close() when ever I invoke this web service from my cl ...Show All
Gadgets Bandwidth Monitor
Does anyone if it is possible to create a bandwith monitor sidebar gadget and if so has anyone got any examples I could look at. Regards Ian For some unknown reason, MS locked it down. God alone knows why! I don't think your problem is getting access to WMI static data, but NIC information. Install WMI Tools and run WMI CMI Studio, see if you can get access to the WMI entries as the current user (click on the Binoculars icon to search for it). I suspect you can't. Read this , see if it helps. The main WMI documentation is here , which mentions Vista - you've probably already read it though. ...Show All
Software Development for Windows Vista Locked vs open activities in workflow design time
Hi! I have a workflow project with a few custom activities. All my activities derive from a custom class which derives from SequenceActivity. It works fine when running but in the main flow, in design time, a couple of my activities are just default icons while others are expandable (plus sign on control and when opened all contained controls are showed with small locks). I would like all my controls to be non-expandable and wonder why there is a difference All my controls have been built the same way but I guess I must have changed something Thanks for your help, Markus Thanks Michelle, great example!! Still curios though why some of my activities are expandable, others not, since th ...Show All
Visual C# How do I generate help files for my dll?
I am writing a class library in C# to provide an API to my product. How do I generate help files to publish in the documentation I provide in an SDK Is there some automated tool that will take the text comments that I have included in my source code and generate help files and text documentation Sandcaste project is great, but I highly recommend Eric Woodruff's GUI as a front end http://www.codeplex.com/SHFB . It makes things much simpler. Thanks again! ...Show All
Visual Basic VB.net connection to SQL server and inserting data
SqlConnection = New System.Data.SqlClient.SqlConnection("workstation id=VANPC62757;packet size=4096;integrated security=SSPI;data source=MTLASR74;persist security info=False;initial catalog=vanLMS") SqlAdapter = New System.Data.SqlClient.SqlDataAdapter( ) i m trying to connect to a table in the Sql server lets say the table is called SQLTABLE do i need a dataset in order to insert stuff into sql server can someone show me a few sample line of how to insert data(or datatable) into the table in SQL server thx in advance what is the name of "InsertStoredProcedure" is it the name of the Sql table that i m inserting my data into ...Show All
Windows Forms DateTimePicker: editing position
I can edit day, month and year in my DateTimePicker. If I enter the DateTimePicker, then editing position is "day". Then I move to editing position "month" and leave the control with tab. Next time I enter the DateTimePicker editing position is still "month". How can I achieve, that editing position is always "day" if the DateTimePicker is entered Your calculation for the LParam argument isn't correct. Try this: SendMessage(hWnd, WM_LBUTTONDOWN, IntPtr.Zero, (IntPtr)(p.Location.Y << 16 + p.Location.X)); ...Show All
SQL Server Uprgade MSDE 2000 to Sql Server Express - Authentication issue
I am trying to do a unattended upgrade of an MSDE 2000 named instance , say MyInstance, to a SQl Server Express Advanced edition. The set up is Mixed Mode Authentication . ( I can't use Windows Authentication for business reasons ). The error I get is SQL Server Setup Cannot Upgrade the specified instance by using SQL Server Creditial. You must use Windows Authentication creditial for the upgrade. Details are as follows: OS: Windows XP Prof (SP2). Original install: MSDE 2000 Instance name: MyInstance Authentication: SQL Registry Entry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MyInstance\MSSQLServer Key LoginMode has a value of 2 ( corresponding to Mixed Mode Auth) Upgrade attempted to: SQL Server Express Adv. Command ...Show All
Windows Forms C# .NET 2.0 Serial Port
Can anybody shed some light on the 2.0 Serial port object I've been trying to get it to work but to no avail.... I can write to the port with no problems. My problem is with the serialPort1_DataReceived event. It never fires.... I have searched the web high and low and haven't found anything of any assistance. Has anybody found code examples that actually work ! That's usually a handshake line problem. Use RtsEnabled = DtrEnabled = true after you open the port. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA methods
Hi, This is my first post here. My English is not good, so excuse me for any mistake you could find :). OK, I have been programming with unmanaged DirectX for some years and I now I just started learning XNA, not to migrate from DX, but just to know a new technology. XNA is relly a fantastic tool, but I admit I felt a great impact when I saw the XNA code for the first time (... but nothing that could not be cleared with a bit of patience :) ). There is a huge difference between unmanaged DirectX (native C++) and XNA (C#). OK, lets to the doubts: The XNA Game Studio Express Documentation shows 5 main methods that make the game works. They are: Initialize, LoadGraphicsContent, UnloadGraphicsContent, Update and Draw. What ar ...Show All
