Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. nhoellei

    MemoryStream vs. FileStream

    I am getting closer. Thanks for the suggestion, chiph. If I flush the filestream, it only leaves off 2 bytes. I also tried flushing the XMLTextWriter, but ended up with the same result.
  2. nhoellei

    MemoryStream vs. FileStream

    Yes, the last 9 bytes are important. It creates a malformed XML document and saving to a file is a parameter on execution. Here's what it leaves off: ... <Subnet Gateway="0.0.0.0."> <ESDServers>1</ESDServers> <ESDSRV0>ServerNmae</ESDSRV0> </Subnet> </ESDSubnets> (...Root Element...)
  3. nhoellei

    MemoryStream vs. FileStream

    I am running into an odd situation in dealing with Memorystreams. In my program, I create an in-memory XML document by using XMLTextWriter pointing to a memorystream. As a quick test I dumped the stream to a file, but the file is was truncated by 9 bytes. I skipped the memorystream a...
  4. nhoellei

    Yes, I know, another User Control Post

    It's a standard checkbox, with the the eventhandler created via the IDE. The handler resides within the usercontrol.
  5. nhoellei

    Yes, I know, another User Control Post

    I am encountering an issue where I have 1 aspx page, page_A and two user controls, control1 and control2. When control1 is loaded and the user clicks on a button, this fires an event that is delegated to page_A to load control2 and pass the data selected in control1 to conrol2 to use. I have...
  6. nhoellei

    Use DOM to Create external DTD reference

    I am using DOM to create an XML file and I need to include an external reference to a DTD, however, I can't seem to dig up the right process to do so. Anyone have any good ideas as to how to insert the <!DOCTYPE rootelement SYSTEM "location of DTD"> line or any good ways to create an internal...
  7. nhoellei

    unsigned short to string?

    I am using a small program that uses NetWkstaUserEnum and the return type is a struct LPWKSTA_USER_INFO_1. Anyway, the question I have is when I display the wkui1_username value( which is one of the vaules within LPWKSTA_USER_INFO_1) I get the following: 00137C60 00350036. When I step...
  8. nhoellei

    Strings as input parameters to colsole apps

    Do I need to process argv into a pre-defined char array? Would something like this work? cText = substr(0,strlen(argv)); or for(int j = 0;j < strlen(argv); j++) { cText[j] = argv[j]; } I keep getting invalid cast compile errors if I try these.
  9. nhoellei

    Strings as input parameters to colsole apps

    I have a program that prompts a user for a string and then depending on the size of the string outputs varients of the inputted string with added or missing characters. i.e. int main() { char cText[100]; cout << &quot;Enter the Text: &quot;; cin >> cText; ( cText would be ABC )...
  10. nhoellei

    Hidden Carrage returns in a string?

    I have a page that consists of a textarea field, for comments. I am running into trouble inserting the text in the box to the DB. It's SQL Server with a varchar datatype. Everything submits fine if you enter text with no carrage returns, however, if you are typing along in the text box and...
  11. nhoellei

    Radio Button Resets

    X-) Wouldn't it figure, as soon as I send the reply to your post, I did some more tinkering and figured it out. What I did was create a button to pass the name of the radio buttons to the following function: function uncheck(name) { if (name[0].checked != &quot;0&quot;) { name[0].checked = 0...
  12. nhoellei

    Radio Button Resets

    Thanks - great info. I added some code to set the checked property(s) to &quot;0&quot;, but now the other radio selects. I wanted to mimic the reset button for the row rather than the entire form. Too bad what I want is not a simple as &quot;....checked.reset....&quot; X-) Thanks for the...
  13. nhoellei

    Radio Button Resets

    Is there anyway to reset/clear radio buttons, other than creating a generic reset button that resets all buttons withing the form? I have a table that contains two radio buttons per row so the user can select either button for that particular row. I have a &quot;reset all&quot; button but I...

Part and Inventory Search

Back
Top