|
the error returned is ERROR_LOGON_FAILURE (1326) i.e. Logon failure—unknown user name or bad password.
but i know that the supplied user is valid 'cause if this program is copied into that machine and given the same credentials it executes smoothly
|
|
|
|
|
From my example, if u feel that i'm trying to connect to a remote machine, then how can i do that in windows environment
Actually my project requires the following
I've a program which queries netbios values from different machines in a 'TRUSTED DOMAIN' using the particular machine's credentials. My progam went smoothly when queried any machine under the same domain but failed when tried to query a machine which was under different domain.
So how can i query a machine which is in different domain.
rgds
Unni
|
|
|
|
|
Im a sophomore in college, majoring in comptuer science. I've taken 2 c++ classes at school, and unless we create our own, cout and cin were the only means we were taught to output to the screen.
I wrote a program to talk to a GPIB voltmeter here at work a few months ago , it was done in TurboC 1.1 from 1994, and i didnt use cout, but i used printf() as suggested by my boss.
Im just wondering, why some peope still use printf. I wrote a test last night, that outputs a number i from 0 to 10,000, and returned the time it took to do it with both cout and printf(). cout was 1 second faster. Now, with such a minimal difference, im just wondering if theres a standard preference. I was only taught to use cout, but obviously printf() is still in use.
so, why do people still use printf() is cout is available? or vice versa.
*.*
cin >> knowledge;
|
|
|
|
|
keegan wrote:
why do people still use printf() is cout is available?
1. Some people are still writing in C, not C++
2. It's a legacy program that still uses the C runtime library, so why make it bigger by using STL as well?
3. Some people are too lazy to learn something new
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"
|
|
|
|
|
wel, i knew people were still using C, heck, i still use C. but what about in MFC, why do some people use printf?
*.*
cin >> knowledge;
|
|
|
|
|
I dunno. Heck, even MFC uses printf() . Check out CString::Format() - it uses _vstprintf() I think, from memory.
I generally use printf() because I come from a C background, but I do use cout as well. Depends on my mood
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"
|
|
|
|
|
i guess i'll just 'C' what kinda mood im in when im deciding what to use.
doh.
*.*
cin >> knowledge;
|
|
|
|
|
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"
|
|
|
|
|
Because there are some limitations to cout/cin that printf handles better. You can look up all the hacks to cout/cin to see what I mean. However, printf does have serious limitations. Also, stream usually add around 80k to an application.
If you just want to format a number, use ltoa. It is magnitude times faster than streams (and yes, I have seen many people use streams for simple conversions).
But then again, ltoa is so old school and just for lazy people.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Tim Smith wrote:
But then again, ltoa is so old school and just for lazy people.
Yeah I know. I write my own... from scratch... every time
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"
|
|
|
|
|
One of the benefits of using cout is that it can display many types without the programmer having to specify any formatting, whereas with printf() you'd have to specifiy all of those % thingies. That said, when I am creating a console application, I use printf() nearly 100% of the time, unless I am showing someone how to do something C++ specific (e.g., if your object provides >> and << operators, it can fit right in with cout and cin).
|
|
|
|
|
Hi there
I have a big project written in MFC 4.2 with Visual Studio 6. Since I bought Visual Studio .net, I immediately wanted to convert it to MFC 5 but there is too many bugs
If someone have a tool or documentation about changes between MFC 4.2 and MFC 5, please send it to me
Thank you !
Florian
|
|
|
|
|
Hi,
I'm trying to write an MFC application in VS.NET2003,
I've changed nothing in the wizzard wich will be displayed after choosing project name and type etc.
After pressing "finish" in the wizzard I pressed CTRL+SHIFT+B ("build"), expecting everything would be fine. IT WASN'T:
------ Build started: Project: mfc2, Configuration: Debug Win32 ------
Compiling...
stdafx.cpp
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afxv_w32.h(230) : error C2065: 'DWORD_PTR' : undeclared identifier
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afxv_w32.h(230) : error C2143: syntax error : missing ';' before 'GetWindowThreadProcessId'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atlconv.h(92) : error C2061: syntax error : identifier 'LONG_PTR'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atlconv.h(92) : error C2146: syntax error : missing '(' before identifier 'LONG_PTR'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atlconv.h(92) : error C2061: syntax error : identifier 'LONG_PTR'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atlconv.h(92) : error C2146: syntax error : missing '(' before identifier 'LONG_PTR'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(29) : error C2143: syntax error : missing ';' before '__stdcall'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(29) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(30) : error C2146: syntax error : missing ')' before identifier 'dwProcess'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(30) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(30) : error C2182: 'AtlTraceCloseProcess' : illegal use of type 'void'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(30) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(31) : error C2146: syntax error : missing ')' before identifier 'dwProcess'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(31) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(31) : error C2182: 'AtlTraceSnapshotProcess' : illegal use of type 'void'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(31) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(33) : error C2143: syntax error : missing ';' before '__stdcall'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(33) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(33) : error C2086: 'int ATL::DWORD_PTR' : redefinition
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(29) : see declaration of 'ATL::DWORD_PTR'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(35) : error C2146: syntax error : missing ')' before identifier 'dwModule'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(35) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(35) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(37) : error C2143: syntax error : missing ';' before '__stdcall'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(37) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(37) : error C2086: 'int ATL::DWORD_PTR' : redefinition
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(29) : see declaration of 'ATL::DWORD_PTR'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(37) : error C2146: syntax error : missing ')' before identifier 'dwModule'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(37) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(37) : error C2501: 'AtlTraceRegisterCategoryA' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(37) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(38) : error C2143: syntax error : missing ';' before '__stdcall'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(38) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(38) : error C2086: 'int ATL::DWORD_PTR' : redefinition
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(29) : see declaration of 'ATL::DWORD_PTR'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(38) : error C2146: syntax error : missing ')' before identifier 'dwModule'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(38) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(38) : error C2501: 'AtlTraceRegisterCategoryU' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(38) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(40) : error C2146: syntax error : missing ')' before identifier 'dwProcess'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(40) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(40) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(41) : error C2146: syntax error : missing ')' before identifier 'dwProcess'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(41) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(41) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(42) : error C2146: syntax error : missing ')' before identifier 'dwProcess'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(42) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(42) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(43) : error C2146: syntax error : missing ')' before identifier 'dwProcess'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(43) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(43) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(44) : error C2146: syntax error : missing ')' before identifier 'dwProcess'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(44) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(44) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(45) : error C2146: syntax error : missing ')' before identifier 'dwProcess'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(45) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(45) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(53) : error C2146: syntax error : missing ')' before identifier 'dwModule'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(53) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(53) : error C2182: 'AtlTraceVA' : illegal use of type 'void'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(54) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(55) : error C2146: syntax error : missing ')' before identifier 'dwModule'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(55) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(55) : error C2182: 'AtlTraceVU' : illegal use of type 'void'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(56) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(58) : error C2061: syntax error : identifier 'DWORD_PTR'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(59) : error C2061: syntax error : identifier 'DWORD_PTR'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(60) : error C2061: syntax error : identifier 'DWORD_PTR'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(61) : error C2061: syntax error : identifier 'DWORD_PTR'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(87) : error C2146: syntax error : missing ';' before identifier 'dwModule'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(87) : error C2501: 'ATL::ATLTRACEMODULEINFO::DWORD_PTR' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(87) : error C2501: 'ATL::ATLTRACEMODULEINFO::dwModule' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(95) : error C2146: syntax error : missing ';' before identifier 'dwCategory'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(95) : error C2501: 'ATL::ATLTRACECATEGORYINFO::DWORD_PTR' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(95) : error C2501: 'ATL::ATLTRACECATEGORYINFO::dwCategory' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(98) : error C2146: syntax error : missing ')' before identifier 'dwProcess'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(98) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(98) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(99) : error C2146: syntax error : missing ')' before identifier 'dwProcess'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(99) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(99) : error C2182: 'AtlTraceGetModuleInfo' : illegal use of type 'void'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(99) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(100) : error C2146: syntax error : missing ')' before identifier 'dwProcess'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(100) : warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(100) : error C2182: 'AtlTraceGetCategoryInfo' : illegal use of type 'void'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldebugapi.h(100) : error C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(46) : error C2833: 'operator DWORD_PTR' is not a recognized operator or type
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(46) : error C2059: syntax error : 'newline'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(46) : error C2238: unexpected token(s) preceding ';'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(50) : error C2146: syntax error : missing ';' before identifier 'm_dwCategory'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(50) : error C2501: 'ATL::CTraceCategory::DWORD_PTR' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(50) : error C2501: 'ATL::CTraceCategory::m_dwCategory' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(81) : error C2061: syntax error : identifier 'DWORD_PTR'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(87) : error C2061: syntax error : identifier 'DWORD_PTR'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(120) : error C2061: syntax error : identifier 'DWORD_PTR'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(125) : error C2061: syntax error : identifier 'DWORD_PTR'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(126) : error C2535: 'void ATL::CTrace::TraceV(const char *,int) const' : member function already defined or declared
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(119) : see declaration of 'ATL::CTrace::TraceV'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(130) : error C2146: syntax error : missing ';' before identifier 'RegisterCategory'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(130) : error C2501: 'ATL::CTrace::DWORD_PTR' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(131) : warning C4183: 'RegisterCategory': missing return type; assumed to be a member function returning 'int'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(147) : error C2146: syntax error : missing ';' before identifier 'm_dwModule'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(147) : error C2501: 'ATL::CTrace::DWORD_PTR' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(147) : error C2501: 'ATL::CTrace::m_dwModule' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(160) : error C2061: syntax error : identifier 'DWORD_PTR'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(166) : error C2061: syntax error : identifier 'DWORD_PTR'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(167) : error C2535: 'void ATL::CTraceFileAndLineInfo::operator ()(void) const' : member function already defined or declared
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(160) : see declaration of 'ATL::CTraceFileAndLineInfo::operator`()''
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(196) : error C2614: 'ATL::CTraceCategory' : illegal member initialization: 'm_dwCategory' is not a base or member
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(197) : error C2065: 'm_dwCategory' : undeclared identifier
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(198) : error C3861: 'm_dwCategory': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(201) : error C2833: 'operator DWORD_PTR' is not a recognized operator or type
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atltrace.h(202) : fatal error C1903: unable to recover from previous error(s); stopping compilation
Build log was saved at "file://c:\boudewijn\W32 cpp versie\mfc2\mfc2\Debug\BuildLog.htm"
mfc2 - 91 error(s), 17 warning(s)
---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skipped
Can someone please explain this????????????????????
|
|
|
|
|
Not sure this gonna help.
Try to include in your header.
#include <atlstr.h> // CString support.
#include <atltypes.h> // CPoint, CRect, CSize support.
there are many good articles in codeproject which demonstrate the porting.
|
|
|
|
|
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"
|
|
|
|