|
You can either do it this way, or you can fill a DataSet object, instead of using a DataReader, and have the DataSet object save the data in an XML file itself.
DataSet.WriteXml[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi
Thanks for the reply. I sorted it out by creating a small function which takes in the parameters as the node name and xmldoc reference.
Thanks anyway.
|
|
|
|
|
Hello i've some question here..
i've try to create my SIMD function in c++, then convert it to dll which can be call from vb. but i got an error "vb6 unexpection error handling:.
can anyone give idea about this problem..
I've upgrade my visual studio with SP5. when i run the program in c++ alone, i've no problem to execute it but when i create a dll and calling this function from vb an error occur.
help me please
|
|
|
|
|
j_Lee wrote:
calling this function from vb an error occur
And that would be?? We need the EXACT message.
You can't make just any .DLL and expect it to work. You have to write your C++ code to either expose it's methods to COM so they can be consumed by another COM based app, like any VB6 app, or to export those methods. How to do that is a question for the C++ Forum, not VB.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dear dave..
thanks for the reply ...
actually when i run it, my application is shutdown, and when i try to debug this message appear:
"unhandled exception in VB6.EXE(f.dll): 0XC0000005 : Access Violation"
thanks for your suggestion, i'll take note about it
|
|
|
|
|
You're function did something bad. More often than not, it's because of passing parameters incorrectly.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
how can i add comboboxes for all records inside datagrid.
Manikant Kasumwal
Software Engineer
R Systems International Ltd.
|
|
|
|
|
this article is an excellent example of how to do this.
good luck.
-jim
|
|
|
|
|
I have 20 checkboxes in a form.
My requirement is to check them all and uncheck them all using a single click of a button.
But I dont want to write the whole junk code like
checkbox1.checked=...
....
....
....
I just want to do this using a single loop.
How do I achieve this?
Regards
litesh80.
|
|
|
|
|
Create a control array and then use a For Next loop to iterate through the checkboxes.
...Steve
|
|
|
|
|
Once i have packaged a vb.net windows application then if there are any further changes do i need to all over again package the application
|
|
|
|
|
Windows Installer allows you to upgrade components of an installed application. However, this is a complex operation, and the setup authoring tools provided by Visual Studio do not support the necessary capabilities.
So a simple answer is unless you are willing to devote a fairly considerable amount of time and effort towards mastering the complexities of Windows Installer, your only option is to repackage the entire application, have the user uninstall the old version, and then reinstall the new version.
|
|
|
|
|
This question is a toughy, for all you experts out there.
I have a couple of projects that are about ready to be deployed.
But you see, I'm selling this to other franchisees in a company where stealing and corporate swindling is commonplace. So I need a way to give my project a Product Code, and a way to only allow ONE install per copy of the program. I know there is a way to do this, but I hear it's incredibly hard to do.
Also, if it is possible, I would like to do this with some Excel workbooks as well.
thanks ahead of time for any help,
stephen
oh, and I'm using Visual Basic .NET Standard, if that helps.
|
|
|
|
|
The only way to make each installer work only once is to have each installer use a unique key, which it first registers online, to see if it's already been installed. At least, that's all I can think of.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
this is true, but what about cracks? all you would need to do is copy the unlocked exe to another computer. i guess maybe have the app check for the code every time it opens... store the key in a .txt and encrypt it...?
|
|
|
|
|
medicenpringles wrote:
but what about cracks?
Welcome to the world of 'your software is only safe until someone REALLY wants to steal it'
medicenpringles wrote:
all you would need to do is copy the unlocked exe to another computer.
I'd be inclined to back that up with some sort of registry key or other mechanism so that moving the app folder to another PC will not work.
medicenpringles wrote:
i guess maybe have the app check for the code every time it opens..
No, that makes it easier to sniff and crack, I'd have thought. As well as requiring the user to be online ALL the time.
medicenpringles wrote:
store the key in a .txt and encrypt it...?
Perhaps if you generate a key based on the machine specs, and then check against that when you run, so moving to another machine, even with registry keys, will not work as the key will change. That's what Windows does, it installs as many times as you like, but the installed copy won't run until you get that key. The trouble is, this means a hacker only has to skip the key code, and of course your VB.NET app can be decompiled.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
wow.
well i'm not dealing with any real geniuses here, just money-hungry hogs. the machine specs thing sounds good. thanks a ton.
|
|
|
|
|
i just gotta figure out how the hell to generate it... and how to progammatically get the specs.....
hmmm...
|
|
|
|
|
Hi
Cant remember where I downloaded an example from (sorry to the original author..), but here is some code that may be useful
Private Sub GetComputerName
Dim ComputerName As String = SystemInformation.ComputerName
End Sub
Private Sub GetCPU()
Dim query As New SelectQuery("Win32_processor")
Dim search As New ManagementObjectSearcher(query)
Dim strCPU as String
Dim strCPUManuf as String
Dim strBOIS as String
Dim info As ManagementObject
For Each info In search.Get()
strCPU = info("caption").ToString()
strCPUManuf = info("name").ToString().TrimStart
strBOIS = info("version").ToString()
Next
End Sub
Private Sub GetMotherboard()
Dim query As New SelectQuery("Win32_BaseBoard")
Dim search As New ManagementObjectSearcher(query)
Dim strMotherBoard as String
Dim info As ManagementObject
For Each info In search.Get()
strMotherBoard = info("Manufacturer").ToString()
Next
End Sub
|
|
|
|
|
I have code for that... i am success with that... if you want contact me .. my email : ok_jojomon@hotmail.com
Jojomonok
|
|
|
|
|
I can run my program in visual studio, but when i run the release or debug build of it independently i get this error message:
Just-In-Time Debugging
An exception 'System.IO.FileNotFoundException' has occurred in vbGOD.exe.
Possible Debuggers:
New instance of Microsoft CLR Debugger 2003
New instance of Visual Studio .NET 2003
vbGOD - Microsoft Visual Basic .NET [design] - Form1.vb[Design]: Visual Studio .NET 2003
What can cause something like this?
|
|
|
|
|
The config file is not present ? The best way to find out is to accept the offer of attaching to a debugger and see what line is blowing up.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Ok I launched the debug version of the independent build and used a debugger and got this message:
Additional information: File or assembly name AxInterop.SHDocVw, or one of its dependencies, was not found.
I checked the assembly and found AxInterop.SHDocVw. I also looked at the line of code that was causing the problem and it was the "InitializeComponent()" one.
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
I use SHDocVW once in my code:
Private Sub IENavigate(ByVal Target As String)
Dim IE As New SHDocVw.InternetExplorer
'Navigate to a new page or local file
IE.Navigate(Target)
'Show the window
IE.Visible = True
End Sub
|
|
|
|
|
OK - because you use it, that file is needed to run your code. When you import something, check the properties and set 'copy to local folder' so you get a copy in your build folder, to make it easy to grab and deploy.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
In the references it has AxSHDocVw and SHDocVw with the "Copy Local" property already set to "True"
|
|
|
|