|
Only one; look up QWidget which is a cross platform library for creating applications.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
I am trying to modify an existing project in Visual C++ 6.0. (I do not do a lot of C++ programming, but am helping a friend.)
When I try and build a project, I receive some errors. There are 11 errors, but I have only copied two of them to shorten the post.
SUMMARYT.OBJ : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CSummaryTableView::OnDraw(class CDC *)" (?OnDraw@CSummaryTableView@@MAEXPAVCDC@@@Z)
SUMMARYT.OBJ : error LNK2001: unresolved external symbol "public: __thiscall CTableViewEdit::CTableViewEdit(void)" (??0CTableViewEdit@@QAE@XZ)
This is an existing program that is already compiled, I just added a new field to the report. I have confirmed that the Constructors have been built. What else could be causing these errors?
Visual C++ is new to me, so I would appreciate some help. Thanks.
JAG
|
|
|
|
|
I recommend ‘Rebuild All’, these problems usually occurs because a partial build relies on previous information that is no longer valid. If that does not work, then there is a missing code file (it could be corrupted) or an intermediate file is giving you grief. Check a few FAQs to be sure, but you may need to delete to ‘*.ncb’ file in order to force the compiler to recreate the entire code from scratch.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
Dear all,
Now I have six data in includes:
3 data Xw, Yw, Zw in FlexGid at i row and j column
and 3 data m_iA, m_iB, m_iC in edit box form Interger individually. So please help me export these data to text file .txt in which these data is arrange correctly following form:
P1={X Xw,Y Yw,Z Zw,A m_iA,B m_iB,C m_iC}
P2={X Xw,Y Yw,Z Zw,A m_iA,B m_iB,C m_iC}....Pn
I just start with VC++, so please show me more detail. Thank you very much.
|
|
|
|
|
You mention ‘FlexGrid” and if that is where your data is stored, then I would look at the documentation for that to find you answer. Most things with the title ‘Grid’ or ‘Spreadsheet’ in them have a means to export their contents as a ‘TAB’ delimited file. That is a file where the individual fields are separated by the ‘TAB’ character, with each line representing as single entry (or record) per line.
Hopefully some who has use it will show up shortly.
Good Luck!
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
I used VS 2005 with MFC
My SDI software has been created in English but i want to change it in french language.
I try to changed all ressource but my software is always in english (untitled when i do a new document) and any message in english.
How can i try to changed my default language?
thanks
|
|
|
|
|
|
For many years, I have been "naughty" in reusing my classes by copying the relevent files in to my current project in MSVC - I knew that I should be generating a library, but I was lazy !!! I have now generated a library and tried to alter my project settings to use MyLibrary. (I have experimented with a known working project) I have referenced the library by stating the path in MSVC/Project/Settings/Link and adding it to "Object/Library modules".
When I compile/link the project without making any source code changes (apart from adding a constructor for a class contained in MyLibrary), I get loads of errors (just under 200 !!), one of which I quote below:-
nafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual void __thiscall CWnd::OnFinalRelease(void)" (?OnFinalRelease@CWnd@@UAEXXZ) already defined in mfc42d.lib(MFC42D.DLL)
If I remove the constructor for the class contained in MyLibrary, it links without error.
Can someone pin-point what I am doing wrong in the setup of my project within the MSVC (vers 6.0) build and usage of MyLibrary ?
Doug
Doug
|
|
|
|
|
(I should have examined the errors more carefully !!!) I've found the problem - when building the library, I should have selected "Use MFC in a shared DLL", so that double linkage does not occur when linking the project using the library. Hope this is understandable (and helps someone else in the future searching for the solution to this "problem" !!)
Doug
|
|
|
|
|
Sorry in advance for long post..
Ok well let me fill you in on the bigger picture::
I am at the early stages of learning visual C++ and have a few decisions to make before I can start, and would like to hear what people think(especially if you work in the industry)..Im I on the right track or are there obvious flaws in my planning?... Here is my situation:
I have:
Hnd Computer science(same as first 2 years of Uni.)
written basic programs in C experience in OO: Java and Smalltalk programming degree level projects..not vey big..email client..shopping checkout/stock system etc etc
I want to learn and start earning money as a visual c++ programmer,
I have the oppertunity of a 6 month work placement at my local University, I can use the time to learn visual c++ with a view to getting a job as a programmer + get some experience. But I have to complete some kind of programming project at the end of the 6 months, possibly an app that the University may actually use, the idea being that the app with full documentaion etc..can be used to try and get a job somewhere...
Im using the free Express edition of visual studio(for now), hopefully at some point in the near future I can purchase the full version...can you see any drawbacks to using the express version over the full version..in terms of what im trying to achieve?...also with Express, will there be a licencing issue if the University decide to use the completed project/stand-alone app(compiled in Express)
Now my rough unsure plan is get a hold of a book like
'Ivor Horton's Beginning Visual C++ 2005'
[url]http://www.amazon.com/Ivor-Hortons-Beginning-Visual-Programmer/dp/0764571974/ref=pd_bbs_sr_1/002-3234138-6754445?ie=UTF8&s=books&qid=1173625687&sr=1-1[/url]
...and work through the exercises and experiment a bit(1 month)..then at the end of the book I should be more familiar with the subject and ready to start the project, I also have access to the uni library and the web for more general c++ issues that will arise that are not covered in ivors book..as it looks like quite a broad intro to vs c++
To give you an idea of the scale of the project(which can be anything that can be completed within 4 months)..my initial project ideas are:
Messenger type program that would run on the uni network..features: search/buy/sell used books, printer credit, suggestion box, weather, Calender/planner
Basic Firewall application
Im thinking of these types of apps because because I imagine they require the exploration of the different areas of visual c++ in reference to networks, files guis, internet, security, database etc...and hopefully give me a good grounding introduction..Also feel free to suggest alternative projects that you think more suitable?
How realistic is this plan?
|
|
|
|
|
The only recommendation I can give you for you project is the KISS principle (Keep It Simple Stupid), which applies to all programming. As to the compiler you are using, that is the universities problem and not yours. If they decide your code is good enough to use, then it is up to them to let you or someone else compile and test it on a version that is licensed for commercial usage. As to the language you choose to use, the ones offered by Microsoft are much easier to use for internet communications than most, because they are designed with that in mind. The C++ language is great, especially because it hides some of the details that C does not. Keep in mind your ultimate goal; meaning that if you know, and have experience with the latest languages (C#, etc…) you increase your odds of finding a job.
My preferred language is C++, I recommend searching for ‘Thinking in C++” online as the author provides copies of his works for free. That should give you a good start and please buy a copy when you have the funds, he admits he was a bad C programmer (and I agree), but more than understands programming now (opinion submitted 10 years ago) . Once you understand his works then purchase a copy of ‘The C++ Programming Language’ by ‘Bjarne Stroustrup’ the creator of C++. There are other book that delve into the language a little deeper and ‘Bjarne Sroustrup’s’ web site mentions a few of them.
When you can answer this question for you self, then you will know the power of C++:
What is the most important (or defining) function in the STL?
HINT: Without it the ‘strong guarantee’ would not be possible.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
somebody would tell me why there would be a exception when the Format funciton excuted?
The codes like this:
COleDateTime time(1982,10,17,12,30,0);<br />
CString strTime=time.Format("%H%M");
the assert message like:
File:afxwin1.inl
Line:22
I'm eager for someone's hand! Thanks
|
|
|
|
|
Generally, the way to tell is to check line 22 of afxwin1.inl.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I use Visual C++ 6.0
the 22nd line of file "afxwin1.inl" only is a MACRO !
I don't know how to do it.
Thanks
|
|
|
|
|
When an assert fails, the error message shows you the check that was being done. What does the message say?
|
|
|
|
|
the assertion dialog like below:
Debug Assertion failed!<br />
<br />
Program:...<br />
File:afxwin1.inl<br />
Line: 22<br />
<br />
For information on how your program can cause an assertion failure,See the vasual C++ documentation on asserts.<br />
<br />
(Press Retry to debug the application)
Thanks
|
|
|
|
|
now,I know,the statement can work well only on Release mode, if you run it on Debug mode ,the assertion will be throwed allways!
Somebody would tell me,Why?
Thanks
|
|
|
|
|
In my version of MFC I see this
_AFXWIN_INLINE HINSTANCE AFXAPI AfxGetInstanceHandle()
{ ASSERT(afxCurrentInstanceHandle != NULL);
return afxCurrentInstanceHandle; }
If this is the same line that is asserting in your app then maybe MFC isn't initialized properly.
It seems to me that shouldn't get called anyway when you call COleDateTime::Format unless the
time is invalid.
If you click to debug you should be able to trace back on the stack and view the value that is
causing the assertion and why.
Mark
"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")
|
|
|
|
|
but when i select Retry on the assertion dialog, it would start debug and show assembly codes!
i think nobody would accept this!
but how to resolve it?
Thanks
|
|
|
|
|
What call stack states , in this case ? Make sure, your .rc file is compiling.
|
|
|
|
|
of course,my .rc file is compiling.
but this code would work well in VS2005's debug mode.
why?
and how to debug my program using VC6.0?
Thanks for helping
|
|
|
|
|
kcynic wrote: but this code would work well in VS2005's debug mode.
Does this mean, Its not working in release mode ? Have you tried seeing difference betn these two configurations ?
|
|
|
|
|
No,I mean that, it doesn't work in Debug mode,but work well in Release mode.
I'm sorry, my English is so poor that sometimes I could not show my thought well.But I really want to improve it and learn more things here,not only programming but also language.
Thanks for your help
Best Regards
|
|
|
|
|
Dear all
In one dialog based project in visual C++ 6,
I create one window by following instruction.
childWindow = new CMyDialogBox;
childWindow->Create(IDD_HANNELSWINDOW_DIALOG,this);
childWindow->ShowWindow(SW_SHOW);
but I want to access both windows of my program.
for example by using Ctrl tab I want to switch between 2 dialogs of my program.
But it is not possible now , because child dialog box is on the main dialog
box,
how can I overcome this problem
Regards
Monhi
|
|
|
|
|
May be you should have gone for an MDI type application ?
Press: 1500 to 2,200 messages in just 6 days? How's that possible sir?
Dr.Brad :Well,I just replied to everything Graus did and then argued with Negus for a bit.
|
|
|
|