|
Try the System.Text.RegularExpressions namespace.
Nick Seng (the programmer formerly known as Notorious SMC)
God, I pity me! - Phoncible P. Bone
|
|
|
|
|
Hello every body
Is it possible to change the calling convention of an method in VB.NET ?
If yes how can i do that ?
|
|
|
|
|
can you give an example of what you want to do?
Nick Seng (the programmer formerly known as Notorious SMC)
God, I pity me! - Phoncible P. Bone
|
|
|
|
|
I have to use a legacy C DLL. Some functions in this DLL need Callback as parameters. The Callback are writen in VB.NET. When I pass the address of Callback to the DLL function non managed code, its work (I mean the DLL call may Callback). But it seems to be a stack corruption after the end of the callback call because the callback use _stdcall convention (Default and the only one supported in VB.NET and C#).
|
|
|
|
|
I would like to add a click event to a webform ListBox.
I have read how to do it in VB.net, but I can't make it work for a webform Listbox. (reference article on this site www.codeproject.com/vb/net/sublcassing_Lis;)tBox.asp)
Lyle B. Hunt
|
|
|
|
|
I didn't add a click event but I did attach a bit of Client-side Javascript to a combo box. You should probably be able to apply the same idea to a list box but I son't know how useful it will be in your situation.
cboList.Attributes.Add("onchange", "JavaScriptFunction();")
Beware the chickens, for in their silence, they plot...
Life is too short to be taken seriously.
-- Oscar Wilde
|
|
|
|
|
I'd like to ensure a string I'm manipulating has not become too long to be a valid path. Can anyone shed some light on this for me?
Thanks,
Jeff
|
|
|
|
|
Most win32 c++ compilers have a _MAX_PATH constant defined - I'd search the Web/MSDN and see what this is defined as ... I would have thought VB had a function sitting over a win32 api that returns a path, the MSDN specs for that API should eventually yield that max it returns ...
ps .. I took this >> from the MSDN CreateDirectory API page (The GetCurrentDirectory function doesnt show what you're looking for, unfortunately) ..
"There is a default string size limit for paths of 248 characters. This limit is related to how the CreateDirectory function parses paths.
To extend this limit to 32,767 wide characters, call the Unicode version of the function and prepend "\\?\" to the path. For more information, see Naming a File."
so depending on what you define _MAX_PATH to be, you can just check the string length against it ..
Sorry, that probably doesnt help much
|
|
|
|
|
Hi,
How to I can get all folders name and files name in CD ROM, but not scan all content of CD. Because scan all data is very slowly.
Please help me for this problem.
H.Dung
|
|
|
|
|
You didn't mention if your using VB6 or VB.Net.
Here is a VB.Net method:
<br />
Dim myPath As String = "C:\test" <br />
Dim myDirectory As System.IO.Directory <br />
Dim mySubDirectory As String <br />
<br />
If myDirectory.Exists(myPath) Then <br />
For Each mySubDirectory In myDirectory.GetDirectories(myPath) <br />
MsgBox(mySubDirectory) <br />
Next <br />
End If<br />
Regards
Wayne Phipps
____________
Time is the greatest teacher... unfortunately, it kills all of its students
LearnVisualStudio.Net
|
|
|
|
|
Hi,
I use VB.6 and I want get all directories and files in CD ROM but I don't want scan all content of CD ROM.
Please help me.
Thanks.
H.Dung
|
|
|
|
|
I have found the definitive answer! Unfortunately, it's not what I wanted (although it is what I expected). In summary, to quote the article found at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/redistdeploy.asp,
"Applications and controls written for the .NET Framework require the .NET Framework to be installed on the computer where the application or control runs."
Oh, well, time to roll back to VB6! And .Net was so.... nice! I'm losing my warm and fuzzy feeling....
>I originally wrote:
>In VB 6.0, you could place your VB app on a disk along with the VB runtime DLL, and it would work (from disk) on any Wintel >machine; no need to have VB installed.
> Is there any way to do the same thing with VB.NET? I have a VB app that must be run on WinXP machines that >don't have the .NET framework installed (and for security reasons I can't install it, either, which would be the >simplest thing, eh?). Is there a list of the magical contents of the .NET framework that I can copy to my disk?
>Is my only hope to revert to VB6.0 and use the DLL magic method ? Thanks in advance for any guidance.
|
|
|
|
|
You're out of luck - AFAIK the framework has to be installed using dotnetfx.exe to use a .NET application.
--
Ian Darling
|
|
|
|
|
Sounds like your application should have been an ASP.NET web application since you can't control what configuration your clients would have.
Of course, web applications require the client to have an internet connection (or network for intranet web servers) but that's a lot more common currently than clients with the .NET framework.
|
|
|
|
|
Yes you can. There is a compiler that says that it will compile it too native code.
http://www.remotesoft.com
Bo Hunter
|
|
|
|
|
The native code compiler looks interesting, but I can't find any information about it other than the short blurb on their main page. There is no pricing or download information.
|
|
|
|
|
Same here. If they want us to buy it, they should give us a way to do it.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
Hey all,
I get the following error when using the load method of XMLDocument (the XML
is in string format)
There is no path, it is justa string... <confused> anyone come across this?
TIA,
Matt
--------------ERROR-------------
An unhandled exception of type 'System.IO.PathTooLongException' occurred in
mscorlib.dll
Additional information: The path is too long after being fully qualified.
Make sure path is less than 260 characters.
--------------ERROR-------------
--------------CODE ERRORING ON------------
trackXMLdoc.Load(trackXMLstr) 'dim trackXMLdoc as New XMLDocument()
--------------CODE ERRORING ON-------------
--------------XML (from debug window)-------------
trackXMLstr "<AlbumTracks>
<Track>
<Title>Shitbag 9</Title>
<ID>2962</ID>
<Path>\\Mediabox\Music\Gomez\Abandoned Sopping Trolley Hotline\Gomez -
Abandoned Shopping Trolley Hot - 01 - Shitbag 9.mp3</Path>
<TrackNum>1</TrackNum>
<AlbumID>261</AlbumID>
</Track>
</AlbumTracks>" String
--------------XML (from debug window)-------------
PS. There was more XML and I can post/email it if it'd help. But the message blackmailed me ;o). Made me think of the poor chaps with 56K modems!
|
|
|
|
|
I'm not sure if I'm reading this correctly, but is trackXMLstr actually the content of the xml? If it is, you need to use the LoadXml function, not the Load function, which accepts the path of the xml file, not the content itself.
Nick Seng (the programmer formerly known as Notorious SMC)
God, I pity me! - Phoncible P. Bone
|
|
|
|
|
I used the socket functions provide by the winsock.dll into one of my VB projects and I had a strange problem. I couldn't find what it is.
Here's it is what it happens:
If I run the application in debug mode (from VB 6.0) it is working perfect. The problems appears only when I run the exe file. When I connect to server (I use the client application), the connection succedes, but after that the application crash with a system error. I use a timer that send from time to time something to server. This timer is set only if I get a valid connection to server. But I gues the problem is there, after the connection in the timer procedure.
Can someone, please, help me somehow? Any idea?
|
|
|
|
|
I’m executing a query in a web service but if return heavy data then web service gives error of timeout how can I remove it and how can I deploy web services.
thnx in advance
Aamir
|
|
|
|
|
I have an editable data grid when I enter some values in the cells of the grid and click on another control the last cell of grid where I enter value does not lost focus and in result I’m not able to read the values from all cells of grid how can I lost focus from data grid.
thnx in advance
Aamir
|
|
|
|
|
I want to show dial-up connection properties, broadband connection properties and new internet connection wizard using vb.net but I’m not getting it for this I think so RAS API use but I’m not getting it also.
i want to use it for any windows version
thnx in advance
Aamir
|
|
|
|
|
Hi
This is not a regular problem but still any one who know the answer is bigger then life.
Let say we have an access database file (mdb) with one table that called tblRecID with 2 fields: "RecID" & "Info".
"RecID" is auto number + Primery key + Index.
"Info" is simple text.
If we saved 2 records to this table then the next "RecID" will be 3.
Now let's delete the 2 records and the table is now empty again.
How can you get the current "RecID" that need to be 2 (for now) by code (maybe DataTable object) ?
Any one?
|
|
|
|
|
lee1212 wrote:
How can you get the current "RecID" that need to be 2 (for now) by code (maybe DataTable object) ?
I'm with you right up until this sentence. Please can you clarify.
|
|
|
|