Lee John's Q&A profile
Smart Device Development GPRS Connect at Startup
Hi again (again), Last question, I promise. I'm looking to start the GPS up wen the device starts. I don't mind changing hte registry for this, or doing it programatically. All the stuff I have found is either for C#, or the registry info doesn't exist in my phone. Once again, any help would be very appreciated. Cheers, Dan. I thought Connection Manager was a C# class. I tried to implement it in my code, and it just refused to recognise it. I added the header, ad<something>.h, which didn't seem to work. Googling it, I foudn something about jagpublic.h. I didn't see mention of this in the MSDN Library though. ...Show All
Visual Studio Team System Unit Test Dll.config/App.config in TFS build process
Hi, We have a lot of unit tests converted from NUnit and these unit test use Dll.config files. The converted unit tests run successfully in IDE, but when I created a build type from TFS Team Build. The build type runs fine for compiling but fails in the Unit Test step. Searching the trn file, I found out the file path defined in the app.config file can not be retrieved in the unit tests assembly. Can anyone tell me how to use app.config in the build process I also would like to know where the tests run during the build process (in Build Machine or in the Drop machine). Thanks. It should work normally, as when you run them in your machine, can you check the app.config is correctly in source control , abo ...Show All
Visual Studio Team System source language
Hello, does somebody know if it is possible to determine, if a particular assembly was created from a cpp file Or, more generally, to determine in which language the sources were written I thought i could get the information from the sourceContext.Document.Language (or by analysing the filename) but it seems not to work properly (or I'm trying to do it the wrong way). However the Document object is allways null (Pdb's are there). Best regards, Anton Papst. CCI (the binary reader FxCop uses) was orginally designed to raise AST's from source file, however, FxCop only uses the binary reader, SourceContext.Document.Language is not used (or known). I believe this has been ripped in ...Show All
Windows Forms Item cannot be added to a read-only or fixed-size list
I have a dataset with two tables that I want to populate. I have a BindingSource for each table. I can add to the parent table via the BindSrc1.Add() no problem. If I open an existing record, where I have at least one row in the parent table and 0-* rows in the child table, I can also add rows to my child table via BindSrc2.Add(), no problem. The way I add to the child table is, I display the child records in a DataViewGrid, but to add, I open an dialog box for data entry. This works fine, as I said, when there is an existing parent record already existing (in database). the problem occurs when I want to create a new parent AND child record at the same time. I add my parent row to the BindSrc1, no problem. When I attempt to add to child ...Show All
Visual Studio Express Editions Having trouble - Output parameter
Hi all, I have the following proc.... ------------------------ DROP PROCEDURE p_GetStudentOutputRowCountTest GO CREATE PROCEDURE p_GetStudentOutputRowCountTest @StudentID INT , @RowCount INT OUTPUT AS SET NOCOUNT ON ; SELECT * FROM TBL_Student WHERE ID = @StudentID -- SET the Output Parameter SELECT @RowCount = @@ROWCOUNT GO --------------------------------------- I wish to call it from a front end Visual C# application, but I want it to return my row AND the row count. I keep getting null for the @rowcount. Thats problem one. Then, conceptually, I'm confused as to how I would return a result set and a rowcount back to my application from one ...Show All
Visual Studio Express Editions Help an old school guy out!
Hey, I've started using the Visual Basic 2005 Express edition stuff. and I have a question. I can get the GUI to do a lot of things and its awesome. I'm also not having issues with the app connecting to a database and displaying data, I am however having issues getting data from the table while NOT using the WISWIG stuff. what I mean is I need to get to the point where I can write a SQL statement and return, add, count or scan through a table with elements that are NOT of the form but in the forms. Simply I just need to get this stuff so I can move around Rs.AddNew Rs.Update Rs.RecordCount Rs.MoveNext Rs.MovePrevious Using the SQL server 2005 express edition I looked at a few of those examples.. and it looks like nothi ...Show All
SQL Server What is the default user mappin when creating a login?
i login my remote sql server 2005 as 'sa' and then i try the following code: use master go create login [user] with password [user123] go yes. that code created me a sql login 'user', but even before i grant any permission to any database, the login manage to acces database: master, tempdb, msdb and one of my application databases' tables and everythings. i like to know what is it i am doin wrong and what are the default access when creating a login, and is it becoz of any configuration in my server any suggestion or answer will be appreciated. thanks Yes, master, tempdb, and msdb can be accessed because the guest account is enabled in those databases. But the login would not be abl ...Show All
Software Development for Windows Vista Question about FileRender
Hi, 1. How can I play a YUV file with format YUV 4:2:0 2. Can I render from file that I am writing to at the same time (with delay of-course) Thanks, Yaniv Thanks for the answers. How can I change the output pin media type Here is what I want to do: 1. Add source filter to the graph builder (with a path to .yuv file) using AddSourceFilter method 2. get the output pin of this filter 3. change its media type (set to sub type to MEDIASUBTYPE_YVU9 and change the format block according to the resolution and the frame rate) 4. render this output pin. Thanks, Yaniv ...Show All
Software Development for Windows Vista Custom sequence activity: Collapsed by default?
Hi, I've write a custom activty that inherits from SequenceActivity. This activity is composed of two sub activities: handlexternalevent and callexternalmethod I would like that my custom activity looks like a basic activity (collapsed) and I don't want that, when the user drops the custom activity on a workflows, he sees the two sub activity. Any idea must be easy but i didn't find the trick. thx! Antoine If you derive from ActivityDesigner (as suggested earlier) instead of Sequential Activity Designer, then you're composite will look like any of the built in activities. I.E., you won't have to collapse it. You can also then add an ActivityDesignerTheme to control background and foreground color to set y ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Program crashes immediately after launch...
I'm trying to get a window up using unmanaged dx9. It compiles, but for some reason it never actually gets to run() and breaks where it says if (msg.message == WM_QUIT). I'm sure I've gotmost of it right, but am missing something stupid.... Here's what I have: // cppdx9demo001.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "cppdx9demo001.h" #define MAX_LOADSTRING 100 // Global Variables: HWND hWnd; HINSTANCE hInst; // current instance TCHAR szTitle[MAX_LOADSTRING]; // The title bar text TCHAR szWindowClass[MAX_LOADSTRING]; // the main window class name // Forward declarations of functions included in this code module: ATOM MyRegisterClass(HINSTANCE hIns ...Show All
SQL Server IE7 and SSRS Document Map
The contents of document maps do not appear since I upgraded to IE7. They still appear for users on IE6. Reporting Services version is SQL2000. Have looked all over - this problem has been reported in a number of places but there seems to be no response / fix / work-around from MS. Can anyone help or at least comment It seems the bar is high enough that this one won't be fixed, at least if the reply from connect is accurate. Check out http://connect.microsoft.com /SQLServer/feedback/ViewFeedbac k.aspx FeedbackID=241461 where I logged this problem and got a "Won't fix" answer. ...Show All
.NET Development DllImport of 32-Bit dlls
Hi guys, I am a real newbie on 64-Bit progr. so my question might sound a little stupid. I have a VB.NET project which refered to a 32-Bit dll via COM-Interop. I migrated the project and the COM invocation does not work anymore. I tried several compiler settings (anyCPU, x86) but nothing helped. Then I found in my old C# book a method called DllImport ( System.Runtime.InteropServices) I declared the dll as follows: <DllImport( "fcvb.dll" , CharSet:=CharSet.Auto)> _ Function dllBIN2_iv( ByVal price_u As Double , ByVal ex As Double , ByVal d_exp As Double , ByVal d_v As Double , ByVal price As Double , ByVal rate_ann As Double , ByVal acc_rate As Integer , ByVal cost_hldg A ...Show All
Windows Forms need help with properties while creating usercontrol
Hi, I'm creating a usercontrol with some public properties to display in the propertywindow. I want to display the properties under category. like how we have form.size category has some properties. Please help me with this. venp Instead of this public WindowsApplication1. mycategory changeable = new mycategory (); Try this private WindowsApplication1. mycategory _changeable = new mycategory (); [Browseable(true)] public WindowsApplication1. mycategory changeable { get{return _changeable;} set{_changeable = value;} } Personallly, I used structure instead of class when doing something like this,but that only include primitive data types no complex ones like DataTable. ...Show All
Visual Studio Team System team system just for assign tasks to developers
Hello everyone, I want to control the tasks that I assign to developers and have reports of their work. But i have to keep using source safe because my client want the code in it. Would you recomend me team system or another program for controlling tasks Can i use team system just for controlling taks or i will have problems Thanks in advance. Are you asking if it is okay to use only work item tracking without using tfs version control (and continue using VSS) Yes, you can use only work item tracking and VSS for source control. You'll miss some integration features though. ...Show All
Visual Basic Question about Security Permission FileIOPermission
I generated a program to read an xml file from a network drive, and display the information in a form. The program doesn't quite work until I change the security level in Visual studio (right click on the project name under solution explorer -> properties -> security -> This is a full trust program). So now, when I complie it, it runs, reads and displays data from share drive. Then I close visual studio, run the .exe program under bin\Debug, and I got an error. I don't understand why it reads the network drive file when I am in visual studio environment but not with the .exe file. Can anyone give me a hand on this The error message is as follow: "Application attempted to perform an operation not allowed by sec ...Show All
