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

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

chrisclementdotcom2

Member List

Narenkumar
CervantesVive
cpavlov
Patrick Hampton
jefftardif
Ashish Adkine
Don Stuber
suhalka
Todd Peasley
Tee
Chazoo
akaricky1
Parag Shetye
gcox18
Jamie a Developer
Steven Ts
JoseB
Michael Hogue
SIVAPRASAD S - SIVA
KWLO
Only Title

chrisclementdotcom2's Q&A profile

  • Visual C# Indexers concept in C#

    Hello! I am quite new to C#, and one concept that really gives me a headache is "indexer". I have gone through the MSDN examples, and, at some level know how to use indexers. But, the thing is I do not understand the specification that says something along this line "with indexers you can index objects of a class like an array". The thing is, in all the examples, there is only one "new" call when only one object is created! There is no array of objects. Yet, right after the "new" call, indexer is used, like obj[0], obj[1], obj[2], ..., obj . When these objects are instantiated Also, I have ...Show All

  • Visual C++ cannot convert parameter 1 from 'wchar_t' to 'const void

    Hello Everyone, I have a code which was written in WIN 32 and I upgraded it to .NET everything went fine, except this passing of parameters .. the function looks something like this... sha_hash( const void * data_ptr, /* data to be hashed */ int data_length, void * buffer_ptr, /* hash buffer ( 20 bytes ) */ int buffer_length = SHA_HASH_LENGTH, void * prefix_ptr = NULL, /* for hmac */ int prefix_length = 0 ); In WIN 32 i can pass something like this sha_hash(char password, strlen(password), unsigned char passwords); // this worked fine no problem but here if I do the same thing....doesn ...Show All

  • Visual Basic PropertyGrid problems

    Hi, I am currently using the propertygrid control to browse an object containing many properties of different types, some being structures which contain properties of their own. The first problem is that when I create a class inheriting from ExpandableTypeConverter, and use this class as the type converter for a property in my base class, I cannot find a way to unbold the display text using the DefaultValue attribute... The second (more important) one is when I have one of these property (of the type of a user-defined structure) and I try to edit a property of the base property it does not change...The base property get m ...Show All

  • Visual Basic Text from a notepad

    when i click button1 i want it to read the text from a certain notepad and then put all the text from the notepad into a textbox, how thanks If you are operating that notepad, you can always do a control-A, Control-C to copy the contents to the clipboard - from there it is very easy to programmatically move code from the clipboard to your textbox. If My.Computer.Clipboard.GetText().length <> 0 then    Textbox1.text = My.Computer.Clipboard.GetText() else    beep    Textbox1.text = "The clipboard is empty" endif I hope this helps ...Show All

  • Software Development for Windows Vista "Workflow Express" server ?

    At one end, we have BizTalk. The full-monty, all singing all dancing workflow server, with oodles of integration to other systems. Downside: It costs a fortune - prohibitively expensive, complex, requires SQL Server (so no use to Oracle only shops). At the other end, we have windows workflow foundation. The building blocks for a workflow system, free. Downside: There is no "out-of-the-box" server. Everyone ends up building their own mini-server, persistence layers, designer hosting etc. OK, there are demos that go some way to addressing this, but you still have a fair bit of work to do yourself. It seems we are missing the mi ...Show All

  • SQL Server how many connection sqlexpress supports

    I see this question a lot, so I thought I would go ahead and post the answer here. Q: How many connections does SQL Server Express support A: Unlike MSDE, SQL Server Express does not limit connections.  SQL Server Express supports: 1 gb RAM (note the machine can have more memory, but 1gb will be used by SQL Express) 1 processor (again, the machine can have more, but just 1 proc will be used by SQL Express) 4 gb database size (note, there can be multiple databases, but none of them individually can be more than 4 gb) Hope this helps, Thanks< MJ Is it right that only 5 database users can connect to SQL Ser ...Show All

  • .NET Development Using HTTP.SYS in an app

    Hi do you if there are any security restrictions in this.   i.e. dose the app have to have administrative privileges Thanks BenW Nope. Shouldn't. BTW: You don't want to program against HTTP.SYS. HTTP.SYS is a driver. You would want to use - HttpListener for .NET 2.0 - HttpApi for DLL API - HTTP Endpoint for TSQL - Others I don't know of... BTW: To get great speed gain from this, you might want to check out "Reasons Content Is Not Cached by HTTP.sys in Kernel" http://support.microsoft.com/ id=817445 Happy serving. ...Show All

  • Windows Forms Static component - is it possible?

    Is it possible to create a component that behaves like static - each time you put it into the designer's tray it is the same instance of the component For example, I have a collection of styles, brushes, etc., which is a component. I also have a couple of forms, each needs the collection. I put the collection for each form into it's components' tray. Each time a new instance of the collection is created. I want this collection to be the same instance for each form - a kind of static. Is it possible Thanks, truetype Why would you make your class a component Just make it a singleton class, or make all of its ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Realy simple tutorial.

    Hello I'm looking for a tutorial that shows the most simple DX-program ever, just how to create a simple plane/box/polygon. I've looked everywhere but all i can find is "create your own battletank game", "your own flightsimulator" etc etc. I'm using J# but there is almost no tutorials for that so i have to use C#-tutorials and convert them but that takes alot of time, specialy if the tutorials has mixed in some piece of flightsimulator code in it. That's the reason why i want a realy simple tutorial. I've seen alot of people saying "read the samples included with the sdk", where are they located i've installed the sdk but i can't find them a ...Show All

  • Windows Forms webBrowser question, content from string?

    Hello.  I am using VS 2005 beta 2 and am building a C# project with a webbrowser control embedded in my Windows.Form. I see that I can use the DocumentText hook to feed HTML from a string to the webbrowser.  What I would like to do is feed SVG code to the browser from a string (I have already installed Adobe SVG Viewer, so the browser can render SVG content).  Is there a way to tell the browser control that the mime type it is getting is "image/svg+xml" instead of HTML Thanks in advance for any help. You could use a memory mapped file ... ...Show All

  • SQL Server How to convert Dynamic Properties to SSIS Package Config?

    I'm currently trying to convert over packages from SQL 2000 to SQL 2005. The biggest obstacle at the start has to do with converting my "Dynamic Properties" control. I use it to read an .ini file and load the user name and password to my connections. With 2000 it's nice and easy 1 file 3 lines. While trying to convert it I’ve had nothing but problems. I've tried the Registry Entry but it forces everything into the Current User and I can't use that I need local machine. There is no documentation and I can't have a xml file with 1000 different username and password settings because 1 person has to update that file with the new passw ...Show All

  • Smart Device Development Delete myself :)

    Is it possible to flag a file to be deleted next time the system is booting I'm trying to make a .exe file that deletes it self after it has been executed.... If I try to delete my self I get a IOException.... Oystein This should probably apply to WinCE as well http://groups.google.com/group/comp.os.ms-windows.programmer.win32/browse_thread/thread/1518db68a9ae87dd/30ad07272ff23f69 lnk=st&q=FILE_FLAG_DELETE_ON_CLOSE+windows+ce&rnum=1#30ad07272ff23f69 Also see http://www.catch22.net/tuts/selfdel.asp (interesting discussion though it almost surely won't work on WinCE) ...Show All

  • Windows Forms concerning the "sleep" feature in windows XP

    I am wondering if there is any way to get the computer to sleep (where the screen blanks and fan turns off) and reactivate it by hitting a certain key, such as the spacebar, rather than having the computer detect mouse movement.  The problem is that when i hit the table lightly, the computer annoyingly turns back on. ...Show All

  • Visual Studio Express Editions How to enable line numbers in text editor?

    Could not find Tools->Options anywhere that will allow me to enable line numbering in my text editor. I must be looking in the wrong place, can anyone help When you do open the Tools -> Options make sure that you check the check box at the bottom that says show all settings. This will open some more values in the tree. From there you can add the line numbers to each of the editors windows, for example the plain text tree has a check box for line numbers. ...Show All

  • Visual Studio Express Editions Need help with for and pictureboxes

    I'm making a map editor to make maps Every tile is a picurebox. In the menu there is a command "New" wich will load all the default pics into the picturebozes, so you can make a new map i created this for statement dim i as integer For i = 0 To 391 PictureBox(i).image = My.Resources.Image_default Next i But this doesn't work. There is something wrong with the PictureBox(i).image Please help me. I'm using vb2005 Thanks in advance, Radexxion "There is something wrong with the PictureBox(i).image" doesn't really give much idea of the problem you are having. Have you created an Array called ...Show All

©2008 Software Development Network