Zobayer's Q&A profile
Visual Studio Express Editions How to get the logged in user is Admin / User
Hi All, I am using the following fuction in my application to check whether the user is admin or a normal user. Now my problem is when iam running the application on Windows XP i am getting the correct results(ie when i loged in as admin i am getting the admin / true and when i logged in as user i am getting the user / false). But when i tried to run the same application on VISTA i am getting the return value as false (user) in both the login modes. How to change my code to give the correct results for bot the login modes. Please help me in this. BOOL IsUserAdmin(VOID) /*++ Routine Description: This routine returns TRUE if the caller's process is a member of the Administrators local group. Caller is NOT expected to be impersonating ...Show All
Visual Basic Reading from MSMQ help needed
Hi, I am a beginner and am trying to find out a better way to read from MSMQ using VB.NET. There is an application that queues message on a MSMQ. Now I want to have another application that should always listen on the queue and whenever a message arrives want to deque the message and do further processing and if all goes fine finally deletes the message off the queue and then wait for another message. There can be multiple messages queued within a second but I want to deque them one by one. As I work in Java/Oracle and this is a new requirement so trying to find out what is the best way to design this. Is there something that I can develop using VB.net that basically listens on the queue and whenever a message arrives automatically picks ...Show All
.NET Development long arrays blues
Someone please correct me if I'm wrong, but after reading a few porting documents it seems to me that the .Net framework is trying to support a 64bit computing model essentially by doing the following: Making pointers 64 bit Allowing a long to be used as an array index as well as a length specifier during array creation I've seen several documents mention how it would be space inefficient to change the size of int along with the pointer size and I can understand this issue, however is this space optimization worth breaking *all* functions that take arrays as input My concern is that any function that accesses an array will not be able to utilize the 64 bit address space without rewriting it to use long indices. Worse: A met ...Show All
Visual C# how to embed mainifest to executables which define it's execution level with following tags?
Hello everybody, I came across this problem when I was testing my application for the vista certification. This is the very first Test Case that my application exe is unable to pass. So please tell me How can I embed the manifest to the exe which defines it's execution level with following tag. <security> <requestedPrivileges> <requestedExecutionLevel level="asInvoker" uiAccess="false"/> </requestedPrivileges> </security> Please reply as early as possible. Thanx in advance. Ved. Information on this is available on MSDN. Try here: http://msdn2.microsoft.com/en-us/library/ms235542.aspx for C/C++, and it looks like a good blog entry on thi ...Show All
Visual Studio Team System TFS - Problems Accessing Documents Since IE7 Install
First, sorry if wrong forum, please "gently" redirect me if needed. Ever since I upgraded to IE7 (Xp-Pro Os), I am unable to successfully read or edit MS Word documents stored in Sharepoint. Each time I attempt to open a document, MS Word throws an error and automatically goes into recovery mode. The recovery mode attempts to recover and fails, eventually opening up an empty document. This is for any document in Sharepoint, the problem does not occur in standard documents stored outside of Sharepoint. I am running Office 2003, SP2. I am on a mission-critical project and need the ability to access the Sharepoint documents residing on the project website that I had set up. I have uninstalled IE7, going back to IE6. However, I ...Show All
Visual Basic [VB.NET] How to merge many GIF Files into one file
I need to create a software that it merge many GIF File into one file container. My application has this form I want that when i click "Add File" it shows an OpenFileDialog and that add file's path in the ListBox And when I click "Merge File" It merge all GIF file present in ListBox And when I click "Split File" it split all GIF File present in a File Container and that It save GIF Files in the same directory of the File Container I tried to write the code but it change any bytes of the GIF Files when I merge :( and i don't know how to use Split Function in VB.NET [Off-Topic]I'm new in VB.NET and i don't know fine this new programming language Best Regards Flash What do you ...Show All
Visual Studio What one-shot recipes would you add to DSL Designer?
If we were to add some recipes to the DSL Designer in future to automate some one-shot code and model customizations, what features would you most want automated Add ModelElement and Shape: This should add the new model element, a new shape, and make the mapping. (a wizard may be needed to choose the shape type) Same for relationships. ...Show All
Visual Basic in my project i need to format a multi line text box how to do
in my project i need to format 5 lines of text in a multiline text box which contain 129 lines and i need to format its font,size,color,alingment ect how can i do this can any one help me in dooing this ...Show All
Visual Basic Upgrade project from VS 2003 to VS 2005, All Crystal Reports References Broken
Hello, I am trying to upgrade a VB.NET project from VS Pro 2003 to VS Pro 2005. It seems that all references to crystal reports are broken in one way or another. Even in autogenerated codes as below.... Public Overridable Function CreateReport() As CrystalDecisions.CrystalReports.Engine.ReportDocument Implements CrystalDecisions.ReportSource.ICachedReport.CreateReport Dim rpt As CrystalReport2 = New CrystalReport2 rpt.Site = Me .Site Return rpt End Function The bolded line has a type not defined error. Are there any references that need to be added / changed Any help is appreciated. In case anyone else runs into this problem..... I was ab ...Show All
Visual Studio Team System In Project, can the Work Item ID field be editable?
For some reason when a .mpp was opened, the Work Item ID field was blank. Though the project was connected to TFS and the other fields were available, the Work Item ID was blank and still 'read only.' Is there a way to make this field editable Mostly so we can enter the correct work item ID and publish back to TFS. I can't test your second recommendation. This was a random occurence and happened on a machine that was not mine. I did create a new .mpp file and imported one of the work items that was affected in my original file. It worked fine. Everything has been working fine since that oddity. Thanks again for your support. ...Show All
Visual Studio Express Editions How do I run a script such as calling the ipconfig.exe and place the output in a text box in a application Gui form?
I was wondering how to run or call command line executables such ipconfig.exe and ping.exe and place them into a form. I want the output from the ipconfig.exe to redirect back into a textbox in my visual basic express edition application form. Thanks!!!! what is the class in vb2005 that will list the network adapter, associated ip address, subnet, and mac addresss regards, john ...Show All
.NET Development Using System.Net.Mail with Gmail is Faulty
Can someone try this on their computer with their Gmail account I'm not sure if its every mail service or just gmail, because gmail is the only mail service that allows for smtp access (hotmail and yahoo don't) that I use. The problem is that the mail message send completed event is not triggered, even when its done. The email is sent and all, its just the event isnt triggered. Mybe is the same problem that here: To send to hotmail, your server ip must have reverse dns resolution. This meaning, that for example from your dynamic IP internet connection you can't send to hotmail. You must have a domain name associtate at your IP address. This is a way to avoid spammers. Regards. http://forums.microsoft.com/MS ...Show All
Windows Forms e.Graphics = picCapture.CreateGraphics();
Hi, please take a look below private void pictureBox1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { e.Graphics = oldPicture.CreateGraphics(); } However, above scripts throw Exception "Property or indexer 'System.Windows.Forms.PaintEventArgs.Graphics' cannot be assigned to -- it is read only" How can I replace the graphics of pictureBox1 to picture1.CreateGraphics(); pictureBox1.Image = picCapture.CreateGraphics(); throws Error 1 Cannot implicitly convert type 'System.Drawing.Graphics' to 'System.Drawing.Image' and I can't see the image at this moment. There is some problem http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=531532&SiteID=1 ...Show All
SQL Server Parameters Changing Parameters
I have two parameters, Vendor and Status and I need to change the value of Status when the user changes the vendor from all to a single vendor and grey out the status parameter or just have it show all. Any Guildence . May be you need to read about "Cascading Parameters" to solve your problem. Here is one link: http://msdn2.microsoft.com/en-us/library/aa337426.aspx --Amde ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can not create reference D3D device 10 on VISTA build5472
It returns E_OUTOFMEMORY everytime I tried to create a D3DDevice10. -SDK version: June 2006 -VISTA version: Beta 2 build 5472 (x64) -IDE : Visual Studio 2005 I tried both my own code and the 2nd tutorial. Any ideas If you're using the August SDK, the known issues readme page gives a good clue: Windows Vista RC1 Is Required for the Direct3D Technology Preview The August 2006 Direct3DR 10 Technology Preview is only supported on Windows Vista RC1: it is not supported on previous releases of Windows Vista. If you're using the June SDK, it only works with the original beta 2, not the refresh. ...Show All
