|
If this is supposed to be a Tip, then please post it in the proper place. This forum is for technical questions.
|
|
|
|
|
Yes. It is a tip and I marked it as a 'Sugestion' (and isn't that the same), so why the barking? BTW: I posted it also as an article. Cheer up man!
|
|
|
|
|
Cees Verburg wrote: why the barking
Because this is the wrong place, that's why.
Cees Verburg wrote: sn't that the same
Not it's not the same.
Cees Verburg wrote: I posted it also as an article
Good. Closer, it's not an article either.
Speed of sound - 1100 ft/sec
Speed of light - 186,000 mi/sec
Speed of stupid - instantaneous.
|
|
|
|
|
OMG, this was my first post ever. I wonder if I can handle all those critical and above all critical viewers (who don't use their real names but use hot shot names like NotPolitcallyCorrect).
|
|
|
|
|
Cees Verburg wrote: OMG, this was my first post ever. Technically, the one where you state that is not the first in the thread, but welcome to CodeProject
Cees Verburg wrote: I wonder if I can handle all those critical and above all critical viewers (who don't use their real names but use hot shot names like NotPolitcallyCorrect). You run that risk on most forums.
Personally, I'd recommend encoding such values in base64
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Cees Verburg wrote: all those critical and above all critical viewers
If you are so easily offended by people POLITELY telling you this is the wrong place, especially after you being a member for over 7 YEARS and you have apparently not read any of the posting guidelines in that time, then you really need to grow a much thicker skin.
Speed of sound - 1100 ft/sec
Speed of light - 186,000 mi/sec
Speed of stupid - instantaneous.
|
|
|
|
|
I think it's a cultural thing.
Not everyone is as heavy-handed as westerners.
|
|
|
|
|
Cees Verburg wrote: why the barking? Woof!
|
|
|
|
|
Richard MacCutchan wrote: Woof!
Why so ruff?
Speed of sound - 1100 ft/sec
Speed of light - 186,000 mi/sec
Speed of stupid - instantaneous.
|
|
|
|
|
Cees Verburg wrote: Yes. It is a tip and I marked it as a 'Sugestion' When you hover over articles in the menu choose "Submit an article or tip." Then post it as a tip, not as an article.
I am using the Suggestion icon for this specific message as I am suggesting to you what to do.
Cees Verburg wrote: Cheer up man! He was very polite in his response.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hey, it was worth some "high 5's" to them.
Don't you get it? ... That's what matters.
|
|
|
|
|
I need help for sign an XML files with (signature tag). Nothing problem if the platform is a standard PC but in .NET COMPACT FRAMEWORK for windows mobile 6 I have problems. First .. exist Systems.Security in .NET CF? 2.0 or 3.5? Where are?
this is my code for Pc ..:
Public Function Firma(ByVal XmlFile as String) As Boolean
Dim signedXML as String = "c:\signedXML.xml"
Dim doc As XmlDocument = New XmlDocument()
doc.Load(XmlFile)
Dim signer As SignedXml = New SignedXml(doc)
Dim key As Security.Cryptography.RSA = New Security.Cryptography.RSACryptoServiceProvider()
signer.KeyInfo = New Security.Cryptography.Xml.KeyInfo()
signer.KeyInfo.AddClause(New Security.Cryptography.Xml.RSAKeyValue(key))
signer.SigningKey = key
Dim orderRef As Security.Cryptography.Xml.Reference = New Security.Cryptography.Xml.Reference("")
orderRef.AddTransform(New Security.Cryptography.Xml.XmlDsigEnvelopedSignatureTransform())
orderRef.DigestMethod = "http://www.w3.org/2001/04/xmlenc#sha256"
signer.AddReference(orderRef)
signer.ComputeSignature()
doc.DocumentElement.AppendChild(signer.GetXml())
doc.Save(signedXML)
End Function
Alex
|
|
|
|
|
Hi,
For my school, I developed a small Access database application using Visual Studio 2010 (VB). The application installed just fine on the laptop I use and on another teacher’s laptop, too. The application runs on my laptop, but the other teacher receives the following error message when she tries to run the application: “The feature you are trying to use is on a CD-ROM or other removable disk that is not available. Insert the program disk and click OK.”
Please point me in the right direction. Is this a setup project/installation design problem, or is it something that can be fixed in Windows?
I'd be glad to provide more details if that would help ... just didn't want to write a book.
Thanks!
|
|
|
|
|
That error is as generic as it gets. It could be from Windows where a feature your code used is set to "install on first use" or it be from a missing pre-requisite that your application needs to run.
Given that you're using Access as a database, any machine that runs your code either needs the version of Office installed that you wrote the code against (Access is part of Office) or you need to install the appropriate Access Runtime for whatever version of Access you targeted.
|
|
|
|
|
Thanks for your reply … it got me thinking.
On my home (development) PC I had the same problem if I logged in to my Family account rather than my Admin account. Even though the application (and Access) were installed for both accounts, the error occurred. Strange ... but I could at least duplicate the problem again here at home.
So I tried launching the application again from the Family account. This time when the error message appeared, I just plugged in the flash drive containing the .MSI file and pointed the dialog to it. The application then proceeded to launch normally. As a further test, I then unplugged the flash drive, logged out, and logged back in. This time I was able to launch the application without getting the error message at all. So apparently something was “fixed” by pointing the dialog at the .MSI file the first time.
I wish I understood why this was necessary. Then maybe I could do something to prevent it in the future. I don't want to waste your time trying to track down the source of such a generic error, but if you have any more quick-and-easy insight I'd appreciate it.
Meanwhile, at least I know the work-around. Thanks again for your help!
|
|
|
|
|
It's probably because when you built your MSI, the/a Feature containing your application, or some part of it, is flagged as "Install on first use".
|
|
|
|
|
I am looking for a .net developer to fix and update an existing application. let me know if anyone is interested.
|
|
|
|
|
Then you've come to the wrong site.
Try Freelancer.com.
Be warned, you get what you pay for.
modified 12-Oct-16 22:52pm.
|
|
|
|
|
Reported as spam.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I have designed a Component that has a property which is a list of a different Component, which I need to be able to populate at design time or runtime. I have the property designer popping up a collection editor fine when I want to add the children to the parent. The problem I am having is that the children are being added to the Form's ComponentCollection, rather than the parent Component's ComponentCollection.
I figure I am missing something pretty basic here, but how do I get the children added to the parent's ComponentCollection rather than the form's? I've just spent the last 6 hours searching google and MSDN, to no avail.
Cheers,
Mick
------------------------------------------------
It doesn't matter how often or hard you fall on your arse, eventually you'll roll over and land on your feet.
|
|
|
|
|
I have my answer (over 24 hours of searching and reading about Designers, TypeConverters, Editors, etc), and it turns out it was right here on CP[^]. Need need a custom CollectionEditor that knows how to deal with components. This article has it all for me - so now at least I can continue.
Cheers,
Mick
------------------------------------------------
It doesn't matter how often or hard you fall on your arse, eventually you'll roll over and land on your feet.
|
|
|
|
|
This one's a bit hard to explain. If I have an IDisposable object A, and assign one of its (IDisposable) members to a property in object B, will the garbage collector dispose of Object A when it goes out of scope, yet object B does not. e.g.
class ObjectA {
public Image ImageA;
}
class ObjectB : IDisposable {
public Image ImageB;
otherDisposableStuff;
public ObjectB() {
}
void Dispose() {
ImageB.Dispose();
otherDisposableStuff.Dispose();
}
}
ObjectA objA = new ObjectA();
SomeMethod() {
ObjectB objB = new ObjectB();
objA.ImageA = objB.ImageB;
}
What I want to know is will the garbage collector dispose of either objB or its otherDisposableStuff while objA remains in scope? (Note I do not manually dispose of objB)
Cheers,
Mick
------------------------------------------------
It doesn't matter how often or hard you fall on your arse, eventually you'll roll over and land on your feet.
|
|
|
|
|
Your example will result in some problems, and has some structural issues.
First, if Image is disposable, then any class that uses it should either be disposable as well or implement a finalization strategy for Image, i.e. ObjectA needs to handle the ImageA memory usage in some way.
Second, without a finalizer on ObjectB (namely ~ObjectB(){Dispose();}) or an explicit call to objB.Dispose(); you never properly dispose of objB and any unmanaged resources handled by it are not released. Simply falling out of scope will not clear these things for you, and it would be a memory leak.
In this instance, you would want to perform a deep copy of ImageB rather than a reference assignment (a copy constructor would make life easy), as if objB were properly disposed, ImageB would be disposed and ImageA is a reference assignment to ImageB. This means that any expected functionality is now kaput, and ImageA were designed correctly it would attempt to disposed of an already disposed object, also a bad thing.
Please take a look at:
Dispose Pattern[^]
Implementing a Dispose Method[^]
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
Thanks heaps for that Nathan. I get what you're saying there, and will consequently modify the source of the article I just submitted to take that into account (if only you'd got to me 2 hours ago). I had already read the first article you referenced, but not the second. Thanks to the brain damage I have suffered, however, it takes a lot for the full implications technical article to get embedded into my psyche.
I'll fix it!
Cheers,
Mick
------------------------------------------------
It doesn't matter how often or hard you fall on your arse, eventually you'll roll over and land on your feet.
|
|
|
|
|
Well, I'm glad that my first act on a Monday morning was helpful. That's not a given until after the first pot of coffee.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|