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 Chriss 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. thesleepylizard

    How to determine the local IP address a client behind a router?

    For the record I've found an alternative solution which is quite complex, but does the job. Involves the server sending a random identifier number on each response (all responses are encrypted) and the cilent provides that on the next request to identify itself. Much more complex than that, but...
  2. thesleepylizard

    How to determine the local IP address a client behind a router?

    At work I'm behind a router. That means when our remote web server handles an ASP.NET request, it looks like it's from ther router's IP address. Say I need to determine the IP address of the actual requester, not the router. Or something that securely identifies them (IP address, MAC address...
  3. thesleepylizard

    How to maintain session+application state over web services?

    For reference: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service08062002.asp Also going to try putting my web services within the context of a web application and see if it helps. I understood that basically anything could be stored in the cache -...
  4. thesleepylizard

    How to maintain session+application state over web services?

    Hi guys, Prototyping .NET system for our corporation and ran into an issue. I'm sure there's a solution. We currently have a VB6 client, and can't change that in the immediate future (trust me). Plan is, however, to introduce .NET web services as the middle tier and keep the interface (just...
  5. thesleepylizard

    Ha, wierd. (2.3 - 2) <> (.3)

    Figured that. What was wierd was that 2.3 - 2 was only reproducable with the code as above, ie .if i removed dateadd() it seemed to work OK. Anyway, no biggie.
  6. thesleepylizard

    Ha, wierd. (2.3 - 2) <> (.3)

    debug.print Format(DateAdd("s", (120) + ((.3) * 100), Date), "h:nn:ss") outputs: 0:02:30 debug.print Format(DateAdd("s", (120) + ((2.3 - 2) * 100), Date), "h:nn:ss") outputs: 0:02:29 El-wierd-o. I can get around it, it's just a curiosity. Probably a Double type rounding error at the 40th...
  7. thesleepylizard

    Help! new ICA session hijacking another ICA session?

    Oh by the way - we have the ICA deployed in different offices throughout the internet and stuff. Plus, we're near our client license limit (not sure if we may be getting bumped over it and that's causing the problems or something...)
  8. thesleepylizard

    Help! new ICA session hijacking another ICA session?

    Sorry, has been an issue for ages, users are constantly screaming at me, and I have no training or official experience with Citrix, and my Citrix support guy is too busy to look at it right away. =sob= But here's the problem. One ICA client logs onto the server, and hey presto - they get...
  9. thesleepylizard

    What are the real advantages of Citrix?

    Hi guys, thanks for your comments. >The gui of an app, should work at the same speed as local. I'm curious as to how it acheives this. I was under the impression that if you entered "Smith" into a field, it would send each key press to the server - and the server sends back...
  10. thesleepylizard

    What are the real advantages of Citrix?

    I'm helping set up a Citrix-based system. (Though Citrix engineers are doing the tricky parts relating to Citrix.) I've never actually used it before. However, from what I've heard, I'm not very impressed. From my basic understand, it seems to me that there are significant disadvantages to...
  11. thesleepylizard

    Binary searching routine. Any thoughts on this code?

    Thanks Per, Sorry - I haven't used Templates much so I don't know how to get this working. I entered the following code to a MFC console program: typedef std::set<int> CNumberTracker; And got these errors: : error C2039: 'set' : is not a member of 'std' : error C2143: syntax error : missing...
  12. thesleepylizard

    Binary searching routine. Any thoughts on this code?

    Part of my program needs to do something relatively simple: remember a list of numbers. So I have an class called CNumberTracker. It has one member called CheckAndAdd(int). This checks to see if the number has already been added - if so it returns true. If not, it adds the number, and returns...
  13. thesleepylizard

    Help! Opening files from XP is SLOW, but 95 is fine!

    We run Windows 2000 server as a file server (also acts as internet gateway). We've got some XP machines and some 95 machines which run exactly off the same hub and log into the same domain. Now here's what gets me. On XP, very first time I try to open up a mapped drive (mapped to...
  14. thesleepylizard

    Easy way of deleting linked lists?

    Sure I can delete the linked list the &quot;orthodox&quot; way, it's just that the code is messy and difficult to read! My proposed way results in neater code (I think) but is not suitable for enterprise situations or long lists. Oh well...
  15. thesleepylizard

    Easy way of deleting linked lists?

    Seems to me that an easy way of deleting linked lists is like this: struct Item { Item () { Next = NULL; } ~Item () { if (Next) delete Next; //...which calls the destructor for the next object, which call the destructor for... etc } Item* MakeNext () {...
  16. thesleepylizard

    Raising COM events in C++?

    (Posted this to the &quot;DCOM/COM&quot; forum, but I'm not sure which one is appropriate why are there two??) In VB6 it's really easy to write COM objects, and to raise events: Public Event SomethingImportantOccured (Data as string) . . . RaiseEvent SomethingImportantOccured...
  17. thesleepylizard

    Raising COM events from C++?

    In VB6 it's really easy to write COM objects, and to raise events: Public Event SomethingImportantOccured (Data as string) . . . RaiseEvent SomethingImportantOccured (&quot;Bingo!&quot;) . . . Private Sub ImportantObject_SomethingImportantOccured(Data as string) ' End Sub In C++, I...
  18. thesleepylizard

    Simplest, most efficient way to store bit fields?

    How good is this C++ bit-fielding-code? 1) Firstly, on generic bit fielding code. I'm writing some bit fielding code which needs to be as fast as it gets, as it gets called zillions of times a second on a server responding to requests in real time. I'm reluctant to use any of the standard...
  19. thesleepylizard

    ??? Autosizing a TEXTBOX vertically?

    Today is NOT my day for writing superb code. The complete code should be something like: With MyForm For CharacterIndex = 1 To Len(pText) If Mid(pText, CharacterIndex, 1) = &quot; &quot; Then LastSpace = CharacterIndex If .TextWidth(Mid(pText, LastBreak + 1, CharacterIndex - LastBreak...
  20. thesleepylizard

    ??? Autosizing a TEXTBOX vertically?

    Sorry, that block of code should be enclosed in: With MyForm . . end With

Part and Inventory Search

Back
Top