|
Without seeing your code it's hard to help.
Are you parsing the command line properly and reading the file content?
|
|
|
|
|
VB6 is dead. It is no longer sold, supported nor maintained. No new code should be written in VB6.
VB.NET is available for FREE, has lots of examples on the most tasks that we're confronted with and has a huge userbase.
Once you have done that, I'll gladly help you in consuming the startup parameter. Your application (in whatever language) gets the path to the text-file as its first argument. Meaning you'd simply look into the command-line-arguments from your application.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Eddy Vluggen wrote: VB6 is dead. It is no longer sold, supported nor maintained. No new code should be written in VB6. Never! Never surrender!!
In all seriousness, Office still has VBA so it is very much still alive.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
RyanDev wrote: Never! Never surrender!!
You write your essay in Linear B[^], go ahead. But don't come complaining that there's no spelling-checker, nor anyone willing to use it.
RyanDev wrote: In all seriousness, Office still has VBA so it is very much still alive. VBA != VB6 != VBS* != eVB (embedded VB, on the first versions of CE)
VBA may be alive, VB6 is dead.
VB6's passed on! This IDE is no more! It has ceased to be! It's expired and gone to meet 'is maker! It's a stiff! Bereft of life, 'e rests in peace! [...] VB6's kicked the bucket, VB6's shuffled off 'is mortal coil, run down the curtain and joined the bleedin' choir invisibile!!
THIS IS AN EX-LANGUAGE!!**
* based on the same COM-component, but different environments
**freely paraphrased Monthy Python 'ere
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Actually, VBA is a subset of VB6 but you could still do all the same things. They really are the same thing.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Also means that the support is limited to that subset. Compile me a vbs without an IDE, build me an AdventureWorks interface using VBS. You could, but please do, and then build a business around that.
The flowers on its grave have withered and died by now. Meaning only banks and governments will probably use it. Aw, and hospitals.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
vbOK.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
OutOfRangeException
Either 0 or non-zero is expected.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Eddy Vluggen wrote: Either 0 or non-zero is expected. VB doesn't know what 0 is.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Probably true
|
|
|
|
|
I really wanted to do this with vb.net. But the problem here is that, am unable to solve the problem with my vb.net which is "error running project, could not load file or one of its dependencies. The project was expected to contain an assembly." After so much struggle and researched, formatting, uninstall and restall, and yet no positive result, I decided to use vb6 and netbean for developing desktop applications. So any help will be welcome.
|
|
|
|
|
Really, the best thing to do is scrap the VB6 code and just rewrite it by hand in VB.NET and ADO.NET.
Copying and pasting the VB6 code just gets you into trouble in VB.NET. The two languages are semantically similar but function very differently. VB.NET has huge advantages over VB6 because of OOP and the .NET Framework.
|
|
|
|
|
Otekpo Emmanuel wrote: I really wanted to do this with vb.net Ah. Sooo, if I help you to build this in VB.NET succesfully, you'd be equally happy?
Otekpo Emmanuel wrote: So any help will be welcome. You've got the VB.NET IDE installed?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
|
Hello !
I have a BindingSource , and some control bound to it.
Sometimes the data on bindingsource is changed
How can I do that when the data of current object on bindingSource is updated , the corresponding controls in the form bound to changed fields change the background color for example to Red?
I know that there's an event BindingSource.CurrentItemChanged that is fired when the changes are made.
But how can I find the fields that have changed , and the control that is bound to this field ?
Thank you !
|
|
|
|
|
dilkonika wrote: the corresponding controls in the form bound to changed fields change the
background color for example to Red? What did you bind to? A TextBox? Does that have something like a "TextChanged" event?
Color the sender.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Thank you , but the situation is different.
I have Textboxes, Comboboxes , ...etc bound to bindingsouce.
But the changes are made directly to bindingsource and not to controls bound to it. so when the binddingsourc is changed , I want to find the field that has changed , after I want to find which control is bound to that field and after I want to change the color of that control.
|
|
|
|
|
dilkonika wrote: I want to find the field that has changed I'm not even sure whether or not the BindingSource exposes that information. The DataMemberChanged[^] event looks promising. It might not express "what" has changed, but you could always compare the old version to the new one, provided you have access to those.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I wrote a windows service, and used the event log to log messages to the Applications event log.
But I would like to complete the project with a companion DLL file that contains the error codes and messages, so the messages output clean, and that I have a list of valid error codes to go with them
I've been googling this, but can't seem to find anything for doing it in VB, a class DLL.
I saw the messages.mc file examples, a gave it a whirl in win32, but that's alot of work, and I think there was some restrictions because I did it in VB.
Is this even possible to do?, what keywords would be used for finding some examples.
modified 10-Oct-14 13:12pm.
|
|
|
|
|
You could build an assembly with a single resource-file. A dictionary of strings.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I can do that in the new DLL, or the windows service exe?
|
|
|
|
|
You could also add it to the Windows Service
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Quick-guide;- Right-click solution in solution-explorer, add item
- Tab "General", choose "Resource File".
- Name it "Errorz.resx".
- Click on "String1", rename to a192432.
- Click on value, add "Ants ate your harddrive."
- Hit Ctrl-Shift-S and go to code
Console.WriteLine(global::YourNameSpace.Errorz.a192432);
If it is in a different assembly, then you'd need to add a reference of course. That way you could also easily translate the messages. There's a project here on CP that does that autmatically using Google Translate. It does not do perfect translations, but it is easier to correct a few sentences than it is to type a lot of them
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
|
OK thanks!
I spent more hours last night on it, researching what Eddie suggested.
I made a DLL in VB, but it failed. Oh Well. Think I might give the .mc file a manual compile using the command line.
But I will read the articles first.
|
|
|
|