Ti's Q&A profile
Visual Basic Where can I find real looking playing cards
I asked this question once before and was directed to the Blackjack starter kit. The problem with those cards is they don't look real. Is there anywhere else I can obtain images of playing cards (hopefully free) to use in making my own card game lol - "try a newsagent" Actually, scanning them was a good idea, although a royal pain. Thank you. ...Show All
Visual Studio 2008 (Pre-release) Install Issue Orcas RC1
I have the following installed .NET Framework 3.0 (RC1) Microsoft Windows Software Development Kit (SDK) for RC1 Visual Studio 2005 But the Orcas RC1 tells me that i'm missing .NET 3.0 Runtime Files which are Installed..So i'm at a loss here,any help will be appreciated...Thxs OS: Windows XP Pro with Media Center 2005 I checked my system, and it didnt appear (but not totally sure) to have any old .Net 3.0 components installed. But Im sure that I have not install any older version of Orcas CTP kits, because VS2005 would not show the option to create a WinFX application. So I tried the command line installation to skip the check. The installation completed with no error. When I start up VS ...Show All
Visual C# Generic type checking
One reason generics were introduced is to add tpe safety, but I have a case in which this type safety is really getting in the way. Here's a really simple example: public T GetValue<T> () { if (typeof(T)==typeof(int)) return 23; . . . } Now I know this should work at runtime - I'm only returning an int if T is an int, but the compiler stops me with a "Cannot implicitly convert type 'int' to 'T'". It won't let me cast direct from an int to a T, but what does seem to make the compiler happy is to go via an object, ie: if (typeof(T)==typeof(int)) return (T)(object)23; Presumably this extra casting will introduce a boxing and unboxing, which seems crazy just to overcome the compiler checking. So, ...Show All
.NET Development Transfer settings from PageSetupDialog to PrintPreviewDialog
I am writing an app in Visual Studio 2005 (VB.NET). I have both printpreviewdialog and pagesetupdialog controls added to my form. My problem is that when I set page settings using the pagesetupdialog it is not reflected in the printpreview. Please show me how I can get the printpreviewdialog to reflect settings from the pagesetupdialog. Thanks Be sure to assign the PageSetupDialog.Document property before you display the page setup dialog and to use that same document in the PrintPreviewDialog... ...Show All
SQL Server SQL Server 2005 Std Ed SP2. - Lock Pages In Memory
How do I determine if Lock Pages In Memory is applied I have the Policy to the Service Account. Thanks - Covi Locked Pages In Memory is supported only in Developer and Enterprise 64 editions, not in Standard 64. Look at Sql Server 2005 Books (january 2007) ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/udb9/html/62021d0b-1b8d-4276-b373-a01184006d42.htm index Memory Architecture Locked pages in memory operating system (OS) privilege SQL Server Enterprise and Developer editions: Recommended, to avoid operating system paging. Might provide a performance benefit depending on the workload. The amount of memory accessible is similar to conventional memory case. In Enterpise editions you can confirm Locked pages in memo ...Show All
Windows Forms Skinning SCrollbars
Hi ALL, First of all, sorry for my bad english. I tried to skin scrollbars but overriding OnPaint() and so on has no effect. Is anyone know how to perform this operation. Thanks in advance for your help, Regards, Tanks for your answer. Unfortunatly, I've allready tried these options, but the result doesn'f fullfils my requirements Regards, ...Show All
Visual C# Overriding static methods?
Consider the following situation: Two classes, B and C, share a lot of properties. They therefore both inherit from a common class, A. Of course we can call B(...) and C(...) to get a single B- and C instance respectively. On both classes I now want a static method, GetAllInstances(), that returns a List of all possible instances of the class. That is: The static method B.GetAllInstances(...) should return a List of all possible B-instances and similar with C. The code to produce all possible instances are very similar for both B and C and only differs on simple parameters, say a string named myDatabaseTableName. Therefore it is obvious to implement GetAllInstances() in the base class A and let it get the myDatabaseTableName property from ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Declaring alternative input devices
Hi to all I have been told that I can register alternative input devices to the DirectX such that a game that runs will see my input instead of the standard devices that are connected on the machine. To be more specific, I want to use a client that receives a user input (game pad, mouse etc.) from a remote machine and gives it to the Direct Input, such that the game that runs on the local machine thinks that an action was taken locally. I have browsed through the DirectX SDK Documentation and also searched for an answer in the web, but I haven't figured out anything yet. Could anyone from this site clear this issue for me please Is what I am trying to do feasible I really thank you for your time Theofilos ...Show All
Visual C++ Disappearing scrollbars...
Hello, I have a problem regarding scrollbars that disappear when trying to display a CMetaFile object. I'm using VC++ 6.0 Enterprise Edition, and here's some code from the situation: Please take in count two facts: First, the working code was already done, I'm just trying to extend it in the way you'll see below. Second, I'm also clumsy regarding VC++. **blush** That's why I badly need your help, folks. CMetaFile mf; CWnd *tele = GetDlgItem(IDC_TELE); // IDC_TELE is a Picture object, defined within a dialog CWindowDC dc(tele); CDC *hereWePaint; hereWePaint = &dc; // ... // Here we load the .wmf file successfully, and store it into mf // ... CRect dim_tele; tele->GetClientRect(&dim_tele); mf.Display(hereWePaint, dim_tele); ...Show All
Visual C++ Problem getting a resource
I'm trying to create a dialog manually by calling CDialog::Create(). The problem is, CDialog::Create() doesn't recognize my resource ID and it fails to create one. This is the actual code. CNeffyDlg dlg; dlg.Create(IDD_NEFFY_DIALOG); dlg.ShowWindow(SW_SHOW); It fails on dlg.Create(IDD_NEFFY_DIALOG). To be detail, debug assertion fails on this method and the process terminates. I've followed the function calls and this is the abstract call chain. (sorry for the mess) 1. _AFXWIN_INLINE BOOL CDialog::Create(UINT nIDTemplate, CWnd* pParentWnd) { return CDialog::Create(ATL_MAKEINTRESOURCE(nIDTemplate), pParentWnd); 2. #ifdef _DEBUG if (!_AfxCheckDialogTemplate(lpszTemplateName, FALSE)) 3. _AFXWIN_INLINE HINSTANCE AFXAPI Afx ...Show All
Visual Studio Team System tf checkin not working while tf add does work??
Hi, I am working on an MSBuild project and i am having the following problem: i have to add files to the Team System Source Control, so i need to perform the following actions: 1- Add files to Source Control. This step works perfectly: <Exec Command='tf add /recursive /noprompt "D:\BRP\System\Wsdl\Generated\*"' WorkingDirectory="C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\" /> 2- Check in my files in source control. Does NOT work. <Exec Command='tf checkin /recursive /noprompt /override:"Overriden from MSBUILD" "D:\BRP\System\Wsdl\Generated\*"' WorkingDirectory="C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\" /> I get the typi ...Show All
Windows Search Technologies WDS plug-in for Lotus Notes not working
I have istalled WDS 2.65 and the lotus notes plug-in, I didn't find any option to specify which databases WDS would index. WDS indexed all files under Notes dirctory, it found the notes directory, however it didn't index any thing inside Notes database. Is there a place I could specify the databases to be indexed And how could I make WDS to index messages inside a Notes database Thanks. Paul: Thanks for the reply. So now WDS will only search user's local mailbox if there is no local mailbox, then it won't search anything inside a database yet. How does it grab the name of local mailbox from location documents or from notes.ini. As notes.ini may not have local mailbox information, so it shoul ...Show All
Visual Studio Team System MSProject Undo and Redo disabled
After choosing a team project and get some workitems the undo and redo items in MS Project are permanently disabled. Is anyone else finding this Hello Alan, This is a know issue, that we don't support undo and redo items in MS Project once you connect to TFS. Reason being TFS add-in in MS Project accesses MS Project Object Model(OM) to do operations(Like Getting work items). Whenever MS Project OM is touch, the undo redo stack is cleared by MS Project. Same is true for MS Excel Integration also. Regards ...Show All
Visual C# "OUT of Memory" String construtor
Hi, im getting a "out of memory" exception when I try to pass a large char array in the the string construtor. The array has a length of about 200MB, its XML Data. I need to convert this to a string for the further handling. For smaller data stuff works fine. Any ideas how to convert the data to a string Thanks Dob Yeah I appreciate what you're saying, but it does seem from his original comment that he needs the whole thing in memory at once, otherwise he would have parsed bits of it surely I know that the Xml Document Object model will be pretty heavyweight, but it was just one suggestion - along with streaming which I mentioned first up :) ...Show All
Visual Studio Team System Where can I find the C# regular expressions list for the forbidden code patterns?
Now that we can define what is allowed and what is not allowed to go to the source control, I would like to define my own policies, but I am having a little problem. I don’t have the exact definition of the C# statements in regular expressions, I know that VS.Net has a list of all c# statements, and it is used to color the code in the development environment, but I don’t know if Microsoft has published such a list. That leaves us out there trying to reinvent what Microsoft already invented in VS.NET. Are there any plans to publish such a list Do you have any single example of a “forbidden code pattern” ...Show All
