|
Because the external assembly and the form application were using different version of the System.dll I decided to make a new class dll that was targeted to the same version as the form application. However, I'm still getting the same error message. Why is it telling me that I need to reference V2.0.0.0 of the System.dll when both the form application and the class library are using V3.5.0.0 of the System.dll. What am I missing here?
|
|
|
|
|
Okay it has been solved. It had to do with the version of the system dll's not matching. Thanks for the help...I alway target my applications to 3.5 so I don't know why this one was 2.0. It is something I would never have thought to check.
|
|
|
|
|
Glad you got it working.
BTW: replying to your own message gives you a message box ("is this what you really want?") as nobody will get any e-mail notification. One normally replies to someone else's message, and that someone then gets an e-mail...
|
|
|
|
|
Is there any method which will help me to first check a file extention while it is being saved or copied on drive using vb6 or vb.net
Requesting to kindly help me.
|
|
|
|
|
Saving or copying is no different than opening the file for Read access, reading the file, then writing the contents to another file opened for write access. There is no Copy event or hook.
The only way you'd be able to get the file extension of a file being opened for Write access (you cannot determine WHY the file was opened) would be to write a NTFS Filter Driver[^], which you cannot do in VB or VB.NET.
|
|
|
|
|
Do you really want to know the extension of an in-memory file? or you know the path/name of file and just want to extract the extension?!
|
|
|
|
|
Extracting extension of a file is very simple.
What I want is while a File is being copied/saved/opened should be check for its extension.
and If the extention match then it shouldnt copy/save/open that file.
Any Idea??
|
|
|
|
|
I already told you what your only option is. You cannot prevent a file read/write any other way.
|
|
|
|
|
But cant i prevent opening the file???
Like when any user tries to Open the file it will check and then block
|
|
|
|
|
NO! You cannot do this in VB or VB.NET!
|
|
|
|
|
We have an COM Class (ActiveX exe) VB6 program that is in the Registry dozens if not hundreds of times to basically the same paths. 1. Our development compile output path and 2. the true target path in c:\Program Files (x86) where it should be. (There are many for each)
I do not know how it got in the registry so many times.
When we setup the program we do have the option to issue
C:\Program Files (x86)\path\TransMonitor.exe /UNREGSERVER
C:\Program Files (x86)\path\TransMonitor.exe /REGSERVER
What is causing so many to be registered?
So how do we get it so it doesn't register new ones?
How do we remove them quickly, safely and easily?
Even tried REGSVR32 /U C:\Program Files (x86)\path\TransMonitor.exe
The program does get invoked properly.
Ideas anyone???
|
|
|
|
|
do you unregister *before* you build the new version (i.e. in a pre-build step)?
if done after a new build, I expect unregistration to fail as it doesn't recognize the EXE.
|
|
|
|
|
Thanks
HHMMM!
Different Guids???
I didn't think that it would. Where are these Guids? I don't see them.
Can it be turned off? I only want the exe in program files to be registered to simulate the end user's environment.
I didn't know that the VB6 make (Alt,F, K) would register it so it was NOT unregistered first.
I am not getting any errors during the /REGSERVER or /UNREGSERVER.
(actually no response from either).
These are optional done by the setup program.
Since there are many entries for the program files then it is more then just the VB6 Make.
|
|
|
|
|
Read this[^].
And people wonder why I refuse to support VB6 anymore...
|
|
|
|
|
Thanks. I made it binary compatibible with the exe in the development lib.
I think most of MS programming languages are ugly.
Just the wording of almost everything is in-comprehensible. Takes so much to learn to lingo that there is no time for programming. (BTW: I am a dinosaur).
|
|
|
|
|
Thats why I like C and assembler
See if you can crack this: fb29a481781fe9b3fb8de57cda45fbef
The unofficial awesome history of Code Project's Bob!
"People demand freedom of speech to make up for the freedom of thought which they avoid."
|
|
|
|
|
It's in there dozens of times because VB6 is assigning new GUIDs to your component and registers it every time you compile it.
Unregistering the component won't work because the component no long contains the old GUIDs. You have to remove them manually or find a regsitry cleanup tool that will remove the orphaned entries.
|
|
|
|
|
Does exist exe Application for make color transparent? For full color, not 256 colors.
If exist, so perhaps can be use this App from Vb6 App for transmit disc path of Image and set a color transparent and after this App save new Image as transparent with color transparent, obtain this Image.
What you think?
Thanks.
|
|
|
|
|
Please do not keep posting what is essentially the same question.
Edit your original question.
Therefore, please decide which one you want to keep, edit it to reflect the current situation and then delete the other one.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
It is easy to make any colour transparent...
<br />
SetStyle(ControlStyles.SupportsTransparentBackColor, True)<br />
That should do it!
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC League Table Link
CCC Link[ ^]
|
|
|
|
|
Sadly for the OP, this won't work for him because he's using VB6, not VB.NET.
|
|
|
|
|
I cannot help him with his dinosaur problem then.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC League Table Link
CCC Link[ ^]
|
|
|
|
|
try {
answer VB question
} catch(UnExpectedDinosaurException ude) {
WTF
}
|
|
|
|
|
|
I would never write any code that lacks proper indentation.
|
|
|
|