airwalker2000's Q&A profile
Visual C++ C++ tutorial
I have downloaded the program Visual C++. and is there is a tutorial for this program. devilforger34 wrote: I have downloaded the program Visual C++. and is there is a tutorial for this program. The MSDN walkthroughs are a good place to start http://msdn2.microsoft.com/en-us/library/0x6hy671.aspx If it's downloaded it must be the Express Edition so ignore the walkthroughs involving MFC. The Express Edition does not support MFC. BTW, there is a separate forum for the express edition here http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=161&SiteID=1 Regards ...Show All
Visual Studio Team System Reject deletion of documents in Sharepoint (WSS 2.0)
When a file is deleted in a document library it is lost and there is no way to recover the deleted document. Even in a versioned document library one can’t access earlier versions any longer. One of our development projects asked me how they could achieve the following on their Sharepoint Project Portal: Only an administrator should be allowed to delete a file. First I thought I only have to deny the right to delete from the contributors group - but it’s always coupled with the right to add / edit. And of course contributors should add and edit files. Then I thought maybe we could achieve this by activating content approval - but reading about it I think that’s not what I need either. Is there a way to reject deletion of docume ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Graphics problem
Ok, here's what I got: ATI MOBILITY RADEON 9000 IGP, I have Service Pack 2, can run DirectX9.0c easily, I have all prerequisites & requirements I need...But I gut an error message along this line: this.GameComponents.Add(this.graphics); message: The values used in the attempt to create the GraphicsDevice were invalid. ...Show All
Visual Studio Express Editions Establish array of unknown size
I am not too good working with arrays. I am trying to figure out how to dynamically add values to an array that will be of a size determined by how many times the user does something. Test code below. Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim inputnumbs() As Single Dim num As Single Dim input As String = "" Do ' unknown number of inputs will be given by user input = InputBox( "Enter value " ) If input <> "" Then Try num = input Catch ex As Exception MsgBox( "Numbers only!" ) Continue Do End Try End If ' At t ...Show All
Visual Studio Tools for Office Control Break in Visual Studio VSTO, Word does not recognize break
I placed a control break in the vb code inside VSTO and Word does not recognize it. It runs and ignores the break. How do I make it to stop on the break I set in VSTO. I placed a break here, I placed a debug control break in the code in Visual Studio, but I was unable to let Microsoft Word to understand this. It would not break for me to do a step through. Is there a setting that I need to turn on to do this At startup I have the following code: Private Sub ThisDocument_Startup( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Startup Dim oPause As Object oPause = False Me .MailMerge.Execute(oPause) End Sub I placed a break at : Private Sub ThisDocument_ ...Show All
Windows Forms keydown event doesnt fire if you have a webbrowser object on your form
Topic is pretty self explanatory... any suggestions as to why this is happening If i take the webbrowser object off my form, the event fires. If i put it back on again, event does not fire. I have keypreview set Can you Plz send me the same example to me. I hope you will do this small favour. Thanks in Advance,. ...Show All
SQL Server SQL CE Trouble in Visual Basic 6
I use SQL Server 2005 Compact Edition RC1 with Visual Basic 6.0. connection provider that i use is Microsoft.SQLSERVER.MOBILE.OLEDB.3.0. for database management i use SQL Server Management Studio. some query can't execute in visual basic but in sql management studio, that query can run very well. for example: 1. select KodeSatker, KodeSatker + ' - ' + Nama as Nama from TMSatker where len(kodesatker)=3 order by KodeSatker 2. Select a.kdprog, a.nama, b.kodesatker + ' - ' + b.nama as SKPD, a.nonurusan from TMProgram a left join TMSatker b on substring(a.kdprog, 1, len(a.kdprog) - 2) = b.kodesatker 2 query above can run in sql management studio, but in visual basic 6.0, that query have an error. error msg:run time error '2147217887 (80040e21)' ...Show All
Visual Studio 64 bit version
I have a 64 bit machine. if I want to install Visual Studio 2005, which version I should you. Does it come with the 64 bit version ...Show All
Visual C++ AES Encryption
Hello everybody! i try to rewrite the example from http://windowssdk.msdn.microsoft.com/en-us/library/aa382358.aspx to use AES encryption instaed of RSA. The problem is that i alway get "error 80090007" i have no idea how to use a string as a static AES_256 symmetric key. sorry for my bad english! my code: static BOOL EncryptFile( PCHAR szSource, PCHAR szDestination, PCHAR szPassword) { FILE *hSource; FILE *hDestination; HCRYPTPROV hCryptProv; HCRYPTKEY hKey; HCRYPTHASH hHash; PBYTE pbBuffer; DWORD dwBlockLen; DWORD dwBufferLen; DWORD dwCount; if(hSource = fopen(szSource,"rb")) { printf("The source plaintext file, %s, is open. \n", szSource); } else { MyHandleError(& ...Show All
SQL Server Please help struggling with the parameters
Please help, i am really struggling last 3 days with the parameters section. MyReports is the web Reference pointing to( http://localhost/ReportServer/ReportService.asmx ) ReportViewer1 is the control added to the toolbox. I am getting error on this line: rService.SetReportParameters("/ccsNetRpts/StatusRpt", parameters) ************************************************************************************* Dim rService As MyReports.ReportingService = New MyReports.ReportingService rService.Credentials = System.Net.CredentialCache.DefaultCredentials Dim parameters(1) As MyReports.ReportParameter parameters(0) = New MyReports.ReportParameter parameters(0).DefaultValues = New String(1) {} parameters(0) ...Show All
Visual Studio Express Editions Program to launch programs :)
Hey, I am looking to make a program that will be able to launch two other programs simultaneuosly. Can someone show me some code please Im pretty stuck :( Ok, so I figured out how to use the Process class, but I am having trouble specifying where my programs are. Any tips And for the .bat, I totally forgot that they are executable by themselves...but once again it didn't do anything when I launched it. I am sure I am putting the full adress to the programs but still no-go. ...Show All
Windows Forms C# ComboBox help plz...
Hi all, How do I get C# to populate a ComboBox with files from a folder They'll then be displayed into a DataGridView, but I think I got that under control. Another Q... if I wanted to make the ComboBox display the files in sub selections like this: Arts.resx Arts.01.resx Arts.02.resx Movies.resx Movies.ab.resx Movies.cd.resx Not in alphabetical order but just match similar names Any help thanks. Much appreciated :-) Hi To retrieve a list of files from a directory you can use the System.IO.Directory object's GetFiles method which returns a string array containing all of the file names. Note, however that this returns the full path and name of each file in the directory, so to o ...Show All
Windows Forms Monotype fonts for list boxes
I am attempting to display a set of parameters with their values in a checked listbox. I would like to line up the names of the parameters, the = signs, and the values. The only monotype font I know of in the usual set of microsoft fonts is Courier New. I would prefer a font that looks more like microsoft sans serif. Anyone know about available fonts I don't remember which fonts are loaded with Windows that are fixed-width; but, some examples that are fixed width: Fixedsys, Lucida Console, Terminal. Lucida Console is a san serif font that is popular. ...Show All
Software Development for Windows Vista Using smartcards in a service - SCardAccessStartedEvent
Dear all, Migrating our core development platform to Windows Vista, one of our Windows services using smartcards is failing. We have debugged the problem and found that the event provided by the function ScardAccessStartedEvent does not receive notification. This event is supposed to signal when the SmartCard Resource Manager starts. As we have a WaitForSingleObject(event,INFINITE), the service hungs. Testing the same service as an ordinary executable ( registering with -regserver ) I can see it works properly. In XP it works properly both as an executable and service. I have read something about Service Hardening in Vista and I guess it may be caused by privilege reduction. So, I've created some code to enumerate the existing ...Show All
SQL Server SQL Server collation problem
Hi, Does anyone know if there is any way to work around the problem encountered when the database collation (sort order) is different from that of the SQL server collation. Under SQL 2000 I understand that we could have databases with different collcation under the same SQL server. When a store procedure uses the temp files, it would fail if the sort order of the database is different than that of the Tempdb which has the SQL server's sort oder. Is there any by pass Have you tried to use the collate database_default clause in your create temp table ...Show All
