|
Ok thanks,
But, when I now complete the wizzard, a messagebox is shown with error rc2104: undefined keyword or name: ds_shellfont
what is this?
|
|
|
|
|
I am not sure what is ds_shellfont. But my suggestion is, you should trim your app to smaller chunk to see what is missing.
Although Ms provide IjW to convert your VC6 to VC7 but it is not a magic.
From what I had learned in codeproject. VC7 do conversion by supplying ATL to replace your old MFC classes. The two header I suggested are ATL header.
|
|
|
|
|
I can't trim the application anymore,
It's already a standard app generated by a wizzard, so it has only minimal functionality
|
|
|
|
|
Hi,
is it possible to remove all DOS line endings (from a file opened in VC editor)? Possibly a plugin in VC would be very nice. I want to convert all DOS line ending into Unix-style line endings at a press of a button.
Thanks for help, Mark
|
|
|
|
|
Personally, I just use EditPlus or UltraEdit. It doesn't take too long to load them again, and does the job nicely.
But I haven't found a plugin yet that does this
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
What VC IDE are you using, .NET or 6.0? Cause if it is .NET you could just write a macro to do that rather easily; it's just VB.NET Or if need be, I could attempt a hack at it...
-Nathan
---------------------------
Hmmm... what's a signature?
|
|
|
|
|
Nathan Blomquist wrote:
What VC IDE are you using, .NET or 6.0?
I'm using VC6.
If there is no such plugin, possibly I have to write one. It happens too often that I need a dos2unix conversion. Is a IDE plugin possible, are there any articles or tutorials?
Thanks again, Mark
|
|
|
|
|
Hi,
I want to use the MFC Array Classes to store an int and a float (in 2 seperate classes) but when I look at the standard ones available they are :-
CByteArray
CWordArray
CDWordArray
CUintArray
CStringArray
CPtrArray
CObArray
Which 2 should I choose for int and float?
They seem like an odd set or am I missing they point?
If you can shed any light on this I would be very gratefull,
Cheers
Ali
|
|
|
|
|
Use the CArray template class: CArray<float,float> myArray;
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Doh!!! Embarassingly simple.
Thank You.
Ali
|
|
|
|
|
You're welcome
Don't be embarassed! Everybody has to learn sometime
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Alison Pentland wrote:
Which 2 should I choose for int and float?
Best choice would be obviously
std::vector< int >;
and
std::vector< float >;
SCNR to plug the standard.
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
Hi,
I've got an application that loads driver DLL's. Those driver DLL's have some setup options. Now I want those driver DLL's to display a property page in the application setup dialog that already has a property sheet with pages.
The solution is simple, just let the DLL create a MFC CPropertyPage. But I don't want that, I don't want that the Driver DLL's must be MFC dll's (and compiled with a matching VC++ version/libraries).
I tried creating a CPropertyPage in the DLL and then returning the propertypage HWND to the application. The application then attaches the HWND to a CPropertySheet. That runs into al kind of problems.
Lookign trough the MSDN library a found al sorts of ATL and COM anwsers, but there must be something simpler.
Note: Of course the driver DLL must handle the window messages for its property page.
Thanks,
John Janssen
Topcon Europe B.V.
|
|
|
|
|
Why not expose a function from the dll to add the property page(s), given a propsheet handle. Then, in your CPropertySheet::OnInitDialog(), simply call the function prior to calling the base. This may work (have never done it). See PropSheet_AddPage() macro for more info.
onwards and upwards...
|
|
|
|
|
Hello Folks
WINAPI->Remote Access Services->
How to make particular phone-book entry default?
This is non-trival question. I've searched the Web, read MS SDK,
docs - perhaps anybody can point me out the place where to find the anwser?
Regards
Darek
|
|
|
|
|
Hi,
i have several program that execute one after another using the following fuction. However, one of the program hide it's window b4 it finishes its process, so there is a big time delay b4 the next process begins.. how do i actually detect if a process calls a hid window command?
CreateProcess.
WaitForSingleObject( pi.hProcess, INFINITE )
Thanks
|
|
|
|
|
hi,
So far my program is 150KB in size, and the only way to get the size down is to reduce the size of the image. At the moment the dialog is made from a region of a bitmap (using CreateRegionFromFile). I now want to do the same except with a jpeg image. Does anyone know if it is possible to load a jpeg into a HBITMAP variable on-the-fly, or another way of creating the correct region??
Chris
|
|
|
|
|
You will have to use GDI+ or a third-party lib to be able to load the jpg.
~RaGE();
|
|
|
|
|
Hi ,
I am searching for a good sample code or article that takes a tab delimited file as input and imports it prograamatically in an access database.I don't want to loop through all the records in the text file and then put them individually into access.I want to import the whole file programmatically into an MS ACCESS table.May be it requires OLE.
Any help will be appriciated.
Thanks and regards.
|
|
|
|
|
Connecting to the MDB using DAO classes and looping through the records in the CSV file and inserting them isn't that bad an idea.
I think ODBC allows a DSN to be associated with a tab delimited file. It might be workable to assign a System DSN to the tab delimited file and then you could use ODBC to move the CSV file to an Access table.
I'm going to live forever or die trying!
|
|
|
|
|
Or, simply define the text file as an ODBC DSN and create an external Link in acess. Then, you can do a standard insert/select query right in access.
onwards and upwards...
|
|
|
|
|
HI,
THANKS FOR REPLY.BUT I COULDN'T UNDERSTAND YOUR SUGGESTION
PROPERLY.WHAT DO U MEAN BY EXTERNAL LINK?HOW IT IS CREATED ,CAN U TELL ME THROUGH A SMALL SAMPLE CODE?
THANKS AGAIN.
|
|
|
|
|
I created a dll with MFC as shared library. In order for me to have different name and type of dll for each mode (debug and release), i used this code in MyDllLib.h. This file will be called by exe from stdafx.h file.
#if defined _AFXDLL
#ifdef _DEBUG
#pragma comment(lib,"MyDlld.lib")
#pragma message("Automatically linking with MyDLLd.dll")
#else
#pragma comment(lib,"MyDll.lib")
#pragma message("Automatically linking with MyDll.dll")
#endif
#endif
but whenever i compile in debug mode, i got this warning..
Linking...
Creating library ./bin/MyDlld.lib and object ./bin/MyDlld.exp
MyDlld.exp : warning LNK4070: /OUT:MyDll.dll directive in .EXP differs from output filename "./bin/MyDlld.dll"; ignoring directive
it doesn't have any problem in the release mode... can anybody tell me why this is happenning..
One more thing, when compile in debug mode, my exe will search for release mode of MyDll.dll and not debug mode (MyDlld.dll)...
Thanks in advance
|
|
|
|
|
Hum.. Seems like you will have to change the output names in your project settings...
~RaGE();
|
|
|
|
|
my setting in the output setting is.. MyDll.dll for release mode and MyDlld.dll for debug mode...
|
|
|
|