|
On tinkering around with it, it seems only to not work when you make the control invisible before you do your first data adaptor Fill method.
If you do the fill, then make it invisible, everything works fine from there on out. You can make it visible, invisible again, etc.
Odd.
|
|
|
|
|
Hi all,
I am facing a problem where I am not able to get the path of directory in Linux. I want to install a software using Oracle as database in Win2000. The database is on a Linux system. In this system I have created a shared folder "shared". Then I give this path during installation. The setup runs successfully but the .ora files which are created are not in the folder specified (shared) but in another folder with names C:shared|name of the file.ora. The setup.inf file on the system where the setup was run shows the path as "C:\shared". There is no such drive in Linux.
Can anyone tell me what is the actual problem and how to fix it.
Regards,
Harshad
|
|
|
|
|
I would like to get suggestions on how to implement mouse events (MouseMove, MouseEnter, MouseLeave etc.) in a user defined class not derived from System.Windows.Forms.Control or System.Windows.Forms.UserControl. The reason for not deriving from aforementioned classes is to keep it lightweight. The extensive functionality as provided by Control or UserControl classes is not required.
The classes I have are graphical elements, such as polylines, ellipses, rectangles etc. One class derived from either System.Windows.Forms.Panel or UserControl or Form, let's call it View class, is showing/drawing them onto the screen. The way I figured is to use mouse events from this View class and make a HitTest for each element it contains and then called respective method(s) of the element. But it is rather inconvenient to generate a Events in this design as one has to expose another public method(s), which triggers the event(s), that I can call from the mouse handling methods of the View class.
What I would like to achieve is to have a base class, which would generate mouse events in the same way as System.Windows.Form.Control.
Looking forward to your suggestions!
|
|
|
|
|
Hi all,
I have just created a setup. on ruuning it there is an error "mfc70.dll failed to register. HRESULT -2147024769. Contact your support personnel." The older versions of the setup work fine. All the files are same except the ones where setup version is displayed. Can someone tell what is the problem exactly & how to overcome it.
Thanking You.
Regards,
Harshad
|
|
|
|
|
mfc70.dll is not a self-registering dll.
|
|
|
|
|
Question : If i have a dll(with some corba stuff) that was developed using VC6, can this dll be used on windows os/servers with .net framework?
<font=arial>Weiye Chen
Life is hard, yet we are made of flesh...
|
|
|
|
|
Surely it can be used the same way that Windows dlls are used, through pinvoke ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote:
through pinvoke ?
Well, i am not sure how they are going to be used. I was told to convert some dll projects to .net and i assume that i can just open the project in vs.net and recompile it? But that doesn't make sense to me.
<font=arial>Weiye Chen
Life is hard, yet we are made of flesh...
|
|
|
|
|
Ah, i just know what they want. They just want the project to be able to compile in vs.net because they do no have any more license for VC6.
<font=arial>Weiye Chen
Life is hard, yet we are made of flesh...
|
|
|
|
|
LOL. Well, that could be easy, or it could be hard, depending on how good the code is to start with.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote:
Well, that could be easy, or it could be hard, depending on how good the code is to start with.
The answer is hard. LOL. What's the deal with iostream and iostream.h? I am stucked with some if else definitions to properly include iostream and iostream.h, but the latter couldn't be found in any vs.net folders.
<font=arial>Weiye Chen
Life is hard, yet we are made of flesh...
|
|
|
|
|
Weiye Chen wrote:
What's the deal with iostream and iostream.h? I am stucked with some if else definitions to properly include iostream and iostream.h, but the latter couldn't be found in any vs.net folders.
the .h headers for string, math, iostream, etc. are deprecated. You should never, ever include them. They were replaced by the non-.h headers with the first C++ standard. So, to be clear, NEVER include iostream.h, always include iostream.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Can anyone give me a real life analogy relating to the runtime execution process of a .NET program having that features CLR and MSIL?
stali
|
|
|
|
|
tostali wrote:
having that features CLR and MSIL?
The way you word this makes me think you have no idea what it means. What are you looking for, an analogy that will help you to understand it ?
If you're in Pakistan, and you call a neighbour who does not speak English, if you speak English to them, they will not know what to do about it. That's how Windows feels about an MSIL file, it needs an intepreter to turn it into something that it understands.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanks a lot Christian...
i got ur point but still some clarifications required...
In the analogy u gave, i can understand that interpreter is my CLR but how can i represent an entity (equivalent to the language compliers) that is responsible for convertng the source to MSIL; say, English --> ??? ---> MSIL --> Interpreter -- > Japanese.
Thanks for the help...
stali
|
|
|
|
|
The MSIL is not interpreted into different human languages.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
Hello to all!
My case is this: I need an explorer of files, and there happened to me to be used the explorer who shows the dialogue OpenFileDialog and to put it as a control, that is to say, as if it was a question of a panel or any other control. Does some form exist by means of API or .NET to do it (without using MDI)?
Thanks and sorry for my bad english
|
|
|
|
|
Hi
I am working on a project where the user enters data and i do the calculations. I need a way to organize a tabular form of entering the data, something like an excel worksheet. Would really appreciate any suggestions.
|
|
|
|
|
Try this container. It supports almost every excel feature except change tracking. The demo was written in vb6, and will need a bit of work to port to .net. Based on my own searching, and several other recent requests for the same in .net usegroups I think it's the best solution available.
http://support.microsoft.com/default.aspx?scid=kb;en-us;311765
|
|
|
|
|
i did, and i was able to add a Framer Control where the user can open an excel document. how can i just add an excel worksheet without the Framer Control?
|
|
|
|
|
I don't think you can. The control holds the sheet. If you don't need menu support you can load the SS using a webbrower control, or if you only need a very limited ammount of functionality you can use the excel COM control. IMO both of those approaches stink. The framer control's not perfect, but afaik short of writing your own it's the best solution available.
|
|
|
|
|
Correction to my previous post. You can turn off the controls titlebar and border via the Titlebar and Border Style properies. If you do that and place the control as large as the form you can make it's presence all but invisible. I don't know how, or if you could merge menus if you needed to add a custom one for the rest of your app.
|
|
|
|
|
Thanx, that's much better
|
|
|
|
|
Hi all,
I have just created a setup. on ruuning it there is an error "mfc70.dll failed to register. HRESULT -2147024769. Contact your support personnel." The older versions of the setup work fine. All the files are same except the ones where setup version is displayed. Can someone tell what is the problem exactly & how to overcome it.
Thanking You.
Regards,
Harshad
|
|
|
|