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

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

jcnconnect

Member List

dmatth
morphius1
barchard
Jasper22
TACIR
JoeCoder
sigme
VictorSalcedo
Mehdi Mahdloo
kehsiao
aaronabendw
invantix
FergusLogic
elamathi
vgt918cs
sudhakarbhattu
danadanny
ChanKaiShi
su45937
ssmorgan
Only Title

jcnconnect's Q&A profile

  • .NET Development Serializing an Object into a database Column

    I'm trying to serialize a custom object into my database, Heres the code: /// <summary> /// Creates new user session /// </summary> /// <returns>Guid</returns> public static Guid InsertNewUserSession(CustomPrincipal principal, string connString) { Guid token = Guid.NewGuid(); using (SqlConnection connection = new SqlConnection(connString)) { MemoryStream memoryStream = new MemoryStream(); BinaryFormatter binaryFormatter = new BinaryFormatter(); binaryFormatter.Serialize(memoryStream, principal); SqlCommand command = new SqlCommand("upInsertNewUserSession", connection); command.CommandType = CommandType.StoredProcedure; ...Show All

  • Windows Forms checkListBox ClearSelected() method

    Hi, I tried to use the ClearSelected() Method of the checklistbox but I could not get the desired reuslt i.e ClearSelected() Method does not uncheck the selected items in the checklistbox. Pls help me on this. I used it as follows on a button click event.. ChkLstCompany.ClearSelected() Thanx Avaneesh. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. newbie question: game.Run():

    i keep getting this as the exception detail Microsoft.Xna.Framework.NoSuitableGraphicsDeviceException was unhandled Message="The device creation parameters contain invalid configuration options." Source="Microsoft.Xna.Framework.Game" StackTrace: at Microsoft.Xna.Framework.GraphicsDeviceManager.CreateDevice(GraphicsDeviceInformation newInfo) at Microsoft.Xna.Framework.GraphicsDeviceManager.ChangeDevice(Boolean forceCreate) at Microsoft.Xna.Framework.GraphicsDeviceManager.Microsoft.Xna.Framework.IGraphicsDeviceManager.CreateDevice() at Microsoft.Xna.Framework.Game.Run() at Tutorial1_Windows.Program.Main(String[] args) in C:\Documents and Settings\Compaq_Owner\My Documents\Visual Studio 2005\Projects\T ...Show All

  • Smart Device Development Help! Is there any way to Communicate/ transfer data From Desktop Application (Winforms) and Mobile Apps (NET CF)

    Hello, Is there any way to communicate/ transfer data from Desktop Application written using .NET and Pocket PC Application written using NET CF . Any help would be appreciated. Thanks Karthik i tried with RAPI but i was able to connect to pocket PC through active sync,but how my app residing in pocket PC receive/send data from the desktop app.I was able to transfer files to and fro from desktop app. Thanks Karthik ...Show All

  • Visual C++ Installation Issue Visual C++ 6.0 on Windows XP

    Hi folks, I have an old copy of Visual Studio 6.0. I've attempted installing it on two different machines: a Toshiba Laptop running WinXP Pro SP2, and an HP Desktop running WinXP Home SP2. Both machines are fairly current (< 3 years old). On either machine, the installation aborts unsuccessfully before completing the installation. If there is an error message, it is not presented to me to review. The install had gotten far enough that I could compile, so I've ignored the problem up until now. However, I'd like to install SP5, and it tries to detect the installed components and fails to do so- presumably because the installation never successfully finished. Any ideas I dimly recall this worked once long ago. ...Show All

  • Visual Studio Tools for Office Is there any enum for Range.Insert() method's second param?

    Hi all, Is there any enum for Range.Insert() method's CopyOrigin param ZeroCool127, Being an optional parameter you can always use Type.Missing to get the default behavior. To answer your question you can use the XlInserFormatOrigin enumeration. //Default behavior range.Insert( Microsoft.Office.Interop.Excel. XlInsertShiftDirection .xlShiftDown, System. Type .Missing); //Enumeration range.Insert( Microsoft.Office.Interop.Excel. XlInsertShiftDirection .xlShiftDown, Microsoft.Office.Interop.Excel. XlInsertFormatOrigin .xlFormatFromLeftOrAbove); ...Show All

  • .NET Development Debug interfaces in real time

    I am thinking of using debugging interfaces to provide flexible diagnostic extensibility to an application running in production. This involves having application to instantiate the debugging interfaces internally and define some breakpoints that will be hit as the application executes (I read about separate debugger thread in 2.0). The code inside the breakpoint will then do some diagnostic activity and let the application go until the next breakpoint is hit. So this is kind of applicaiton debugging itself in its own process at certain points of its execution. Do you think using the debugging interfaces will even be feasible to produce something like this And that it will be stable and have little performance degradation compared to un ...Show All

  • Software Development for Windows Vista VMR9 and DirectX 9

    Hi, I tried to use VRM9 with DirectX on Win32 proyect. In microsoft documentation they specified that the qedit.h will not support the Direct3d 7 or later. Is there any other way to use vmr9 - I got the following errors when i included d3d9.h, qedit.h and vmr9.h - Ther code works fine wihtout this includes, because i'm not implement yet, any code about VRM9. c:\dxsdk\include\vmr9.h(188) : error C2143: syntax error : missing ';' before '*' c:\dxsdk\include\vmr9.h(188) : error C2501: 'IDirect3DSurface9' : missing storage-class or type specifiers c:\dxsdk\include\vmr9.h(188) : error C2501: 'lpSurf' : missing storage-class or type specifiers c:\dxsdk\include\vmr9.h(358) : error C2146: syntax error : missing ';' before id ...Show All

  • SQL Server Cannot set the ProfileName on a merge agent

    Hi, I am trying to create a new merge subscription using RMO on Sql 2005, but I want the new agent to use a non-default profile. I can set the ProfileName on the agent but it seems to have no affect. I was wondering, do I have the wrong Profile name This is the code I'm using subscription = new MergeSubscription (); subscription.ConnectionContext = conn; subscription.SubscriberName = server; subscription.SubscriberSecurity.SqlStandardLogin = sqlUserName; subscription.SubscriberSecurity.SqlStandardPassword = sqlPassword; subscription.SubscriberSecurity.WindowsAuthentication = useWindowsAuth; subscription.PublicationName = publication.Name; subscription.DatabaseName = publication.DatabaseName; subscri ...Show All

  • Visual C# Help with a 'Delete' MessageBox

    Hi I am pretty new to C# and VS2005 so I am sorry if this sounds like a stupid question but; I am trying to create a messagebox like the one that appears when you attempt to delete something in windows. Form1 has fields for editing data into an SQL database which works fine from a control within Form1. I have created a new form (form2) and can get it to display no problem but what I can’t do is get the button on form2 to run the script for deleting the data on form1. "On form1 user wants to delete data from database, clicks delete, messagebox pops up (form2) 'Are you Sure', user clicks 'yes' form2 disappears, and data is deleted". (This is what I am trying to achieve). Currently all databinding etc ...Show All

  • SQL Server OO Database Design performance question

    I am hoping someone has had a similar table design scenario and has a slick solution that i am not thinking of. Basically I have the following tables (kind of OO based design in this case). Create Table Entity (EntityID int, EntityTypeID) Create Table Company (EntityID, CompanyName) Create Table Contact (EntityID, FirstName, LastName) Create Table Group (EntityID, GroupName) Basically an Entity can be a Company, a Contact or a Group based on the EntityTypeID The trick becomes when I get an EntityID is how to get the name of the Entity in an efficient manner. You can make a view that does a Union to all three tables like such... select CompanyName as Name from Company union all Select FirstName + LastName ...Show All

  • Visual C++ This program from MSDN Library can not be run on Visual Studio 2005,Why?

    // InlineAssembler_Calling_C_Functions_in_Inline_Assembly.cpp // processor: x86 #include <stdio.h> char format[] = "%s %s\n"; char hello[] = "Hello"; char world[] = "world"; int main( void ) { __asm { mov eax, offset world push eax mov eax, offset hello push eax mov eax, offset format push eax call printf //clean up the stack so that main can exit cleanly //use the unused register ebx to do the cleanup pop ebx pop ebx pop ebx } } I made a new c++ win32 console application project named asm Then I paste the code into asm.cpp #include "stdafx.h" char format[] = "%s %s\n"; char hello[] = "Hello"; ...Show All

  • Windows Live Developer Forums push pins and background

    Hi, with the help of this forum I have managed to get pins to display on the map > Change the background when clicked to indicate it has been selected - then when clicked again the backgound is removed to inicate is is not selected. Now I want to load the page with all the pins initially selected So i do :- AddClickablePin(1,-0.459610397815704,51.6549480199814,"./bcirclesm.png","Name 1","A3"); then I set the background using :- document.getElementById(1).style.backgroundColor="yellow"; When dipalyed they all have the right background. The thing is that when i now click on them the backgorund does not change even though the test for colour seems to work. Has anyone el ...Show All

  • Visual Studio 2008 (Pre-release) Which version of Windows Media Player for WPF (RC 1)?

    Which version of Windows Media Player for WPF (.NET 3.0 RC 1) should we use if we want to muck around with Video, Video Brushes etc and wmv files etc. cheers   Mike Greenway wrote: Good morning, Even with WMP 10 the "number movies" in all the "MediaGallery" skip frames, the vioce count is correct, but the video will skip all the odd frames for a while, then hit one, etc., it real jerky. could you take a minute and run the SDK GraphicsMM_Media/MediaGallery" program and tell me your results I wonder if I'm running everything in software, no hardware acceleration I have an $800 video card running DX9.0 How can I tell How can I make sure my customers wi ...Show All

  • Visual Studio 2008 (Pre-release) Frame doesn't render when AllowTransparency = True

    I created a new project in Blend, added a Frame to the default presented grid, and set the Source to "http://www.google.com". The app worked perfectly. After closing the app, and setting "AllowTransparency" to true on the default root Window causes the frame to be rendered white. The navigation happens, and the mouse pointer changes shapes over links, but nothing is rendered to the Frame. Is there a way to solve this problem I am creating a window with a custom window border that is not rectangular, so I need AllowTransparency to be true on the Window object (if there is another way to do this, any info would be great). It's an educated guess, but Frames displaying html use the ie mshtml engine in a separ ...Show All

©2008 Software Development Network