|
sry, i mean wat u say.. i declare a variable with dim t as object and then i want to set the variable with Set t = CreateObject("mydll.myclass"). but it diddn't run
|
|
|
|
|
Is the .DLL a COM-based DLL and is it registered, using REGSVR32? If not, you can't use CreateObject. CreateObject can only be used to create COM-based objects.
You can't just specify a .DLL filename and some name. You MUST use the COM-exposed name (ProgID) of the object in the library you want.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
yes the dll is registered. i've searched in the registry and found the clsid with progid.. but when i use them.. it dosen't run. The Name of the ProgID is "BARCODE.BarcodeCtrl.1" and the class name is "Barcode". When i call "Set myVar = CreateObject("BARCODE.BarcodeCtrl.1.Barcode")" then i get the error..
.. i've even tested without the class.. and it runs!! but i'm not sure with object i've get.. i hope it was the barcode-class object
|
|
|
|
|
You can only use the ProdID, without appending the class name:
Set myvar = CreateObject("BARCODE.BarcodeCtrl.1")
That should represent the COM object (class) that you're looking for.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
i was EXport some data form my vb6 to EXCEL.
But when i close my program i found out that the EXCEL.exe is still running...
wat is the command to terminate the EXCEL.exe when i close my program????
|
|
|
|
|
Dim e As New excel.Application
e.Quit
|
|
|
|
|
Hi,
I need to write a very little vb.net console application that can mute or unmute the sound device and change the level of each entry to 0 or max.
I've looked around without succes.
I'm sure that someone here can help me !
Thx
|
|
|
|
|
Hi ,
I want to populate a treeview with 1 million nodes.
How can i do that while maintaining the efficiency of the web page.
i want to achieve this in asp.net 1.1
though i have the option of working in asp.net 2.0 but i m not familiar with that.
suggestions for asp.net 2.0 are also welcome.
thanks & regards
Kapil Thakur
|
|
|
|
|
Kapil Thakur wrote: How can i do that while maintaining the efficiency of the web page.
You can't. Your page will still load exceptionally slowly even on a DSL line. That is if the treeview control will even support that many nodes (I seriously doubt that it supports more than +/- 32 thousand).
You should rather think of another solution.
|
|
|
|
|
hi,
thanks for the reply.
i knew that loading such a tree is impossible.
however is there any way by which i can implement the previous & next methods like paging in datagrid.
that is, on demand i can load a certain number of nodes and then get options like previous and next links. on clicking them, i will load next number of nodes.
can that be achieved?
thanks & regards,
Kapil Thakur
|
|
|
|
|
There is no way to do that. Even if you could add that many node (I think the limit is 65,535), the TreeView wouldn't be usable until the entire tree is loaded. With 1 million nodes, that would take a LONG time, even over a 10Mb/sec connection.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
As the previous two members stated, this is unrealistic.
What exactly are you trying to accomplish with your application? Perhaps we can suggest a more efficient working-model to solve your problem.
On the other hand. You might be able to use a TreeView. You would need to AutoPostBack based upon which nodes are clicked, and then generate childNodes for those upon Page Load. This way, you never have 1,000,000 nodes on a single page, but instead potentially just a few hundred.
Either way, you should tell us what it is you're trying to accomplish, and not how you wish to do so
Jonathan Sampson
www.SampsonResume.com
|
|
|
|
|
as a treeview nodes have indexes in integer you can not make nodes more than integer maximum amount.
try xml files to make a tree-shaped output.
|
|
|
|
|
hi,
can any one tell me how to add sound effects to a vb.net application.
Something like on button click..
|
|
|
|
|
What kind of sound effects? What format?
|
|
|
|
|
a simple beep sound is enough .r any other sound...
|
|
|
|
|
You could use Beep() or if you're using VS2005 My.Computer.Audio.PlaySystemSound(Media.SystemSounds.Beep) . For playing other audio in VS2005 look at My.Computer.Audio.* classes.
|
|
|
|
|
thanx dude..vl check it..
|
|
|
|
|
hello every one....
I have question that how cn i create reguler expression in vb.net and also i would like to ask that how can i use this regular expression with user data base which is in any database like SQL server , ASSCESS or ORECAL etc.So how cn i deal with regular expression ?
And one more question is that how can i get the user database constrain? I get till field's data type now i want the size of that field and the constraints which giving to that field.
|
|
|
|
|
Hi Mansi !
Try this Google[^]
Hope this helps you !
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
good day again... how does a function return two value?
thanks
nothing is impossible.....
|
|
|
|
|
dim intTest as Integer = GetNumber()
...
.....
.......
function GetNumber() as Integer
dim i as Integer = 1+2
GetNumber = i
' or return i
end function
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
thanks, your function does involves to values, but return one result..
... i mean to ask, how does a function return to result..
ex: textbox1.text = getNumber(1)
textbox2.text = getNumber(2)
the code you provided was a great help, but it only returns 1 result... does anyone here knows how a function return two results?... thank you..
nothing is impossible.....
|
|
|
|
|
Correction i mean "two results"
nothing is impossible.....
|
|
|
|
|
{{ A7WAL }}
FLOAT LIKE A BUTTERFLY STING LIKE A BEE
Mohamad A. Flefel
mflefel@hotmail.com
+962 79 5963865
C#.net & VB.net Developer
|
|
|
|