|
Project / Settings / General
change Microsoft Foundation Classes to the "Use MFC in a static library" option.
-c
A conclusion is simply the place where someone got tired of thinking.
|
|
|
|
|
I think you can create a setup package.
I am I,Who is who,I am who,Who am I
|
|
|
|
|
It depends on the version of VC you have - Standard will not allow you to bind statically, although I believe there are articles about on how to do that anyhow. In any case, the alternative is to ship the dll's.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Christian Graus wrote:
the alternative is to ship the dll's.
aren't the dlls shipped with some of the OS (ie. Win98, Win2000) ?
what I really mean, is there a good way to know if your program will work on a certain OS. for example, say I write a program using Visual C++ 6 (MFC), will it run on Win95,98,2000 without shipping the mfcXXX.dlls ?
TIA
Soliant | email
"The 'B' in Visual Basic means Beginner" - R. Bischoff
|
|
|
|
|
I don't believe they are ever shipped, but they are often there. You simply cannot count on them though, I learned that with the first release of viewbuild. You need to also find out if you use any C run time functions, if you do, you need msvcrt*.dll as well.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
When I navigate the web with HtmlView,how to get the clicked link's URL before OnNewWindow2 enent fire.
|
|
|
|
|
|
Here is a twist (that is hanging me),
I have created a modeless Property Sheet. I now want to add pages at run time (remove pages then add pages) so that my property sheet has at most 2 pages at one time.
THE PROBLEM IS that I get an error when I try to do this. The debugger replys that a window handle is null (0x00000).
If I create the sheet and add the pages in while in the Sheet's constructor, I don't get an error. But if I try to add a page during run time, I get an error. What is wrong and how can I correct this? Please help.
Here is what I want:
Page 0 (zero) -- page that will be swapped in/out
Page 1 -- page that always appears. Must be the right most page (on tab)
I have my callbacks in CMainFrame class and I have done the modeless Property Sheets before -- when pages are not removed/added dynamically.
Thanks in advance for the help. Code snipet follows
Johnny
void CMainFrame::OnModelessPropSheet()
{
CBasicEventPage pageBasicEvent;
CPageBlue pageBlue;
/********** // 11/12/02 - dynamic add/removal of pages not yet working
int nPageCount;
// Remove both pages (event and the Basic Event Data)
nPageCount = m_pSheetManEvents->GetPageCount();
for (int i=0; i < nPageCount; i++)
m_pSheetManEvents->RemovePage(i);
// Add pages back in (starting with Blue and then Basic Event Data)
m_pSheetManEvents->AddPage(&pageBlue);
m_pSheetManEvents->AddPage(&pageBasicEvent);
m_pSheetManEvents->SetTitle("Insert Blue", 0);
**********/
if (m_pSheetManEvents->IsWindowVisible())
{
m_pSheetManEvents->SetFocus();
}
else
{
m_pSheetManEvents->ShowWindow(SW_SHOW);
}
}
|
|
|
|
|
How can I count the comment lines,function numbers and function lines in C/C++ file.
I am I,Who is who,I am who,Who am I
|
|
|
|
|
Use GetLine to read a line at a time, then parse each string for comments or function declarations, etc. I'd do it in C#, because then you can use Regular Expressions, which would have to help.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Really??I want to use the regular Expression too.But I am not familar with it.Can you show me the example.
By the way,I can use the regular expression in VC6 ,so I do't have to use C#
I am I,Who is who,I am who,Who am I
|
|
|
|
|
roboo wrote:
I want to use the regular Expression too.But I am not familar with it.
At it's simplest, a regular expression is like when you search for a file and type *.txt to get a text file - the * stands for any number of characters. RegEx can be a lot more complex, the MSDN is full of examples. C++ does not support RegEx natively, the .NET framework does. If you have VC6 it may not be worth the effort of finding something you can plug in to do it for you, although it's possible that Boost has something ( www.boost.org ).
The C# compiler is free from Microsoft and there are some open source, free IDE's, so it's not entirely out of the question to give C# a go.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Thank you very much again.
Can you tell me where can I find the example code either C++ or C#.
I am I,Who is who,I am who,Who am I
|
|
|
|
|
MSDN is full of RegEx code, I have some articles on CP about iostreams ( which is how you read and write files ), apart from that I guess your options include string mashing, if you're using MFC then CString is the best string class to do that sort of stuff, unless you want to write funky STL functors for std::string.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
I think you had misunderstood me.I know how to use regular expression.
I just want to know how to judge the "/**/" "//"
"{}" string by regular expression.I cannot write the correct and workable expression.
I am I,Who is who,I am who,Who am I
|
|
|
|
|
Ah... I see. To be honest, I need to look up MSDN myself to build them, I'm not that experienced. The MSDN docs are very good though, I just don't know the stuff well enough yet to do it without them.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Go to the macros and add-ins section for some add-ins that do this (maybe not all you need - but a start)
cheers,
Chris Maunder
|
|
|
|
|
I want to pratice my VC++ skill by creating a project.The project is about a web server.
I want to use the CAsyncSocket to finish the task.I had made a lot of progress.Now I meet a problem.
I can load the onReceive event agian,and if one browser visit the http://127.0.0.1 I can get the resquest.But When and How can I response the bwowser bu reloading the onSend event.
Any informaition may help me and thank you very much.
I am I,Who is who,I am who,Who am I
|
|
|
|
|
I'm trying to find a virtual listbox class but I can't seem to find one anywhere. I need to have a listbox with alot of values which takes too long to load in a regular listbox.
|
|
|
|
|
I'm trying to find a virtual listbox class but I can't seem to find one anywhere. I need to have a listbox with alot of values which takes too o\long to load in a regular listbox.
|
|
|
|
|
I'm having some problems with the heap..
First I create a new heap object:
m_phArray=new HTREEITEM[nSizeOfArray];
Then later I try to delete it, in a different virtual function:
delete[] m_phArray;
And after debugging I get:
memory check error at 0x016A0048 = 0xD8, should be 0xFD.
memory check error at 0x016A0049 = 0x21, should be 0xFD.
memory check error at 0x016A004A = 0x62, should be 0xFD.
memory check error at 0x016A004B = 0x00, should be 0xFD.
Is there a simple sollution to my problem, or an in depth web page on the Heap you could reference me to? Thanks.
-Templeton
|
|
|
|
|
this almost certainly means you've written a value off the end of the array. check every place you write a value into the array and make sure you're not going past the (nSizeOfArray-1)th element.
-c
A conclusion is simply the place where someone got tired of thinking.
|
|
|
|
|
it's not almost certainly; it is. Thank you, works like a charm.
-Templeton
|
|
|
|
|
Hi there,
What's the best way to show a HTML in the dialog ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
|