Software Development Network Logo
  • Visual FoxPro
  • Windows Vista
  • Windows Forms
  • Visual Studio
  • Audio and Video
  • Smart Devicet
  • Game Technologies
  • .NET Development
  • Visual C#
  • Visual Basic
  • VS Team System
  • Visual C++
  • Microsoft ISV
  • SQL Server
  • SharePoint Products

Software Development Network >> CJKeatley's Q&A profile

CJKeatley

Member List

pnp
fibonacci1123
Flack
rgaino
oompa_l
Tort
Amos Soma
DatabaseOgre
Jacco Mintjes
sjschoenberger
Esprit
wsalomon
Asim Patnaik
Dipendra
Sam Jost
polymorphicx
tadeusz s.
Ramesh Jha
nephsbirth2021
Angry Coder
Only Title

CJKeatley's Q&A profile

  • Visual C++ How to Port MFC to .NET; from VC6 C++ to Managed C++ and/or C# .NET

    Can someone point me to information on how to port and/or reuse a portion of a huge MFC app to C# .NET managed and/or C++ .NET managed code. Willing to rewrite most of the user interface, but need to preserve/modify existing code that is based on 50+ classes derived from MFC's CObject.  I need the "Serialize" portions of CObject so that my existing data files can be read into the ported app, or so I can create a conversion app. I already have everything compiling and running in VS.NET C++ 2003 using MFC.  But this is not a Managed code app, and C# can't talk to it in an interop kind of way.  Further, it can't use 3rd party .NET Controls such as those from Infragistics and no other developers here can work on i ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Problem applying textures to 3D shapes - only uses 1 px of texture?

    I have transparent textures working wonderfully, provided I want all faces to show the same thing. Even using the example in the documentation ( How to: Apply Textures to 3D Primitives) all it appears to use is the top-left pixel of the given texture, no matter what format.If I change the color of just that pixel, the entire face color changes. I've started a brand-new project with just the code from the documentation for the same results. Does anyone know what's going on here, or have a sample of working 3D textures on a face PS: Typo in that how-to. It says 'texturedCube' when the variable used above is 'nonIndexedCube'. Figures, after beating my head against the completely wrong example in the documen ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Is there an easy way to generate a random color?

    I was trying to generate a random color to be passed into the Sprite Batch Draw function to put a tint on the sprite being drawn. mSpriteBatch.Draw(mBackground, new Rectangle (0, 0, 1024, 768), mRandomColor); However, there doesn't appear to be any way to create a new color from RGB values for the XNA frameworks Color object. I had thought that I would be able to do something similar to how you would create a new color when using the System.Drawing dll. Color mRandomColor= Color.FromArgb ( ( random.Next ( 0 , 255 ) ) , ( random.Next ( 0 , 255 ) ) , ( random.Next ( 0 , 255 ) ) ) ; Is there an easy way that I'm just overlooking to achieve that same effect Yup, I had (0,255) all over my code as well until I ju ...Show All

  • SQL Server Announcing the Analysis Services Stored Procedure Project

    A few months ago, a few community-spririted Analysis Services guys (including me) got together to create some example Analysis Services stored procedures. I'm happy to announce that beta 1 of our project is now available to download here: http://www.codeplex.com/Wiki/View.aspx ProjectName=ASStoredProcedures The idea was to create a set of useful extensions to MDX to help solve common problems and at the same time provide some example source code to help people writing their own stored procedures. Please take a look and tell us what you think! We discussed this exact problem, but Mosha explained that using a sproc in this way would do more harm than good. Basically, the problem is that there's no way of marking a sproc as being de ...Show All

  • Smart Device Development Invisible Window

    Hi guys, I want to have an invisible window so it can exist in the foreground or background and not effect any other windows. Basically all it will do is handle global key events (a hotkey most likely) if and when they happen. If it can then become invisble, that's a bonus, but it's not a huge deal. There has to be a way to make an invisible window, but I've tried CreateWindow with so many different types of windows and had no luck. Could it simply be a matter of not doing anything with WM_PAINT events Would that let the window exist and receive events invisibly Cheers, Dan. You don't need a window to handle global key events. Simply process/filter the windows message in your main message ...Show All

  • SQL Server Dealing with Truncation warnings (Excel source)

    Hi, Is there a way of stopping truncation warnings due to the fact the the XL driver assumings BSTR(255) columns. I'm loading data from excel to SQL Server, the SQL Server columns are nvarchar(50) but the Excel source has assumed 255. I can change the Excel Source using the 'Advanced Editor' and change the meta-data of the 'Output Column', but then there's a mismatch between the External Column and Output Column collection - so a warning is displayed. The External Column meta-data can be changed, but then it's out of sync with the 'Error Output' meta-data (and the Error Output meta-data is read only). I'm sure I've missed a step, can anyone enlighten me Dave ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Chuckie X - YouTube footage

    Anyone remember Chuckie Egg... Here I am pushing the boundaries of XNA again: http://www.youtube.com/watch v=NiIWNYUFSpc also Peter Molyneux ... Jez San ... those guys cost me so much time and money when I was a kid (yes I'm old and british too) ...Show All

  • Visual Studio Team System How to creat an Unassigned user for the AssignedTo feild?

    How can I customize the template so I can have an Unassigned option in the Assigned To dropdown You can customize the workitem type definition and for System.AssignedTo field, you could have something like: <FIELD name="Assigned To" refname="System.AssignedTo" type="String"> <ALLOWEDVALUES expanditems="true" filteritems="excludegroups"> <LISTITEM value="[Project]\Project Administrators" /> <LISTITEM value="[Project]\Contributors" /> <LISTITEM value="Unassigned" /> </ALLOWEDVALUES> <DEFAULT from="value" value="Unassigned" /> </FIELD> For hel ...Show All

  • SQL Server miss match between column type in a cursor. Msg 8114, Level 16, State 5

    hi I have a float column . only in cursor I get a type missmatch. does any one knows it the error Msg 8114, Level 16, State 5, Line 14 Error converting data type varchar to float. the code DECLARE @RON_FLOAT FLOAT DECLARE RON_CURSOR CURSOR FOR SELECT RON_FLOAT FROM RON_TABLE1 OPEN RON_CURSOR FETCH NEXT FROM RON_CURSOR INTO @RON_FLOAT WHILE @@FETCH_STATUS = 0 BEGIN PRINT 'VALUE IS ' + @RON_FLOAT FETCH NEXT FROM RON_CURSOR INTO @RON_FLOAT END CLOSE RON_CURSOR DEALLOCATE RON_CURSOR the code for the table CREATE TABLE [dbo] . [RON_TABLE1] ( [RON_FLOAT] [float] NULL, [RON_CHAR] [nchar] ( 10 ) COLLATE Hebrew_ ...Show All

  • Visual Studio 2008 (Pre-release) SubMenus in XAML Context menu

    hi, How could we open Submenu's in XAML Context menus which has some template applied on MenuItems It works fine if there is no template applied to MenuItem Any Help The template needs to specify a Popup to contain the sub items. See the SubmenuHeader Template in the following example: http://msdn2.microsoft.com/en-us/library/ms747082.aspx ...Show All

  • Smart Device Development Error log of emulator windows mobile 5.0 smartphone

    Can I see Event log of emulator like we can see event viewer of our desktop machines. What I have done is install two dll via cab project.When I install the application it give me the message as installation completed.But when I see the registry there is no dll entry present there. How can I view what error goes on during installation Sorry, but there is no end-user facility for viewing logs of VS's deployment steps onto devices or emulators. I'm going to move this post over to the general smart-device forum so the CoreCon team can help diagnose your deployment failure. Barry ...Show All

  • Visual Studio 2008 (Pre-release) How to turn off anti aliasing for small text?

    Anti aliasing small text tends to make the letters look blurry and indistinct. I cannot find a way to disable the anti-aliasing of text in WPF and as a result label or button text looks really bad. Ideally I'd like to disable anti aliasing globally for font sizes below a certain size. How can I accomplish this -Ryan rfuller987@hotmail.com This is not about nitpicking. It is a serious readability problem. I experimented a bit more with this, and it does not show on all the monitors I've tried. For example, ClearType text is very blurry on my Dell E173FP but super crisp on a Toshiba Portege tablet. So those of you who think we are nitpicking and wasting the WPF team's time probably have a non probl ...Show All

  • Smart Device Development MS Access database and VS 2005 .net2

    I'm looking at the feasibility of using MS Access on a Mobile 5 device. Using VS 2005 if I attempt to create a new data source I ca select an access database and the test connection works OK, however when I proceed I get an error "The new connection uses a data provider that is not supported" Theres no error number. Can anyone tell me if Access is supported by Windows mobile 5, .net 2 and VS2005 Thanks Rob No, Access (both Pocket and desktop versions) are not supported on devices. Pocket Access is deprecated and no longer available, desktop Access is generally not accessible remotely at all as it's in process database. You can use Web Service as proxy though: ht ...Show All

  • SQL Server 1 Flat file to 2 destination tables with different mappings :Please Help

    Here is the Scenario. I have a flat file with name " Employee.txt " (Full url: C:\Employee.txt ) .The File content is like this Anil,Engineering,1997 Sunil,Sales,1981 Kumar,Inventory,1991 Rajesh,Engineering,1992 ( Note: Items are Comma Seperated ) Now, i have a SQL Server database called " EmployeeDB" which has 2 tables " TblEmp1 ", " TblEmp2". The Table is like this. TblEmp1 : Columns EmpName EmpDept EmpjoinDate TblEmp2 : Columns EName EDate Edept using integration services (SSIS) i need code(vb.net or c#) to Create a dtsx package so that i can push the flat file content to these 2 tables. And the condition is : After Executing the package Data loaded in TblEmp1 should be like this EmpName ...Show All

  • SQL Server Timezone

    Hi, In my server, time are stored in UTC time. But I want to let the user to get the right time as his timezone. How to do it Thank you. Jeffers ...Show All

©2008 Software Development Network