Iainr's Q&A profile
Visual C# A beautiful language ruined by generics
>However you managed to arrive, you were instantly greeted by lines and lines of code barely recognizable as a member of the C/C++ family. It is true that templated code requires a little more knowledge to read than other C++ code. That's the difference between beginner and intermediate, IMO >Generics are a really simple concept - mainly syntactic sugar to deal with the lack of a unitary object hierarchy in C++. That's just pl ...Show All
.NET Development Using ActiveDirectoryMembershipProvider to authenticate against ADAM
Hi there, I've searched all over the internet and found more developers with the same problem, but no solutions at all. I'm using the June CTP of VS.NET 2005 on WinXP SP2 and want to use the ActiveDirectoryMembershipProvider to validate my users against ADAM. My web.config contains the following parts (where CDomain\MyUsername is a local administrator that is also member of the administrators-group in the ADAM-instance): < connectionStr ...Show All
Windows Forms Help Button
In a 2003 VB.Net windows-based app, if your form has the Maximize Box and/or Minimize Box properties set to True, then the Help Button is not displayed. Is it possible to move the "What's This" Help button functionality to be accessed as&n ...Show All
Smart Device Development All controls are grey in the toolbox
I'm trying to develop a device application for Pocket PC 2003 but I can't drag any controls onto the form. All controls are grey/disabled in the toolbox. Resetting it doesn't help. Right-clicking and choosing show all controls doesn't help either. Reset all settings doesn't help either. Please fill in some blanks so we could help you: I'm using VS 200______________ version ________ Note: can see that i ...Show All
Smart Device Development exif data from jpeg images
Hi, I'm trying to write a program on a pocket pc with windows mobile 2003 on it. I want to write a program to read and write exif data in a jpeg file.Is it even possible because I looked for API's and examined te .net compact framework a bit but I don't seem to find a possible way of doing it. I even searched for open source API's or dll files but I can't even find those. is it possible to write a program like that for windows mobile 2003 ...Show All
Smart Device Development InputPanel and scroll BAR
HI I have a form(without scrollbar) with many textbox, how can i make my form become shorter and automatic display a scroll bar after i open a InputPanel Assuming this is CF 2.0, you can place all the controls in a Panel, set the Panels AutoScroll property to true, and then resize the Panel in response to the EnabledChanged event of the InputPanel. You can see how to handle the EnabledChanged event at th ...Show All
Smart Device Development .Net CF 2.0 - Prevent device from sleeping
Hello, I've been looking for a way to (optionally) prevent a pocketpc 2k3 device from going into sleep mode while my app is running, but could not find anything. Any suggestions --John (update) Also, Is there a way to keep the screen light from going out without user interaction And something more extreme, can one change the way devices behave during sleep mode (e.g. keep WiFi in a running state like GSM phone device) ...Show All
Visual Studio Express Editions Two questions about ListBox
hello, Frist question is about ListBox and may be able for other tools How can I enable resize the ListBox control on the form Second : How can I remove only the selected items from listBox1 Best Regards hi, Thanks shakalama for those links codeprject.com is one of the most great famouse sites in programming its have too many examples, But I didn`t found what I`m looking for anyway we I knew that the idea is de ...Show All
Visual Studio Express Editions nothing after if statement works
I have made a blank windows form and added a timer with this code " private : System::Void timer1_Tick(System::Object^ sender, System::EventArgs^ e) { if (y==1) MessageBoxA(hWnd, "hi" , "cool" ,MB_OK); y=y+1; } " I declared static int y earlier and I just keep getting never-ending messageboxes why doesn't my compiler process the y=y+1 here " public ...Show All
Visual Studio Tools for Office Excel interop The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))
Hi All, I am working on some excel automation logic. Basically it writes some values into various cells and runs a macro. This is to be repeated for each record in the database. for e.g. if the database has 100 records the macro has to be run 100 times after pumping values into cells. My problem is the application runs fine upto around 80 records and from there it is giving the following error and finally application is not able to close the ...Show All
SQL Server Dynamic Scripting for USE [DB]
Greetings, I am having a difficult time figuring out a way to get this to work. The scripting executes without error, but does nothing. What I want it to do is change the connection to the database retrieved by the cursor. DECLARE @PAR1 VARCHAR ( 256 ); DECLARE DB_PAR CURSOR FOR SELECT NAME FROM SYS.DATABASES WHERE NAME LIKE '%HRN%TEST' ; OPEN DB_PAR FETCH DB_PAR INTO @PAR1 BEGIN EXECUTE ( 'USE ' + @PAR1 + ';' ...Show All
Visual C# Socket Programming - newbie question
hello, I am making a client socket, but i get this security exception. I am not using any security, so can someone please help me identify the root of the problem below is part of my code: private void button1_Click( object sender, EventArgs e) { IPAddress ipAddr = IPAddress .Parse( "64.246.64.37" ); IPEndPoint endpoint = new IPEndPoint (ipAddr, 4500); Socket client = new Socket ( AddressFamily .Int ...Show All
Visual Basic How do I navigate to a folder and capture the path?
How do I navigate to a folder and capture the path I've searched the documentation and all options seem to require you know the path in advance. I'd like to have a button on a windows form that allows me to navigate to a folder and capture the path to a string. Is this possible dennist685 edit: is there also a way of capturing the properties of a file by selecting it thanks reneec this is something I c ...Show All
Visual C++ graphics.h
What happened to the graphics.h file because I can't find it anywhere on Visual C++ Express, and some of the programs on the internet require it in order for their programs to work properly. I always get errors whenever I try to compile and run a prgram using code from the net that says "#include <graphics.h>." Can anybody tell me why I don't have it or how to get it graphics.h is part of Borland Turbo C. It's a somewhat old c compil ...Show All
SQL Server Stored Procedure typed xml parameter DDL
The following will create a stored procedure that has @testXml as an xml datatype. As my tables in the database store "testXml" in a typed xml field, can I "type" the @testXml parameter coming into my stored procedure using an item from the database's "Xml Schema Collections" What would be the DDL syntax THANKS! ALTER PROCEDURE [dbo] . [PearUpsertShapeImage] @id [bigint] , @testXml [xml] AS ...Show All
