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

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

TheDevilsJoker

Member List

Poma
Blast
AdityaC
Ugur Umutluoglu
Duane Douglas
SOAC
Dave_is100
TFCNE
PugV
eduar_hte
Fahad349
Game857
bigbob
Chad Moran
Stefan Wagner
miller0521
stallion_alpa
pnp
daverage
fj64
Only Title

TheDevilsJoker's Q&A profile

  • Visual Studio 2008 (Pre-release) store ServiceSecurityContext.Current info

    This may sound strange but is it possible to save the ServiceSecurityContext.Current info so that I can retrieve it and use it later I have a scenario where the client subscribes itself via a subscription service in the host. The host resides in another machine. Later, another service from the same host tries to invoke a method from the subscriber's service. The trouble I'm having is with SSPI negotiation. When I try to invoke the client's method, I get a "SSPI negotiation failed" error. I think if I can tell the Host the client's ServiceSecurityContext.Current info, I won't be running into this problem. Thanks. Security context caching is not likely the answer. Which accounts are ...Show All

  • .NET Development specified cast is not valid

    im developing a web service that interacts with sql server express. When i test out 1 service, this error pops up. below is my code in the web service. (note. Alarm and SMS are bot in INT but i have to cast them into String to insert into array). string[] aryAlert = new string[3]; dc.ConnectToDB(); command = new SqlCommand("SELECT SMS, Email, isDefault, UID, Alarm FROM Alert where (UID =" + uid + ") AND (isDefault='Y')", dc.Connection); command.ExecuteNonQuery(); reader = command.ExecuteReader();   while (reader.Read())         {             try             {     &nb ...Show All

  • .NET Development Converting a file path into a Uri

    Hello- Does anyone know of an efficient way to convert a file path into a Uri Here's an example of what I'd like to do: turn: \\fileServer\users\test\myDoc.doc into file://fileServer/users/test/myDoc.doc Doing some conversions is pretty trivial, but I'd like to find a robust way that is resilient in the face of relative versus absolute Uris (if that's even a concern), or any other of the edge cases that I haven't thought about yet. Regards- Eric The Uri class can be used to do the conversion of the above path. Pass it to the constructor and you'll get what you want. Uri uri = new Uri(@ \\fileServer\users\test\myDoc.doc ); string strPath = uri.ToString(); //file://fileServer\users\test\myDoc.doc Michael Taylo ...Show All

  • Software Development for Windows Vista Empty File produced with CaptureGraphBuilder->RenderStream() then ImediaControl->run()

    I am writing a simple graph that takes a live mpeg2transport (hi-def) stream and writes to a filewriter. here is the relevant code that i am using. hr = m_pCaptureGraphBuilder->SetOutputFileName( &CLSID_FileWriter , L"c:\\test.m2t", &ppf /*out*/ , &m_pFileSinkFilter /*out*/); hr = m_pCaptureGraphBuilder->RenderStream(&PIN_CATEGORY_CAPTURE, &MEDIATYPE_Stream, m_pDeviceFilter, NULL, ppf); The file is produced , but is empty, 0 bytes. What am i missing Same problem here, except I am using an avi filename and type-- it writes only 64K and is not readable. Interestingly enough, if I connect remotely to the graph with Graphedit and run the graph from there, the file writes ...Show All

  • Visual Studio VSS database not accessible on Vista's mapped network drive

    I've taken the plunge and installed Vista Ultimate. I've installed Visual Studio 2005 Pro with all the service packs and Vista updates and VSS 2005. All of these things are working okay with one exception. The problem I am having is with connecting to the VSS source when opening a solution in VS 2005. I have the network drive mapped as my normal user to Z: and can browse to it without any problems. However, since I am running VS 2005 as an admin per the recommendations, I can't access the network drive and get the error "The Database at Z:\ does not exist or cannot be accessed at this time." How can I resolve this Chances are when you mapped the drive, you used your normal (not admin) credentials ...Show All

  • SQL Server How do I underline a text box

    Is there a way to place an underline style on a text box Or just underline a texbox I don't want to underline just the text in a textbox but the entire textbox (whose width and number of lines is variable based on string variable) Thank You hey there this is what I use high light text box - in properties - border style - drop down to bottom and change to solid otherwise there is a line tool in the tool box. cheers Dianne ...Show All

  • Visual Basic String in Visual Basic 2005 Express

    I am trying to parse out strings that end in "~". There are several strings within the large string. Is there a way to location these ~ characters in the larger string Thanks. There are ways to find the location of the '~' characters (for instance the IndexOf function), but you probably don't need them. Instead, you can call one of the the String.Split function overloads [e.g., http://msdn2.microsoft.com/en-us/library/b873y76a.aspx ] to chop your string up into an array of strings. ...Show All

  • Windows Forms Results from a worker thread into main thread?

    I have a C# dll which provides an event of SqlDependency Notification messages to clients via a delegate. The event fires ok and I get the expected data. The problem lies when I try to get the resulting dataset into a DataGridView without having to implement a manual refresh via button click. I'd like for this to automatically update upon change. I'm thinking the reason is because the data is coming from a worker thread within the SqlDependency class and I have to create some means of marshalling it into the main (gui) thread. Below is my first whack at the event handler but for some reason it does not work. That is I still have to mash a refresh button. Can anyone offer a suggestion void ExcepNotification_NewExceptionNotification(Data ...Show All

  • Windows Forms Control Arrays

    I have a form with tabControl that has 5 pages. All the pages will have same controls. Is there a way i can define the controls on each page as an array, so that i don't have to access them by name such as txtName1.text, txtAddress1.text . I would like to access the controls in a loop as txtName.text (arrayindex), txtAddress.text(arrayindex). Thanks You are probably from VB6 :)! leave that old style and adopt the .Net way: This post must help you: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=822110&SiteID=1 Best Regards, ...Show All

  • Visual Basic converting entire array without loop?

    Hi all, can I convert an entire array to other datatype in one statement preparation: dim test(100) as int16 for i=0 to 100 test(i)=i next i and later on: for i=0 to 100 test(i)=cbyte(test(i)) next i Q: can I do that somehow in one statement (with the purpose of being faster; the example is a simplification) Thanks, Kees With .NET 2.0, you can use generics to convert arrays with the Array.ConvertAll() method. For example: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim arr16(100) As Int16 Dim arr8() As Byte = Array.ConvertAll(arr16, New Converter(Of Int16, Byte)(AddressOf ByteFromInt16)) End ...Show All

  • Software Development for Windows Vista Saving a sill picture of a video file

    Hi! I'd like to write a program writing several still pictures of a video file as jpeg to the hard drive. I tried the MediaDetClass and it works, but not for DivX. I'm able to play a video file using the audiovideoplayback from DirectX. Shouldn't it be possible to save the stopped video picture to disk somehow thx michael MediaDetClass md = new MediaDetClass(); md.Filename = videoFile; md.CurrentStream = 0; md.WriteBitmapBits(40, 320, 240, "f:\\test.bmp"); ...Show All

  • Windows Forms DataGrid like excel

    Hi, I don't have excel on computers where my application will be run. But I need something that works like excel. I mean that I want the datagrid looks and works like excel grid. Thank's Alexei Well what functions do u like you as the developer have to create these functions. As for looking like excel, I am unsure about this - again as a developer you would have to create this. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Xbox deployment does not appear in 'My XNA games'

    After I deploy my game to Xbox it works, but doesn't appear in the 'My XNA games' list. Games that I deployed previously have appeared OK. Any idea why this might happen There isn't any reason as the 360 uses the information in the programs assemblyinfo.cs file to determine what it displays in the xna launcher. If you don't have an assemblyinfo file, then in theory this would mean that no information was displayed in the launcr, just a selectable space that you could use to launch your program. Not sure why you would delete the assemblyinfo file though. ...Show All

  • Windows Forms GridView Edit Command

    Hi, Can anyone throw some light on the error below Basically all I need to do is when an edit button within gridview is clicked, to fire the edit command event and invoke a method to add in drop down lists... But I get the following error: The GridView 'GridView1' fired event RowEditing which wasn't handled. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: The GridView 'GridView1' fired event RowEditing which wasn't handled. Source Error: An unhandled exception was generated during the execution of the current web request. Inf ...Show All

  • Visual C++ Trying to reference objects in another project: errors LNK2028, LNK2019

    Hi Can anyone make head or tail of the error message below I have a project that sets up a port for me, that I want to reference from my project so I can send data to the port. But I get this weird error - which I suspect is something to do with \clr and the constructors / destructors for the Port class... Microsoft docs haven't given me any clues. The Port class compiles fine as a dynamic dll using \clr, but I can't get the two to work together Error 26 error LNK2028: unresolved token (0A00030E) "public: virtual __thiscall Port::~Port(void)" ( 1Port@@$$FUAE@XZ ) referenced in function "void __clrcall `dynamic atexit destructor for 'm_port''(void)" ( __Fm_port@@YMXXZ@ A0x485da573@@$$FYMXXZ ) AHF_Download. ...Show All

©2008 Software Development Network