Yeah I guess that could be handy.. woops!
Using VB6
lReturnCode = ReadEventLog(lLogHwd, EVENTLOG_SEQUENTIAL_READ, lLogPos, VarPtr(Log), lNumBytesToRead, lBytesRead, lMinNumBytesNeeded)
Where all of the variables are of type long except bLog which is of type Variant. 56 is the value set into...
Hi Guys,
No matter how I try to call the ReadEventLog API it always returns a value of 87 (ERROR_INVALID_PARAMETERS). So I am obviously trying to use the wrong variable types (or values). I have searched extensively across the web but can't find a solution.
Any hints or sample code would be...
Hi Guys,
I need to add a field onto a mail merge document that displays the current date + 28 days. I can write the code for this no worries in a macro (VBA) but i'm not sure how I should be adding it onto each document (This needs to be done automatically when the document is opend and...
Hi,
I've got an asp application which allows users to upload files onto the webserver. As a part of this process I need to copy the file into a network directory (this is done via functions written in a VB6 ActiveX dll). The network directory is shared with permissions that contain Fill Control...
Hi,
I have a word document that contains a reasonable about of VBA code that is used to generate a word document. As one of the last steps of the process the document is is Saved As. Unfortunately as part of this process the macro code is also saved into the new document.
Is there anyway of...
Hi Guys,
I have a program which is written in VB6 and interacts with Microsoft Word. However for part of the program I need to know what version of Word is installed on the clients machine (eg 2000,2002 or XP).
Does anyone know how this can be determined from code
Thanks
DJ Smith.
PS I am...
I am using Windows XP and I am setting my CLASSPATH through enviroment vairables (On the system settings from control panel)
C:\j2sdkee1.4\lib\j2ee.jar;c:\j2sdk1.4.1_01\lib\tools.jar
I also have the JAVA_HOME and Path varibales set up.
I am running my app from the directory where the class...
I'm trying to run my java class from a command prompt and keep on getting the error
Exception in thread "main" java.lang.NoClassDefFoundError: Test
My CLASSPATH system variable seem to be set correctly but I am still getting this error on all java programs (reqardless on whether I set the...
We have just moved across to Exchange 2003 and emails that are sent to a public folder from within our network (machines that are connected directly to the Exchange Server) come in fine, however emails sent to this public folder from locations external to our origanisation show up as Posts...
Your setting your variable hash as an array of long's with a size of 6000. But you are only setting the first item to have a value (55).
Your println call is working but you are printing out 6000 lines of which the last 5999 are blank.
When using session objects type casting is the best way to do it.
So to get a string out you would go
String strTesting = (String)session.getAttribute("myString");
You need to use a Java COM Bridge to be able to use MS Office programs from a java environment. I have found that JACOB (JAva-COm Bridge) is quite easy to use (http://danadler.com/jacob/).
There are plenty of examples around on how to use JACOB and running the process everyday should just be a...
Spot on - This new application is just an extension on an existing website.
Found out that my problem was to do with the uriworkermap.properties. Without restarting the IIS server the changes made to this file do not take effect (even when tomcat is stopped and started).
Thanks for the help.
I have a problem accessing servlets when my application is being run over the Internet. When the application tries to load the servlet a Page Cannot be Found page is displayed. However when I reference the site through an intranet address the servlets function perfectly.
I am running IIS and...
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.