|
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.
|
|
|
|
|
sorry Luc I meant that because your code in c# but in vb forum so I was...
thatraja |Chennai|India|
Brainbench certifications Univotes are like kid's kisses don't reject it Do what you want quickly because the Doomsday on 2012 My childhood story
|
|
|
|
|
No problem.
|
|
|
|
|
cheers.
BTW I'm happy at 109 by total reputation in your CP Vanity ver 2.0. At least you have put option for 5 reputation pages which displaying me. Thank you. I'll publish my article next month which is in my draft for long time.
thatraja |Chennai|India|
Brainbench certifications Univotes are like kid's kisses don't reject it Do what you want quickly because the Doomsday on 2012 My childhood story
|
|
|
|
|
|
Dave Kreskowiak wrote: he's using VB6
Didn't the support for that run out 2/3 years ago?
|
|
|
|
|
At least... I'm actually praising Microsoft for dropping VB6 runtime support in Windows 8! WooHoo!! Finally, the bitch is dead!!
|
|
|
|
|
Does exist the possibility set color transparent within Vb.Image?
Any Method.
FreeImage, MS WIA, GDIPlus, CopyMemory, ...
By sample: I have VB.Image1 with zone of transparency. One Vb.Image1 On Form. Can be change this Image directly by change Alpha bytes of pixels of this Image1 ? How use CopyMemory in this case?
Or How use for this case the function Image1.Picture.Render ?
For VB6.
Thanks.
|
|
|
|
|
not vb6...but maybe it can help. Here is how I set transparency on an image it in VS2005:
Dim x As System.Drawing.Bitmap = imgMain.Image
x.MakeTransparent(dlgColor.Color)
imgMain.Image = x
|
|
|
|