|
Does anyone know how to get around the 2048 bytes limit on command line parameter list?
I would like to drop a lot of files (infinite...) on my desktop icon.
But if the resulting command line (files plus path) is larger than then 2048 bytes then VB crashes.
I use Command$ to get the command line.
/Jerry
|
|
|
|
|
Did you try using the Win32 API function GetCommandLine ?
Furor fit laesa saepius patientia
|
|
|
|
|
Have you tried it? I think not.
I placed MsgBox "Hello" in the first line of Form_Load().
You can't even get that line to work.
The same behaviour occur in C++ projects also if you try the
same thing. It is a Windows problem.
If you have a solution that works, please post it.
/Jerry
|
|
|
|
|
Well, I've tried this in VB and in Window 2k SP2 (my machine) it runs fine...
Maybe is the drag & drop thing your problem...
Compile to an .EXE and run the .EXE. The first time it shows 0 (obvious) and the subsequent times, it shows 5000.
To exit program, kill its task
<br />
Option Explicit<br />
<br />
Private Sub Form_Load()<br />
<BLOCKQUOTE>MsgBox "Hello World"<br />
MsgBox Len(Command$)<br />
Shell App.Path & "\" & App.EXEName & " " & String$(5000, "x")<br />
Unload Me</BLOCKQUOTE><br />
End Sub<br />
Furor fit laesa saepius patientia
|
|
|
|
|
Tried it, doesn't work.
I don't think you are doing what I am doing.
Build your program, create a shortcut and place that on your desktop.
Create a directory with a long path, place a lot of files in it.
Select them all and drop them on your shortcut, make sure that resulting
commandline will be larger than 2048 bytes.
Your program will show a MsgBox saying :"Access to the specified device, path or file is denied."
/Jerry
|
|
|
|
|
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
|
|
|
|