PeeJayGee's Q&A profile
Visual C++ spawning a 3rd party application from my application
Hi Ok - I know I can use various methods to start a 3rd party app such as system (yes I know it blocks), the spawn family, CreateProcess, winExec and ShellExecute. What I need to do is have a 3rd party application start either where I want it to on the screen and of a particular size or maximized in a window that I have created. I also know that you can specify dwx,dwy,dwxsize,dwysize in the STARTUPINFO struct passed to CreateProcess. I can see the app starting in taskmgr but if I try to size the window it doesnt appear ! Is it because the applications main window hasnt been defined as overlapped I may not have the option of requesting ...Show All
Windows Forms Password character?
Hello! Which character in which font is it Windows XP uses as the password character for the login password textbox (as I would like to use the same) Best regards, Henrik Dahl Hello David! Thank you very much! Best regards, Henrik Dahl ...Show All
Visual C++ SSE3 Programming question
I am trying to use the sample code in Visual Studio 2005 Beta 2 to compile SSE3 math operations, and am having problems. The first issue is that the intrinsic math functions (_mm_addsub_pd for example) are not declared in emmintrin.h. This is the only file that the MSDN help says is needed to include. If the sample code is compiled with this header file, unresolved externals occur. I managed to find pmmintrin.h in the Intel C++ compiler installation which fixed the problem of unresolved externals, and declares the SSE3 functions. The next problem is that the sample code causes an access violation: "Access violation reading location 0xfffffff ...Show All
Visual C# Passing Start Parameters Into A Service
Hi all ... I'm using VS 2005 and .Net 2.0 I've been able to set up a service based on the VS service application, get it installed, and start/stop it using the Windows Services SCM. On the properties window for my service there's the standard "Start Parameters" field. I believe the idea is just like passing Main command line arguments to a console application. I'd like to pass in one data value to my service when it starts using the Start Parameters option. I experimented with Main and OnStart, but wasn't having much luck. Is there a reference or example on how to do this Thanks! DB Did you know the Start Pare ...Show All
SQL Server Is there an IN( ) function?
Is there and IN or and InList function in Reporting services I'm trying to do some conditional formatting and it would be really handy to be able to write an expression such as =iif(Fields!blah.Value In(X,Y,Z),"Red","White") Hi, There is no IN function. I have been using OR functions for this ...Show All
Smart Device Development .obj/.exe files geneerated by VS2005 are 3x the size generated by eMVC++
We are finding that the .obj/.exe files generated by VS2005 are much larger than those generated by eMVC++ with similar compiler/linker options set (all debugging options have been turned off). Running a stirngs utility against the .obj files produced a huge number of '$Mnnnnnn' references, where '$M' was constant and 'nnnnnn' was an ever increasing integer. Compiling such that .asm files are produced showed that these references seem to be associated with DCD psuedo instructions used for padding ( ). The difference between the VS2005 generated files and eMVC++ files is that there are SIGNIFICANTLY more of them in the VS2005 versions. Any ...Show All
Visual Basic howto: vb.net set group rights to a network file
Hello: using whidbey, vb.net, I am impersonating a domain admin I have retrieved from AD a group called: " oci\School Reporting Authentication: I call the following: 1) I impersonate a domain admin 2) I open a dialog box and go to the file on the win 2003 server that the Impersonated account has admin rights on 3) I call the following ---------------------------------------------------------------------- Dim user As String = "oci\School Reporting Authentication" Dim mSec As New EventWaitHandleSecurity() Dim rule = New EventWaitHandleAccessRule(user, EventWaitHandleRights.ReadPermissions, AccessControlType.Allow) Try   ...Show All
Visual Studio Tools for Office Export Data to Excel
Hello everyone! I'm trying to export data in a DataGrid to an Excel file but i’m having some troubles: 1o- if i use the following code Response.ContentType = "application/vnd.ms-excel" ; Response.Charset = "" ; this .EnableViewState = false ; System.IO. StringWriter tw = new System.IO. StringWriter (); System.Web.UI. HtmlTextWriter hw = new HtmlTextWriter (tw); DataGrid1.RenderControl(hw); Response.Write(tw.ToString()); Response.End(); any 'special char' like:'C' or 'A' will not appear and instead of it will appear something like: §A. I've been trying to get information about it on inte ...Show All
Visual Basic Using VB.NET to run External Applications
Is there anyway to use Visual Basic 2005 Express to run external files For example, pressing a button would open Notepad. I am trying to use the process command to run an external DOS-based program and then issue commands to it. Is there any easy way to reroute the commands to the program once it is running Roran1981 ...Show All
Visual Studio Express Editions how do .dll files work?
Hi all, I have a question... What are .dll files, and what are they for Grtz, Tom Yes you can create one Start a new project of the type class library. The class library can contain any classes which you might add to a windows project. If you compile htem as a class library then you will need to add a reference to the dll in the project which is going to use the functions stored in the libary. Then you can use those functions in the same way as the functions you create inthe project itself ...Show All
.NET Development How to pre-JIT dynamically generated MSIL?
For pre-built assemblies, sitting on disk, one runs NGEN.EXE to pre-compile MSIL to native code. But how do you do it for dynamically generated code built through System.Reflection.Emit The application is near-realtime generation of audio. Proofs of concept seem to work fine, but the only show-stopper right now is the time it takes to JIT the MSIL on first use of a dynamically-generated method. There must be another way to force JIT-ing of the code without actually calling the method. (The proof-of-concept code currently adds a parameter to dynamically genrated methods that makes the method do nothing, just so that the JIT can be forced b ...Show All
Visual Studio Team System Another 3200 Error during setup
Hi Almost out of patience (and time) now. Thought I had it made since I managed to get the Report server up and running (finally sic!). But then this popped up (again) almost at the end of the FS installation. Product: Visual Studio 2005 Team Foundation App-Data Tier Beta 2 (English) -- Error 32000.The Commandline '"C:\Program Files\Microsoft Visual Studio 2005 Enterprise Server\BISIISDIR\bisdwserver\bin\SetupWarehouse.exe" -n -s "<ServerName>" -d BisDWDB -c "C:\Program Files\Microsoft Visual Studio 2005 Enterprise Server\BISIISDIR\bisdwserver\bin\Consolidated.xml" -a "<DomainName>\TFSSERVICE" -ra "<DomainName>\TFSSE ...Show All
.NET Development MAC Address
Hi there, sorry for the stupid Q Is there a way to retrieve a MAC Address from a client machine in ASP.NET I have found a way of retrieving the MAC address for the local machine (Server) but would require it for the client. I can get the hostname and IP no problem but would require the MAC Address, if possible reason to see what user has "disobeyed" any rules etc.. and to make sure that you can "ban" or report them on your website. an IP address isnt enough and a MAC address is. Thanks! yes i was going to point this out I could shell it out but i dont want to have to do that as it is unprofessional. Ok, what about using client side scri ...Show All
Visual Basic I solved it.
Hello, I'm going to have several customer user Controls which inherit from WinForm controls (Label_MyLabel, RadioButton_MyRadioButton --these names are illustrative for this examle only). I've got a Project, Bungalow, with Form_BungalowBase and RadioButtonLessonList. I'm trying to add a new control (label_Matching which inherits .label) from which I'll inherit. THE PROBLEM I'm trying to add it to the above project, but when I do that I get a lot of errors* that suggest (to me) that there's a namespace clash b/t my new user control and the existing RadioButtonLesson.vb QUESTION Should each new User Con ...Show All
.NET Development ARP Request Causes UDPClient Disconnect
I'm communicating with a networked sensor via UDP using the UDPClient API, and it works okay, until the device sends out an ARP request for my machine, at which point it looks like the UDPClient becomes disconnected in my program. Using Ethereal, I can see that the device continues sending data to my machine after it receives my ARP response, but I get a timeout error from the UDPClient Receive method ("A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond"), and then the UDPClient is disconnec ...Show All
