|
I want to dissasemble MsWord macro (.dot file) and I don't know whether this is possible.
|
|
|
|
|
i'm kind of confused by the notion of:
Activated Vs Constructed
Deactivated Vs Destructed
reference namespace: System.EnterpriseServices.ServicedComponent
My understanding is that a pooled component is constructed (meaning memory for the component itself is allocated and maintained). Then, when a request comes in for this particular component, the component is activated, and this is when u want to established your database connection and such. Now, after servicing this particualr request, assuming no further request is coming in, the component is deactivated, thereby releasing database connection and other valuable system resources...
is this understanding correct?
thanx!
norm
|
|
|
|
|
HOW CAN AN EXE DONE IN VB ,BE EXECUTED BEFORE A BIOS STARTS
|
|
|
|
|
Eh. Why would you want to do this????
Regards,
Brian Dela
|
|
|
|
|
Err, nothing can be run before the BIOS starts.
|
|
|
|
|
I guess you could make something that plugs into the bios socket, and has the original bios chip plug into it (which would work the way console modchips do)
But this isn't going to be possible with VB (as VB creates windows programs, which won't be able to be run in such a way)
You'd need to learn assembly to be able to write your own bios replacement
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
urrrm, crazy idea, VB program starts before operating system, sorry back to computer science basics for you laddie.
Normski. - the next bit of code is self modifying ... jmp 0xCODE
|
|
|
|
|
my question is, if u want to create a component service, u need to register your dll with RegSvcs .exe. Before u can do this, u must make sure that your dll has strong name: signed by private key. Now, the simplest way is to use "sn" tool:
sn - k c:\SimpleKeyPair.snk
then, register server by:
regsvcs c:\MyTransactionServ.dll
However, is there any way I can use my private key from my web server certificate or personal certificate obtained from versign?
thanx!
|
|
|
|
|
my question is, if u want to create a component service, u need to register your dll with RegSvcs .exe. Before u can do this, u must make sure that your dll has strong name: signed by private key. Now, the simplest way is to use "sn" tool:
sn - k c:\SimpleKeyPair.snk
then, register server by:
regsvcs c:\MyTransactionServ.dll
However, is there any way I can use my private key from my web server certificate or personal certificate obtained from versign?
thanx!
|
|
|
|
|
NA
modified 14-Nov-12 13:40pm.
|
|
|
|
|
You should try creating a class with public members instead..
Hmm...
|
|
|
|
|
Does anyone know of any sources that have either tools or code examples of implementing the scanning of documents using VB.Net? I have already checked out Leadtools and their .Net tools. I would like to see any others that might be available, but haven't been able to find any as of yet.
|
|
|
|
|
NA
modified 14-Nov-12 13:41pm.
|
|
|
|
|
Thanks for the info. I'm checking out the site now and have requested some information from them. Do you know of any sites that have reviews/comparisons on sheet-fed document scanners, such as the Ricoh IS450?
|
|
|
|
|
hi everybody
I have created the projects using Vb and Vb.net ...now I need that they should stop working after 10 days.
plz tell me the code to be added to them....
or how to do this thing? that a program should stop working after 10 days?
bye
|
|
|
|
|
|
somehow.... I receive an error saying that
Type mismatch
test1.asp, line 11
why is that so???? I had set the Path correct..... table is correct and rs.fields are correct also
<%
Set conn = Server.CreateObject("ADODB.Connection")
DBPath = "Provider=SQLOLEDB;Data Source=SITDB580;....;"
conn.Open DBPath
Set rsDaten=Server.CreateObject("ADODB.Recordset")
strSQL="SELECT * FROM testimonials"
rsDaten.Open strSQL,conn,0,3
nTotalRecs = rsDaten(0)
if nTotalRecs <> 0 then <======line 11
rsDaten.MoveNext
nTotalMax = rsDaten(0)
rsDaten.MoveNext
nTotalMin = rsDaten(0)
end if
rsDaten.Close
Randomize
intChoice = Int((nTotalMax - nTotalMin + 1) * Rnd + nTotalMin)
Set rs=Server.CreateObject("ADODB.Recordset")
strSQL="SELECT * from testimonials where ID="&intChoice &""
rs.Open strSQL,conn
strText=rs.Fields("Text")
strAuthor=rs.Fields("Author")
if not rs.EOF then %>
<%if strAuthor<>"" then %>
<%end if %>
| <%=strText %> | | | - <%=strAuthor%> - | |
<% end if
rs.close
conn.close %>
|
|
|
|
|
It depends on which datatype the field "rsDaten(0)" has.. if its a string or date you can not compare them to 0 ->"nTotalRecs <> 0"
Hmm...
|
|
|
|
|
Ok, maybe I am dumb here but I am trying to detect if my computer is connected to the network.
I spend about 15 minutes going through the docs and I find the System.Windows.Forms.SystemInformation class with Network property. Seems all too easy...
I do the following:
<br />
Dim NetInfo As System.Windows.Forms.SystemInformation<br />
<br />
If NetInfo.Network = True Then<br />
pnlIndicator.BackColor = Color.Green<br />
<br />
Else<br />
pnlIndicator.BackColor = Color.Red<br />
<br />
End If<br />
...and I figure, heay great, I should get a green panel when I have my net cable plugged in and it should go read when my cable gets unplugged (I placed this code into a timer tic event hander).
NOPE. Does not seem to do anything...
Anyone have any darn ideas?
|
|
|
|
|
Mine seems to come up with "true" regardless of the reality as well.
Maybe it means "if there's a network card" or "if there's something plugged into the network card, regardless of where it might go"?
By the way, this function is static, you could just use:
<br />
' Dim removed<br />
If SystemInformation.Network Then<br />
pnlIndicator.BackColor = Color.Green<br />
Else<br />
pnlIndicator.BackColor = Color.Red<br />
End If<br />
Won't solve your problem though.
Paul
|
|
|
|
|
Yeah, looks like it just says 'why yes, you do have a nic'
|
|
|
|
|
Just reply "Well duh, I fitted it, you think I don't know it's there? Now is it connected to anything???"
;)
|
|
|
|
|
Actually, what it means is that you have "Networking" installed. Whether it's DHCP, NetBios, etc it will still show true. If you uninstall your Networking protocols, it should return false. I forget where I saw it but there is a way to detect the Network.
|
|
|
|
|
Well I have to edit an exsisting program that was written in vb6. One of the things that I am doing is adding mysql support to the program, which is in vb. There is no vb api for mysql so I had to write some dlls in c++ to handle mysql for the program. My problem now is that the program cannot find the dlls. Although they are in the same folder, and im sure I am calling them properly. Here is how im calling a function from one of my dlls in vb:
Declare Function writeInfo Lib "RideMySql.dll" (ByRef Param1 As String, ByVal Param2 As Integer, ByVal Param3 As Double, ByVal Param4 As Double, ByRef Param5 As String) As Integer
The corresponding funcion in c++ is prototyped as:
int __declspec(dllexport) CALLBACK writeInfo(char* param1, int param2, double param3, double param4, char* param5);
Thanks in advance.
|
|
|
|
|
Have you included a .def file within the C++ project? This allows VB to talk to the C++ .dll.
Nick Parker
|
|
|
|