|
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
|
|
|
|
|
Hy everyone!
I am not quite sure, what the >> opertion / operator does in C. I do know it is a shift operation, but how is the shifting done? Is it shifted like in a circle meaning the msb will be shifted to the msb-1 and the lsb will be shiftet to the msb (so meaning just shifting without loosing anything) or is the new emtpy place on the left filled with 0-s?
So eg. what does this operation do?
mybitarray >> 1
Lets say it looks like this
11001001 does it look like 11100100 or does it look like 01100100 (meaning after the operation) because I had a look in the MSDN but there it said "shiftoperation to the right". Well but no further info if there is a rotation or if the old places are shifted and filled with 0-s.
Thanks for any advice.
Stephan.
|
|
|
|
|
Why can't you just try it?
I've used >> only in C# before, but assuming they do the same in C anc C#, this should be the answer:
11001001 >> 1 = 01100100
11001001 >> 2 = 00110010
11001001 >> 3 = 00011001
11001001 << 1 = 10010010
11001001 << 2 = 00100100
11001001 << 3 = 01001000
It is a shift operator, not a rotation operator.
_________________________________
Please inform me about my English mistakes, as I'm still trying to learn your language!
|
|
|
|
|
I would have tried but I do not have any C/C# or any other interpreter here on my machine I could try it with. But a friend of mine asked me. That's why I decided to put it here! Because the MSDN is quit loosy concerning the operators.
but thanks for the examples.
Stephan.
|
|
|
|
|
Corinna John wrote:
but assuming they do the same in C anc C#
only if not overloaded
David
|
|
|
|
|
It's a standard shift. There is no circular shifting.
Keep in mind, though, that right-shifting is performed *with sign extensions*! That is, there are three cases:
1) The number to be shifted is unsigned (i.e. byte, ushort, uint, ulong). In this case, the bit shifted in from the left is '0'. For example, (byte) 10010010 >> 2 = 00100100.
2) The number to be shifted is signed (i.e. sbyte, short, int, long) and the MSB is 0. Then the bit shifted in from the left is '0'. For example, (sbyte) 01001000 >> 2 = 00010010.
3) The number to be shifted is signed and the MSB is 1. Then the bit shifted in from the left is '1'. For example, (sbyte) 10010010 >> 2 = 11100100.
Hope this helps!
|
|
|
|
|
Hi
I have a question about "Windows Services":
What is the Windows Service?
I need a complete explanation about it.
Please introduce me some papers or sites or good books ,if enyone knows.
Thanks,Mojtaba
|
|
|
|
|
Tanhatarin wrote:
Please introduce me some papers or sites or good books ,if enyone knows.
Google is a good place to start. Also go to your control panel/Administrative Tools/Services. Those are services. They are programs that run all the time and provide 'services' to other programs running on your PC.
Christian Graus - Microsoft MVP - C++
|
|
|
|