|
Isn't that the syntax for using the ODBC adapter with named paramters?
|
|
|
|
|
Yes, so I learned. I've never used the ODBC adapter before. Beats me why it differs.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
After installing the Oracle ODT I find that now I can access all my Oracle 10 databases perfectly, but the older Oracle 8i systems are no longer available.
I understand this is a known problem, has anyone else encountered this and knows of a work around ?
Thanks
|
|
|
|
|
One thing to look at is the tnsnames.ora files. The ODT stuff creates a new set for 10g (separate from the ones for 9i etc.), and they may be different but the 10g version is sometimes the only one used after it is created. If the name resolutions of all your databases are not in the 10g version of tnsnames.ora, then you might consider merging the tnsnames.ora files.
Another potential problem is that ODT also creates a sqlnet.ora file that works sort of like your hosts file (helps resolve server names). In my case, the sqlnet.ora file had incorrect domain information that was overriding what was in my tnsnames.ora file and causing server names not to resolve. After some fiddling with the file, I finally just deleted it, reasoning that it had not been there prior to ODT, and everything had worked fine anyway. Everything worked after that.
Hope this helps.
The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’
|
|
|
|
|
hi guys,
i have been playing with the DSOFile component from MS. One of the things I realised it couldnt do was to read properties of PDF documents. So I have managed to rectify this by simply using the shell32.dll and using the GetFileInfo method from that dll.
However, my problem is that how do i save the summary file properties of a PDF document if I am using shell32.dll ??
I have tried looking through MSDN but couldnt find anything. Any suggestions will be appreciated.
Thanks
|
|
|
|
|
I need to load several forms in the background of an MDI app. My problem is that the forms display themselves when I try to read a property from them. I want them to be fully loaded but invisible until the time they are needed.
Is it possible to fully load a form without having it display? The code I'm starting with looks like this:
long hndl;
System.Windows.Forms.Form frmIt = new Form();
frmIt.MdiParent = this;
frmIt.Visible = false;
//not yet visible
//read the handle
hndl = (long) frmIt.Handle;
//form is now visible.
Thanks,
|
|
|
|
|
Is this a C# question ? If so, set up delegates between the forms, one that children use to tell the parent of the change, and one the parent uses to notify all children.
If it's C++, you can do the same with function pointers.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Well this thread just goes to prove the deleting posts is a bad idea. Non of the original posters posts exist now.
How can we help people if they delete the questions when they don't like the answers given.
Michael
CP Blog [^] Development Blog [^]
|
|
|
|
|
Here[^] is a tutorial on delegates. Basically, you create a varaible which represents a method call ( actually a chain of method calls ), to a specific signature. So you create a variable in the child form which represents an event. On the main form, you create this event, and every time a child form is created, it sets it's variable to be that main form event. So, when a variable changes in the child, it calls the event, which is a method *on the main form*. So, the main form get's called, and it can then notify all the child forms however it likes.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
No my friend is not a bad idea. If you just read the replies you will see how "good" the answers are. There are no answers.
|
|
|
|
|
Nick932 wrote:
No my friend is not a bad idea. If you just read the replies you will see how "good" the answers are. There are no answers.
You are, hands down, the stupidest person ever to post here. My original post answered the question for any programmer on the planet. If cut and paste is your thing, if you're illiterate, then yeah, my answer was not useful. Even then, I tried to keep the dialog going so I could help further, and you acted like a spoiled child, as if you PAID me for code and all I offered you was good advice on how to write it yourself.
Then, when no-one here takes your side, you continue to assume that even though you're too dumb to write 10 lines of basic event handling code in C#, you're the only one here who has any idea, so you delete all your posts, like a crying baby.
Man, I can't believe you're smart enough to turn on a computer, let alone use the Internet.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hey Christian, thanks for the great tutorial, helped me a lot!
"..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.."
-- Mark McCormick
|
|
|
|
|
The forms are irrelevant. Events work the same in all classes. To watch the change of a variable, make it a property, so you can write code that is called when it changes. Then, fire your events, which are created and subscribed to in accordance with the sample I gave you. If you look for model view controller in this site, there's at least one C# sample using delegates to create this design pattern, and it's sure to be a forms app, although that just adds a lot of code that distracts from what you need to see, which is how delegates work.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
ROTFL - glad it helped someone....
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
He deleted them all almost as soon as he realised that I was suggesting he read some stuff for himself instead of asking me for a full code example.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
You know what's really funny ? He's asked three questions before this one ( I answered at least one, about events as it happens, and he post voted me a 5 for the answer ), this morning his post count was in the mid twenties, and now it's down to four ( three once he deletes his reply to this post of yours ).
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Why did you delete all your posts ? Did you solve the problem ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
OK, well, first of all, it's kind of childish to delete your posts. Secondly, you seem to me to be saying that you're incapable of research, even when given the links, and you'd like someone to write all the code for you. Is that correct ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
That's weird. It's childish of me to try and help you ? I'm incapable of learning from a link, on the basis that I gave you one ? How old are you ? Does it occur to you that the help you're getting here is completely free, and despite how rude and obtuse you are being, I'm still trying to help you ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Nick, you have a lot to learn, both about programming, and about life in general. I wish you all the best.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Cool Down....
There are people who need to be given with all codes, and they need to be instructed on how/where to copy/paste into their computer. We will have to adjust with them.
They also play silly by rating other posts with lower votes....
Just let them play. They will grow up one day
"He that is good with a hammer tends to think everything is a nail." - Abraham Maslow
|
|
|
|
|
S P S wrote:
There are people who need to be given with all codes, and they need to be instructed on how/where to copy/paste into their computer. We will have to adjust with them.
The thing is, I was willing to give a more elaborate example, if it was needed. It was the other guy who started getting rude. And certainly, I was doing my best to hold it together, and tried to steer things back towards me helping him further.
S P S wrote:
They also play silly by rating other posts with lower votes....
LOL - I don't pay attention to post votes, I could care less about that.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
The concepts in the link helps to answer your actual query
"He that is good with a hammer tends to think everything is a nail." - Abraham Maslow
|
|
|
|
|
Man, this is so funny. I can't believe that this guy is not only too dumb to work out hte answer from the info I provided, but dumb enough to insult everyone who is trying to offer him free help.
I'll keep an eye out for him when I'm in the states, I'm sure he'll serve me a burger and fries at some point.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|