|
Hi .. I am a Visual C++ programmer, I never write a program using VBasic, I am trying to use a ocx component, if I want to use this component I need to capture Events .. using C++ I use the follow code
BEGIN_EVENTSINK_MAP(CAVVCppDlg, CDialog)
ON_EVENT(CAVVCppDlg, IDC_VIDCAP1, 1 /* Frame */, OnFrameVidcap1, END_EVENTSINK_MAP()
The Events is captured and execute OnFrameVidCap1 Function
How can I do this VB 7 ??
|
|
|
|
|
in ocx controls u define one variable as event.
Eg.
Private Event myEvent 'where Event is the reserved word and u can also pass parameter and even create parameter list following the reserved word Event then u can raise this event in the code wherever u want by adding foll code
RaiseEvent myEvent
thats it
Good Luck Buddy
|
|
|
|
|
Does anyone know if it is possible to run a .dll as a service in Windows 2000? If so, can you give me some insight on how to do it?
Thanks!
Phil
|
|
|
|
|
I've read some time ago that you can acomplish that using svchost.exe, but I can't remember exactly how, sorry...
May this can help in some way...
Crivo
Automated Credit Assessment
|
|
|
|
|
I have got a textbox that I want to limit to numerical values.
How do I prevent the user from entering text?
I have set the DataFormat property to "Number", but that doesn't do it.
Cheers,
Fredrik
<right>Sonork ID: 100.11430:PhatBoy
'It is so much simpler to bury reality than it is to dispose of dreams.'
- Don Delillo, Americana
|
|
|
|
|
Hi..
Try this:
add an event handler to the KeyPress event of the text box:
<br />
Private Sub text1_KeyPress(KeyAscii As Integer)<br />
If Not (KeyAscii > 47 And KeyAscii < 59) Then<br />
KeyAscii = 0<br />
End If<br />
End Sub<br />
the code above checks the ascii code of the character and validates the range
and sets it to 0 if out of the range of numbers.
|
|
|
|
|
The Above given code does not work VB.NET so can u plz suggest me something else
|
|
|
|
|
Hi !
I'm using VB 6.0 and I would like to launch an Exe from my VB code. I also would like to get the returned value from the Exe.
Anyone knows how to do that ?
Thank you for your help !
Jerome
|
|
|
|
|
You know. I'm surprised that Nish hasn't jumped in and said to use ShellExecute(..)... I know it's C++ but if you just search at MSDN you'll probably find something.
"Isn't that the "write once, debug everywhere" language?" Tom Archer on Java...
|
|
|
|
|
u have to use Shell Function in order to execute an exe and u use Command Function in order to get the return value from and even pass value to the exe.
|
|
|
|
|
I am a student at the faculty of engineering,Cairo university, depsatment of electronics and electrical communications.
My graduation project involves the use of the Diffie-Hellman key agreement protocolusing visual basic.I hope someone can help me locate something that can do the mathematical operations needed for such an algorithm.
Thank you.
|
|
|
|
|
What kind of math calculations are required in that algorithm?
BTW, you can use DLLs that are created for both Visual Basic and C. I am sure that someone has written a math library in C that can help.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
I need exponentials for large numbers (160+ bits)
I found a dll called CypherMathWin32,but I can't get my hands on it.
|
|
|
|
|
|
I can't buy a 300 dollars DLL
Can any body help me in finding a DLL, an OCX, or any other written code that I can use to implement the Montgomery modular exponentiation?
|
|
|
|
|
How do u make a new line in text box programmatically in VB.NET?
I was hoping to use C++ format code "\n":
For i = 0 To (Count - 1) Step 1
txtMsgBox.Text = txtMsgBox.Text.Concat("\n" & lstContactList.SelectedItems(i).Text & txtMsg.Text)
Next i
But no, it didnt work.
Thanx
norm
|
|
|
|
|
You can use :
<br />
txtMsgBox.Text=txtMsgBox.Text+ vbCrLf + "NewString"<br />
as vbCrLf = \n in VB
make sure that :
<br />
txtMsgBox.MultiLine=True<br />
|
|
|
|
|
Actually vbCrLf = \r\n, Carriage Return (Cr), Line Feed (Lf)
vbCr = \r
vbLf = \n
Jason Gerard
|
|
|
|
|
Try CrLf Carriage Return and Line Feed characters.
use one every time you want to start a new line.
|
|
|
|
|
All the previous versions of VB could not support MAPI to its fullest. Can VB.net?
If not is there any alternative for creating a complete email program with VB.net other than CDO?
|
|
|
|
|
hi, how can i use SetTimer in a class, i keep getting these errors:
Invalid use of adressof operator
my code is:
lngTimerID = SetTimer(0, 0, 200, AddressOf mysub)
Public Sub mysub(ByVal hwnd As Long, ByVal uMsg As Long, ByVal idEvent As Long, ByVal dwTime As Long)
Dim retval As Long ' return value
objWinSock.SendData ByteCode & "rcon " & rconNumber & " " & s_pass & " " & s_command
objWinSock.Close
Set objWinSock = Nothing
retval = KillTimer(vbNull, 1)
End Sub
|
|
|
|
|
In VB6, the AddressOf operator can only be used for procedures in a module, not a class. To see how to work around the problem, look here.
|
|
|
|
|
Hi, I wish to build a control that resembles those panes, "ToolBox" for example, that "slides" into the view when click on the tab.
1. Is there a name for these controls?
2. Any idea how to build them?
3. How can I set a "control" opacity? Can I control individual individual "control" opacity as suppose to controlling dialog opacity?
Something similar to what u can see at bluetooth site:
http://www.bluetooth.com/
Thanks!
norm
|
|
|
|
|
I'm working on a program that is the front end for a database (Access). One of the fields in the data base is set up to use options set in the field's 'Row Source' during design of the database. (When viewing the records in Access it comes up as a list box) I am wondering how I can get the options for that field into my program without hardcoding them. I can get the option that is currently chosen for a record back, but I need to know how to get ALL the possible options for that field. I'm using ADODB objects to access the database. Any help or pointers in the right direction will be much appreciated.
Quinn
|
|
|
|
|
If you are using the ADO object in your application, do a simple query:
Select [YourField] from [YourTable]
Once you have executed that SQL statement say when the form loads, you can add items with something like:
ListBox.Clear()
Do While Not adors.EOF
ListBox.Add(adors("[YourField]"))
Loop
HTH
Nick Parker
|
|
|
|