Hi Andrew,
I'm using XP Pro. I'm assuming, from your comment, that any non-NT version will be okay, but NT versions will not.
I actually ended up making a form to use as a dialog within my application. Let's face it - it's probably the only way to be 100% sure that it'll be stable on all...
Oh yeah....PChar('MAINICON') can be changed to a simple 'MAINICON'. Sorry - just ensuring that that wasn't the problem (even though I know string constants are fine as pchar's.)
John.
Hi.
I've got the following code from the internet (seen it in lots of different places - always the same code with same variable names and code formatting etc..)
function MyMessageBox(lpCaption, lpText: PChar): Integer;
var
MBParams : TMsgBoxParams;
begin
with MBParams do begin...
Actually, the suggestion that Chris gave is not actually what I'm looking for - I'm trying to not give the filename via the URL.
I'll have to look into attaching files to HTML and pass the filename back via that method instead.
John.
Hi.
You're right - it is a permission issue. You need to check permissions within the Access database (don't use access if you can help it!), as well as the database files, the database folder, and the components that open the database (I assume ADODB).
John.
Hi.
You make the connection in the same way you did, but you're probably better off using SQL authentication, rather than windows.
Here's an example ActiveConnection value...
Provider=sqloledb;Data Source=SQL-Server-IP-or-Name;Initial Catalog=YourDatabaseName;User...
Hi.
I've built a download for a website and I want to add logging of downloads. I want to do this via ASP so that a normal download link (with a URL ending in a filename) can be replaced with something like...
http://www.mysite.com/downloads.asp?id=15
...where id=15 refers to a...
Thanks, but check out this article....
http://www.ftponline.com/archives/premier/mgznarch/vbpj/1999/11nov99/jc1199/jc1199.asp
Maybe there's still hope yet! I'm just about to try this. I'll let you know how I get on.
Thanks,
John.
Create a new project and place the textfield and button on the form.
Add a module and add the declaration to it (ensure that this is a public declaration, or create a public function in the same module that runs the private one.)
Add the onClick code....
ShellExecute...
Oops - there's supposed to be commas on the above example of use!!!!
SendEmail "aperson@anaddress.com","you@youraddress.com","Subject of email","This email was sent using the SendEmail function I got off Tek-Tips"
Donkey!
Hi.
Try this function that I use regulary (Win2003/IIS6)...
Public Sub SendEmail(sTo, sFrom, sSubject, sBody)
Set imsg = CreateObject("cdo.message")
Set iconf = CreateObject("cdo.configuration")
Set Flds = iconf.fields...
I've just done this myself. For some reason, VB changed the zero to 2 zeros (no O's as your text above).
Also, if SW_SHOWNORMAL is not declared, as it isn't by default in VB, you need to declare it or replace it with the value :
(Taken directly from windows.pas, delphi unit.)
SW_HIDE =...
Hi.
I've got an ActiveX DLL that I wrote in VB6 which is used on my web server as part of an application. I'm now making a System Tray application that will inform users of relevant events, directing them to relevant web pages on the server. For this, I want to use the DLL that the web server...
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.