|
Hi,
I'm working on the VB.NET DDE project. I'm facing the trouble to establish a DDE connection. Does anybody here has an experience with the DDE for VB.NET?
If yes, could you share, please.
Many thanks,
Valdo
|
|
|
|
|
VB.NET doesn't support DDE at all. All support for DDE in VB ended with VB6. You'll have to P/Invoke all of the Win32 API functions and redefine all the structures your going to need. Docs on NetDDE begin here[^]. But be warned, all the example code is written in C++ and would need to be converted to VB.NET. There are various musings on the 'Net concerning DDE and VB.NET, but nothing extensive. You can look at the search results here[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi
Can anybody tell me how can I have a treeview like window explorer, If one client updates (adds any file to it) other clients on same or different machine will reflect the change
Thanks
Vikas...
|
|
|
|
|
Ewww.. Difficult to implement. Your going to have to have some kind of central server that each of your clients connects to so it can relay changes back and forth.
Windows Explorer can do this because it monitors for changes in the file system on the server. Your app is not going to have this little blessing because your not looking at a file system.
Or are you? In that case, you can use the FileSystemWatcher[^] class in VB.NET. There is no equivilent in VB6.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I'm building a multi-project solution in VB.Net and it tells me that 1 failed. How do I locate what project and where in that project is causing the failure?
|
|
|
|
|
The task list will usually list out any errors discovered. You can open it using CTRL-ALT-K or going to View | Other Windows | Task List to open the window. You can then double click on any error and it will automatically open up the offending file.
|
|
|
|
|
in addition to what Chris mentioned, you should also check the output window. It gives a blow by blow description of the build process, listing any errors that may have occured.
Ctrl & Alt & O
View - Other Windows - Output Window
-jim
|
|
|
|
|
I am looking at the Output window and it is telling me that there where 2 build failures. However the blow-by-blow account of the build process shows no errors. There are no compiler errors in my task list and just that 2 build failures. How come?
|
|
|
|
|
if there were compilation errors, they should definitely be listed in the output window.
look in between the portion of the build description that says "Performing Main Compilation..." and "Building Satellite Assemblies...". If there is anything in-between, chances are it's an error. You may have to scroll over to the right a little to see it's description, but it should be there.
As for the task list, give it a right click, go to "Show Tasks" and make sure that either "All", or "Build Errors" is checked. This way you're not filtering them out.
other than that i'm not sure what could be wrong, but make sure that all of your assembly/project references are solid.
hope this helps,
-jim
|
|
|
|
|
I am looking for code examples for VB6(SP5) that will enable the following
I receive a file that has been encrypted with RSA public key, it contains a number of transactions for processing. Encryption is used for transmission of the transaction file from behind one sites firewall to behind another sites firewall.
I have the private key.
How do I decrypt the file for processing. Since the application is running in a secure environment it does not need to retain the security protocol.
|
|
|
|
|
You might want to take a look at this[^] on vbRad. Crypto on VB6 is notoriously difficult because of the lake of unsigned data types.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
okay.. i have a combobox filled with list of item from my database using DataReader.. my problem is.. i would like to add new items into my database by typing in the combobox which is not shown in the combobox list.. but the program prompted "couldn't insert record: system.NullReferenceException...." it wants me to choose 1 of the items in the list..!
is there a way of doing this? or a better way? Please help!
|
|
|
|
|
Okay, I know how to control whole strings in VB .NET, but is there any way to control specific characters in a string? If so, how?
O_o
|
|
|
|
|
|
Thanks, the string.substring() really helped after I experimented with it a little bit.
O_o
|
|
|
|
|
I'd like to write a program in VB.NET that performs some actions synchronized to the music of a wav or mp3 audio file.
Something like: at 12.35 seconds into the playback a button appears, then at 45.5 seconds it disappears, etc. I'd like it to be precise and reapeatable so that at the particular beat or crescendo, something happens.
Any suggestions of how to get started?
Thanks
STEVE
|
|
|
|
|
As you know the music you are going to play and the times and events you are going to need. I reckon you want to set up a timer, add a timer to the form and then set the needed properties, start it.
With Timer1
.Start()
.Interval = 10
End With
You can then use the Timer_Tick event to do certain things at certain times, this occurs every time the interval (above) elapses in milliseconds.
i.e. Don't use this example though as you'll end up with a million msgboxs and it'll crash your pc, well it did mine.
Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick
MsgBox("Hello World")
if timr
End Sub
This is a better choice
Dim i As Long
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
With Timer1
.Start()
.Interval = 1000
End With
End Sub
Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick
i = i + 1
If i = 5 Then
MsgBox("5 Secs")
ElseIf i = 10 Then
MsgBox("10 Secs")
Elseif i = 20 then
'reset your counter say when tune ends
i = 1
End If
End Sub
That may help, i don't really know....
"If i was king cigarettes would be free."
|
|
|
|
|
I seem to remember seeing a way to set a property of an object using a function where you pass the object and the property to be updated, and the value to set. That way you don't need to know the property at design time. Does this exist in VB6?
somefunction(object,propertynamevariable,value variable)
Thanks, Dave
|
|
|
|
|
|
Thanks! I tried every combination of search words I could think of & just could not find it!
|
|
|
|
|
|
hi i got a hand ins to make windows explorer in VB.net and i don't know how to make the program execute if i click the file in the list view screen ( right screen beside the tree view screen. For example : if i double click "a.bmp", it should execute the appropriate program to show the pic.
I don't know how to do that. anyoone can help ?
|
|
|
|
|
Check out the System.Diagnostics.Process class.
Charlie
if(!curlies){ return; }
|
|
|
|
|
There are registry entries that list file extensions & the program to run when one is opened or double clicked in windows explorer, you could duplicate that functionality with the double_click event in your code, look through those registry keys (sorry don't know exactly where to look), and run that program.
|
|
|
|
|
I am writing a class that should have the ability to modify the members of another class. I am wondering if ByRef will allow this functionality.
Thanks for any info...
|
|
|
|