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
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] = "David Seruyange";
pres[1] = "Laura Bush";
pres[2] = "Jamie...
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...
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
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("ADODB.Connection")
strConnect =...
In client side script you simply use:
<script language="javascript">
function reloader(){
window.location.reload();
}
</script>
You may want to add the no cache option to the page too:
<%
'at the top
Response.addHeader "Pragma","No-cache"
Response.expires = 0
%>...
If you are doing server side code it would be the following:
Response.buffer = True
set r = Server.CreateObject("ADODB.Recordset")
'open r with whatever records
If r.eof Then 'check to see if recordset is empty
Response.redirect "EmptyRecords.asp"
Else
'do stuff with the...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.