Software Development Network Logo
  • Visual Studio
  • Visual C#
  • VS Team System
  • VS Express Editions
  • .NET Development
  • Windows Vista
  • Visual FoxPro
  • Windows Forms
  • Visual Basic
  • Smart Device
  • Windows Live
  • Architecture
  • Microsoft ISV
  • Game Technologies
  • Visual J#

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

DataBeast

Member List

EmSOFT
nmohd
Martin_H2005
Vijayanand
SimonTeW
Setapong
Vasu Sankaran
PatrickInDenver
Alex112
lorserker
Todd Dawson
cmmf11
Agent-Smith
Ben Hart
imrose
Lucia
Otis Mukinfus
kani128
Harold
Manh Cuong
Only Title

DataBeast's Q&A profile

  • Smart Device Development C# calls Native DLL: Class not registered. Please help...

    I am just trying to call COM Object from Windows Mobile 5.0 Device from Visual Studio 2005 using C#. I have a native com dll and I can  call it from Windows application. But when I tries to call the same dll from smart device, it doesn't work. It breaks in the com object. However, when I add the dll, it get all intellisense. The error is like: An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in CEHarness.exeAdditional information: COM object with CLSID '{1B103B23-1243-11D5-94C4-00062999C513}' cannot be created due to the following error: Class not registered . After that I went trying the M ...Show All

  • Visual Basic Problems with Batch file

    Hi at first THX for your elp with the New Lines. I created a Batch File like this: My .Computer.FileSystem.WriteAllText( "C:\modelcompiler.bat" , " cd sourcesdk" & vbNewLine & "bin\studiomdl ..\sourcesdk_content\sourcesdk_content\hl2\modelsrc\" & file, False ) The text works, but when I try to run this File a weird text comes up in the console: "Der Befehl ist entweder falsch geschrieben oder konnte nicht gefunden werden" Is german and means that this command couldn't be found, but when I type it without a Batchfile in the Console it works. I hope That you can help me. Kyle Katarn   ...Show All

  • .NET Development mixing generics and unsafe code

    public unsafe virtual T Read<T>( ) where T: struct /*Do I need write something other */ { byte * data = stackalloc byte [ sizeof ( T ) ]; ... if ( invert ) for ( byte * left = data, right = data + sizeof ( T ) - 1; left != right; left++, right-- ) { byte tmp = *right; *right = *left; *left = tmp; } ... } Is it possible to get size (in bytes) of generic type This example returns an error during compilation I do not think this is a recommended way but it might work in your case with a struct. It relies on interop and marshalling ...Show All

  • Smart Device Development How do we test camera application?

    Hi , I'm writing camera application on windows mobile 5.0 smartphone. i succeded writing the same application on desktop using webcam. could u please give me the steps to test the same application on smartphone emulator. in the document they said, we need camera equipped pocket pc (or)smartphone installed camera driver(or) Null driver ships with the emulator. am not understanding what the document is saying do i need to install any camera driver along with smartphone sdk. is it posible to test the application on Emulator Thanks No, you cannot do that. You need a physical device with ...Show All

  • Visual Studio 2008 (Pre-release) Using Linq on VS2005 RTM with a non-admin user

    I'm not able to use Linq on VS2005 RTM as a non-admin user. Installation was fine and Linq project type show up when I choose a New Project using an a admin user. But it disappear when I use VS2005 with non-admin user. I tried to see what it is doing with FileMon (from Sysinternals) and there are a lot of "not found" messages on some Linq files. Any hint on this Thanks Marco Russo Try to copy all files from "Administrator's Documents Folder\Visual Studio 2005\Templates\ProjectTemplates" to "User's Documents Folder\Visual Studio 2005\Templates\ProjectTemplates". Or try to reinstall LINQ Preview as non-admin user. Hope this he ...Show All

  • Visual C++ statically link msvc*.dll's

    every time i want to distribute an exe, i have to distribute a bunch of msvc*.dll's also, which is annoying as hell. Is there a way to statically link against these so they are included in my exe Go to project properties, C/C++, Code Generation. You can select Multi-Threaded Debug(/MTd) / Multi-Threaded(/MT) for the "Runtime library" option. If you are using MFC you also need to select "Use MFC in a static library" on the "General" page. ...Show All

  • Visual C# How to implement the "Check for update..." feature?

    I have a WinForm application which cannot be handled by ClickOnce technology because of the limitation of ClickOnce.  However, I would like to implement the "Check for update..." feature using the ClickOnce related technology(may be System.Deployment class ).  Anyone know that Thanks Some of the limitations that you mention are actually security features. The whole idea of ClickOnce is to enable Smart Client Applications to be deployed with minimal impact on the users system. ClickOnce is not meant for deploying web applications at all. Many of the limitations that you point out are capabilities that ActiveX controls to ...Show All

  • Windows Forms Horizontal Splitter Group Box

    I put the three list boxes into a group and incorporated the splitters.  It seems to work fine.  I made the group box dock with the top property and it works the way I want.  The next problem is that I want to put a datagrid below the group box and I want to be able to resize the top group box and have it sync&nb ...Show All

  • Visual Basic help about Error Provider.

    how to clear/hide error provider after setting the SetError. I tried ErrorProvider1.SetError(textbox1, ""), but it doesn't work. Thanks in advance... Details of the error provider class http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemwindowsformserrorproviderclassseterrortopic.asp "If the string length is greater than zero, then the error icon is displayed, and the ToolTip for the error icon is the error description text. If the string length is zero, the error icon is hidden" Some examples of the error provider in use. htt ...Show All

  • Windows Forms What is the proper way to change what ListBox.Items holds?

    In an effort to get rid of VB6.Get/SetItemData from a VB6 project upgraded to .NET, the project has been changed to use custom object classes (e.g., with Name and Data members) in collections. This works fine, but has the performance-overhead and type-unsafety arising from the ListBox.Items member being a generic ObjectCollection . What would be better is to create a subclass of a Listbox that is exactly the same as a normal one, except with a type-safe collection for the Items member instead of a generic object collection; that is Items should be a System.Collections.Generic.List(Of SomeType ) rather than just an ObjectCollection . I have ...Show All

  • Visual Studio Express Editions Delete a textline containing a certain string from a text file .

    hello I am new to vb and i cant not seem to solve this problem .What i am tring to do is very simple . I have a simple form with a textbox and a button , i use it to add a line of code into a textfile. This works just fine . My problem is that i want to create a simple form that will delete a line that contains a certain string . i do not want to delete the whole file just a certain string . here is the code i use to add a line to the text file : Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click My .Computer.FileSystem.WriteAllText( "c:\te ...Show All

  • Visual Studio 2008 (Pre-release) Designer not showing up

    When I create a new WinFX Windows Application and open up the Window1.xaml file, it goes directly to the xml editor with the xaml file loaded (eventhough the WinFX Designer is the default).  So when i click the Design button at the bottom of VS2005, a blank page comes up and i can't do anything within it... should i seem something in the toolbox that i can drag over   Something doesn't seem to be correct. I uninstalled the Nov CTP of WinFX, Windows SDK, and winfx extentions prior to installation of the Dec CTP of WinFX, Windows SDK, and Orcas.  What am i missing Also, I'm seeing the same error as this poster is seeing:&n ...Show All

  • Windows Forms .net Remoting events.

    Hi all, When using .net remoting, is it possible for .net remoting clients to listen for events that occur on the .net remoting server side, for example a DataTable defined at the server side, is it possible for the clients connected to the server to listen for ColumnChanged event of the server DataTable. Many Thanks Hi KraGiE, I need to develo ...Show All

  • Visual Studio 2008 (Pre-release) Question about Lambda Expressions

    I am having some trouble understanding Lambda expressions seen in code. I think part of the trouble I'm having stems from not knowing what to call the '=>' operator when I'm reading through. Not sure how common this is for other programmers, but when I look at source code, I tend to 'translate' it in my head into a natural language. Like, when I see: foreach(int someInt in someInts){ Console.WriteLine(someInt); } I tend to look at that and read it as: "For each integer called 'someInt' in the collection 'someInts', Write 'someInt' to the console." or when I see 'int a = b + c' I read it, naturally, as "Integer ...Show All

  • Visual Basic Porblem With GroupBoxes

    I have two group boxes. I put GPBOX 1 Below and GPBOX2 Ontop. But Gpbox2 become inside Gpbox1. So if i move the Gpbox1, Gpbox2 also moves. So can i seperate both of them even though one of them is inside another one One way may be to create a user control - which consists of the group box and the buttons and use this on your form. So the buttons are independent of the group box within the control but are all treated as one when the control is added on the form. ...Show All

©2008 Software Development Network