|
I am not trying to be smart. If you have a solution a will be very happy.
I'm looking at sending files to a directory and use FindFirstChangeNotification() to find out if files have been copied. Then just run through the catalog with FileFind.
Cons: The files will be copied. Can that be hindered?
Or sending the files to a .bat file, list the files to a
text file and read that.
Cons: A DOS window will be shown, it will look bad on a slow
machine.
/Jerry
|
|
|
|
|
I have found a way to achieve dropping on the desktop.
Look at shell extensions part VI on this site.
/Jerry
|
|
|
|
|
hello,
I need to pss arguments to a sub, the argument is an user-defined type defined in a module as public.
when I compile he app I get the error :
"Only public user defined types defined in public object modules can be used as parameters or return types for public procedutres of class modules or as fields of public user defined types."
what do i do ?
|
|
|
|
|
you have to declare your type in a module.
|
|
|
|
|
I am, unfortunately, not a programmer but can follow most code examples when provided. What I am surprised about (and thus, in search of), is a way to search MS Outlook Express 6 Usenet message headers for a specific IP address, when entered and searched for. The basic 4 fields which MS provides is simply not sufficient.
Is there a way to do this in VB code, maybe as an add-on? Has this been accomplished by someone? I can't seem to locate it despite extensive searching on google.com, Altavista.com and a number of other S/Es and directory engines.
Any VB tools which may have been created for this purpose, or are easily modified to complete this task, would be greatly appreciated.
NOTE: This is not for a client, it for my own personal use in the office, when trying to search down people responding to a message who may be attempting to hide their true identity from their past history in the newsgroup.
Google's www.dejanews.com does not appear to search headers of the messages for IP or resolved names, from usenet messages. At least not from my past experience.
Thanks in advance to all offers of assistance.
Gil Tennant
Project Manager
WebWham
|
|
|
|
|
Hi all,
Does anybody know of a component which allows you to email from VB.
I don't want to use MAPI as this requires the user has installed (and setup) Outlook or Word.
I know there is a great example here on CodePrj in VC++.
Does anybody know of anything similar for VB?
How easy would it be to take the C++ code and wrap it into a DLL which could be called from VB?
--
The Obliterator
|
|
|
|
|
I don't know of any additional VB controls, but I thought it came with Internet Controls? You could try searching for SMTP and Visual Basic from a search engine.
If you have some skills in using VC++ (and can use the Wizards), its not too difficult to wrap up some source code to make a DLL that is accessible from VB. A straight "C" DLL will do it or a COM object.
Dave.
|
|
|
|
|
I will look into the Internet Controls... I am not a VB developer so it really is something I have no idea of.
Yeah I'm confident I could wrap the C source into a DLL... its using it from VB I was worried about! I will give it a go, cheers.
--
The Obliterator
|
|
|
|
|
If you just want to do some simple smtp based email from a vb application you can run on over to www.planet-source-code.com ... do a seach in the vb section for email and/or smtp. I know there are several examples there.
Good Luck!
Jon
|
|
|
|
|
Hello world,
I have written a code for excel, that do some work automatically. My Problem is, that during this time (About 5 Minutes) nothing occures on the screen. Now I want to build a little GUI, that shows the user the progression of the work (something like the one that shows the work of ScanDisk or Defrag). Can someone please tell me which API-Functions, Animated GIF's etc. do I need ?
Thanks a lot
Tom
|
|
|
|
|
Since you mention Excel I’m guessing you’re using VBA. Look to see if VBA supports DoEvents. If it does then put that in your loop w/ some sort of form is not modal which you update from w/in the loop.
|
|
|
|
|
Hi,
I have IIS Application,in VB.I have added Simple HTML template in it named MyTemplate.In WebClass_Start I have written
Set NextItem = MyTemplate
And in MyTemplate_Respond event i have written
MyTemplate.WriteTemplate
So now when i run application i should see the HTML content in Browser,but application hangs after that.
I am working under win2k.
Can anyone help on this?
Regards.
|
|
|
|
|
This is probably not the answer you're looking for but webclasses within VB are pretty much a dead technology. There are various threading and performance issues that have come to light on this particular technology. If you really need the power of vb when developing a component for a web based application you might want to investigate COM+. Switching to the new .NET stuff if you're running IIS 5 is also a very viable alternative.
Good Luck!
|
|
|
|
|
Hello,
I want to write / find a program which dials to a given number wait till the anwering machine to answer, wait to the "beep" (online voice recognition) and play a recorded msg.
I'm searching for a week now for an already existing prog but all my searchings failed.
pls help me soon.
10x, tal.
|
|
|
|
|
I'm looking for a way to check application existance in two capacities:
1.) How do I check if an application is running? One program relies on another to process, etc...
2.) How do I check if the application being launched is already running? Or, is this handled the same way?
t
|
|
|
|
|
1. Sorry, don't know this. Probably som API-stuff
2. Try this:
if App.PrevInstance then
' app already running
endif
Øyvind.
|
|
|
|
|
Not sure if this will help as it is really old but search MSDN Lib for Q72918 in the title.
|
|
|
|
|
I'm attempting to create an Emulator for an Online Game, I was wondering if anyone could offer some helpful advice?
|
|
|
|
|
Don't try to use VB; unless you are looking for a headache. Use C++ instead.
|
|
|
|
|
I know it's a long shot, but does any one know an object \ com object that draws schedual for project's \ other things, like in MS project. I need to create scheduals for many projects and a component like that would be very usable to me.
Rayman
|
|
|
|
|
I've been using the Solutions:Schedule component from DBI-technologies in a big project. Try it out http://www.dbi-tech.com/product_info_prime/solschd.htm
|
|
|
|
|
I am writing an application in VB6 to interface with SQL 6.5 and have a question regarding catching login failure messages. The first thing my application does is prompt the user for his SQL userid and password. I then try to login to SQL Server. If the user entered a wrong password, the Microsoft SQL Server Login failed message is displayed.This message contains too much technical information that will confuse the users. I would like to trap the error and send my own screen with more user friendly information. The exact error message is 'Connection Failed: SQL State: '28000' SQL Server Error 4002.
Public Connection As String
Public DBTemp As Database
Connection = "odbc;logintimeout=30;DSN=Station Train Control;"
Set DBTemp = OpenDatabase("", True, False, Connection)
Please help!
Lillian.
|
|
|
|
|
Why don't you place the code in a Boolean function,
then trap it like followed:
private function connect_to_db(Connection as string) as boolean
on error goto failed_open
set DBTemp = OpenDataBase("",true,false,Connection )'Public
connect_to_db = true
exit function
failed_open:
if err.number = 28000 then msgbox "Wrong Password Or User name, please try again"
connect_to_db=false
exit function
end function
Hoped to have helped you :
Rayman
|
|
|
|
|
Public Connection1 As ADODB.Connection
Public strConnectionString As String
Public strUserWsd As String
Public strUserID As String
Set Connection1 = New ADODB.Connection
Connection1.ConnectionString = strConnectionString
'we already catch the UserID and Pwd info in this stage
strConnectionString = "DSN=Station Train Control;UID=" + strUserID + ";PWD=" + strUserWsd
Connection1.Open strConnectionString, strUserID, strUserWsd
'in this stage of the program : open Connection1 establish a principal connection
'later in the program
'call flexGrid
'the control "MSRDC1" for the FlexGrid which manupulate with the information for the Grid
frmDepArrival.MSRDC1.Connect = strConnectionString
frmDepArrival.MSRDC1.UserName = strUserID
frmDepArrival.MSRDC1.Password = strUserWsd
'the program keeping the same connection....everything it's still OK
frmDepArrival.MSRDC1.SQL = " select 'Train #'=trn_no ,'Track #'=trk_no,'Schedule'=convert(char(5),sch_dep_tm,14),'Actual'=convert(char(5),act_dep_tm,14) ,'Delay(min)'=DateDiff(mi,sch_dep_tm ,act_dep_tm ) from actdep where trn_prcs_dt = '10-04-2001 12:00PM' and in_stn_ind ='N' order by sch_dep_tm asc "
frmDepArrival.MSRDC2.Connect = strConnectionString
frmDepArrival.MSRDC2.UserName = strUserID
frmDepArrival.MSRDC2.Password = strUserWsd
'the program keeping the same connection....everything it's still OK
frmDepArrival.MSRDC2.SQL =select 'Train #'=trn_no ,'Track #'=trk_no ,'Schedule'=convert(char(5),sch_arr_tm,14) ,'Actual'=convert(char(5),act_arr_tm,14) ,'Delay(min)'=DateDiff(mi,sch_arr_tm,act_arr_tm) from actarr where trn_prcs_dt = '10-04-2001 12:00PM' and in_stn_ind ='N' order by sch_arr_tm asc
'the program keeping the same connection....everything it's still OK
'in this stage the program opening new connection on Refresh method,Why?
frmDepArrival.MSRDC1.Refresh
'in this stage the program opening new connection on Refresh method,Why?
frmDepArrival.MSRDC2.Refresh
The question :
How I can keep the "Microsoft SQL Server 6.5 " from opening the new connection on Refresh
method the FlexGrid's and using the old "one and only" connection in the program???
Lillian
|
|
|
|
|
Hi Gurus,
I have a program which needs to sign on MAPI to send email. This program is scheduled by Task Scheduler run under an account that has an existing valid MAPI profile. Unluckily, when the program is evoked, it cannot log on to the MAPI system and expreriences "Not supported" error message. I suppose this has something to do with security context with Scheduler. This error is weird, and I do not know what to do! You guys please help me! My email ID is cuongpl@hotmail.com.
Thanks,
|
|
|
|