|
Hey all,
Having been through RFC959, I'm wondering what is SMNT command(Structure mount) for? where is it useful and how do I use it? Is it used to mount a network share or drive?what are the semantics?
TIA.
I'm an alien, I'm an alien
it's a beautiful life....
Bush
|
|
|
|
|
hi thanks for reading my post
I'm just trying to make a hello world using VC++
#include <iostream.h>
void main()
{ cout << "test/n"; }
and after a while, I came up with that *points up*
so I was very happy and one day I went home and tried it on my borland C++ so I could impress everyone and I did the same thing and it said
[Linker Error] Unresolved external '__InitVCL' referenced from D:\BORLAND C++ 5 ENTERPRISE\LIB\CP32MTI.LIB|crtlvcl
[Linker Error] Unresolved external '__ExitVCL' referenced from D:\BORLAND C++ 5 ENTERPRISE\LIB\CP32MTI.LIB|crtlvcl
[Linker Error] Unresolved external 'WinMain' referenced from D:\BORLAND C++ 5 ENTERPRISE\LIB\C0W32.OBJ
and I don't understand what it's saying. can anyone help?
|
|
|
|
|
It looks like you are using Borland C++ Builder...
Then you need to tell it that it's a console application you are making, you should be able to do that somewhere in the project settings...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
I did tell that to the builder
I went to "new" and then in the new projects, I chose "console wizard"
any ideas?
|
|
|
|
|
If I build an application with the settings Use MFC in a shared DLL, what versions of windows and what percentages of those installations could I expect to have the required DLL's to allow my application to work?
Michael Martin
Pegasystems Pty Ltd
Australia
martm@pegasystems.com
+61 413-004-018
"Don't belong. Never join. Think for yourself. Peace"
- Victor Stone
|
|
|
|
|
Any version of 32 bit Windows that has previously had a program installed which also shared the DLL and so installed it. It's not a version issue AFAIK, if you share the DLL, you'll need to distribute it.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
Yeah, I understand that I am meant to distribute it, but I'm lazy, it's not a large audience and it's internal. I just thought certain distibutions of Windows may have had the MFC DLL's by default and others may have got them via Service Packs. All PC's are running 2000/NT/98 and should have installed at least one program with the DLL's included so I will just take a chance.
It was curiosity that made me ask the question.
Michael Martin
Pegasystems Pty Ltd
Australia
martm@pegasystems.com
+61 413-004-018
"Don't belong. Never join. Think for yourself. Peace"
- Victor Stone
|
|
|
|
|
If it were me, given an internal situation, I'd provide a URL to the DLL, and ship without it. You'd have to hope most people have it.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
If it's internal, and you're that lazy, just compile your app(s) with statically linked MFC. It only adds 200k (given no COM or database code) and it's a lot safer than relying on some end-user moron being able to download/install the right version of the MFC DLLs.
|
|
|
|
|
I have a problem in displaying tips of the toolbars using MFC.
My software displays images continuously in a infinite loop.
I created 2 toolbars with style 'CBRS_TOOLTIPS' and added tips for each icons.
The images are fine but the tips disappear.
Tips come back when the infinite loop is disabled. However, I need the loop to display my images...........
Can anyone help me?
Walter Pak
|
|
|
|
|
The issue caused by your infinite loop not allowing GUI (or any?) messages to be processed by the message queue. This can be fixed by making your infinite loop run in a seperate thread to the rest of the application. Look here in Mike Dunn's C++ FAQ, while not covering your problem exactly it covers the generic requirement and has pointers to other articles that will explain what you need to do.
Michael Martin
Pegasystems Pty Ltd
Australia
martm@pegasystems.com
+61 413-004-018
"Don't belong. Never join. Think for yourself. Peace"
- Victor Stone
|
|
|
|
|
Hello !
How can I make a Lib file in VC++ and use it in Delphi ????
I want to statically link it to a Delphi aaplication ....
I used {$L test.Lib} in delphi, but I recived this error message ..... Bad file Format ????????
best regards !!!!
|
|
|
|
|
I'm not 100% sure but as Delphi is Pascal then I wouldn't have thought VC++ libs would be compatible.
Michel
|
|
|
|
|
Hello ! Michael P Butler
tanks.
|
|
|
|
|
The import library produced by MS Visual C++ is in COFF format (Mangled Names), and Delphi and Borland C++ expects things in OMF format.
See the July 1996 "Under the Hood" article of Microsoft Systems Journal. It talks about different dll formats and ways to get round this.
|
|
|
|
|
Hello ! Rashid Thadha ....
Tanks!;)
|
|
|
|
|
I have a list that is always kept sorted. ie, when an item is added, it gets added at a position that will keep the list sorted. I am using binary search now to identify the location to insert the item.
Is there a better algorithm than this?
Thanks in advance for any suggestions.
-Thomas
modified 29-Aug-18 21:01pm.
|
|
|
|
|
A binary tree with linked lists to allow for equal nodes?
> Andrew.
|
|
|
|
|
I am now using a CPtrList, that contains pointers to structures. I have an InsertSorted(DATA_STRUCT* pStruct), that inserts based on binary sort. Will the binary tree model be able to be implemented inside this InsertSorted?
In any case, I will have to do some research on the binary tree model and make a sample to compare the performance advantage.
Thanks for the reply.
Thomas
modified 29-Aug-18 21:01pm.
|
|
|
|
|
If you were using STL, the set or map would do this for you automatically, you'd only need to add an element for it to be sorted.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
I will try that out. The functionality is encapsulated in a class. I will re-write the class using STL and check for performance improvement.
Thanks
Thomas
modified 29-Aug-18 21:01pm.
|
|
|
|
|
I was reading through the map and set docs in MSDN. Rightnow, I have a compare function, that compares based on different items in the structure depending on user settings. Is there a place, where I can define a custom comparison function in these classes? I did not find any.
Any help is very much appreciated.
Thanks
Thomas
modified 29-Aug-18 21:01pm.
|
|
|
|
|
Yes, you can provide a function of your choice that return a bool. It's the last argument of the algorithm, and is optional.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
You can either overload the "<" operator for your structure, or use a function object as the sorting criterion for a map or set. The STL documentation in MSDN is really bad, you need some other information source.
|
|
|
|
|
I think you'll have better use with CTypedPtrList instead of CPtrList
BTW: come to #CodeProject on DalNet (mIRC)
|
|
|
|