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 SkipVought 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. sophtwarez

    Visual C++ strings

    Apparently just a Micro$osft problem; bothered to download Borland C++ Builder and it all compiled like a daisy. I wonder why such a simple project would fake the crap out of VC++. sigh. I guess no one out there can help me eh? dav1d
  2. sophtwarez

    Visual C++ strings

    Here is an example of what I'm trying to do: #include <string> #include <iostream.h> using namespace std; string pres[5]; void loadPrescriptions(){ //this will read from a file later pres[0] = &quot;David Seruyange&quot;; pres[1] = &quot;Laura Bush&quot;; pres[2] = &quot;Jamie...
  3. sophtwarez

    Visual C++ strings

    So - does Microsoft support normal strings ala <string.h>? As I go through the documentation it seems they have a special Win32 class called CString if you include <afx.h> but after including it I get serious linker problems when trying to execute. Sample code: #include <iostream.h> #include...
  4. sophtwarez

    Random number generation

    Hello all - how can I generate a random number *at run time* in C++? I'm thinking of something like Visual Basic's Rnd or, in Java, Math.random(). I've used rand() and it always generates the same number after compilation. Thanks much, dav1d
  5. sophtwarez

    Data access problem

    Okay, I always tell people to ditch the Visual Interdev DTCs and just use ADO. Here is a simple step by step: <% '/******************************'******some page .asp************ '\*************d4v1d5e**********/ set conn = Server.createObject(&quot;ADODB.Connection&quot;) strConnect =...
  6. sophtwarez

    How to refresh screen via scripting?

    In client side script you simply use: <script language=&quot;javascript&quot;> function reloader(){ window.location.reload(); } </script> You may want to add the no cache option to the page too: <% 'at the top Response.addHeader &quot;Pragma&quot;,&quot;No-cache&quot; Response.expires = 0 %>...
  7. sophtwarez

    Coding a hyperlink to another page

    If you are doing server side code it would be the following: Response.buffer = True set r = Server.CreateObject(&quot;ADODB.Recordset&quot;) 'open r with whatever records If r.eof Then 'check to see if recordset is empty Response.redirect &quot;EmptyRecords.asp&quot; Else 'do stuff with the...
  8. sophtwarez

    How do I setup a web server project

    1.Open Visual Interdev 2.New Project 2a. When it asks for a project location, it has to be *outside* the inetpub\wwwroot path! 3.enter 'localhost' (without single quotes) 4.enter name for your project 5.click 'Finished' 5a. [Themes and Templates are fairly useless] Some snags: 1. If you are...

Part and Inventory Search

Back
Top