|
If you're writing this from a blank project, you need to read carefully how to set it up. I've learned what all the bits the wizard gives me do, but I've never started a project except through the wizard - it just makes more sense to me to let the compiler generate boiler plate code, although, as I say, I've also had a good dig through it and can do a lot of the wizard stuff by hand if I want/need to.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm thinking of getting married for companionship and so I have someone to cook and clean." - Martin Marvinski, 6/3/2002
|
|
|
|
|
Christian Graus wrote:
If you're writing this from a blank project, you need to read carefully how to set it up
There is not much to setting it up actually
1. Include the MFC headers
2. Link with MFC [statically or dynamically]
That's all...
Nish
My miniputt high is now 29
I do not think I can improve on that
My temperament won't hold
www.busterboy.org
|
|
|
|
|
Fair enough, but obviously the book would have told him how to do that and he's missed it.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm thinking of getting married for companionship and so I have someone to cook and clean." - Martin Marvinski, 6/3/2002
|
|
|
|
|
Christian Graus wrote:
Fair enough, but obviously the book would have told him how to do that and he's missed it.
Yeah, that sounds highly probable.
Nish
My miniputt high is now 29
I do not think I can improve on that
My temperament won't hold
www.busterboy.org
|
|
|
|
|
The problem is your project settings are set to link with the single-threaded C runtime. MFC requires the multi-threaded version (as indicated by the fact that it's trying to find thread-related functions).
Click Project->Settings, C++ tab, Code Generation category, and set the Use runtime library setting to Debug Multithreaded (for the debug config) or Multithreaded (for release).
--Mike--
Rollin' in my 5.0
With the rag-top down so my hair can blow.
My really out-of-date homepage
Sonork - 100.10414 AcidHelm
Big fan of Alyson Hannigan and Jamie Salé.
|
|
|
|
|
thanks everybody answered this question.
yes,in the end of the chapter,the writer gave the step on how to build it.I have not read it.now everything is ok,thank you.
YES, I am here.
|
|
|
|
|
Hi,all
When I used ClassWizard to add the message handlers,VC++ 6.0 displayed the warning:
"ClassWizard was unable to rename file D:\DOCUME~1\Alpha\LOCALS~1\Temp\mfc78.tmp to F:\Program\MyProjects\vcpp32\ex14a\ex4aView.cpp. You may be able to rename this file by hand and prevent loss of data.Some updates may still be lost."
What's wrong with it? I remember that when I used classwizard to add message handlers of menu items,vc++ always shown this warning.Can anyone tell me the reason?
Thanks!
YES, I am here.
|
|
|
|
|
If that happened to me, I'd be deleting all my temporary files, uninstalling VC and reinstalling it. This is NOT normal.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm thinking of getting married for companionship and so I have someone to cook and clean." - Martin Marvinski, 6/3/2002
|
|
|
|
|
Hello,
I am tring to write a simple .exe that can show or hide another running exe.. for example I want to be able (from my dialog box) toggle (show,hide) a running instance of notepad.
Any ideas?
Rob
|
|
|
|
|
Never mind.. I figured it out..
|
|
|
|
|
How do I programmatically get the name of the computer a user is using to log into the network? If some one knows the regular way and the .net way I would REALLY appreciate it. Thanks chums!
... OK, let's try that again. What I meant was not a local call, but one over the network, where I know someone's login id and that they are logged into the domain, but want to know what computer they are using to get on the network.
|
|
|
|
|
|
I have placed a List Control into a small area of a scrollview, among other controls. The control is in Icon view with small icons and text lables.
When I call CreateDragImage the image I get is the small icon and a black rectangle where the text would be. How can I get around this? Either to make the text visible or to just have the image.
Happy programming!!
|
|
|
|
|
I see that every topic on Visual C++ on
the msdn website has a
"this topic is not being updated after .Net release"
tag in RED!!!!!!!
Is Microsoft killing off C++, MFC et al
|
|
|
|
|
Ugh, another person who doesn't have CLUE what is going on.
MICROSOFT IS NOT KILLING OF C++.
VISUAL C++ IS THE OLD PRODUCT.
THE NEW C++ COMPILER IS CONTAINED IN THE .NET DOCUMENTATION.
SEEEEEEEEEEEEE!!!!!!
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
ok smartypants, can u tell me how I access this
"help"? whats the link to the root of Visual C++
.Net help? God knows their help system was
bad enough, now they have to complicate things
like this!!
|
|
|
|
|
Anonymous wrote:
ok smartypants
That's one sure way to make sure he won't answer your question.
Nish
My miniputt high is now 29
I do not think I can improve on that
My temperament won't hold
www.busterboy.org
|
|
|
|
|
Heh, not like I was being civil
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
Just click on the link I provided in the message.
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
Hi all,
I’m trying to make use of some threads in my programs.
Then I try to build my project(MFC), this error turn up.
“fatal error LNK1561: entry point must be defined”
My code is similar:
UINT CTestDlg::threadProc(LPVOID p)
{
CTestDlg * me = (CTestDlg *)p;
me->classProc("ThreadTest");
return 0;
}
void CTestDlg::classProc(const CString mesage)
{
AfxMessageBox(message);
}
void CTestDlg::OnOkButton()
{
HWND hWnd = GetSafeHwnd();
AfxBeginThread( threadProc, hWnd, THREAD_PRIORITY_NORMAL );
}
Can you help me what to do?
Thanks,
Ola Carlsson
olaca428@student.liu.se
|
|
|
|
|
You don't have a main for some reason.
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
First of all your thread proc cannot be a non-static member function of a class. Either make it static or use a global function as thread proc.
Nish
My miniputt high is now 29
I do not think I can improve on that
My temperament won't hold
www.busterboy.org
|
|
|
|
|
HI Guys
I wanna run my application as Win NT service.
How do i wanna do?
I want to create an exe, with input parameters as
1. User Name
2. Password
3. exe\batch File Name
I want to run "exe\batch File Name" as Win NT service with user name and password.
How can i do it?
Help needed ASAP.
Regs
Rohit
|
|
|
|
|
http://www.codeproject.com/system/serviceskeleton.asp
Nish
My miniputt high is now 29
I do not think I can improve on that
My temperament won't hold
www.busterboy.org
|
|
|
|
|
Hi all,
I used Crystal Report 8.0 in my VC++ 6.0 without any problem, but in VC++ .NET Crystal Report control have other function for allthing !
Below source code worked in my VC++ 6.0 project and now i have problem in VC++ .NET project:
strFormula = "{TABLE1.ID} = 1";
m_Report.put_SelectionFormula(strFormula);
as you can see, there is a simple for Selection formula !
ATTENTION: in VC++ 6.0, you must use SetSelectionFormula function
It is my second question, why I must use of different of functions in VC++ 6.0 and VC++ 7.0 ?
Help me !!!
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|