|
What is DLL file ? How to create it and add it into VB?
(DLL Structure please)
Ask More - Learn More
JohnJone
|
|
|
|
|
I have a really big application running on vb6, it will take months to port it to .net
in the meanwhile i need to use some GDI+ capabilities (and some threading).
I wrote some DLLs that will do the job for the big applications, but i don't know how to export them to VB6,
When i'm trying to add the reference to the DLL, it gives me an error message that it cannot use that kind of DLL.
I thought of using OCXs instead, but i don't seem to find a way to create an OCX in VB.Net (i know i can do in c++/# but i have tons of code already written in VB.net and i'm on a tight schedule)
Can anyone help me out?
Fade (Amit BS)
|
|
|
|
|
As far as I know, May the Windows Control Library Project is the project that will create the control for you. In visual studio .net 2003 go to File Menu and Choose New Project and Select VB.Net project then Choose Windows Control Library . Hope this will help you.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
i'm sorry but if it was that simple i wouldn't have posted this question.
that problem is exporting the created control to vb6
thanks for the effort though
Fade (Amit BS)
|
|
|
|
|
I am using a javascript alert as a msgbox
temp = "<script language = javascript> alert ('Login Required'); </script>"
page.registerstartupscript("login",temp)
script works fine until I add
server.transfer("login.aspx")
the transfer works and the script doesn't execute
Any Ideas on how to force the script to run first then the transfer
|
|
|
|
|
First, this question belongs in the ASP.NET Forum. Second, you can't force the client to run ANY script. Third, you might want to look into Forms Authentication. Any page that's protected by the authentication automatically redirects to a login page. You don't have to do anything in your code to make it work...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi
could anyone point me to a link or source about how to edit a winforms datagrid cells to a new value,adding a new row and update those values to the sqldatabase....urgent running out of time.
i have spent allday searching google all it had was about asp.net datagrid ... HELP
thanks in advance
bart
|
|
|
|
|
In VB.NET and using XP
I am trying to write some code that will let me:
*get an administrator's password
*set an administrator's password
*logout of limited account session
*then login to the administrator account with
the new password
Any information on any one of these four steps would prove useful to me.
Thanks,
nju0843
|
|
|
|
|
You're kidding, right?
Basically, you can't do that. First, there is no function that will return any account passwords, no matter what account your using, even an admin account. Second, in order to change the password of another account, you have to have admin rights.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi, Dave how about technology such as third party tool[^] that use to crack or reset password for windows? Why they can reset database but could not change the password if the we know the place where to store the password?
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
You wil note that that utility you pointed out does NOT run under Windows. Since Windows is not running, the security around the SAM database is also not running. If you we're to attempt to write to the SAM database as a user you would get an Access Denied failure. Reading/Wrighting the SAM database is restricted to the System and Administrators only.
Without running Windows, read/writing the SAM database is just a matter of reading and writing files, if you know the proper format of the file, of course. I've got a UNIX boot CD that does the same thing. No, not on a UNIX system, but will let you edit the registry and clear/change passwords of a Windows XP/NT/2000/2003 machine. All you need is a file system driver that understands NTFS 5 and the proper know-how for reading and writing the registry WITHOUT using registry functions (again, because there is no Windows to do it for you!)
For a project like this, you cannot use C#, Visual Basic, J#, or any other .NET managed language. You can only use raw C++, or any other language that doesn't need a runtime or managed environment.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Yeah, I apologize for not pointing out that i understood quite well that it is a long shot.
Providing that functionality to a developer would cause a major breach in security for the operating system. Anyone working as a programmer for a company that has limited rights to their network could simply write an application to get the admin password.
I am just trying to write a simple application for myself and I was not thinking beyond the scope of my project and of the reasons as to why Microsoft would not supply that kind of functionality. I appreciate the response, I will have to come up with a better solution to project now.
Thanks,
Xadeu
|
|
|
|
|
See this[^]...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I’m trying to make a peer2peer program which can upload/download several files at the time.
But how do I know witch ports to use???
I use one port to send information for commands, file size, and so on….. port 7070.
The sender program can use any port but the receiver program may not be able to use that port.
How do i resolve that problem?????
And remember, there could be 3 or 5 files to send/receive.
And how do i deal with firewalls and routers???
Please help.
|
|
|
|
|
First of all, Don't Panic
Basicly what you need to do is pretty simple.
First, decide on one port number (for instance 7070 you mentioned), now both peers listen on that port, and both peers know that they are both listening on that port.
When Peer A wants to send a file to Peer B, it creates a new socket (do not bind that socket to ANY port) and connects it to Peer B (by the known port).
Now- Peer B will receive a 'Connection Request', and creates a new socket to accept the new connection.
At this point, Peer A can send asorted information about the file it want to send like size, file name hash etc. and then begin to send the file.
Because this is all happening on different sockets than the listening ones, both peers can initiate any additional number of connection as you wish (well not any number of connections but a reasonable one )
That's it, note that Peer A can also connect and Request a file from Peer B, the possibilities are endless.
I can send you an example project i wrote with all this connection creation working,
i will post it with an article, but it will take some time as i'm on a tight schedule now and can't write the article now.
Let me know if you want the example.
Fade (Amit BS)
|
|
|
|
|
Thanks for the reply.
Any help would be great. You can send it too kim@web-tech.dk.
Hubbi
|
|
|
|
|
How to send emails using vb.net with out the need to run any email server program .. just like outlook or emailmanager ..?
please try to attach code with ur reply ..
thanx
لا اله الا الله محمد رسول الله
|
|
|
|
|
hi ...if u need more codes..pls visit at www.dotnetspider.com or send me ur email address
i will send u the sample code...
since i duno where to attach the smaple code here....
my email ----kumaran_kalidas@yahoo.com
kumar
|
|
|
|
|
thanx for replying .. thats my email ..
modern_night@hotmail.com
or
A4M@Gawab.com 2GB Capacity if the email was large u can use it ..
لا اله الا الله محمد رسول الله
|
|
|
|
|
Help I've tried many things to make a list box appear when I write something down
Example
I write an "A" and a list box appears
can anyone help me out?
|
|
|
|
|
Will you explain more about what you want?
Where are you going to press a key? (i.e. on a form, a textbox, etc.)
should the list box be created dynamically at runtime or it can be created in design time and just become visible when you press the key?
Do you mean some kind of shortcut for appearing a listbox?
|
|
|
|
|
hmm what I mean is that when I write a whole word then the list box appears or when I write a letter then the program should read the letter then the list box should appear
By bad for not being much specific first time
|
|
|
|
|
You still have to describe this better. Are you talking about showing a listbox while type typing in a RichTextBox? Something like IntelliSense in Visual Studio?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
First of all, there are two different questions here
1. How to cause the Listbox to become visible when i want to?
very self explenatory, there are two options:
a. create the list box in design-time, with the 'Visible' property set to 'False'
then, when you want it to become visible change the property
b. create the list box dynamically in run-time which i will not explaine here
there are a lot of articles describing this
2. How to "sense" that the somthing specific is being written ?
Well.... basically there is an event fired when a text in a textbox
is changed (there are also a lot of examples on handling events)
handle this event and check what has changed, you can keep a copy of
the content in the textbox, and when it changes compare both copies,
you can scan for the last changed character backwards to see what is written,
there are many possibilities, pick one.
Hope this helps, you are being very vague
next time try explaining what you are trying to do, like "i'm trying the sense when someone is typing a url so i can highlight it".
ok ?
Fade (Amit BS)
|
|
|
|