Kujo1987's Q&A profile
Smart Device Development WMP 9 in PPC
Hi, I used COM interop to create an an embedded player in my application, it works fine in the emulator which has WMP 10 but I could not get it to play in the real device IPAQ h6340 which has WMP9. is there any solution or an update for the device Thanks in advance. WMP9 on Pocket PC doesn't have any true programmability support. You can launch files programmatically with CreateProcess and you can do some basic operations with some undocumented windows messages:- http://www.peterfoot.net/FridayFunAutomatingWindowsMediaPlayerFromNETCF.aspx Peter ...Show All
Visual Studio Tools for Office Access Web browser from MS Word 2003
Hi, With this code (in a WordDocument), System.Diagnostics. Process [] processes;processes = System.Diagnostics. Process .GetProcesses(); foreach (System.Diagnostics. Process instance in processes){ if (instance.ProcessName == "IEXPLORE" ) {... I can check if an instance of Internet Explorer is running on the machine. How is it possible to access from there, the actual IE Object to retrieve information such as the current selected link,etc. Is it impossible to access from Word another application such as the IE running at the same time on the machine due to security reaseons Thanks for any hint on these topics! Claudia Hi Claudia This question has nothing to do w ...Show All
Visual C# .NET or CF.NET
Hi... I am really very new in .NET programming. I have to develop an Application for Win XP-Embedded. Which Framwork should I use Normal .NET or Compact Framework Thanks.. I think that .NET for Embedded XP is called .NET Micro Framework . ...Show All
Visual Studio Express Editions Keyboard.
I am trying to create a key logger with vb.net. I don't know where to begin. I have found a sample but when i press a key it is like i have pressed it 2 times and sometimes an error occurs. Do someone have a sample code of something like this. Hi, I hope you are not planning on using a keylogger for any illegal activity like on a shared computer or over the internet With that in mind, don't be suprised if you get no other replies to this question. Regards, S_DS ...Show All
.NET Development SMTPClient sending anonymous on UseDefaultCredentials
When sending mail via System.Net.Mail smtpClient, I would like to take advantage of using the currently logged in user's credentials to avoid hardcoding login information. I believe this is as simple as mailClient.UseDefaultCredentials = True /* mailClient.Credentials = New System.Net.NetworkCredential("mylogin", "mypassword") */ In my case, sending e-mail is successful when using hard-coded login information as shown above. However, the process times out if I attempt to use the default credentials. Looking on the server side, I see that the client presents itself as anonymous and the server does not respond because it does not accept anonymous requests. I log into a local domain (Windows 2003 Server) wh ...Show All
Visual Basic thread-safe in VB.NET 2005
Hi, I have a form with common controls such as comboboxes, texboxes, checkboxes...etc... I need to launch some threads to accomplish some work that was impossible otherwise The problem is how can I access (safe mode) the data of the main form controls I know how to make delegate functions to change data in main form, but I don't know how to get them in safe mode example : control in main thread : me.checkbox1.checked=true me.combobox1.selectedindex=2 in thread1 : How to get that controls values/states in safe mode thanks in advance Another option is to store the control values in a global object accessable from both (all) threads. Of course, you still need to synchonize ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rather noobish question to do with coordinates
Hello, I am working on an application and one of the tasks it needs to do is apply a form of gravity to the scene. Now, we all know that gravity pulls down and so on, but with the mesh, it seems y is not always the vertical axis. The mesh is rotatable, but I just cant think where to start looking or indeed what to search for in terms of finding theory or a tutorial to find which way is down (in vector form). I assume it is to do with the camera or view matrix, but I cant think what function to call etc etc and I'm totally lost. Not yet in a spiral of tears, but if anyone can think of what I am on about and point me towards a tutorial, or something similar, I would be very greatful as according to my app at the moment, gravity applies in s ...Show All
Visual Studio Reference from csproj to vcproj fails to build using MSbuild
Hi, We are having an issue building a VS2005 solution using MSBuild. Our solution includes a c# project that has a project-to-project reference to a VC++ assembly project. The VC++ project has Common language runtime support set to None, but overridden on some of its source files to /clr. This builds fine within the IDE but fails to build using MSBuild from the command line. Looking at the MSBuild output, the /reference: for the VC++ assembly is missing from the CSC command line. If we enable CLR support at the project level everything builds fine, but this is not a practical option for us – there are hundreds of source files in these projects but only one or two that require the /clr switch. The link has a small example solution ...Show All
Visual Studio 2008 (Pre-release) WCF: How to Add Service Reference?
From the tutorial video, http://www.msdnevents.com/resources/2006-summer-resources.aspx , demonstrates using the "Add Service Reference" to generate the client code for the service. It should have been a better approach than cryptically coding from the commandline for the proxy class. However, some cases this option is not available in the project and if so the reference svcutil is pointed to [ ...Microsoft Visual Studio 8\Common7\IDE\svcutil.exe of v2.0] upon creation and as observed, the proxy class (especially for tcp and namedpipe) doesn't matched or has error. Q: Is there anything to add [configs|settings|etc..] to make the Add service reference available in the project If not, Is there any available updates in support and ...Show All
Visual Basic Convert string to form object name
I want to do something along the lines of reading a value from an array of booleans and select the right checkbox object based on the integer index and check it based on the value. lets say the value at array(4,4) is 10 then I want to public dynamicObject as object dynamicObject.name = "chkbox_" & array(4,4).tostring() dynamicObject.checked = true so i want chkbox_10.checked = true, but do this dynamically by converting a string to a formobject name. This does not work.. is there a way to make this dynamic as possible no conditional statements please Or, create an array of controls Dim myDynamicControls(9) As System.Windows.Forms.Control myDynamicControls(Array(4.4)).Enabled ...Show All
.NET Development Code security exception while using fully trusted assembly to implement config section for the application started form network
I’m using Microsoft enterprise libraries for my winforms application. One of the requirements from the customer is that it should run from network share in intranet zone. I strongly named all assemblies in the enterprise library as well as my custom application. I created security policy allowing them to run in the intranet zone. The tests with “caspol.exe” against every single assembly in my package from the network share confirmed that every one of them has “Unrestricted” permissions. My application config file is: < configuration > < configSections > < section name = " dataConfiguration " type = " Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSetti ...Show All
.NET Development VS05 Custom Build rule for il file
Before I break VS05, I thought I'd ask if how to set up a custom build rule for an ilasm file (*.il) to exe Thanks. Another stupid question is why is errorlevel 1 when it would seem there are no errors Build Log Rebuild started: Project: il0, Configuration: Debug|Win32 Command Lines Creating temporary file "c:\c\05p\il\il0\Debug\BAT00000E50681060.bat" with contents [ @echo off ilasm /EXE /OUTPUT=../Debug/il0.exe il0.il if errorlevel 1 goto VCReportError goto VCEnd :VCReportError echo Project : error PRJ0019: A tool returned an error code from "Compile il-file to exe" exit 1 :VCEnd ] Creating command line "c:\c\05p\il\il0\Debug\BAT00000E50681060.bat" Output Window Compile il-file to exe M ...Show All
Visual Studio Express Editions stuck newbie - exporting dll functions to vba ?
Hi, Please bear with me, I'm totally new to C++, although am reasonably proficient in VB and VBA. Anyway, I have some VBA Excel user-defined functions that take a long time to run, so want to speed them up by transferring them into a dll and then importing the function to VBA so that they run in compiled rather than interpreted code. Apparently I can't do this in VB Express, but can in VC++ Express That's where I'm stuck... I've set up a new project, Win32 Console App, application type Console App (the DLL box wasn't selectable). In the project properties, I've selected configuration type dll. I have two files in my project: BMIPDll.h which reads: // BMIPDll.h namespace BMIP { class BMIPFunctions { ...Show All
.NET Development C# SerialPort System.ObjectDisposedException, safe handle has been closed in System.DLL
I have an application in which at start up I need to do a port discovery process to determine whether instruments are attached to the end of any number of PC com ports. These com ports could be Bluetooth enumerated or, using FTDI USB to serial line convertor drivers, a USB connection. At start up I determine which ports are being used for this session by interogating all the ports stored in a list. I do this by opeing the port and then using a synchronous write and read (using timeouts of 500ms). I put try and catch around the port open to capture the case where the port has been disconnected (USB) or is not currently accessible (Bluetooth) and create a list of instrument objects each of which will have its own serial port object. Before g ...Show All
Visual C++ Use of destructors, finalizers and delete??
I am programming a small class for settings in an application here is the code for the headerfile: ref class settingsHandler { private : String^ const settingsFileName; BinaryReader^ binReader; int appSetting; void readSetting( void ); public : settingsHandler( void ); ~settingsHandler( void ); property int setting1 { int get(){ return this ->appSetting;}} }; And this is the cppfile: #include "StdAfx.h" #include "settingsHandler.h" settingsHandler::settingsHandler( void ) : settingsFileName( "applicationSettings.dat" ){ this ->binReader = nullptr ; this ->appSetting = 0; } settingsHandler::~settingsHandler( void ){ if ( this ->binReader != ...Show All
