|
I couldn't seem to find the answer from whatever documents I have right now... In C/C++ we have "default parameters" for functions, int Func(int nPara1, int nPara2 = 0); , but how do we achieve this in VB? Thanks a lot.
|
|
|
|
|
|
Thanks for your reply, I forgot to mention that I was using VBScript(ASP application) so the "Optional" keyword is not supported Is there anyway I can do that in VBScript? Thank you.
|
|
|
|
|
Option parameters are not supported at all. I haven't tried it, but since all variables in VBScript are of type Variant, you might look into passing an array of values to your function. This could be used to simulate optional arguments, but your function will have to be written to parse up the array and you can't pass parameters by reference at all.
RageInTheMachine9532
|
|
|
|
|
And C# is missing this functionality (unless you like to have 10's of overloads).
This is one of the main reason I am still mainly developing in VB.NET. Has everything C# has (almost) plus some extras... I also feel the IDE is much more responsive with VB.NET...
My 2¢.
Carl
|
|
|
|
|
I want to know how to capture the desktop screen of the client's machine from the server machine.......the screen must sending over using winsock.........
|
|
|
|
|
|
can u more specify........any code about remotely monitor
|
|
|
|
|
|
but that is a software, how can i put it or integrate into vb program........
|
|
|
|
|
The bottom line is that it is not easy. You'll need a some type of server service running on the machine you want to monitor. Then you'll need a client on the machine doing the monitoring.
The previous guy is right with VNC. It's just about the best open source remote control software I've found. Comes with source code too.
RageInTheMachine9532
|
|
|
|
|
I am writing an app that will reside on a W2k server. The app will be started from a shortcut on the users desktop. The app will allows users to construct a operating system level command with parameters and excute the command on the server. The command returns monitoring info (for those of you familiar with GIS and ArcSDE, it's the sdemon command, which is usually executed from the command line). I can do that part now by using the Shell function. The info returned is briefly displayed in a dos-like window which automatically closes when all info is displayed.
I want to redirect the returned info (text) to the Windows Notepad app where the user can edit, save, etc. I have also tried using the functionality provided by System.Diagnostics.ProcessStartInfo but have so far been unsuccessful.
Any ideas would be very helpful and much appreciated.
|
|
|
|
|
Kan we use P/Invoke in VB.NET to call unmanaged DLLs, including those that implement the Win32 API.
I am looking for an exaple doing this.
|
|
|
|
|
Hi, how to create ListView behave like TreeNode
TQ
|
|
|
|
|
What exactly do you want? A ListView cannot "behave like a TreeNode".
|
|
|
|
|
but i saw a sample in C# in this web site?
|
|
|
|
|
|
i know there a sample in C#, but i need it in VB.NET, i try to go through the C# code but still can't get it since i not familiar with it. Is there any sample on VB.NET that u know? TQ
|
|
|
|
|
This is the only example I know of. I can't find another example of this idea anywhere.
To convert blocks of code from C# to VB, you might want to try http://www.kamalpatel.net/ConvertCSharp2VB.aspx[^]
It will NOT convert an entire program like this example. But you can use it to convert blocks of code so you can then use that for a reference to hand convert the rest if needed.
RageInTheMachine9532
|
|
|
|
|
Hi All,
I am trying to get SMTP email address using MAPI functions in VB.
So far, I am not successful in getting that.
Here is what I am doing:
1. Use MAPILogon to get MAPI session handle,
2. Use BMAPIAddress to show address selection dialog box with session
handle got in step 1 above.
3. Select 3/4 addresses in that dialog box and click "To:" to copy the names
to "To:" edit control and click OK.
4. Use ResolveName to get properties of recipients selected in step 3.
5. I should have smtp email address in Address attribute of recipient.
I am getting address internal to Outlook, but not smtp(xxx@yyy.com) in step 5.
Can anyone please tell me, how I can get smtp address using above approach
if possible? If not, are there any other techniques to get SMTP address using
MAPI functions?
Thanks in advance,
Reddy
|
|
|
|
|
I have created a VB application which sole purpose is to create a simple text document. The application queries a SQL server 2000 database and returns a recordset containing 101 fields and typically less then 50 rows of data. I have run into a problem where randomly the application will hang while looping through the data. The problem has no correlation with regards to the number of records being returned. At this point my only thought is that there is a limitation with the ADO 2.7 component I am using. What I can’t explain is why this error does not occur every time. If you have had or heard of a problem similar to this I would greatly appreciate any assistance in resolving it.
Thanks
Jason W.
|
|
|
|
|
hi
can anybody send me a fingerprints recognition code. in vc++ or any other language. or even tell me where to get tht code.
i'll b very thankful to u ppl
|
|
|
|
|
Such algorithms are usually patented by their creators and won't be available as public source code. You might want to try the SourceForge but I doubt you'll find anything. The most I think you'll find is SDK's for various fingerprint scanning devices.
You might want to try www.neurotechnologija.com/verifinger.html. They have an SDK available but the site says "source code may be also made available for developers, who wish to gain all information about fingerprint recognition algorithm."
Good Luck
RageInTheMachine9532
|
|
|
|
|
thanx 4 yr help
i have heard about the computer vision communities on net that help students in their projects. but i didnt find any . can u tell me wut are these and where to find them
thanx again
|
|
|
|
|
how to save a flash in a webpage as a jpg/gif/bmp file?
i used a flash object that i downloaded from the site of http://bukoo.sourceforge.net to create a flash movie file, and now i want to add a function and it can allow people to save this flash movie as a jpg/gif/bmp file.Can anyone here provide some codes or component to help me realize this function?
|
|
|
|